/* ═══════════════════════════════════════════════════════════
   NOUNLY LANDING PAGE — Neumorphic Design System v2
   Rich, complex, strictly sky-blue (#0ea5e9) accent
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --bg-light: #f0f2f5;
    --bg-dark: #101922;
    --text-light: #334155;
    --text-dark: #f1f5f9;

    --accent: #0ea5e9;
    --accent-hover: #38bdf8;
    --accent-deep: #0284c7;
    --accent-glow: rgba(14, 165, 233, 0.25);
    --accent-subtle: rgba(14, 165, 233, 0.08);
    --success: #10b981;
    --danger: #ef4444;

    /* Neumorphic Light */
    --neu-shadow-light: -15px -15px 35px -5px #ffffff, 12px 12px 30px -5px rgba(170,185,200,0.5), inset 0.5px 0.5px 0px #f3f5f8, inset -0.5px -0.5px 0px #e1e6ee;
    --neu-shadow-light-hover: -18px -18px 45px -5px #ffffff, 14px 14px 35px -5px rgba(170,185,200,0.55);
    --neu-pressed-light: inset 6px 6px 12px rgba(170,185,200,0.45), inset -6px -6px 12px rgba(255,255,255,1);
    --neu-button-light: -6px -6px 14px -5px #ffffff, 8px 8px 16px -5px rgba(170,185,200,0.45);

    /* Neumorphic Dark */
    --neu-shadow-dark: -15px -15px 35px -5px rgba(255,255,255,0.02), 12px 12px 30px -5px rgba(0,0,0,0.5), inset 0.5px 0.5px 0px rgba(255,255,255,0.04), inset -0.5px -0.5px 0px rgba(0,0,0,0.5);
    --neu-shadow-dark-hover: -18px -18px 45px -5px rgba(255,255,255,0.03), 14px 14px 35px -5px rgba(0,0,0,0.6);
    --neu-pressed-dark: inset 6px 6px 12px rgba(0,0,0,0.7), inset -6px -6px 12px rgba(255,255,255,0.02);
    --neu-button-dark: -6px -6px 14px -5px rgba(255,255,255,0.02), 8px 8px 16px -5px rgba(0,0,0,0.5);

    --bg: var(--bg-dark);
    --text: var(--text-dark);
    --text-muted: rgba(241,245,249,0.5);
    --text-faint: rgba(241,245,249,0.25);
    --neu-shadow: var(--neu-shadow-dark);
    --neu-shadow-hover: var(--neu-shadow-dark-hover);
    --neu-pressed: var(--neu-pressed-dark);
    --neu-button: var(--neu-button-dark);
    --card-border: rgba(255,255,255,0.04);
    --section-alt-bg: rgba(14,165,233,0.02);
}

[data-theme="light"] {
    --bg: var(--bg-light);
    --text: var(--text-light);
    --text-muted: rgba(51,65,85,0.6);
    --text-faint: rgba(51,65,85,0.45);
    --neu-shadow: var(--neu-shadow-light);
    --neu-shadow-hover: var(--neu-shadow-light-hover);
    --neu-pressed: var(--neu-pressed-light);
    --neu-button: var(--neu-button-light);
    --card-border: rgba(255,255,255,0.7);
    --section-alt-bg: rgba(14,165,233,0.03);
}

html { scroll-behavior: smooth; scrollbar-width: none; overflow-x: hidden; }
html::-webkit-scrollbar { display: none; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.4s, color 0.4s;
    overflow-x: hidden;
    position: relative;
}

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

/* ─── Animated Background Canvas ─── */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

[data-theme="light"] #bg-canvas { opacity: 0.15; }

/* ─── Utility Classes ─── */
.neu-card-el {
    background: var(--bg);
    box-shadow: var(--neu-shadow);
    border: 1px solid var(--card-border);
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.neu-card-el:hover {
    box-shadow: var(--neu-shadow-hover);
    transform: translateY(-3px);
}

.neu-flat { background: var(--bg); box-shadow: var(--neu-shadow); border: 1px solid var(--card-border); }
.neu-flat-el { background: var(--bg); box-shadow: var(--neu-shadow); border: 1px solid var(--card-border); }
.neu-pressed-el { background: var(--bg); box-shadow: var(--neu-pressed); border: none; }

.accent-text { color: var(--accent); }

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 16px 24px;
    transition: padding 0.3s;
}
.navbar.scrolled { padding: 10px 24px; }

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; border-radius: 20px;
    background: var(--bg); box-shadow: var(--neu-shadow);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }

.logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px;
    box-shadow: 0 4px 16px rgba(14,165,233,0.3);
}

.logo-text { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }

.nav-logo-img { height: 28px; width: auto; display: block; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
    padding: 8px 16px; border-radius: 12px;
    font-weight: 600; font-size: 14px;
    color: var(--text-muted); transition: all 0.2s;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-subtle); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 40px; height: 40px; border-radius: 12px; border: none;
    background: var(--bg); box-shadow: var(--neu-button);
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.theme-toggle:hover { color: var(--accent); transform: translateY(-1px); }

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

