/* =====================================================
   MigraineX Landing Page - Premium Stylesheet
   Mobile-first, Light-themed Design System
   With modern animations and glassmorphism effects
   ===================================================== */

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

/* ----- Design System: CSS Custom Properties ----- */
:root {
    /* Colors */
    --bg-main: #FAFAF9;
    --bg-card: #FFFFFF;
    --bg-alt: #F3F4F6;
    --bg-dark: #0a0a0a;
    --bg-purple-tint: #F5F3FF;

    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-white: #ffffff;

    --accent-purple: #7c3aed;
    --accent-purple-hover: #6d28d9;
    --accent-purple-light: #a78bfa;
    --accent-purple-glow: rgba(124, 58, 237, 0.4);

    --border-color: #e5e7eb;

    /* Gradient colors */
    --gradient-start: #7c3aed;
    --gradient-end: #3b82f6;

    /* Typography - Now using Inter */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* Spacing - Increased for more breathing room */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --section-padding: 4rem;
    --section-padding-desktop: 6rem;

    /* Effects - Layered shadows for depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03),
                 0 1px 3px 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),
                 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08),
                 0 8px 10px -6px rgba(0, 0, 0, 0.04),
                 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.1),
                 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    --shadow-purple: 0 4px 14px 0 rgba(124, 58, 237, 0.25);
    --shadow-purple-lg: 0 8px 25px 0 rgba(124, 58, 237, 0.3);

    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Base Styles ----- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

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

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-purple-hover);
    text-decoration: underline;
}

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ----- Section Badges ----- */
.section-badge {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-purple);
    background-color: rgba(124, 58, 237, 0.1);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.section-badge-purple {
    color: #7c3aed;
    background-color: rgba(124, 58, 237, 0.15);
}

/* Center badges in sections */
.problem .section-badge,
.features .section-badge,
.lead-magnet .section-badge {
    display: block;
    width: fit-content;
    margin: 0 auto var(--spacing-md);
}

/* ----- Section Headlines ----- */
.section-headline {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.02em;
}

/* ----- Scroll Animations Base ----- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for cards */
.card:nth-child(1) { transition-delay: 0ms; }
.card:nth-child(2) { transition-delay: 100ms; }
.card:nth-child(3) { transition-delay: 200ms; }

.feature-block:nth-child(1) { transition-delay: 0ms; }
.feature-block:nth-child(2) { transition-delay: 100ms; }
.feature-block:nth-child(3) { transition-delay: 200ms; }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    background-color: var(--bg-main);
    padding: var(--spacing-xl) 0 var(--section-padding);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(124, 58, 237, 0.03) 0%,
        transparent 50%
    ),
    radial-gradient(
        ellipse at 70% 80%,
        rgba(59, 130, 246, 0.02) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 0;
}

/* Subtle grain texture overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-2xl);
}

.logo-icon {
    font-size: var(--font-size-2xl);
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

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

/* Headline with partial highlight */
.hero-headline {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* Gradient highlight for key phrase */
.hero-headline .highlight {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

/* =====================================================
   EMAIL FORM STYLES
   ===================================================== */
.email-form {
    margin-bottom: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Email Input with glow effect */
.email-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    outline: none;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-normal),
                transform var(--transition-fast);
}

.email-input::placeholder {
    color: var(--text-secondary);
}

/* Purple glow pulse on focus */
.email-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1),
                0 0 20px rgba(124, 58, 237, 0.15);
    transform: translateY(-1px);
}

/* =====================================================
   PRIMARY BUTTON - Pill shape with animated arrow
   ===================================================== */
.btn-primary {
    position: relative;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-white);
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-hover) 100%);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-purple);
    transition: transform var(--transition-fast),
                box-shadow var(--transition-normal);
    overflow: hidden;
    /* Ensure text stays above ::before overlay */
    isolation: isolate;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple-hover) 0%, #5b21b6 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-purple-lg);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary .btn-arrow {
    position: relative;
    z-index: 1;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner for button */
.btn-primary.loading {
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}

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

/* Form Message */
.form-message {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    text-align: center;
}

.form-message.success {
    color: #059669;
}

