/* ============================================
   KidsFM Landing Page - Styles
   A playful yet sophisticated design
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    /* Primary Palette - from the app */
    --color-primary: #6BC4E8;        /* Soft sky blue */
    --color-secondary: #f9f0cd;       /* Warm yellow */
    --color-accent: #FFA07A;          /* Soft coral */
    --color-success: #6BCB77;         /* Soft green */
    --color-mint: #A8E6CF;            /* Mint */
    
    /* Backgrounds */
    --color-bg: #FFFBF5;              /* Warm cream */
    --color-bg-alt: #FFF8F0;          /* Slightly warmer */
    --color-card: #FFFFFF;
    
    /* Text */
    --color-text: #2D3436;            /* Warm dark gray */
    --color-text-muted: #636E72;      /* Medium gray */
    --color-text-light: #95A5A6;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #6BC4E8 0%, #A8E6CF 50%, #FFD93D 100%);
    --gradient-cta: linear-gradient(135deg, #6BC4E8 0%, #6BCB77 100%);
    --gradient-warm: linear-gradient(135deg, #FFD93D 0%, #FFA07A 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 52, 54, 0.1);
    --shadow-lg: 0 8px 40px rgba(45, 52, 54, 0.12);
    --shadow-glow: 0 0 40px rgba(107, 196, 232, 0.3);
    
    /* Typography */
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

/* Floating Background Elements */
.floating-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.float-1 { top: 10%; left: 5%; animation-delay: 0s; }
.float-2 { top: 20%; right: 10%; animation-delay: -3s; }
.float-3 { top: 50%; left: 8%; animation-delay: -6s; }
.float-4 { top: 60%; right: 5%; animation-delay: -9s; }
.float-5 { top: 80%; left: 15%; animation-delay: -12s; }
.float-6 { top: 40%; right: 15%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(20px) rotate(-5deg); }
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
    background: rgba(255, 251, 245, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 52, 54, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--color-text);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-icon-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: #1a3553;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-btn {
    padding: 0.625rem 1.25rem;
    background: var(--gradient-cta);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    border: 1px solid rgba(45, 52, 54, 0.1);
}

.lang-switch:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

/* Mobile Nav Toggle */
@media (max-width: 768px) {
    .nav-link {
        display: none;
    }
    
    .nav {
        gap: var(--space-xs);
    }
    
    .nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .lang-switch {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .logo-icon-img {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    background: #fac342;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    min-height: calc(100vh - 120px);
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: var(--space-xl) 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a3553;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    animation: slideUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #1a3553;
    margin-bottom: var(--space-md);
    animation: slideUp 0.6s ease-out 0.1s backwards;
}

.hero-title .no-break {
    white-space: nowrap;
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 0.1em;
    height: 0.35em;
    background: var(--color-secondary);
    opacity: 0.5;
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-1deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #1a3553;
    max-width: 500px;
    margin-bottom: var(--space-lg);
    animation: slideUp 0.6s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: slideUp 0.6s ease-out 0.3s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--color-text);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: #1a3553;
}

.checkmark {
    color: var(--color-success);
    font-weight: 700;
}

/* Hero Visual - Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 
        var(--shadow-lg),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    border-radius: 34px;
    overflow: hidden;
    position: relative;
}

/* App Steps Animation */
.app-step {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    gap: var(--space-sm);
    opacity: 0;
    pointer-events: none;
}

/* First step visible by default */
.app-step-1 {
    opacity: 1;
    animation: stepCycle1 15s infinite;
}

/* Animation timing: 15s total cycle, 3s per step */
.app-step-2 { animation: stepCycle 15s infinite; animation-delay: 3s; }
.app-step-3 { animation: stepCycle 15s infinite; animation-delay: 6s; }
.app-step-4 { animation: stepCycle 15s infinite; animation-delay: 9s; }
.app-step-5 { animation: stepCycle 15s infinite; animation-delay: 12s; }

/* First step animation - starts visible */
@keyframes stepCycle1 {
    0%, 18% { opacity: 1; transform: translateX(0); }
    20%, 100% { opacity: 0; transform: translateX(-20px); }
}

@keyframes stepCycle {
    0%, 100% { opacity: 0; transform: translateX(20px); }
    2%, 18% { opacity: 1; transform: translateX(0); }
    20% { opacity: 0; transform: translateX(-20px); }
}

.app-header-preview {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    width: 100%;
    justify-content: center;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.app-logo-mini {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

/* Step Indicator Dots */
.step-indicator {
    display: flex;
    gap: 8px;
    margin: var(--space-xs) 0;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.step-dot.done {
    background: var(--color-success);
}

.waveform-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 70px;
    margin: var(--space-sm) 0;
}

.wave-bar {
    width: 5px;
    background: var(--gradient-cta);
    border-radius: var(--radius-full);
    animation: waveform 1.2s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.1s);
}

@keyframes waveform {
    0%, 100% { height: 15px; }
    50% { height: 50px; }
}

.question-preview {
    background: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    width: 100%;
}

.question-preview p {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.4;
}

.record-btn-preview {
    position: relative;
    width: 70px;
    height: 70px;
    background: var(--gradient-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-top: auto;
    box-shadow: var(--shadow-md);
}

.record-btn-preview.recording {
    background: #ff6b6b;
}

.record-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* Step 4: Processing Visual */
.processing-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.processing-icon {
    font-size: 3rem;
    animation: processingBounce 1s ease-in-out infinite;
}

@keyframes processingBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.processing-waves {
    display: flex;
    gap: 6px;
}

.processing-wave {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: processingWave 1.4s ease-in-out infinite;
}

.processing-wave:nth-child(2) { animation-delay: 0.2s; }
.processing-wave:nth-child(3) { animation-delay: 0.4s; }

@keyframes processingWave {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-10px); opacity: 1; }
}

.processing-steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    padding: 6px 10px;
    background: white;
    border-radius: var(--radius-sm);
}

.processing-step.done {
    color: var(--color-success);
}

.processing-step.active {
    color: var(--color-primary);
    font-weight: 600;
}

.processing-step .check {
    color: var(--color-success);
    font-weight: bold;
}

.processing-step .pending {
    opacity: 0.4;
}

.spinner-mini {
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: auto;
}

.progress-bar-fill {
    height: 100%;
    width: 75%;
    background: var(--gradient-cta);
    border-radius: var(--radius-full);
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { width: 65%; }
    50% { width: 85%; }
}

/* Step 5: Share Visual */
.share-visual {
    width: 100%;
    margin: var(--space-sm) 0;
}

.episode-card-mini {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.episode-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--gradient-cta);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.episode-info strong {
    font-size: 0.85rem;
    color: var(--color-text);
}

.episode-info span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.share-targets {
    width: 100%;
}

.share-title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
    text-align: center;
}

