/* ================================
   CSS Variables & Reset
================================ */
:root {
    --primary: #F5B800;       /* Adjusted Gold/Yellow */
    --primary-hover: #D4A000;
    --primary-glow: rgba(245, 184, 0, 0.5);
    
    --bg: #030712;            /* Very Deep Dark Blue/Black */
    --bg-card: #111827;
    --bg-elevated: rgba(17, 24, 39, 0.78);
    
    --text: #FFFFFF;
    --text-secondary: #9CA3AF;
    
    --border: #1F2937;
    --border-strong: rgba(255, 255, 255, 0.12);
    
    --success: #10b981;
    --error: #ef4444;
    
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   Light Theme
================================ */
[data-theme="light"] {
    --primary: #F5B800;
    --primary-hover: #D4A000;
    --primary-glow: rgba(245, 184, 0, 0.4);
    
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-elevated: rgba(255, 255, 255, 0.82);
    
    --text: #0f172a;
    --text-secondary: #475569;
    
    --border: #e2e8f0;
    --border-strong: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .stars,
[data-theme="light"] .stars2 {
    opacity: 0;
}

[data-theme="light"] .nav.scrolled {
    background: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .footer {
    background: #f1f5f9;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top center, rgba(245, 184, 0, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 35%);
    z-index: -2;
}

/* ================================
   Starfield Background
================================ */
.stars, .stars2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.stars {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 160px, #fff, transparent),
        radial-gradient(1px 1px at 80px 120px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 100px 50px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 150px 180px, #fff, transparent),
        radial-gradient(2px 2px at 200px 100px, rgba(255,255,255,0.7), transparent);
    background-size: 350px 350px;
    opacity: 0.5;
}

.stars2 {
    background-image: 
        radial-gradient(1px 1px at 100px 100px, #fff, transparent),
        radial-gradient(1px 1px at 200px 200px, #fff, transparent);
    background-size: 200px 200px;
    opacity: 0.3;
}

/* ================================
   Typography & Layout
================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.03em; }
h3 { font-size: 1.5rem; }
p { color: var(--text-secondary); font-size: 1.1rem; }

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ================================
   Buttons
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 184, 0, 0.28);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .btn-secondary:hover {
    background: #ffffff;
}

a:focus-visible,
button:focus-visible,
.theme-toggle:focus-visible,
.lang-toggle:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ================================
   Navigation
================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    background: transparent;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(16px);
    padding: 16px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo span { color: var(--text); } /* Fallback if needed */

.nav-links {
    display: flex;
    gap: 32px;
    margin-right: auto;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-cta-register {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.nav-cta-register:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 184, 0, 0.5);
    color: var(--text);
    transform: none;
    box-shadow: none;
}

[data-theme="light"] .nav-cta-register {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

[data-theme="light"] .nav-cta-register:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
}

.nav-cta {
    background: #FFFFFF;
    color: #000;
    font-weight: 700;
    padding: 10px 24px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #eee;
    transform: none;
    box-shadow: none;
}

[data-theme="light"] .nav-cta {
    background: var(--primary);
    color: #000;
}

[data-theme="light"] .nav-cta:hover {
    background: var(--primary-hover);
}

/* ================================
   Theme Toggle Button
================================ */
.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-right: 12px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

/* Dark theme (default) - show sun icon to switch to light */
.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

/* Light theme - show moon icon to switch to dark */
[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: block;
}

/* ================================
   Language Toggle Button
================================ */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    flex-shrink: 0;
    margin-right: 12px;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .lang-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lang-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

.lang-option {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.lang-option.active {
    color: var(--primary);
    font-weight: 700;
}

.lang-divider {
    color: var(--text-secondary);
    opacity: 0.4;
    font-weight: 400;
    pointer-events: none;
}

/* ================================
   Hero Section
================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

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

.hero-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        var(--bg-elevated);
    backdrop-filter: blur(18px);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 56px 56px;
}

[data-theme="light"] .hero-shell {
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(24px);
    opacity: 0.35;
}

.hero-glow-left {
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(245, 184, 0, 0.18), transparent 70%);
}

.hero-glow-right {
    right: -120px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.12), transparent 72%);
}

.hero-text-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(245, 184, 0, 0.18);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .hero-badge {
    background: rgba(245, 184, 0, 0.12);
    border-color: rgba(245, 184, 0, 0.28);
}

.icon-climb { font-family: monospace; }

.hero-text-center h1 {
    max-width: 12ch;
    margin-bottom: 20px;
}

.hero-text-center h1 span:last-child {
    color: var(--primary);
}

.hero-text-center p {
    margin-bottom: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 36px;
}

.hero-secondary-cta {
    min-height: 56px;
    padding: 16px 26px;
    font-weight: 600;
}

.hero-proof-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.hero-proof-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-trust-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin-top: 32px;
}

.hero-trust-grid::before {
    content: "";
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    margin-bottom: 6px;
}

.trust-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 22px 18px;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trust-card strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 10px;
}

.trust-card span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-large {
    background: var(--primary);
    color: #000;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-large:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ================================
   Hero Visual (Beam/Mountain)
================================ */
section { padding: 92px 0; }

.section-layered {
    position: relative;
    z-index: 10;
}

.section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-intro-wide {
    max-width: 700px;
    margin-bottom: 50px;
}

.section-intro h2 {
    margin-bottom: 14px;
}

.section-intro p {
    font-size: 1.05rem;
}

/* ================================
   Subjects Showcase (Carousel)
================================ */
.subjects-carousel {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px 0;
    margin: -28px 0;
}

.subjects-row {
    overflow: hidden;
    width: 100%;
    padding: 28px 0;
    margin: -28px 0;
}

.subjects-track {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
}

/* Row motion is controlled in static/js/landing-subjects-carousel.js. */

.subjects-row[data-motion="static"] .subjects-track {
    will-change: auto;
}

.subject-card {
    --accent: #60a5fa;
    min-height: 92px;
    background: linear-gradient(165deg, color-mix(in srgb, var(--bg-card) 92%, #ffffff 8%), var(--bg-card));
    border-radius: 16px;
    padding: 28px 42px;
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .subject-card {
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24),
                0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent),
                0 0 24px color-mix(in srgb, var(--accent) 16%, transparent);
    border-color: color-mix(in srgb, var(--accent) 22%, transparent);
    z-index: 2;
}

html[data-theme="light"] .subject-card:hover {
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14),
                0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent),
                0 0 20px color-mix(in srgb, var(--accent) 14%, transparent);
}

.subject-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    color: var(--accent);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.subject-card:hover .subject-icon {
    background: color-mix(in srgb, var(--accent) 32%, transparent);
}

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

@media (prefers-reduced-motion: reduce) {
    .subject-card {
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .subject-card:hover {
        transform: translateY(-2px);
    }

    .subject-icon {
        transition: background 0.25s ease;
    }
}

.subject-card span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.subject-math        { --accent: #6CB4FF; }
.subject-physics     { --accent: #FF8C42; }
.subject-english     { --accent: #B89AFF; }
.subject-chemistry   { --accent: #FF5A5A; }
.subject-german      { --accent: #FFD84D; }
.subject-biology     { --accent: #4AE8A0; }
.subject-geography   { --accent: #3DE8D4; }
.subject-history     { --accent: #FFB340; }
.subject-economics   { --accent: #2EE89B; }
.subject-it          { --accent: #9BA2FF; }
.subject-philosophy  { --accent: #F084FF; }
.subject-psychology  { --accent: #FF7E96; }
.subject-spanish     { --accent: #FFA254; }
.subject-french      { --accent: #4DC8FF; }

.feature-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--bg-card);
    padding: 34px 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
    border-color: rgba(245, 184, 0, 0.16);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(245, 184, 0, 0.12);
    border: 1px solid rgba(245, 184, 0, 0.14);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
}

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

.comparison-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.comparison-summary-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 24px 24px 22px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.comparison-summary-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.comparison-summary-value {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.comparison-summary-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.comparison-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    position: relative;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.22);
    margin-top: 40px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(245, 184, 0, 0.14);
}

/* AI Column highlight background */
.comparison-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 33.333%;
    background: linear-gradient(180deg, rgba(245, 184, 0, 0.05) 0%, rgba(245, 184, 0, 0.01) 100%);
    border-left: 1px solid rgba(245, 184, 0, 0.1);
    z-index: 1;
    pointer-events: none;
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    align-items: center;
    position: relative;
    z-index: 2;
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row:hover {
    background: rgba(255, 255, 255, 0.025);
}

.compare-row.header { 
    font-weight: 700; 
    padding: 22px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.98rem;
    background: rgba(255, 255, 255, 0.015);
}

.compare-col { 
    text-align: center; 
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.compare-col:first-child { 
    text-align: left; 
    color: var(--text);
    font-weight: 600;
    font-size: 1.02rem;
}

.compare-row.header .compare-col:first-child {
    color: var(--text-secondary);
    font-weight: 600;
}

.compare-row.header .compare-col:nth-child(2) {
    color: var(--text);
    font-weight: 700;
}

.compare-row.header .compare-col:nth-child(3) {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    font-weight: 800;
}

.highlight { 
    color: var(--primary); 
    font-weight: 700; 
}

.check { 
    color: var(--primary); 
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary-glow);
}

.cross { 
    color: var(--error); 
    opacity: 0.7; 
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .comparison-summary-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .compare-row, .compare-row.header {
        padding: 16px;
    }
    .compare-col {
        font-size: 0.85rem;
    }
}

[data-theme="light"] .comparison-container::before {
    background: linear-gradient(180deg, rgba(245, 184, 0, 0.1) 0%, rgba(245, 184, 0, 0.02) 100%);
    border-left: 1px solid rgba(245, 184, 0, 0.2);
}

[data-theme="light"] .comparison-summary-card {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .compare-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)), var(--bg-card);
    padding: 28px 32px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.faq-item h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.6;
}

.faq-cta {
    max-width: 800px;
    margin: 36px auto 0;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(245, 184, 0, 0.08), rgba(245, 184, 0, 0.03)), var(--bg-card);
    border: 1px solid rgba(245, 184, 0, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    text-align: center;
}

.faq-cta h3 {
    color: var(--text);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin-bottom: 20px;
}

.faq-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

[data-theme="light"] .faq-cta {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)), var(--bg-card);
    padding: 28px 28px 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
    border-color: rgba(245, 184, 0, 0.12);
}

.review-stars {
    color: var(--primary);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    flex: 1;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}

.review-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.review-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.footer-auth-buttons {
    display: none;
}

.footer {
    padding: 48px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.85) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* ================================
   Legal Pages
================================ */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.legal-page .legal-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 48px;
}

.legal-page h2 {
    font-size: 1.35rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text);
}

.legal-page p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-page ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.legal-page ul li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.legal-page ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.legal-page a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.legal-page a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.legal-page .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 24px 0 40px;
}

.legal-page .contact-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.legal-page .contact-card h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.legal-page .contact-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.legal-page h3 {
    font-size: 1.1rem;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.legal-table th {
    background: var(--bg-card);
    color: var(--primary);
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.legal-table td {
    padding: 11px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:hover td {
    background: var(--bg-card);
}

/* ================================
   Pricing Section
================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.pricing-card.pricing-popular {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(245, 184, 0, 0.16);
    z-index: 2;
}

.pricing-card.pricing-popular:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 60px rgba(245, 184, 0, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 20px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.pricing-save-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 20px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    margin-top: 8px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 30px;
}

.pricing-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.pricing-interval {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

.pricing-btn {
    width: 100%;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.pricing-btn:hover {
    border-color: var(--primary);
    background: rgba(245, 184, 0, 0.08);
    color: var(--text);
    transform: translateY(-2px);
}

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

a.pricing-btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

.pricing-popular .pricing-btn {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.pricing-popular .pricing-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #000;
}

.pricing-note {
    max-width: 760px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 0.98rem;
}

/* ================================
   Responsive
================================ */
@media (max-width: 1024px) {
    .hero-shell {
        padding: 60px 36px 44px;
    }
    .features-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .pricing-card.pricing-popular { transform: none; }
    .pricing-card.pricing-popular:hover { transform: translateY(-6px); }
}

@media (max-width: 640px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }

    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }

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

    .nav-cta-group {
        display: flex;
        gap: 6px;
    }

    .nav-cta-group .nav-cta {
        padding: 6px 12px;
        font-size: 0.78rem;
        border-radius: 8px;
        min-height: unset;
        white-space: nowrap;
    }

    .nav-links.active ~ .theme-toggle,
    .nav-links.active ~ .lang-toggle {
        visibility: hidden;
        pointer-events: none;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-links .nav-link-signup,
    .nav-links .nav-link-signin {
        padding: 12px 32px;
        border-radius: 10px;
        font-size: 1.1rem;
        justify-content: center;
        min-width: 180px;
    }

    .nav-links .nav-link-signup {
        border: 1px solid var(--border-strong);
        color: var(--text);
    }

    .nav-links .nav-link-signin {
        background: #FFFFFF;
        color: #000;
        font-weight: 700;
    }

    [data-theme="light"] .nav-links .nav-link-signin {
        background: var(--primary);
        color: #000;
    }

    .hero { padding-top: 100px; }
    .hero-shell {
        padding: 40px 22px 28px;
        border-radius: 26px;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-secondary-cta {
        width: 100%;
    }

    .hero-proof-row {
        gap: 8px;
    }

    .hero-proof-pill {
        width: 100%;
    }

    .trust-card {
        text-align: center;
    }

    .compare-row { font-size: 0.8rem; padding: 14px 10px; }
    .compare-row.header { padding: 20px 10px; font-size: 0.85rem; }

    .subject-card { min-height: 72px; padding: 16px 20px; gap: 12px; }
    .subject-icon { width: 40px; height: 40px; }
    .subject-icon svg { width: 19px; height: 19px; }
    .subject-card span { font-size: 0.88rem; }
    .subjects-carousel { gap: 12px; }
    .subjects-track { gap: 12px; }

    .theme-toggle {
        width: 44px;
        height: 44px;
        margin-right: 8px;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }

    .lang-toggle {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-right: 8px;
        min-height: 40px;
    }

    section { padding: 68px 0; }

    .section-intro {
        margin-bottom: 44px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .faq-item {
        padding: 20px 24px;
    }

    .faq-item h3 {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .footer {
        padding: 40px 0;
    }

    .footer-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        width: 100%;
    }

    .footer-auth-btn {
        width: 100%;
        text-align: center;
        min-height: 48px;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 100px;
        padding: 14px 24px;
        text-decoration: none;
    }

    .footer-auth-btn-secondary {
        background: transparent;
        color: var(--text);
        border: 1px solid var(--border-strong);
    }

    .footer-auth-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(245, 184, 0, 0.5);
    }

    [data-theme="light"] .footer-auth-btn-secondary {
        color: var(--text);
        border-color: var(--border-strong);
    }

    [data-theme="light"] .footer-auth-btn-secondary:hover {
        background: rgba(0, 0, 0, 0.04);
        border-color: var(--primary);
    }

    .legal-page {
        padding: 100px 20px 60px;
    }

    .nav-cta {
        min-height: 44px;
        padding: 12px 24px;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
        min-height: 52px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
        margin-bottom: 24px;
    }

    .hero-text-center p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    p { font-size: 1rem; }

    .container { padding: 0 16px; }

    .hero { padding-top: 88px; min-height: auto; }

    .hero-text-center h1 { margin-bottom: 16px; }
    .hero-text-center p { font-size: 0.95rem; }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .compare-row {
        grid-template-columns: 1.2fr 0.9fr 0.9fr;
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .compare-row.header {
        padding: 16px 8px;
        font-size: 0.8rem;
    }

    .pricing-card {
        padding: 32px 24px 28px;
    }

    .pricing-amount {
        font-size: 2.25rem;
    }

    .pricing-btn {
        min-height: 48px;
    }

    .review-card {
        padding: 22px 20px 20px;
    }

    .faq-item {
        padding: 18px 20px;
    }

    section { padding: 56px 0; }

    .subject-card { min-height: 64px; padding: 13px 16px; gap: 9px; }
    .subject-icon { width: 34px; height: 34px; }
    .subject-icon svg { width: 17px; height: 17px; }
    .subject-card span { font-size: 0.82rem; }

    .nav.scrolled { padding: 12px 0; }

    .footer-links h4 { font-size: 0.9rem; }
    .footer-links a { font-size: 0.85rem; }

    .trust-card strong {
        font-size: 1.5rem;
    }
}