.btn-cta-nav {
    padding: 10px 22px; border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white; font-weight: 700; font-size: 14px;
    box-shadow: 0 4px 20px rgba(14,165,233,0.3);
    transition: all 0.3s;
}
.btn-cta-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(14,165,233,0.4); }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

@media (max-width: 900px) {
    .nav-links, .btn-cta-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 16px; right: 16px;
        background: var(--bg); box-shadow: var(--neu-shadow);
        border: 1px solid var(--card-border);
        border-radius: 20px; padding: 16px; margin-top: 8px; gap: 4px;
    }
    .nav-links.open a { padding: 14px 20px; border-radius: 14px; }
}


/* ═══ HERO ═══ */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 60px; position: relative; overflow: hidden;
}

.hero-grid-overlay {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(14,165,233,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
}

[data-theme="light"] .hero-grid-overlay {
    background-image:
        linear-gradient(rgba(14,165,233,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,0.06) 1px, transparent 1px);
}

.hero-rings {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 0;
}
.ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(14,165,233,0.08);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 6s ease-in-out infinite;
}
.ring-1 { width: 400px; height: 400px; animation-delay: 0s; }
.ring-2 { width: 600px; height: 600px; animation-delay: 2s; }
.ring-3 { width: 800px; height: 800px; animation-delay: 4s; }

@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%,-50%) scale(1); }
    50% { opacity: 0.08; transform: translate(-50%,-50%) scale(1.08); }
}

.particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.hero-content { text-align: center; max-width: 900px; position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 22px; border-radius: 16px;
    font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 28px; animation: fadeInUp 0.6s ease-out;
}
.badge-pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px var(--accent-glow);
}

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.4;transform:scale(0.8)} }

.hero-title {
    font-size: clamp(40px, 7vw, 74px); font-weight: 900;
    line-height: 1.05; letter-spacing: -2.5px;
    margin-bottom: 24px; animation: fadeInUp 0.6s ease-out 0.1s both;
}

.typewriter { display: inline; }
.typewriter-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    animation: blink 0.7s step-end infinite;
    margin-left: -2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-subtitle {
    font-size: 18px; line-height: 1.7; color: var(--text-muted);
    max-width: 560px; margin: 0 auto 36px; font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 64px; animation: fadeInUp 0.6s ease-out 0.3s both;
}