.form-message.error {
    color: #dc2626;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    display: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.success-message.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bonus Text */
.bonus-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.bonus-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-purple);
}

/* Consent Text */
.consent-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

.privacy-link {
    color: var(--accent-purple);
    text-decoration: underline;
}

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

/* Social Proof */
.social-proof {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* =====================================================
   PROBLEM SECTION
   ===================================================== */
.problem {
    background-color: var(--bg-alt);
    padding: var(--section-padding) 0;
    position: relative;
}

.problem-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Glassmorphism Card - Left aligned */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    text-align: left;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal),
                border-color var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(124, 58, 237, 0.15);
}

/* Icon wrapper with colored background */
.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.card-icon-wrapper .card-icon {
    width: 24px;
    height: 24px;
}

/* Icon color variants */
.card-icon-red {
    background-color: #fef2f2;
}
.card-icon-red .card-icon {
    color: #ef4444;
}

.card-icon-orange {
    background-color: #fff7ed;
}
.card-icon-orange .card-icon {
    color: #f97316;
}

.card-icon-blue {
    background-color: #eff6ff;
}
.card-icon-blue .card-icon {
    color: #3b82f6;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
}

.card-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

.problem-conclusion {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   APP PREVIEW SECTION (DARK) - With grid pattern
   ===================================================== */
.app-preview {
    background-color: var(--bg-dark);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.app-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Radial glow behind phone */
.app-preview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.app-preview .container {
    position: relative;
    z-index: 1;
}

.app-preview .section-headline {
    color: var(--text-white);
}

/* Phone Mockup with 3D tilt and float animation */
.phone-mockup {
    max-width: 280px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-md);
    background: linear-gradient(145deg, #1f1f1f, #0d0d0d);
    border-radius: 2.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
    animation: float 6s ease-in-out infinite;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px); }
}

.phone-screen {
    background-color: #111111;
    border-radius: 2rem;
    padding: var(--spacing-3xl) var(--spacing-xl);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Screen inner glow */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Rescue Mode text with glow */
.rescue-mode-text {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5),
                 0 0 40px rgba(124, 58, 237, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(124, 58, 237, 0.5), 0 0 40px rgba(124, 58, 237, 0.3); }
    50% { text-shadow: 0 0 30px rgba(124, 58, 237, 0.7), 0 0 60px rgba(124, 58, 237, 0.4); }
}

/* Preview Features */
.preview-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 400px;
    margin: 0 auto;
}

.preview-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.preview-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent-purple-light);
}

