:root {
    --navy: #1B2B5E;
    --navy-light: #2A3C7A;
    --navy-dark: #121C40;
    --saffron: #E8873A;
    --saffron-hover: #F09A55;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #FAFAFB;
    color: var(--navy);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Subtle, lively background mesh gradient */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: 
        radial-gradient(at 10% 0%, hsla(226, 55%, 24%, 0.04) 0px, transparent 60%),
        radial-gradient(at 90% 10%, hsla(27, 80%, 57%, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 100%, hsla(226, 55%, 24%, 0.03) 0px, transparent 60%);
    opacity: 1;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatGraph {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* Header */
.header {
    padding: 2rem 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    animation: fadeUp 0.6s ease backwards;
}

.logo-image {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0 5rem;
    max-width: 720px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero > * {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.badge {
    background-color: #FFF2E5;
    color: var(--saffron);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(232, 135, 58, 0.1);
    animation-delay: 0.1s;
    border: 1px solid rgba(232, 135, 58, 0.2);
}

.headline {
    font-size: clamp(2.25rem, 6vw + 0.5rem, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.04em;
    color: var(--navy-dark);
    animation-delay: 0.2s;
}

.subheadline {
    font-size: clamp(1.05rem, 2.5vw + 0.5rem, 1.25rem);
    color: var(--gray-600);
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
    max-width: 90%;
    font-weight: 500;
    line-height: 1.6;
    animation-delay: 0.3s;
}

/* Waitlist Form */
.waitlist-form {
    width: 100%;
    max-width: 520px;
    margin-bottom: 2.5rem;
    animation-delay: 0.4s;
}

.input-group {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border: 1.5px solid #E5E7EB;
    border-radius: 16px;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(27, 43, 94, 0.05);
}

.input-group:focus-within {
    border-color: var(--saffron);
    box-shadow: 0 12px 40px rgba(232, 135, 58, 0.12);
    transform: translateY(-2px);
}

.country-wrapper {
    display: flex;
    align-items: center;
}

.country-code {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 1.05rem;
}

.divider {
    width: 1.5px;
    height: 24px;
    background-color: var(--gray-100);
}

.form-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--navy);
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.cta-button {
    background-color: var(--saffron);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 0 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: var(--saffron-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(232, 135, 58, 0.3);
}

.cta-button:active {
    transform: scale(0.98);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.cta-button:hover .arrow-icon {
    transform: translateX(3px);
}

/* Success Message */
.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #ECFDF5;
    color: #065F46;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid #A7F3D0;
    font-weight: 600;
    font-size: 1.05rem;
}

.success-message svg {
    width: 22px;
    height: 22px;
    color: #10B981;
}

.show-success {
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation-delay: 0.5s;
}

.avatars {
    display: flex;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -12px;
    overflow: hidden;
    background-color: var(--gray-100);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.avatar:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-text {
    font-size: 1rem;
    color: var(--gray-600);
}

.proof-text strong {
    color: var(--navy-dark);
    font-weight: 700;
}

/* Abstract App Mockup Hint */
.illustration-container {
    margin-top: 4rem;
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards 0.6s;
}

.mockup-hint {
    width: 280px;
    height: 320px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 36px 36px 0 0;
    box-shadow: 0 -15px 40px rgba(27, 43, 94, 0.05), inset 0 1px 0 rgba(255,255,255,1);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-bottom: none;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transform: rotateX(5deg) scale(0.95);
    transform-origin: bottom center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-hint::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(250, 250, 251, 1), transparent);
    z-index: 2;
    pointer-events: none;
}

.mockup-hint:hover {
    transform: rotateX(0deg) scale(1) translateY(-10px);
    box-shadow: 0 -20px 50px rgba(27, 43, 94, 0.08);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mockup-chip {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.mockup-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mockup-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-dark);
}

.mockup-circle {
    width: 44px;
    height: 44px;
    background: rgba(27, 43, 94, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-circle::after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    opacity: 0.8;
}

.mockup-graph {
    flex: 1;
    width: 100%;
    margin: 1.5rem 0 0;
    position: relative;
    animation: floatGraph 6s ease-in-out infinite;
}

.mockup-graph svg {
    width: 100%;
    height: 120px;
    overflow: visible;
}

.graph-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    animation: drawLine 2s ease-out forwards;
}

.graph-point {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.5s forwards;
}

@keyframes drawLine {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.mockup-footer {
    display: flex;
    justify-content: center;
    z-index: 3;
}

.mockup-action-btn {
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-icon {
    background: var(--saffron);
    color: var(--white);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
}

/* Footer */
.footer {
    padding: 2.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(229, 231, 235, 0.7);
    margin-top: auto;
    animation: fadeUp 0.8s ease backwards 0.8s;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
}

.shield-icon {
    width: 20px;
    height: 20px;
    color: #059669; /* Trust green */
}

.privacy-link {
    font-size: 0.9rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.privacy-link:hover {
    color: var(--navy);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 2rem 0 4rem;
        max-width: 90%;
    }
    .headline {
        max-width: 95%;
    }
    .illustration-container {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 1.25rem;
    }
    
    .header {
        justify-content: center;
        padding-top: 1.5rem;
    }

    .subheadline {
        max-width: 100%;
    }

    .waitlist-form {
        max-width: 100%;
    }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0.85rem;
    }

    .input-group:focus-within {
        transform: none;
        box-shadow: none;
    }

    .country-wrapper {
        display: none; /* Hide country code wrapper on mobile to keep it simple */
    }

    .form-input {
        background: var(--white);
        border: 2px solid #E5E7EB;
        border-radius: 14px;
        padding: 1.125rem 1.25rem;
        text-align: center;
        font-size: 1.125rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    }

    .form-input:focus {
        border-color: var(--saffron);
    }

    .cta-button {
        padding: 1.125rem;
        width: 100%;
        font-size: 1.125rem;
        border-radius: 14px;
        justify-content: center;
    }
    
    .social-proof {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .illustration-container {
        margin-top: 2rem;
    }

    .mockup-hint {
        width: 100%;
        max-width: 300px;
        height: auto;
        padding: 1.5rem;
    }
    
    .mockup-graph svg {
        height: 90px;
    }
    
    .footer {
        flex-direction: column-reverse; /* Reorder footer practically */
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 0 1rem;
    }
    
    .header {
        padding-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-image {
        height: 38px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.45rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-input, .cta-button {
        padding: 1rem;
        font-size: 1.05rem;
    }
    
    .trust-badge {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .shield-icon {
        width: 24px;
        height: 24px;
    }
}
