/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-bg-primary: #fbfefe;
    --color-bg-gradient-start: rgba(249, 254, 252, 0.7);
    --color-bg-gradient-end: rgba(237, 250, 241, 0.7);
    --color-bg-hero-gradient-start: rgb(251, 254, 254);
    --color-bg-hero-gradient-end: rgb(232, 249, 236);
    --color-action: #88e788;
    --color-text-headings: #181a1f;
    --color-text-body: #22252b;
    --color-text-disabled: #6b6d71;
    --color-text-about: #1b2826;
    
    /* Typography */
    --font-family-heading: 'Raleway', sans-serif;
    --font-family-paragraph: 'Raleway', sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 12px;
    --spacing-md: 18px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 72px;
    
    /* Border Radius */
    --radius-sm: 17px;
    --radius-md: 28px;
    --radius-lg: 35px;
    --radius-button: 200px;
    
    /* Shadows */
    --shadow-hero: 7px -7px 44px 0px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family-paragraph);
    background-color: var(--color-bg-primary);
    color: var(--color-text-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    padding: 0 48px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background-color: var(--color-bg-primary);
    position: relative;
    z-index: 2;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 126px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 46px;
    width: 190.487px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 80px;
}

.divider {
    position: absolute;
    bottom: 0;
    left: calc(-100vw + 50%); /* Adjust for body padding */
    right: calc(-100vw + 50%);
    height: 0;
    width: 200vw; /* Ensure it stretches beyond body padding */
}

.divider-img {
    width: 100%;
    height: 100%;
}

/* Button Styles */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 50px;
    border: none;
    border-radius: var(--radius-button);
    font-family: var(--font-family-paragraph);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-login {
    background-color: var(--color-action);
    color: var(--color-text-body);
    width: 132px;
}

.btn-primary {
    background-color: var(--color-action);
    color: var(--color-text-body);
}

.btn-hero {
    width: 332px;
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 18px;
    line-height: 25px;
}

.btn-about {
    width: 228px;
}

.btn[href],
a.btn {
    text-decoration: none;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 1344px;
    position: relative;
    margin: 0 auto;
}

.hero-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    background: linear-gradient(151.301deg, var(--color-bg-hero-gradient-start) 7.3927%, var(--color-bg-hero-gradient-end) 81.168%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 85px;
    padding-bottom: 85px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 27px;
    align-items: center;
    width: 916px;
    max-width: 100%;
    padding: 0 20px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-heading {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 60px;
    line-height: 72px;
    color: var(--color-text-headings);
    height: 143px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 916px;
}

.hero-heading span {
    display: block;
}

.hero-description {
    font-family: var(--font-family-heading);
    font-weight: 500;
    font-size: 20px;
    line-height: 25px;
    color: var(--color-text-disabled);
    width: 100%;
    max-width: 806px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-position: center;
}

/* About Section */
.about-section {
    background-color: var(--color-bg-primary);
    width: 100%;
    padding: 64px 0;
}

.about-card {
    display: flex;
    align-items: flex-start;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: linear-gradient(177.878deg, var(--color-bg-gradient-start) 27.375%, var(--color-bg-gradient-end) 96.854%);
    padding: 0 0 0 68px;
    overflow: hidden;
    gap: 0;
}

.about-text-content {
    flex: 1;
    min-width: 0;
    margin-right: -32px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: flex-start;
    width: 100%;
}

.about-heading {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 48px;
    line-height: 58px;
    color: var(--color-text-about);
    width: 100%;
    max-width: 509px;
}

.about-description {
    font-family: var(--font-family-heading);
    font-weight: 500;
    font-size: 20px;
    line-height: 32px;
    color: var(--color-text-disabled);
    width: 100%;
    max-width: 579px;
}

.about-description p {
    margin-bottom: 1em;
}

.about-description p:last-child {
    margin-bottom: 0;
}

.about-image-container {
    width: 520px;
    height: 540px;
    flex-shrink: 0;
    margin-right: -32px;
    overflow: hidden;
    position: relative;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Footer */
.footer {
    background-color: var(--color-bg-primary);
    padding-bottom: 72px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    align-items: flex-start;
}

.footer-divider {
    width: 100%;
    height: 0;
    position: relative;
}

.footer-divider-img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: -0.75px -7.14%;
}

.footer-content {
    display: flex;
    gap: var(--spacing-4xl);
    align-items: flex-start;
    width: 100%;
}

.footer-brand {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}

.footer-brand-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.footer-logo {
    height: 32px;
    display: flex;
    align-items: center;
}

.footer-logo-container {
    height: 32px;
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 46px;
    width: 190.487px;
}

.footer-description {
    font-family: var(--font-family-paragraph);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-disabled);
    width: 100%;
    max-width: 334px;
}