.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; border-radius: 16px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white; font-weight: 700; font-size: 16px;
    box-shadow: 0 8px 32px rgba(14,165,233,0.35);
    transition: all 0.3s; border: 1px solid rgba(56,189,248,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(14,165,233,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 28px; border-radius: 16px;
    background: var(--bg); box-shadow: var(--neu-button);
    color: var(--text-muted); font-weight: 700; font-size: 16px;
    transition: all 0.3s; border: 1px solid var(--card-border);
}
.btn-ghost:hover { color: var(--accent); transform: translateY(-2px); }

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

/* ─── Hero Dashboard Mock ─── */
.hero-dashboard {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.dash-glass {
    border-radius: 20px;
    background: var(--bg);
    box-shadow: var(--neu-shadow);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.dash-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--text-faint);
}
.dash-dots span:first-child { background: #ef4444; }
.dash-dots span:nth-child(2) { background: #f59e0b; }
.dash-dots span:nth-child(3) { background: #10b981; }
.dash-url {
    font-size: 12px; color: var(--text-faint); font-weight: 500;
    background: var(--bg); box-shadow: var(--neu-pressed);
    padding: 4px 14px; border-radius: 8px; flex: 1; text-align: center;
}
.dash-spacer { width: 60px; }

.dash-body { display: flex; gap: 0; min-height: 240px; }

.dash-sidebar {
    width: 52px; flex-shrink: 0;
    border-right: 1px solid var(--card-border);
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 0; gap: 8px;
}
.dash-nav-item {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-faint); transition: all 0.2s;
}
.dash-nav-item.active {
    background: var(--accent-subtle); color: var(--accent);
    box-shadow: var(--neu-pressed);
}

.dash-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 14px; }

.dash-stats-row { display: flex; gap: 10px; }
.dash-stat-card {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: 14px;
    box-shadow: var(--neu-pressed);
    background: var(--bg);
}
.dash-stat-icon { font-size: 20px; }
.dash-stat-num { font-weight: 800; font-size: 16px; color: var(--accent); display: block; line-height: 1; }
.dash-stat-lbl { font-size: 10px; color: var(--text-faint); font-weight: 600; display: block; line-height: 1.3; }

.dash-chart-area {
    flex: 1; border-radius: 14px; padding: 14px;
    background: var(--bg); box-shadow: var(--neu-pressed);
}
.dash-chart-label { font-size: 11px; color: var(--text-faint); font-weight: 700; margin-bottom: 8px; }
.dash-sparkline {
    position: relative; height: 100px;
    overflow: hidden; border-radius: 10px;
}
.dash-sparkline svg { display: block; }
.dash-spark-labels {
    display: flex; justify-content: space-between;
    padding: 4px 2px 0;
    font-size: 9px; color: var(--text-faint); font-weight: 600;
}

/* Floating cards */
.hero-float-card {
    position: absolute; border-radius: 16px; padding: 14px 18px;
    display: flex; align-items: center; gap: 10px;
    animation: floatCard 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes floatCard {
    0%,100% { transform: translateY(0) }
    50% { transform: translateY(-8px) }
}

.fc-1 { top: 30%; right: -80px; animation-delay: 0s; }
.fc-2 { bottom: 20%; left: -60px; animation-delay: 2s; flex-direction: column; text-align: center; }

.fc-emoji { font-size: 24px; }
.fc-info { display: flex; flex-direction: column; gap: 4px; }
.fc-title { font-size: 12px; font-weight: 700; }
.fc-sub { font-size: 10px; color: var(--text-faint); font-weight: 500; }
.fc-progress { width: 80px; height: 4px; border-radius: 4px; background: var(--text-faint); }
.fc-bar { height: 100%; border-radius: 4px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

.hero-float-cards-row { display: contents; }

/* Phone mockups - hidden on desktop */
.hero-phones { display: none; }

/* ─── Phone Mockup Styles ─── */
.phone-mock {
    width: 180px; flex-shrink: 0;
    border-radius: 28px;
    background: var(--bg);
    box-shadow: var(--neu-shadow), 0 20px 60px rgba(0,0,0,0.12);
    border: 1px solid var(--card-border);
    overflow: hidden;
    position: relative;
}

.phone-notch {
    width: 60px; height: 6px; border-radius: 10px;
    background: var(--text-faint);
    margin: 10px auto 6px;
}

.phone-screen {
    padding: 6px 10px 14px;
    display: flex; flex-direction: column; gap: 8px;
}

/* Phone Screen: Dashboard */
.ps-header { margin-bottom: 2px; }
.ps-greeting { font-size: 11px; font-weight: 700; }

.ps-stats { display: flex; gap: 5px; }
.ps-stat {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 6px 4px; border-radius: 10px;
    background: var(--bg); box-shadow: var(--neu-pressed);
}
.ps-stat-icon { font-size: 14px; }
.ps-stat-val { font-size: 13px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.ps-stat-lbl { font-size: 8px; color: var(--text-faint); font-weight: 600; }

.ps-chart {
    padding: 8px; border-radius: 10px;
    background: var(--bg); box-shadow: var(--neu-pressed);
}
.ps-chart-title { font-size: 9px; font-weight: 700; color: var(--text-faint); margin-bottom: 4px; }
.ps-sparkline {
    position: relative; height: 45px;
    overflow: hidden; border-radius: 6px;
}
.ps-sparkline svg { display: block; }
.ps-spark-labels {
    display: flex; justify-content: space-between;
    padding: 3px 1px 0;
    font-size: 7px; color: var(--text-faint); font-weight: 600;
}

.ps-goal { padding: 8px; border-radius: 10px; background: var(--bg); box-shadow: var(--neu-pressed); }
.ps-goal-row { display: flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; margin-bottom: 5px; }
.ps-goal-text { flex: 1; }
.ps-goal-pct { color: var(--accent); }
.ps-goal-bar { height: 4px; border-radius: 4px; background: var(--text-faint); }
.ps-goal-fill { height: 100%; border-radius: 4px; background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }

/* Phone Screen: Dictionary */
.ps-dict-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.ps-dict-title { font-size: 12px; font-weight: 800; }
.ps-dict-count { font-size: 9px; color: var(--text-faint); font-weight: 600; }

.ps-word-card {
    padding: 8px 10px; border-radius: 10px;
    background: var(--bg); box-shadow: var(--neu-pressed);
    position: relative;
}
.ps-wc-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.ps-wc-row:last-of-type { margin-bottom: 0; }
.ps-wc-lang {
    font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
    color: white; line-height: 1;
}
.ps-wc-lang.en { background: #0ea5e9; }
.ps-wc-lang.ru { background: rgba(100,116,139,0.45); }
.ps-wc-word { font-size: 11px; font-weight: 700; color: var(--text); }

.ps-wc-mastery {
    display: flex; gap: 2px;
    position: absolute; top: 6px; right: 8px;
}
.ps-wc-mbar {
    width: 3px; height: 10px; border-radius: 2px;
    background: var(--text-faint);
}
.ps-wc-mbar.filled {
    background: linear-gradient(to top, #f59e0b, #fbbf24);
}

/* Mobile: show phones, hide desktop dashboard */
@media (max-width: 768px) {
    .dash-glass { display: none; }
    .hero-float-cards-row { display: none; }
    .hero-phones {
        display: flex;
        justify-content: center;
        gap: 0;
        position: relative;
        padding: 10px 0 20px;
    }
    .phone-left {
        transform: rotate(-8deg) translateX(16px);
        z-index: 2;
    }
    .phone-right {
        transform: rotate(8deg) translateX(-16px);
        z-index: 1;
    }
    .hero-dashboard { max-width: 100%; }
    .dash-sidebar { display: none; }
}

/* ═══ MARQUEE ═══ */
.marquee-section {
    padding: 20px 0; overflow: hidden;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    position: relative; z-index: 1;
    background: var(--bg);
}
.marquee-track { width: 100%; overflow: hidden; }
.marquee-content {
    display: flex; gap: 0; width: max-content;
    animation: marquee 30s linear infinite;
}
.mq-item { font-weight: 700; font-size: 15px; color: var(--text-muted); white-space: nowrap; padding: 0 16px; display: inline-flex; align-items: center; }
.mq-flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; vertical-align: middle; margin-right: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.mq-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); align-self: center; flex-shrink: 0; }

@keyframes marquee {
    0% { transform: translateX(0) }
    100% { transform: translateX(-33.333%) }
}

/* ═══ SECTIONS ═══ */
.section { padding: 100px 24px; position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-dark {
    background: var(--section-alt-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.section-glow-top { display: none; }

.section-dot-pattern {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(14,165,233,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

[data-theme="light"] .section-dot-pattern {
    background-image: radial-gradient(rgba(14,165,233,0.1) 1px, transparent 1px);
}

.section-bg-pattern {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(14,165,233,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
}

[data-theme="light"] .section-bg-pattern {
    background-image:
        linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
}

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; position: relative; z-index: 1; }

.section-badge {
    display: inline-block; padding: 6px 18px; border-radius: 10px;
    font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--accent); background: var(--accent-subtle);
    margin-bottom: 20px; border: 1px solid rgba(14,165,233,0.15);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px); font-weight: 900;
    line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px;
}

.section-desc { font-size: 16px; color: var(--text-muted); line-height: 1.7; }


/* ═══ BENTO GRID ═══ */
.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    position: relative; z-index: 1;
}

.bento-card {
    border-radius: 24px; padding: 28px;
    display: flex; flex-direction: column; gap: 14px;
    position: relative; overflow: hidden;
}

.bento-shine { display: none; }

/* ─── Spotlight Card Effect ─── */
.spotlight-card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    overflow: hidden;
}
.spotlight-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(
        600px circle at var(--mx) var(--my),
        rgba(14, 165, 233, 0.12),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}
.spotlight-card:hover::before {
    opacity: 1;
}
.spotlight-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: radial-gradient(
        400px circle at var(--mx) var(--my),
        rgba(14, 165, 233, 0.2),
        transparent 40%
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}
.spotlight-card:hover::after {
    opacity: 1;
}
.spotlight-card > * {
    position: relative;
    z-index: 1;
}

.bento-large { grid-column: span 1; }

.bento-icon-wrap { margin-bottom: 4px; }

.bento-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--bg); box-shadow: var(--neu-button);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.bento-icon.sm { width: 44px; height: 44px; border-radius: 12px; }

.bento-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.bento-card p { font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* Word preview */
.bento-preview { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.bento-word-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    background: var(--bg); box-shadow: var(--neu-pressed);
    font-size: 13px;
}
.bw-word { font-weight: 700; flex: 1; }
.bw-trans { color: var(--text-muted); flex: 1; }
.bw-level {
    padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 11px;
    background: var(--accent-subtle); color: var(--accent);
    border: 1px solid rgba(14,165,233,0.15);
}

/* Dictionary word card */
.bento-dict-card {
    padding: 20px; border-radius: 20px;
    background: var(--bg); box-shadow: var(--neu-shadow);
    display: flex; flex-direction: column; gap: 14px;
    position: relative;
}
.bdc-mastery-bars {
    position: absolute; top: 14px; right: 16px;
    display: flex; gap: 2px;
}
.bdc-bar {
    width: 4px; height: 14px; border-radius: 99px;
    background: rgba(148,163,184,0.25);
}
.bdc-bar.filled {
    background: linear-gradient(to top, #f59e0b, #fbbf24);
    box-shadow: 0 0 6px rgba(234,179,8,0.5);
}
.bdc-row {
    display: flex; align-items: center; gap: 10px;
}
.bdc-lang {
    padding: 3px 0; border-radius: 4px; font-size: 10px; font-weight: 800;
    color: white; text-align: center; flex-shrink: 0;
    width: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.bdc-lang.en { background: #0ea5e9; }
.bdc-lang.ru { background: rgba(100,116,139,0.45); }
.bdc-word { font-size: 18px; font-weight: 700; color: var(--text); }

/* Mini chart */
.bento-mini-chart { display: flex; gap: 4px; align-items: flex-end; height: 48px; margin-top: auto; }
.bmc-bar {
    flex: 1; border-radius: 4px; height: var(--h);
    background: rgba(14,165,233,0.12);
    transition: all 0.3s;
}
.bmc-bar.active { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

/* Heatmap */
.bento-heatmap { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.hm-cell {
    width: 18px; height: 18px; border-radius: 4px;
    background: rgba(14,165,233, calc(var(--lv) * 0.2 + 0.05));
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .features-bento { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
    .features-bento { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
}


/* ═══ TRAINING CARDS ═══ */
.training-carousel {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    position: relative; z-index: 1;
}

.training-card {
    border-radius: 24px; padding: 28px;
    display: flex; flex-direction: column; gap: 12px;
    position: relative; overflow: hidden;
}

.tc-num {
    font-size: 48px; font-weight: 900; color: var(--text-faint);
    line-height: 1; letter-spacing: -2px; opacity: 0.6;
}

.tc-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--bg); box-shadow: var(--neu-button);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}

.training-card h3 { font-size: 20px; font-weight: 800; }
.training-card p { font-size: 13px; line-height: 1.6; color: var(--text-muted); }

/* Training mini-mocks */
.tc-mock, .tc-flashcard-mock, .tc-input-mock, .tc-match-mock, .tc-tf-mock, .tc-chat-mock {
    margin-top: auto; padding: 14px; border-radius: 14px;
    background: var(--bg); box-shadow: var(--neu-pressed);
    font-size: 13px;
}

.tc-question { font-weight: 700; margin-bottom: 8px; color: var(--text); text-align: center; }
.tc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tc-opt {
    padding: 8px 12px; border-radius: 10px; font-weight: 600;
    background: var(--bg); box-shadow: var(--neu-button);
    text-align: center; font-size: 12px; color: var(--text);
    transition: all 0.2s;
}
.tc-opt.correct {
    background: rgba(16,185,129,0.12); color: var(--success);
    border: 1px solid rgba(16,185,129,0.2);
    box-shadow: none;
}

.tc-fc-front { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.tc-fc-hint { font-size: 11px; color: var(--text-faint); text-align: center; }

.tc-im-word { font-weight: 700; margin-bottom: 8px; text-align: center; }
.tc-im-input {
    padding: 10px 14px; border-radius: 10px;
    background: var(--bg); box-shadow: var(--neu-pressed);
    color: var(--accent); font-weight: 600;
}
.tc-cursor { animation: cursorBlink 1s step-end infinite; }
@keyframes cursorBlink { 0%,100%{opacity:1}50%{opacity:0} }

.tc-mm-pair { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tc-mm-l, .tc-mm-r { font-weight: 600; font-size: 12px; flex-shrink: 0; min-width: 60px; }
.tc-mm-line { flex: 1; height: 2px; background: var(--accent); border-radius: 2px; }
.tc-mm-line.pending { background: var(--text-faint); border-style: dashed; }
.tc-mm-spacer { flex: 1; height: 2px; border-radius: 2px; }
.tc-mm-r.dim { color: var(--text-faint); }
.tc-mm-l.matched, .tc-mm-r.matched { color: var(--accent); }

.tc-tf-q { font-weight: 600; margin-bottom: 10px; text-align: center; }
.tc-tf-btns { display: flex; gap: 8px; }
.tc-tf-true, .tc-tf-false {
    flex: 1; text-align: center; padding: 8px; border-radius: 10px;
    font-weight: 700; font-size: 12px;
}
.tc-tf-true { background: rgba(16,185,129,0.12); color: var(--success); }
.tc-tf-false { background: rgba(239,68,68,0.12); color: var(--danger); }

.tc-chat-mock { display: flex; flex-direction: column; gap: 6px; }
.tc-chat-bubble {
    padding: 10px 14px; border-radius: 14px; font-size: 12px; max-width: 85%;
    line-height: 1.5;
}
.tc-chat-bubble.ai {
    background: var(--accent-subtle); color: var(--accent); align-self: flex-start;
    border: 1px solid rgba(14,165,233,0.12);
}
.tc-chat-bubble.user {
    background: var(--bg); box-shadow: var(--neu-button);
    align-self: flex-end; color: var(--text);
}

@media (max-width: 900px) { .training-carousel { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .training-carousel { grid-template-columns: 1fr; } }


/* ═══ AI LAYOUT ═══ */
.ai-layout {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px;
    position: relative; z-index: 1;
}
@media (max-width: 900px) { .ai-layout { grid-template-columns: 1fr; } }

.ai-main-card {
    border-radius: 28px; padding: 36px;
    display: flex; flex-direction: column; gap: 18px;
    position: relative; overflow: hidden;
}
.ai-header { display: flex; align-items: center; gap: 14px; }
.ai-sparkle-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--accent-subtle); border: 1px solid rgba(14,165,233,0.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.ai-sparkle-icon.sm { width: 40px; height: 40px; border-radius: 12px; }
.ai-main-card h3 { font-size: 24px; font-weight: 800; }
.ai-desc { font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* Word analysis card */
.ai-word-card {
    padding: 20px; border-radius: 18px;
}

.awc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.awc-word { font-size: 22px; font-weight: 800; }
.awc-phonetic { font-size: 13px; color: var(--text-faint); }
.awc-tts {
    margin-left: auto; width: 32px; height: 32px; border-radius: 8px;
    background: var(--bg); box-shadow: var(--neu-button);
    border: none; color: var(--accent); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.awc-tts:hover { transform: scale(1.1); }

.awc-tags { display: flex; gap: 6px; margin-bottom: 14px; }
.awc-tag {
    padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
}
.awc-tag.level { background: var(--accent-subtle); color: var(--accent); border: 1px solid rgba(14,165,233,0.15); }
.awc-tag.style { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.15); }
.awc-tag.use { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.15); }

.awc-meanings { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.awc-m { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.awc-m-num {
    width: 20px; height: 20px; border-radius: 6px;
    background: var(--accent-subtle); color: var(--accent);
    font-weight: 800; font-size: 11px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.awc-m-en { color: var(--text-muted); }
.awc-m-tr { color: var(--accent); font-weight: 600; }

.awc-example {
    padding: 12px 14px; border-radius: 10px;
    background: var(--bg); box-shadow: var(--neu-pressed);
}
.awc-ex-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-faint); letter-spacing: 1px; display: block; margin-bottom: 4px; }
.awc-ex-text { font-size: 13px; color: var(--text-muted); }
.awc-ex-text em { color: var(--accent); font-style: normal; font-weight: 700; }

/* Collocations */
.awc-collocations { margin-bottom: 10px; }
.awc-colls-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.awc-coll-item {
    padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
    background: var(--accent-subtle); color: var(--accent);
    border: 1px solid rgba(14,165,233,0.12);
}

/* Video button */
.awc-video-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 12px; margin-top: 10px;
    background: var(--bg); box-shadow: var(--neu-button);
    color: var(--accent); font-weight: 700; font-size: 12px;
    border: none; cursor: pointer; transition: all 0.2s;
}
.awc-video-btn:hover { transform: translateY(-1px); }

/* Synonyms */
.awc-synonyms { margin-bottom: 10px; }
.awc-syn-item {
    padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
    background: rgba(100,116,139,0.08); color: var(--text-muted);
    border: 1px solid var(--card-border);
}

/* Idiom */
.awc-idiom {
    padding: 12px 14px; border-radius: 10px;
    background: var(--bg); box-shadow: var(--neu-pressed);
    margin-top: 14px;
}

/* AI side cards */
.ai-side { display: flex; flex-direction: column; gap: 20px; }
.ai-side-card {
    border-radius: 22px; padding: 24px;
    display: flex; flex-direction: column; gap: 10px;
    position: relative; overflow: hidden;
}
.ai-side-card h4 { font-size: 17px; font-weight: 700; }
.ai-side-card p { font-size: 13px; line-height: 1.6; color: var(--text-muted); }

.ai-gen-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ai-chip {
    padding: 6px 12px; border-radius: 10px; font-size: 12px; font-weight: 600;
    background: var(--bg); box-shadow: var(--neu-button);
    color: var(--text-muted);
}

.ai-correction-demo { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.ai-corr-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.ai-corr-row.wrong { color: var(--danger); text-decoration: line-through; opacity: 0.6; }
.ai-corr-row.right { color: var(--success); }
.ai-corr-row em { font-style: normal; color: var(--text-faint); font-weight: 400; }

.ai-scenario-chip {
    padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
    background: var(--accent-subtle); color: var(--accent);
    border: 1px solid rgba(14,165,233,0.12);
    margin-top: 4px;
}


/* ═══ EXTENSION VISUAL ═══ */
.ext-visual {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
    align-items: center; position: relative; z-index: 1;
}
@media (max-width: 900px) { .ext-visual { grid-template-columns: 1fr; } }

.ext-browser { border-radius: 20px; overflow: hidden; }
.ext-b-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--card-border);
}
.ext-b-dots { display: flex; gap: 6px; }
.ext-b-dots span { width: 10px; height: 10px; border-radius: 50%; }
.ext-b-dots span:nth-child(1) { background: #ef4444; }
.ext-b-dots span:nth-child(2) { background: #f59e0b; }
.ext-b-dots span:nth-child(3) { background: #10b981; }
.ext-b-url {
    flex: 1; text-align: center; font-size: 11px; color: var(--text-faint);
    background: var(--bg); box-shadow: var(--neu-pressed);
    padding: 5px 12px; border-radius: 8px; font-weight: 500;
}

.ext-b-content { padding: 24px; position: relative; min-height: 300px; overflow: visible; }
.ext-b-text { font-size: 14px; line-height: 1.8; color: var(--text-muted); max-width: 55%; }
.ext-highlight {
    background: rgba(14,165,233,0.15); color: var(--accent); font-weight: 700;
    padding: 1px 4px; border-radius: 4px;
    border-bottom: 2px solid var(--accent);
}

.ext-popup {
    position: absolute; right: 16px; top: 50px;
    width: 280px; padding: 18px; border-radius: 18px;
    display: flex; flex-direction: column; gap: 10px;
    animation: floatCard 4s ease-in-out infinite;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.ext-popup:hover {
    background: var(--bg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: none;
}
.ext-pop-header { display: flex; align-items: center; gap: 8px; }
.ext-pop-logo-img {
    width: 24px; height: 24px; object-fit: contain;
}
.ext-pop-logo {
    width: 24px; height: 24px; border-radius: 6px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white; font-weight: 900; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.ext-pop-title { font-weight: 800; font-size: 13px; }
.ext-pop-word { font-size: 18px; font-weight: 800; color: var(--accent); }
.ext-pop-trans { font-size: 13px; color: var(--text-muted); }
.ext-pop-ctx { font-size: 11px; color: var(--text-faint); line-height: 1.5; }
.ext-pop-ctx em { color: var(--accent); font-style: normal; font-weight: 700; }
.ext-pop-actions { display: flex; gap: 6px; margin-top: 4px; }
.ext-pop-btn {
    flex: 1; padding: 8px; border-radius: 10px; border: none;
    font-weight: 700; font-size: 11px; cursor: pointer;
    background: var(--bg); box-shadow: var(--neu-button);
    color: var(--text-muted); transition: all 0.2s;
}
.ext-pop-btn.primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white; box-shadow: 0 4px 12px var(--accent-glow);
}

.ext-steps { display: flex; flex-direction: column; gap: 0; }
.ext-step {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px 0;
}
.ext-step-num {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white; font-weight: 900; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.ext-step-info h4 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.ext-step-info p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.ext-step-line {
    width: 2px; height: 24px; margin-left: 19px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    border-radius: 2px;
}


/* ═══ SOCIAL SHOWCASE ═══ */
.social-showcase { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }

.social-row { display: flex; gap: 20px; }
@media (max-width: 900px) { .social-row { flex-direction: column; } }

.social-card {
    flex: 1; border-radius: 24px; padding: 24px;
    display: flex; flex-direction: column; gap: 10px;
}
.so-emoji { font-size: 32px; }
.so-info h4 { font-size: 17px; font-weight: 800; }
.so-info p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.so-streak-vis { display: flex; gap: 6px; margin-top: 6px; }
.so-day {
    width: 32px; height: 32px; border-radius: 8px; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); box-shadow: var(--neu-button); color: var(--text-faint);
}
.so-day.done { background: var(--accent-subtle); color: var(--accent); border: 1px solid rgba(14,165,233,0.15); }
.so-day.current {
    background: var(--accent); color: white;
    box-shadow: 0 0 12px var(--accent-glow);
}

.so-leader-mock { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.so-lead-row {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 10px; font-size: 12px;
}
.so-lead-row.you { background: var(--accent-subtle); border: 1px solid rgba(14,165,233,0.12); border-radius: 10px; }
.so-lead-rank { font-weight: 900; color: var(--accent); width: 20px; }
.so-lead-name { flex: 1; font-weight: 600; }
.so-lead-xp { font-weight: 700; color: var(--text-faint); }

.so-coins-mock { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.so-coin-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.so-coin-val { font-weight: 700; color: #f59e0b; }

.so-mastery-dots { display: flex; gap: 5px; margin-top: 8px; }
.so-md {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--bg); box-shadow: var(--neu-pressed);
}
.so-md.filled {
    background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}


/* ═══ CTA ═══ */
.cta-section { padding-bottom: 120px; }
.cta-card {
    text-align: center; padding: 80px 40px; border-radius: 32px;
    position: relative; overflow: hidden;
}
.cta-radial-glow {
    position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 500px; height: 300px;
    background: radial-gradient(ellipse, rgba(14,165,233,0.12), transparent 70%);
    pointer-events: none;
}
.cta-grid-bg {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(14,165,233,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
    font-size: clamp(28px, 4vw, 44px); font-weight: 900;
    line-height: 1.15; letter-spacing: -1px; margin-bottom: 16px;
}
.cta-desc {
    font-size: 16px; color: var(--text-muted);
    max-width: 440px; margin: 0 auto 32px;
}

/* ═══ FOOTER ═══ */
.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--card-border);
    position: relative; z-index: 1;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-tagline { font-size: 13px; color: var(--text-faint); font-weight: 500; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-faint); font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy p { font-size: 13px; color: var(--text-faint); }

@media (max-width: 768px) {
    /* Simplified mobile navbar */
    .nav-links { display: none !important; }
    .btn-cta-nav { display: none !important; }
    .mobile-menu-btn { display: none !important; }
    .navbar { padding: 10px 12px; }
    .navbar.scrolled { padding: 6px 12px; }
    .nav-inner {
        padding: 10px 16px;
        border-radius: 16px;
        max-width: 100%;
    }
    .nav-actions { gap: 0; }

    /* Disable spotlight on mobile */
    .spotlight-card::before,
    .spotlight-card::after { display: none !important; }

    .hero { padding: 100px 16px 40px; min-height: auto; }
    .hero-title { letter-spacing: -1.5px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 28px; }
    .hero-actions { gap: 12px; }
    .btn-primary, .btn-ghost { padding: 14px 24px; font-size: 15px; }
    .hero-dashboard { max-width: 100%; }
    .dash-stats { gap: 10px; }
    .dash-stat-val { font-size: 18px; }

    /* Extension: full-width text, hide 2nd paragraph */
    .ext-b-text-secondary { display: none; }
    .ext-b-text { max-width: 100% !important; }

    .section { padding: 60px 16px; }
    .section-header { margin-bottom: 40px; }
    .section-title { letter-spacing: -1px; }

    .cta-card { padding: 48px 20px; border-radius: 24px; }
    .cta-title { letter-spacing: -0.5px; }

    /* Extension */
    .ext-popup { position: static; width: 100%; margin-top: 16px; }
    .ext-b-text { max-width: 100%; }
    .ext-b-content { min-height: auto; padding: 16px; }

    /* Social */
    .so-streak-vis { flex-wrap: wrap; }

    /* Footer */
    .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
    .footer-brand { flex-direction: column; gap: 8px; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

@media (max-width: 480px) {
    .navbar { padding: 10px 12px; }
    .navbar.scrolled { padding: 8px 12px; }
    .nav-inner { padding: 10px 14px; border-radius: 16px; }
    .nav-logo-img { height: 24px; }

    .hero { padding: 90px 14px 30px; }
    .hero-badge { padding: 8px 16px; font-size: 11px; }
    .hero-subtitle { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; padding: 14px 20px; font-size: 14px; }
    .hero-dashboard { margin-top: -10px; }

    .dash-glass { border-radius: 16px; }
    .dash-topbar { padding: 8px 12px; }
    .dash-url { font-size: 10px; }
    .dash-body { padding: 14px; gap: 12px; }
    .dash-stats { gap: 8px; flex-wrap: wrap; }
    .dash-stat { padding: 10px 8px; border-radius: 12px; min-width: 0; }
    .dash-stat-val { font-size: 16px; }
    .dash-stat-lbl { font-size: 9px; }
    .dash-chart { padding: 12px; border-radius: 12px; }

    .section { padding: 48px 14px; }
    .section-header { margin-bottom: 32px; }
    .section-badge { font-size: 10px; padding: 5px 14px; }
    .section-desc { font-size: 14px; }

    .bento-card { padding: 22px; border-radius: 20px; }
    .bento-card h3 { font-size: 18px; }
    .bento-card p { font-size: 13px; }
    .bento-icon { width: 44px; height: 44px; border-radius: 12px; }

    .training-card { padding: 22px; border-radius: 20px; }
    .training-card h3 { font-size: 18px; }
    .tc-num { font-size: 36px; }
    .tc-icon-wrap { width: 44px; height: 44px; border-radius: 12px; }

    /* AI layout */
    .ai-main-card { padding: 22px; border-radius: 20px; }
    .awc-word { font-size: 26px; }
    .awc-pronun { gap: 6px; }

    /* Extension */
    .ext-step-info h4 { font-size: 15px; }
    .ext-step-info p { font-size: 12px; }
    .ext-step-num { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }

    /* Social */
    .social-card { padding: 20px; border-radius: 20px; }
    .so-info h4 { font-size: 15px; }
    .so-streak-vis { gap: 4px; }
    .so-day { width: 28px; height: 28px; font-size: 10px; border-radius: 6px; }

    /* CTA */
    .cta-card { padding: 40px 16px; border-radius: 20px; }
    .cta-desc { font-size: 14px; }
    .cta-btn { width: 100%; justify-content: center; }

    /* Footer */
    .footer { padding: 32px 14px; }
    .footer-links { gap: 10px; }
    .footer-links a { font-size: 12px; }
    .footer-tagline { font-size: 12px; }
}


/* ═══ SCROLL ANIMATIONS ═══ */
.anim-el {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.anim-el.visible { opacity: 1; transform: translateY(0); }

.anim-el:nth-child(2) { transition-delay: 0.08s; }
.anim-el:nth-child(3) { transition-delay: 0.16s; }
.anim-el:nth-child(4) { transition-delay: 0.12s; }
.anim-el:nth-child(5) { transition-delay: 0.2s; }
.anim-el:nth-child(6) { transition-delay: 0.28s; }
