/* ============================================
   HistoryFlash Website - Ultra Modern Design
   Premium Agency-Level Landing Page
   Warm Amber/Brown/Gold Theme for History
   ============================================ */

/* ============================================
   CSS Variables & Theming
   ============================================ */
:root {
    /* Primary History Theme - Warm Amber/Brown/Gold */
    --primary: #D97706;
    --primary-dark: #92400E;
    --primary-light: #F59E0B;
    --primary-lighter: #FBBF24;
    --primary-glow: rgba(217, 119, 6, 0.5);
    --primary-glow-strong: rgba(217, 119, 6, 0.7);

    /* Secondary - Rich Brown */
    --secondary: #78350F;
    --secondary-dark: #451A03;
    --secondary-light: #A16207;

    /* Accent - Warm Gold */
    --accent: #EAB308;
    --accent-light: #FDE047;
    --accent-dark: #CA8A04;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Neutral Colors */
    --text: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #A8A29E;
    --text-light: #D6D3D1;

    /* Backgrounds */
    --bg: #FFFBF5;
    --bg-white: #ffffff;
    --bg-secondary: #FEF7ED;
    --bg-tertiary: #FEF3C7;
    --bg-dark: #1C1917;
    --bg-dark-secondary: #292524;
    --bg-dark-tertiary: #44403C;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-strong: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);

    /* Borders */
    --border: rgba(217, 119, 6, 0.15);
    --border-light: rgba(217, 119, 6, 0.08);
    --border-strong: rgba(217, 119, 6, 0.3);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-glow-lg: 0 0 80px var(--primary-glow);
    --shadow-glow-strong: 0 0 60px var(--primary-glow-strong);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FBBF24 0%, #F59E0B 25%, #D97706 50%, #B45309 75%, #92400E 100%);
    --gradient-primary-soft: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #FBBF24 100%);
    --gradient-hero: linear-gradient(135deg, #FEF7ED 0%, #FEF3C7 30%, #FBBF24 60%, #F59E0B 100%);
    --gradient-hero-radial: radial-gradient(ellipse at top right, rgba(251, 191, 36, 0.4) 0%, rgba(217, 119, 6, 0.2) 40%, transparent 70%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(254,247,237,0.8) 100%);
    --gradient-dark: linear-gradient(135deg, #1C1917 0%, #292524 50%, #44403C 100%);
    --gradient-dark-radial: radial-gradient(ellipse at bottom left, rgba(217, 119, 6, 0.15) 0%, transparent 60%);
    --gradient-text: linear-gradient(135deg, #FBBF24 0%, #D97706 50%, #92400E 100%);
    --gradient-shine: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);

    /* Spacing & Sizing */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 40px;
    --radius-full: 9999px;

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

    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* Dark Mode Ready */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1C1917;
        --bg-white: #292524;
        --bg-secondary: #292524;
        --bg-tertiary: #44403C;
        --text: #FAFAF9;
        --text-secondary: #D6D3D1;
        --text-muted: #A8A29E;
        --glass-bg: rgba(41, 37, 36, 0.8);
        --glass-bg-strong: rgba(41, 37, 36, 0.95);
        --border: rgba(217, 119, 6, 0.2);
        --border-light: rgba(217, 119, 6, 0.1);
    }
}

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

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

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

h1 {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Gradient Text with Animation */
.gradient-text {
    background: var(--gradient-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

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

/* ============================================
   Buttons - Premium Design
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Shine effect on hover */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: white;
    box-shadow: var(--shadow-md), 0 4px 24px var(--primary-glow);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
    background-position: 100% 0;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
}

/* Primary CTA Pulse Animation */
.btn-primary.btn-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-md), 0 4px 24px var(--primary-glow);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 8px 40px var(--primary-glow-strong);
    }
}

.btn-secondary {
    background: var(--glass-bg-strong);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
}

.btn svg {
    flex-shrink: 0;
}

/* ============================================
   Navigation - Glassmorphism
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass-bg-strong);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px var(--primary-glow));
    animation: floatIcon 3s ease-in-out infinite;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: var(--z-modal);
}

.mobile-menu-btn span {
    width: 28px;
    height: 2.5px;
    background: var(--text);
    border-radius: var(--radius-full);
    transition: var(--transition);
    transform-origin: center;
}

/* ============================================
   Hero Section - Stunning Design
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 120px;
    overflow: hidden;
    background: var(--bg);
}

/* Complex gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(251, 191, 36, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(217, 119, 6, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 60% 20%, rgba(146, 64, 14, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
    pointer-events: none;
}

/* Floating particles/shapes */
.hero::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: floatBg 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 32px 0 48px;
    max-width: 560px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-subtitle strong {
    color: var(--text);
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 64px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

/* Hero Stats with counters */
.hero-stats {
    display: flex;
    gap: 48px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--border-strong);
}