.preview-text {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features {
    background-color: var(--bg-main);
    padding: var(--section-padding) 0;
    position: relative;
}

/* Subtle gradient overlay */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(124, 58, 237, 0.02) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.features .container {
    position: relative;
    z-index: 1;
}

.feature-blocks {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    max-width: 600px;
    margin: 0 auto;
}

.feature-block {
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    transition: background-color var(--transition-normal);
}

.feature-block:hover {
    background-color: rgba(124, 58, 237, 0.03);
}

/* Feature icon wrapper with colored background */
.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.feature-icon-wrapper .feature-icon {
    width: 28px;
    height: 28px;
}

/* Feature icon color variants */
.feature-icon-purple {
    background-color: #f3e8ff;
}
.feature-icon-purple .feature-icon {
    color: #7c3aed;
}

.feature-icon-green {
    background-color: #dcfce7;
}
.feature-icon-green .feature-icon {
    color: #22c55e;
}

.feature-icon-blue {
    background-color: #dbeafe;
}
.feature-icon-blue .feature-icon {
    color: #3b82f6;
}

.feature-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.feature-description {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

/* =====================================================
   LEAD MAGNET SECTION
   ===================================================== */
.lead-magnet {
    background-color: var(--bg-purple-tint);
    padding: var(--section-padding) 0;
    position: relative;
}

/* Subtle pattern */
.lead-magnet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(124, 58, 237, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.lead-magnet .container {
    position: relative;
    z-index: 1;
}

.lead-magnet-subhead {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.checklist {
    list-style: none;
    max-width: 400px;
    margin: 0 auto var(--spacing-xl);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    transition: background-color var(--transition-fast);
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.checkmark {
    width: 20px;
    height: 20px;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.lead-magnet .email-form {
    max-width: 500px;
    margin: 0 auto var(--spacing-lg);
}

.lead-magnet .consent-text {
    text-align: center;
}

/* =====================================================
   FINAL CTA SECTION
   ===================================================== */
.final-cta {
    background-color: var(--bg-card);
    padding: var(--section-padding) 0;
}

.final-cta-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.lumen-image {
    width: 200px;
    height: auto;
    margin: 0 auto var(--spacing-xl);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-normal);
}

.lumen-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.final-cta-subhead {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background-color: var(--bg-alt);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.copyright {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

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

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

.footer-link:hover {
    color: var(--accent-purple);
    text-decoration: none;
}

.footer-divider {
    color: var(--text-secondary);
    opacity: 0.5;
}

.made-with-love {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* =====================================================
   STICKY MOBILE CTA
   ===================================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    display: none;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .form-group {
    flex-direction: row;
    gap: var(--spacing-sm);
}

.sticky-cta .email-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.sticky-cta .btn-primary {
    width: auto;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

/* =====================================================
   EXIT INTENT POPUP
   ===================================================== */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.exit-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.exit-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    max-width: 450px;
    width: 90%;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal),
                visibility var(--transition-normal),
                transform var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

.exit-popup-overlay.visible + .exit-popup,
.exit-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.exit-popup-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-alt);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.exit-popup-close:hover {
    background: var(--accent-purple);
    color: white;
}

.exit-popup-content {
    text-align: center;
}

.exit-popup-emoji {
    width: 64px;
    height: 64px;
    background-color: #fef3c7;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.exit-popup-emoji svg {
    width: 32px;
    height: 32px;
    color: #f59e0b;
}

.exit-popup-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.exit-popup-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.exit-popup .email-form {
    margin-bottom: var(--spacing-md);
}

/* Stack form elements vertically in popup for better UX */
.exit-popup .form-group {
    flex-direction: column;
}

.exit-popup .email-input {
    width: 100%;
}

.exit-popup .btn-primary {
    width: 100%;
}

.exit-popup .consent-text {
    font-size: var(--font-size-xs);
    margin-bottom: 0;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* =====================================================
   RESPONSIVE: Tablet (768px+)
   ===================================================== */
@media (min-width: 768px) {
    /* Section Headlines */
    .section-headline {
        font-size: var(--font-size-4xl);
    }

    /* Hero */
    .hero-headline {
        font-size: var(--font-size-5xl);
    }

    .hero-subheadline {
        font-size: var(--font-size-xl);
    }

    .form-group {
        flex-direction: row;
    }

    .email-input {
        flex: 1;
    }

    .btn-primary {
        width: auto;
        white-space: nowrap;
    }

    /* Problem Section */
    .problem-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }

    /* Preview Features - horizontal on desktop */
    .preview-features {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
        gap: var(--spacing-2xl);
    }

    .preview-feature {
        flex-direction: column;
        text-align: center;
    }

    /* Features Section */
    .feature-blocks {
        flex-direction: row;
        max-width: 100%;
        gap: var(--spacing-2xl);
    }

    .feature-block {
        flex: 1;
    }

    /* Lead Magnet */
    .lead-magnet .form-group {
        flex-direction: row;
    }

    /* Section Padding */
    .hero {
        padding: var(--section-padding-desktop) 0;
    }

    .problem,
    .app-preview,
    .features,
    .lead-magnet,
    .final-cta {
        padding: var(--section-padding-desktop) 0;
    }
}

/* =====================================================
   RESPONSIVE: Large Desktop (1024px+)
   ===================================================== */
@media (min-width: 1024px) {
    .hero-headline {
        font-size: 3.75rem;
    }

    .phone-mockup {
        max-width: 320px;
    }

    .lumen-image {
        width: 250px;
    }
}

/* =====================================================
   RESPONSIVE: Mobile sticky CTA visibility
   ===================================================== */
@media (max-width: 767px) {
    .sticky-cta {
        display: block;
    }

    /* Add padding to body when sticky CTA is visible to prevent footer overlap */
    body.sticky-cta-active {
        padding-bottom: 80px;
    }
}