.social-links {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.social-link {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 0.7;
}

.social-icon {
    width: 100%;
    height: 100%;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-paragraph);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    width: 200px;
    flex-shrink: 0;
}

.footer-nav-heading {
    color: var(--color-text-headings);
    width: 100%;
}

.footer-link {
    color: var(--color-text-disabled);
    text-decoration: none;
    width: 100%;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-text-body);
}

/* Responsive Design */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    body {
        padding: 0 48px;
    }
    
    .hero-section {
        max-width: 1344px;
    }
    
    .about-card {
        max-width: 1344px;
        margin: 0 auto;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1201px) {
    body {
        padding: 0 40px;
    }
    
    .hero-section {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .hero-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-content {
        width: 100%;
        max-width: 916px;
    }

    .about-card {
        flex-direction: row;
        gap: 48px;
    }

    .about-image-container {
        width: 50%;
        max-width: 520px;
        margin-right: 0;
        height: auto;
        min-height: 440px;
    }
    
    .divider {
        left: calc(-100vw + 50% + 40px);
        right: calc(-100vw + 50% + 40px);
    }
}

/* Tablet Landscape and Small Desktop (992px - 1200px) */
@media (max-width: 1200px) {
    body {
        padding: 0 32px;
    }
    
    .hero-section {
        max-width: 100%;
        height: auto;
        min-height: auto;
        padding: 0 20px;
    }
    
    .hero-container {
        position: relative;
        top: 0;
        margin: 32px 0;
        width: 100%;
        height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-content {
        width: 100%;
        max-width: 916px;
        padding: 0;
    }
    
    .about-section {
        padding: 8px 0;
    }
    
    .about-card {
        flex-direction: row;
        padding: 40px 20px 40px 48px;
        gap: 32px;
    }
    
    .about-text-content {
        margin-right: 0;
        flex: 1;
    }
    
    .about-image-container {
        width: 50%;
        max-width: 520px;
        margin-right: 0;
        height: auto;
        min-height: 440px;
    }
    
    .footer {
        padding-bottom: 64px;
    }
    
    .divider {
        left: calc(-100vw + 50% + 32px);
        right: calc(-100vw + 50% + 32px);
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    body {
        padding: 0 28px;
    }
    
    .header-container {
        height: auto;
        padding: 24px 0;
    }
    
    .header-nav {
        gap: 40px;
    }
    
    .divider {
        left: calc(-100vw + 50% + 28px);
        right: calc(-100vw + 50% + 28px);
    }
    
    .hero-section {
        padding: 0 16px;
    }
    
    .hero-container {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 32px;
        padding-bottom: 32px;
        border-radius: var(--radius-md);
        margin: 16px 0;
    }
    
    .hero-heading {
        font-size: 48px;
        line-height: 58px;
        height: auto;
    }
    
    .hero-description {
        font-size: 18px;
        line-height: 24px;
    }
    
    .about-section {
        padding: 8px 0;
    }
    
    .about-card {
        flex-direction: column;
        align-items: center;
        padding: 36px 32px;
        gap: 28px;
    }

    .about-text {
        align-items: center;
        text-align: center;
    }
    
    .about-text-content {
        margin-bottom: 0;
    }
    
    .about-image-container {
        width: 100%;
        max-width: 100%;
        height: 440px;
        min-height: 440px;
    }

    .about-image {
        border-radius: 18px;
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer {
        padding-bottom: 56px;
    }
    
    .footer-content {
        gap: var(--spacing-3xl);
    }
}

/* Mobile Landscape and Small Tablet (640px - 767px) */
@media (max-width: 767px) {
    body {
        padding: 0 20px;
    }
    
    .header-container {
        flex-direction: row;
        gap: 20px;
        padding: 20px 0;
    }
    
    .logo-img {
        height: 40px;
        width: auto;
    }
    
    .btn-login {
        width: 110px;
        height: 44px;
        font-size: 15px;
    }
    
    .divider {
        left: calc(-100vw + 50% + 20px);
        right: calc(-100vw + 50% + 20px);
    }
    
    .hero-section {
        padding: 0 12px;
    }
    
    .hero-container {
        margin: 12px 0;
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 32px;
        padding-bottom: 32px;
        border-radius: var(--radius-md);
    }
    
    .hero-content {
        gap: 24px;
    }
    
    .hero-text {
        gap: 16px;
    }
    
    .hero-heading {
        font-size: 36px;
        line-height: 44px;
    }
    
    .hero-description {
        font-size: 17px;
        line-height: 24px;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 332px;
        height: 48px;
        font-size: 16px;
    }
    
    .about-section {
        padding: 8px 0;
    }
    
    .about-card {
        padding: 32px 24px;
        gap: 24px;
        border-radius: var(--radius-md);
    }
    
    .about-text {
        gap: 24px;
    }
    
    .about-heading {
        font-size: 32px;
        line-height: 40px;
    }
    
    .about-description {
        font-size: 17px;
        line-height: 28px;
    }
    
    .btn-about {
        width: 100%;
        max-width: 228px;
    }
    
    .about-image-container {
        height: 360px;
        min-height: 360px;
    }
    
    .footer {
        padding-bottom: 48px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-2xl);
    }
    
    .footer-brand {
        align-self: stretch;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-nav {
        align-items: flex-start;
        width: 100%;
    }
}

/* Mobile Portrait (480px - 639px) */
@media (max-width: 639px) {
    body {
        padding: 0 16px;
    }
    
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 16px 0;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .btn-login {
        width: 100px;
        height: 42px;
        font-size: 14px;
        padding: 0 10px;
    }
    
    .divider {
        left: calc(-100vw + 50% + 16px);
        right: calc(-100vw + 50% + 16px);
    }
    
    .hero-section {
        padding: 0 8px;
    }
    
    .hero-container {
        margin: 8px 0;
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 28px;
        padding-bottom: 28px;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero-text {
        gap: 14px;
    }
    
    .hero-heading {
        font-size: 32px;
        line-height: 40px;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 22px;
    }
    
    .btn-hero {
        height: 46px;
        font-size: 15px;
        padding: 0 16px;
    }
    
    .about-section {
        padding: 8px 0;
    }
    
    .about-card {
        padding: 28px 20px;
        gap: 20px;
    }
    
    .about-text {
        gap: 20px;
    }
    
    .about-heading {
        font-size: 28px;
        line-height: 36px;
    }
    
    .about-description {
        font-size: 16px;
        line-height: 26px;
    }
    
    .about-image-container {
        height: 320px;
        min-height: 320px;
    }
    
    .footer {
        padding-bottom: 40px;
    }
    
    .footer-brand-content {
        gap: 20px;
    }
    
    .footer-logo-img {
        height: 40px;
        width: auto;
    }
    
    .footer-description {
        font-size: 15px;
        line-height: 22px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 22px;
        height: 22px;
    }
    
    .footer-nav {
        gap: 16px;
        font-size: 15px;
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    body {
        padding: 0 12px;
    }
    
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 12px 0;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .btn-login {
        width: 90px;
        height: 40px;
        font-size: 13px;
    }
    
    .divider {
        left: calc(-100vw + 50% + 12px);
        right: calc(-100vw + 50% + 12px);
    }
    
    .hero-section {
        padding: 0 4px;
    }
    
    .hero-container {
        margin: 4px 0;
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 24px;
        padding-bottom: 24px;
        border-radius: 20px;
    }
    
    .hero-content {
        gap: 18px;
    }
    
    .hero-text {
        gap: 12px;
    }
    
    .hero-heading {
        font-size: 28px;
        line-height: 36px;
    }
    
    .hero-description {
        font-size: 15px;
        line-height: 21px;
    }
    
    .btn-hero {
        height: 44px;
        font-size: 14px;
        width: 100%;
        max-width: 100%;
    }
    
    .about-section {
        padding: 8px 0;
    }
    
    .about-card {
        padding: 24px 16px;
        gap: 18px;
        border-radius: 20px;
    }
    
    .about-text {
        gap: 18px;
    }
    
    .about-heading {
        font-size: 24px;
        line-height: 32px;
    }
    
    .about-description {
        font-size: 15px;
        line-height: 24px;
    }
    
    .btn-about {
        width: 100%;
        height: 44px;
        font-size: 14px;
    }
    
    .about-image-container {
        height: 280px;
        min-height: 280px;
    }
    
    .footer {
        padding-bottom: 32px;
    }
    
    .footer-brand-content {
        gap: 18px;
    }
    
    .footer-logo-img {
        height: 36px;
    }
    
    .footer-description {
        font-size: 14px;
        line-height: 20px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 20px;
        height: 20px;
    }
    
    .footer-nav {
        gap: 14px;
        font-size: 14px;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    body {
        padding: 0 8px;
    }
    
    .header-container {
        padding: 8px 0;
    }
    
    .divider {
        left: calc(-100vw + 50% + 8px);
        right: calc(-100vw + 50% + 8px);
    }
    
    .hero-heading {
        font-size: 24px;
        line-height: 30px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .about-heading {
        font-size: 22px;
        line-height: 28px;
    }
    
    .about-description {
        font-size: 14px;
        line-height: 22px;
    }
    
    .hero-container {
        margin: 2px 0;
        padding-left: 8px;
        padding-right: 8px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .about-section {
        padding: 8px 0;
    }
    
    .about-image-container {
        height: 260px;
        min-height: 260px;
    }
    
    .footer {
        padding-bottom: 24px;
    }
}