.stat:last-child::after {
    display: none;
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Hero Image / Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.phone-mockup {
    width: 340px;
    height: 700px;
    background: linear-gradient(165deg, #44403C 0%, #1C1917 50%, #292524 100%);
    border-radius: 55px;
    padding: 12px;
    box-shadow:
        var(--shadow-2xl),
        0 0 0 1px rgba(255,255,255,0.1) inset,
        0 0 80px var(--primary-glow);
    position: relative;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0) rotateY(-8deg) rotateX(4deg);
    }
    50% {
        transform: translateY(-20px) rotateY(-5deg) rotateX(2deg);
    }
}

.phone-mockup:hover {
    animation-play-state: paused;
}

/* Phone glow effect */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    right: -20%;
    bottom: -20%;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.4;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Notch */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 32px;
    background: #1C1917;
    border-radius: 20px;
    z-index: 10;
}

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

.app-preview {
    padding: 60px 24px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 1.1rem;
}

.preview-count {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.preview-card {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
    flex: 1;
}

.preview-question {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.preview-answer {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.6;
}

.preview-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.preview-btn {
    padding: 16px 8px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.preview-btn.again {
    background: linear-gradient(135deg, #F87171, #EF4444, #DC2626);
}
.preview-btn.hard {
    background: linear-gradient(135deg, #FBBF24, #F59E0B, #D97706);
}
.preview-btn.good {
    background: linear-gradient(135deg, #34D399, #10B981, #059669);
}
.preview-btn.easy {
    background: linear-gradient(135deg, #60A5FA, #3B82F6, #2563EB);
}

/* ============================================
   Fade In Animation
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ============================================
   Difficulty Levels Section
   ============================================ */
.difficulty-levels {
    padding: 140px 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.difficulty-levels::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.level-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

/* Top gradient bar */
.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height var(--transition);
}

.level-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
}

.level-card.beginner::before {
    background: linear-gradient(90deg, #22C55E, #10B981, #059669);
}

.level-card.intermediate::before {
    background: linear-gradient(90deg, #FBBF24, #F59E0B, #D97706);
}

.level-card.advanced::before {
    background: linear-gradient(90deg, #A78BFA, #8B5CF6, #7C3AED);
}

.level-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.level-card:hover::before {
    height: 6px;
}

.level-card.beginner:hover {
    border-color: #22C55E;
    box-shadow: var(--shadow-xl), 0 20px 60px rgba(34, 197, 94, 0.2);
}

.level-card.intermediate:hover {
    border-color: #F59E0B;
    box-shadow: var(--shadow-xl), 0 20px 60px rgba(245, 158, 11, 0.2);
}

.level-card.advanced:hover {
    border-color: #8B5CF6;
    box-shadow: var(--shadow-xl), 0 20px 60px rgba(139, 92, 246, 0.2);
}

.level-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.level-card.beginner .level-badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
    color: #059669;
}

.level-card.intermediate .level-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    color: #D97706;
}

.level-card.advanced .level-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.1));
    color: #7C3AED;
}

.level-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.level-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.level-card > p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.level-ideal {
    background: var(--bg-secondary);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.level-ideal strong {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 600;
}

.level-ideal span {
    color: var(--text-secondary);
}

/* ============================================
   Curriculum Coverage Section
   ============================================ */
.curriculum-coverage {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.curriculum-coverage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.curriculum-item {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 32px 20px;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.curriculum-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.curriculum-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.curriculum-item:hover::before {
    opacity: 0.03;
}

.curriculum-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
    position: relative;
    z-index: 1;
}

.curriculum-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.curriculum-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 140px 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Gradient accent line */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

/* Hover glow */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top center, rgba(217, 119, 6, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.feature-card h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ============================================
   Decks Section
   ============================================ */
.decks {
    padding: 140px 0;
    background: var(--bg-secondary);
    position: relative;
}

.decks-tier {
    margin-bottom: 72px;
}

.decks-tier:last-child {
    margin-bottom: 0;
}

.tier-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.5rem;
    margin-bottom: 36px;
}

.tier-badge {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.tier-badge.free {
    background: linear-gradient(135deg, #22C55E, #10B981);
    color: white;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.tier-badge.pro {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.decks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.deck-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Colored top bar */
.deck-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--deck-color);
}

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

.deck-card.premium {
    background: linear-gradient(145deg, rgba(254, 247, 237, 0.9), rgba(254, 243, 199, 0.8));
    border-color: rgba(217, 119, 6, 0.25);
}

.deck-card.premium::before {
    background: var(--gradient-primary);
}

.deck-card.premium:hover {
    box-shadow: var(--shadow-xl), 0 20px 50px rgba(217, 119, 6, 0.15);
}

.deck-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-sm);
}

.deck-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.deck-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.deck-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.deck-count {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   How It Works
   ============================================ */
.how-it-works {
    padding: 140px 0;
    background: var(--bg-white);
    position: relative;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    position: relative;
}

/* Connecting line */
.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.67% + 35px);
    right: calc(16.67% + 35px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 32px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
}

.step h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.step p {
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================
   Pricing Section - Premium Cards
   ============================================ */
.pricing {
    padding: 140px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Featured pricing card - Best Value */
.pricing-card.featured {
    background: var(--gradient-dark);
    border: 2px solid transparent;
    background-clip: padding-box;
    color: white;
    transform: scale(1.08);
    box-shadow:
        var(--shadow-2xl),
        0 0 0 2px var(--primary),
        var(--shadow-glow-lg);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow:
            var(--shadow-2xl),
            0 0 0 2px var(--primary),
            0 0 40px var(--primary-glow);
    }
    50% {
        box-shadow:
            var(--shadow-2xl),
            0 0 0 3px var(--primary-light),
            0 0 80px var(--primary-glow-strong);
    }
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.pricing-card.featured h3,
.pricing-card.featured .price {
    color: white;
}

.pricing-card.featured p {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-card.featured .pricing-features li {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-md), 0 4px 20px var(--primary-glow);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.pricing-card.featured .price {
    background: linear-gradient(135deg, #FDE68A, #FBBF24, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    -webkit-text-fill-color: var(--text-secondary);
}

.pricing-card.featured .price span {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.6);
}

.pricing-header p {
    margin-top: 12px;
    margin-bottom: 36px;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card.featured .btn-primary {
    background: white;
    color: var(--text);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured .btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-4px) scale(1.02);
}

/* ============================================
   Testimonials - Modern Cards
   ============================================ */
.testimonials {
    padding: 140px 0;
    background: var(--bg-white);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Quote decoration */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--border);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 1.4rem;
    margin-bottom: 24px;
    letter-spacing: 4px;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.testimonial-card > p {
    font-style: italic;
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author::before {
    content: '';
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
    padding: 100px 0;
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    text-align: center;
    position: relative;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.trust-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text);
}

.trust-content > p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.trust-badge {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.trust-badge:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Download Section
   ============================================ */
.download {
    padding: 160px 0;
    background: var(--gradient-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background decorations */
.download::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.2) 0%, transparent 50%);
    pointer-events: none;
    animation: floatBg 20s ease-in-out infinite;
}

.download::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.15) 0%, transparent 50%);
    pointer-events: none;
    animation: floatBg 25s ease-in-out infinite reverse;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    color: white;
    margin-bottom: 24px;
}

.download-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.35rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-store-badge {
    transition: var(--transition);
}

.app-store-badge img {
    height: 70px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
    transition: var(--transition);
}

.app-store-badge:hover {
    transform: translateY(-6px);
}

.app-store-badge:hover img {
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.download-note {
    margin-top: 36px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Footer - Modern Dark Design
   ============================================ */
.footer {
    padding: 120px 0 60px;
    background: var(--bg-dark);
    color: white;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.3), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
}

.footer-links h4 {
    margin-bottom: 28px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 12px 0;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 0;
    height: 1px;
    background: var(--primary-light);
    transition: width var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links a:hover::before {
    width: 100%;
}

/* Social links */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 48px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

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

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 300px;
        height: 620px;
        animation: phoneFloatSimple 5s ease-in-out infinite;
    }

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

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

    .curriculum-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .steps::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--glass-bg-strong);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: var(--z-modal);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .nav-links .btn {
        margin-top: 24px;
        padding: 18px 48px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 140px 0 100px;
        min-height: auto;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat::after {
        display: none;
    }

    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .decks-grid {
        grid-template-columns: 1fr;
    }

    .tier-title {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .footer-brand {
        order: -1;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 10px 18px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        padding: 18px 32px;
        font-size: 1rem;
    }

    .phone-mockup {
        width: 260px;
        height: 540px;
    }

    .curriculum-grid {
        grid-template-columns: 1fr;
    }

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

    .trust-badge {
        width: 100%;
        max-width: 220px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .hero-image,
    .download,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }
}
