/* ===== CSS Variables - Design System (Light Theme) ===== */
:root {
    /* Brand Colors */
    --color-teal: #2EC4B6;
    --color-blue: #3A86FF;
    --color-black: #000000;
    --color-light-gray: #F2F4F7;

    /* Light Theme Palette */
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-teal) 0%, var(--color-blue) 100%);
    --gradient-primary-vertical: linear-gradient(180deg, var(--color-teal) 0%, var(--color-blue) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(46, 196, 182, 0.1) 0%, rgba(58, 134, 255, 0.1) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 40px rgba(46, 196, 182, 0.25);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--spacing-md) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-svg {
    height: 32px;
    width: auto;
}

.nav-cta {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--spacing-3xl)) var(--spacing-xl) var(--spacing-3xl);
    gap: var(--spacing-4xl);
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    max-width: 500px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.125rem;
    color: white;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

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

/* ===== Hero Visual ===== */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--gradient-primary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--color-text);
    border-radius: var(--radius-full);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.consent-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    width: 100%;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.consent-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.consent-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.consent-text {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.consent-time {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===== Features Section ===== */
.features {
    padding: var(--spacing-4xl) var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-teal);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.feature-description {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: var(--spacing-4xl) var(--spacing-xl);
    background: var(--color-bg-secondary);
}

.how-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: var(--spacing-xl);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-lg);
    color: white;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.step-description {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    margin-top: 52px;
    opacity: 0.5;
}

/* ===== Signup Section ===== */
.signup {
    padding: var(--spacing-4xl) var(--spacing-xl);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.signup-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.signup-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.signup-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    background: var(--color-bg);
    border-radius: var(--radius-full);
    padding: var(--spacing-xs);
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group:focus-within {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.1);
}

.form-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.form-button .arrow-icon {
    width: 18px;
    height: 18px;
}

.form-note {
    margin-top: var(--spacing-md);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ===== Signup Success ===== */
.signup-success {
    padding: var(--spacing-2xl);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-teal);
}

.signup-success[hidden] {
    display: none;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.success-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.signup-success h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.signup-success p {
    color: var(--color-text-secondary);
}

/* ===== Footer ===== */
.footer {
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.footer-logo-svg {
    height: 28px;
    width: auto;
    opacity: 0.8;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-xl);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(80px + var(--spacing-2xl));
        gap: var(--spacing-2xl);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .step-connector {
        display: none;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .logo-svg {
        height: 26px;
    }

    .nav-cta {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.8125rem;
    }

    .hero {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
        min-height: auto;
        padding-bottom: var(--spacing-2xl);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        border-radius: 32px;
        padding: 8px;
    }

    .phone-mockup::before {
        width: 60px;
        height: 18px;
        top: 14px;
    }

    .phone-screen {
        border-radius: 26px;
        padding: var(--spacing-md);
    }

    .consent-card {
        padding: var(--spacing-lg);
    }

    .consent-icon {
        width: 48px;
        height: 48px;
    }

    .consent-icon svg {
        width: 24px;
        height: 24px;
    }

    .features,
    .how-it-works,
    .signup {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .form-group {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: var(--spacing-sm);
    }

    .form-input {
        text-align: center;
        padding: var(--spacing-md);
    }

    .form-button {
        justify-content: center;
        border-radius: var(--radius-md);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

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

.hero-content,
.hero-visual {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    animation-delay: 0.2s;
}

.feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.step {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }
.step:nth-child(5) { animation-delay: 0.3s; }