.share-circles {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.share-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 1.5rem;
    animation: sharePopIn 0.4s ease-out backwards;
    animation-delay: calc(var(--delay) * 0.15s);
}

.share-circle span {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

@keyframes sharePopIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.share-btn-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-cta);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    box-shadow: var(--shadow-md);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 120px;
}

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

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--space-2xl) 0;
    background: white;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-muted);
}

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

.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.step:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.step:hover .step-mascot {
    transform: scale(1.1);
}

.step-mascot {
    width: 80px;
    height: auto;
    transition: transform var(--transition-base);
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.step-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-mint));
    border-radius: var(--radius-full);
}

/* ============================================
   Themes Preview
   ============================================ */
.themes-preview {
    padding: var(--space-2xl) 0;
    background: white;
}

.themes-carousel {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding: var(--space-sm) 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.themes-carousel::-webkit-scrollbar {
    display: none;
}

.theme-card {
    flex: 0 0 160px;
    padding: var(--space-lg);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.theme-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.theme-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.theme-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.theme-card.coming-soon {
    border: 2px dashed var(--color-primary);
    background: transparent;
}

/* ============================================
   Vision Section
   ============================================ */
.vision {
    padding: var(--space-2xl) 0;
    background: var(--gradient-hero);
    position: relative;
}

.vision::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.vision-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 1;
    color: white;
    opacity: 0.5;
    margin-bottom: -2rem;
}

blockquote {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.vision-note {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* ============================================
   Signup Section
   ============================================ */
.signup {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
}

.signup-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-2xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.signup-content h2 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.signup-content > p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.signup-form {
    margin-bottom: var(--space-md);
}

.form-group {
    display: flex;
    gap: var(--space-sm);
}

.form-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #eee;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(107, 196, 232, 0.2);
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--gradient-cta);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    min-width: 130px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:disabled {
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loading {
    display: block;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

.form-note {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: var(--space-sm);
}

.success-message {
    text-align: center;
    padding: var(--space-lg);
}

.success-message.hidden {
    display: none;
}

.success-mascot {
    width: 150px;
    height: auto;
    margin-bottom: var(--space-sm);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: var(--color-success);
}

.signup-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-mascot {
    width: 200px;
    height: auto;
    animation: mascotWiggle 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@keyframes mascotWiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-xl) 0;
    background: var(--color-text);
    color: white;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.footer .logo-text {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-md);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-links .divider {
    color: rgba(255, 255, 255, 0.3);
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .app-step {
        padding: var(--space-sm);
    }
    
    .waveform-preview {
        height: 60px;
    }
    
    .record-btn-preview {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .signup-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .signup-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-bottom: var(--space-2xl);
    }
    
    .hero-container {
        min-height: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step-mascot {
        width: 60px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --space-2xl: 3rem;
    }
    
    /* Header compact on small screens */
    .header {
        padding: var(--space-xs) 0;
    }
    
    .header .container {
        padding: 0 var(--space-sm);
    }
    
    .nav {
        gap: 6px;
    }
    
    .nav-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .lang-switch {
        padding: 0.35rem 0.4rem;
        font-size: 0.7rem;
        gap: 2px;
    }
    
    .logo-icon-img {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 420px;
        border-radius: 32px;
        padding: 8px;
    }
    
    .phone-screen {
        border-radius: 26px;
    }
    
    .app-step {
        padding: var(--space-sm);
        gap: var(--space-xs);
    }
    
    .app-header-preview {
        font-size: 0.75rem;
    }
    
    .app-logo-mini {
        width: 20px;
        height: 20px;
    }
    
    .waveform-preview {
        height: 50px;
    }
    
    .wave-bar {
        width: 4px;
    }
    
    .question-preview {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .question-preview p {
        font-size: 0.7rem;
    }
    
    .record-btn-preview {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .processing-icon {
        font-size: 2rem;
    }
    
    .processing-steps {
        font-size: 0.65rem;
    }
    
    .share-circle {
        font-size: 1.2rem;
    }
    
    .share-circle span {
        font-size: 0.55rem;
    }
    
    .share-btn-preview {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .step-mascot {
        width: 50px;
    }
    
    .signup-card {
        padding: var(--space-lg);
    }
    
    .success-mascot {
        width: 120px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .lang-switch {
        padding: 0.3rem 0.35rem;
        font-size: 0.65rem;
    }
    
    .phone-mockup {
        width: 180px;
        height: 380px;
    }
    
    .app-step {
        padding: var(--space-xs);
    }
    
    .app-header-preview {
        font-size: 0.65rem;
    }
    
    .question-preview p {
        font-size: 0.65rem;
    }
    
    .record-btn-preview {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .share-circles {
        gap: var(--space-xs);
    }
    
    .share-circle {
        font-size: 1rem;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

