/* ========================================
   CSS Variables
   ======================================== */
:root {
    --color-primary: #1DAF61;
    --color-primary-hover: #18a157;
    --color-primary-active: #159d4f;
    --color-bg-white: #FFFFFF;
    --color-text-strong: #171717;
    --color-text-sub: #5C5C5C;
    --color-text-soft: #A3A3A3;
    --color-border-light: rgba(255, 255, 255, 0.12);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Spacing Desktop */
    --hero-padding-x: 187px;
    --hero-padding-y: 128px;
    --footer-padding-x: 188px;
    --footer-padding-y: 48px;
    
    /* Animation timing */
    --stagger-delay: 120ms;
    --animation-duration: 0.8s;
    --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100%;
    font-family: var(--font-body);
    background-color: var(--color-bg-white);
    color: var(--color-text-sub);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Page Load Animations - Blur Fade In
   ======================================== */
@keyframes blur-fade-in {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes blur-fade-in-subtle {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* Animation classes with stagger */
.animate-in {
    opacity: 0;
    animation: blur-fade-in var(--animation-duration) var(--animation-easing) forwards;
}

.animate-in-subtle {
    opacity: 0;
    animation: blur-fade-in-subtle var(--animation-duration) var(--animation-easing) forwards;
}

/* Stagger delays */
.delay-1 { animation-delay: calc(var(--stagger-delay) * 1); }
.delay-2 { animation-delay: calc(var(--stagger-delay) * 2); }
.delay-3 { animation-delay: calc(var(--stagger-delay) * 3); }
.delay-4 { animation-delay: calc(var(--stagger-delay) * 4); }
.delay-5 { animation-delay: calc(var(--stagger-delay) * 5); }

/* ========================================
   Layout - Page Container
   ======================================== */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--hero-padding-y) var(--hero-padding-x);
    background-color: var(--color-bg-white);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    width: 100%;
    max-width: 1440px;
}

/* ========================================
   Logo
   ======================================== */
.logo-container {
    display: flex;
    justify-content: center;
}

.logo {
    width: 361.143px;
    height: 64px;
}

/* ========================================
   Content Wrapper
   ======================================== */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 640px;
    width: 100%;
}

/* ========================================
   Typography - Title
   ======================================== */
.main-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 56px;
    line-height: 64px;
    letter-spacing: -0.56px;
    color: var(--color-text-strong);
    text-align: center;
    margin: 0;
}

/* ========================================
   Typography - Description
   ======================================== */
.description {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
    width: 100%;
}

.description-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    letter-spacing: -0.27px;
    color: var(--color-text-sub);
    text-align: center;
    margin: 0;
}

.description-text:first-child {
    margin-bottom: 0;
}

.description-text strong {
    font-weight: 700;
    color: var(--color-text-sub);
}

/* ========================================
   CTA Button - Elegant Lift Style
   ======================================== */
.cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 14px 10px 16px;
    background-color: var(--color-primary);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    box-shadow: 
        0px 1px 2px 0px rgba(14, 18, 27, 0.12),
        0px 0px 0px 1px var(--color-primary);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--color-primary-hover);
    box-shadow: 
        0px 10px 30px -10px rgba(29, 175, 97, 0.65),
        0px 0px 0px 1px var(--color-primary-hover);
}

.cta-button:active {
    transform: translateY(-1px);
    background-color: var(--color-primary-active);
    box-shadow: 
        0px 4px 12px -4px rgba(29, 175, 97, 0.55),
        0px 0px 0px 1px var(--color-primary-active);
}

.cta-button:focus {
    outline: none;
    box-shadow: 
        0px 1px 2px 0px rgba(14, 18, 27, 0.12),
        0px 0px 0px 3px rgba(29, 175, 97, 0.25);
}

.cta-text {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: white;
    white-space: nowrap;
    padding: 0 4px;
}

.cta-icon {
    opacity: 0.64;
    width: 20px;
    height: 20px;
    color: white;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover .cta-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--footer-padding-y) var(--footer-padding-x);
    background-color: var(--color-bg-white);
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-text {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.084px;
    color: var(--color-text-soft);
    text-align: center;
    margin: 0;
}

/* ========================================
   Responsive Design - Tablet
   ======================================== */
@media (max-width: 1024px) and (min-width: 768px) {
    :root {
        --hero-padding-x: 100px;
        --hero-padding-y: 80px;
        --footer-padding-x: 100px;
        --footer-padding-y: 40px;
    }
    
    .page-container {
        height: 100vh;
    }
    
    .logo {
        width: 300px;
        height: 53.2px;
    }
    
    .main-title {
        font-size: 48px;
        line-height: 56px;
        letter-spacing: -0.48px;
    }
    
    .hero-content {
        gap: 48px;
    }
}

/* ========================================
   Responsive Design - Mobile (General)
   ======================================== */
@media (max-width: 767px) {
    :root {
        --hero-padding-x: 20px;
        --hero-padding-y: 24px;
        --footer-padding-x: 20px;
        --footer-padding-y: 24px;
    }
    
    .page-container {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
    
    .hero-section {
        padding: var(--hero-padding-y) var(--hero-padding-x);
    }
    
    .hero-content {
        gap: 36px;
    }
    
    .logo {
        width: 225.714px;
        height: 40px;
    }
    
    .main-title {
        font-size: 48px;
        line-height: 56px;
        letter-spacing: -0.48px;
    }
    
    .description-text {
        font-size: 18px;
        line-height: 27px;
    }
    
    .cta-wrapper {
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
        flex: 1;
    }
    
    .footer {
        padding: var(--footer-padding-y) var(--footer-padding-x);
    }
}

/* ========================================
   Responsive Design - iPhone 13/14 (390x844)
   Optimized to fit without scroll
   ======================================== */
@media (max-width: 390px) and (min-height: 800px) {
    .page-container {
        height: 100vh;
        min-height: 844px;
        overflow: hidden;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-content {
        gap: 32px;
    }
    
    .logo {
        width: 225.714px;
        height: 40px;
    }
    
    .main-title {
        font-size: 44px;
        line-height: 52px;
        letter-spacing: -0.44px;
    }
    
    .description-text {
        font-size: 17px;
        line-height: 26px;
    }
    
    .footer {
        padding: 24px 20px;
    }
}

/* ========================================
   Responsive Design - Smaller than 390px width
   ======================================== */
@media (max-width: 389px) {
    .main-title {
        font-size: 38px;
        line-height: 46px;
        letter-spacing: -0.38px;
    }
    
    .description-text {
        font-size: 16px;
        line-height: 24px;
    }
    
    .logo {
        width: 200px;
        height: 35.5px;
    }
}

/* ========================================
   Responsive Design - Short viewports
   (for devices shorter than 844px)
   ======================================== */
@media (max-width: 767px) and (max-height: 799px) {
    .page-container {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
    
    .hero-content {
        gap: 28px;
    }
    
    .hero-section {
        padding: 20px 20px;
    }
    
    .footer {
        padding: 20px 20px;
    }
    
    .main-title {
        font-size: 36px;
        line-height: 44px;
    }
    
    .description-text {
        font-size: 16px;
        line-height: 24px;
    }
}

/* ========================================
   Reduced Motion Preference
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .animate-in,
    .animate-in-subtle {
        animation: none;
        opacity: 1;
        filter: none;
        transform: none;
    }
    
    .cta-button,
    .cta-icon {
        transition: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .page-container {
        height: auto;
    }
    
    .cta-button {
        display: none;
    }
    
    .animate-in,
    .animate-in-subtle {
        animation: none;
        opacity: 1;
    }
}
