/* ═══════════════════════════════════════════════════════════
   STEMMY LANDING — Liquid Glass Design System
   Fonts: Cormorant Garamond · Space Grotesk · JetBrains Mono
   ═══════════════════════════════════════════════════════════ */

/* Fonts loaded via <link> in HTML head for faster rendering */

/* ─── Design Tokens ─── */
:root {
    /* Backgrounds */
    --bg-deep: #07070E;
    --bg-surface: #0F0F1A;
    --bg-elevated: #161625;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 255, 255, 0.12);
    --glass-blur-sm: 8px;
    --glass-blur: 20px;
    --glass-blur-lg: 40px;

    /* Brand */
    --brand: #7C3AED;
    --brand-light: #A78BFA;
    --brand-lighter: #C4B5FD;
    --brand-glow: rgba(124, 58, 237, 0.4);
    --brand-faint: rgba(124, 58, 237, 0.08);

    /* Accents — consolidated to 2 */
    --accent-teal: #2DD4BF;
    --accent-gold: #FBBF24;

    /* Text */
    --text-primary: #F1F0F5;
    --text-secondary: #9794A8;
    --text-tertiary: #B8B5C8;
    --text-dim: #5B586E;
    --text-brand: #C4B5FD;

    /* Shadows */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --font-body: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing Scale (4px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Layout */
    --section-padding: clamp(60px, 8vw, 120px) 0;
    --container-max: 1200px;
    --container-padding: 0 32px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Light Theme ─── */
[data-theme="light"] {
    /* Backgrounds */
    --bg-deep: #F8F7FC;
    --bg-surface: #EFEFF6;
    --bg-elevated: #E8E7F0;

    /* Glass */
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-bg-hover: rgba(0, 0, 0, 0.06);
    --glass-border: rgba(0, 0, 0, 0.12);
    --glass-border-hover: rgba(0, 0, 0, 0.18);

    /* Brand stays the same */
    --brand-faint: rgba(124, 58, 237, 0.06);

    /* Text */
    --text-primary: #1A1A2E;
    --text-secondary: #555568;
    --text-dim: #8A889A;
    --text-brand: #6D28D9;

    /* Shadows */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ─── Container ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATED BACKGROUND
   ═══════════════════════════════════════════════════════════ */

.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    will-change: transform;
}

.bg-orb--purple {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.5) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: orbFloat1 12s ease-in-out infinite;
}

.bg-orb--teal {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.3) 0%, transparent 70%);
    top: 30%;
    right: -10%;
    animation: orbFloat2 16s ease-in-out infinite;
}

.bg-orb--cyan {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.25) 0%, transparent 70%);
    bottom: 10%;
    left: 15%;
    animation: orbFloat3 14s ease-in-out infinite;
}

.bg-orb--gold {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    top: 60%;
    right: 20%;
    animation: orbFloat4 16s ease-in-out infinite;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(80px, 40px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 80px) scale(0.95);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-60px, 50px) scale(1.05);
    }

    66% {
        transform: translate(40px, -40px) scale(0.9);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, -60px) scale(1.08);
    }
}

@keyframes orbFloat4 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-40px, 30px);
    }
}

/* ═══════════════════════════════════════════════════════════
   GLASS COMPONENTS
   ═══════════════════════════════════════════════════════════ */

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out);
}

.glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glass);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.glass-card:hover,
.glass-card:focus-within {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(7, 7, 14, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
}

[data-theme="light"] .nav-logo-img,
[data-theme="light"] .footer-logo-img {
    filter: invert(0);
}

[data-theme="dark"] .nav-logo-img,
[data-theme="dark"] .footer-logo-img {
    filter: invert(1);
}

.footer-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    letter-spacing: 0;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--brand-light);
    border-radius: 1px;
    transition: all 0.3s var(--ease-out);
    opacity: 0;
}

.nav-link:hover::after {
    left: 0;
    right: 0;
    opacity: 0.5;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    background: var(--brand);
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.nav-cta:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}

.nav-menu-btn {
    display: none;
    color: var(--text-primary);
    font-size: 24px;
}

.mobile-overlay {
    display: none;
}

/* ─── Theme Toggle ─── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.theme-toggle-icon {
    position: absolute;
    transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
}

.theme-toggle-icon--light {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .theme-toggle-icon--dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle-icon--light {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="light"] .theme-toggle-icon--dark {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="light"] .theme-toggle-icon--light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ─── Active Nav Link ─── */
.nav-link.active {
    color: var(--text-primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent-teal));
    border-radius: 1.5px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    opacity: 1;
}

/* ─── Light Theme Overrides ─── */
[data-theme="light"] .bg-orb--purple {
    opacity: 0.3;
}

[data-theme="light"] .bg-orb--teal {
    opacity: 0.25;
}

[data-theme="light"] .bg-orb--cyan {
    opacity: 0.22;
}

[data-theme="light"] .bg-orb--gold {
    opacity: 0.2;
}

[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(248, 247, 252, 0.85);
}

[data-theme="light"] .showcase-example {
    background: rgba(124, 58, 237, 0.06);
}

[data-theme="light"] .btn-secondary {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    border-radius: 100px;
    background: var(--brand-faint);
    border: 1px solid rgba(124, 58, 237, 0.2);
    margin-bottom: 28px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-brand);
    letter-spacing: 0.2px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(124, 58, 237, 0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 4.5vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--brand-light), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #6D28D9);
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    margin-top: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.hero-mockup-img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
    animation: mockupFloat 6s ease-in-out infinite;
}

@keyframes mockupFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.hero-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Floating elements around hero */
.hero-float {
    position: absolute;
    border-radius: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    animation: floatItem 5s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-float--1 {
    top: 5%;
    right: -10%;
    animation-delay: 0s;
}

.hero-float--2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 1.5s;
}

.hero-float--3 {
    bottom: 5%;
    right: 5%;
    animation-delay: 3s;
}

@keyframes floatItem {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.float-icon {
    margin-right: 6px;
}

.float-accent {
    color: var(--accent-teal);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════ */

section {
    position: relative;
    z-index: 1;
}

.features {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px;
    position: relative;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
    position: relative;
}

.feature-icon--purple {
    background: rgba(124, 58, 237, 0.12);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.1);
}

.feature-icon--teal {
    background: rgba(45, 212, 191, 0.12);
    box-shadow: 0 0 24px rgba(45, 212, 191, 0.1);
}

.feature-icon--cyan {
    background: rgba(34, 211, 238, 0.12);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.1);
}

.feature-icon--gold {
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.1);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

.feature-tag--shortcut {
    background: rgba(124, 58, 237, 0.1);
    color: var(--brand-lighter);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.feature-tag--ai {
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent-teal);
    border: 1px solid rgba(45, 212, 191, 0.15);
}

/* ─── Rose Icon Theme (Word Immersion) ─── */
.feature-icon--rose {
    background: rgba(244, 63, 94, 0.12);
    box-shadow: 0 0 24px rgba(244, 63, 94, 0.1);
}

/* ─── Hero Feature Card (Full-Width) ─── */
.feature-card--hero {
    grid-column: 1 / -1;
    padding: 48px;
}

.feature-hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.feature-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ─── Immersion Demo Mockup ─── */
.feature-hero-demo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.immersion-demo {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 20, 0.6);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.immersion-demo-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.demo-dot:first-child {
    background: rgba(239, 68, 68, 0.5);
}

.demo-dot:nth-child(2) {
    background: rgba(245, 158, 11, 0.5);
}

.demo-dot:nth-child(3) {
    background: rgba(34, 197, 94, 0.5);
}

.demo-url {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

.immersion-demo-body {
    padding: 20px 18px;
}

.immersion-demo-text {
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Highlighted vocabulary words in the demo */
.immersion-word {
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 1px;
    cursor: default;
    position: relative;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    opacity: 0;
    transform: translateY(4px);
}

.immersion-word.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease, background 0.2s ease;
}

.immersion-word:hover {
    color: #fff;
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--brand-lighter);
}

/* Tooltip showing definition on hover */
.immersion-word::after {
    content: attr(data-def);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-body);
    font-size: 11.5px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.immersion-word:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ─── Responsive: Hero card stacks on mobile ─── */
@media (max-width: 768px) {
    .feature-hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .feature-card--hero {
        padding: 32px 24px;
    }

    .immersion-demo {
        max-width: 100%;
    }
}


.features-grid-wrapper {
    position: relative;
}

.neural-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.neural-svg line {
    stroke: var(--glass-border);
    stroke-width: 1;
    opacity: 0.4;
    transition: opacity 0.6s ease, stroke 0.6s ease, stroke-width 0.6s ease;
}

.neural-svg line.active {
    stroke: var(--brand-light);
    stroke-width: 1.5;
    opacity: 0.7;
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.4));
}

/* Animated dash for neural lines */
.neural-svg line {
    stroke-dasharray: 8 4;
    animation: neuralDash 20s linear infinite;
}

@keyframes neuralDash {
    to {
        stroke-dashoffset: -240;
    }
}

/* 3D Perspective Tilt */
.feature-card--interactive {
    transform-style: preserve-3d;
    perspective: 800px;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease;
    will-change: transform;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card--interactive:hover {
    z-index: 2;
}

/* Inner elements parallax depth */
.feature-card--interactive .feature-icon {
    transition: transform 0.3s var(--ease-out);
    transform: translateZ(0);
}

.feature-card--interactive:hover .feature-icon {
    transform: translateZ(30px) scale(1.05);
}

.feature-card--interactive .feature-title {
    transition: transform 0.3s var(--ease-out);
    transform: translateZ(0);
}

.feature-card--interactive:hover .feature-title {
    transform: translateZ(20px);
}

.feature-card--interactive .feature-desc {
    transition: transform 0.3s var(--ease-out);
    transform: translateZ(0);
}

.feature-card--interactive:hover .feature-desc {
    transform: translateZ(10px);
}

.feature-card--interactive .feature-tag {
    transition: transform 0.3s var(--ease-out);
    transform: translateZ(0);
}

.feature-card--interactive:hover .feature-tag {
    transform: translateZ(15px);
}

/* Cursor Spotlight */
.card-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(300px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
            rgba(124, 58, 237, 0.12),
            transparent 60%);
}

.feature-card--interactive:hover .card-spotlight {
    opacity: 1;
}

/* Icon Pulse Ring */
.feature-icon {
    position: relative;
    overflow: visible;
}

.feature-icon-emoji {
    position: relative;
    z-index: 2;
}

.icon-pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid currentColor;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.feature-icon--purple .icon-pulse-ring {
    border-color: var(--brand);
}

.feature-icon--teal .icon-pulse-ring {
    border-color: var(--accent-teal);
}

.feature-icon--cyan .icon-pulse-ring {
    border-color: #22D3EE;
}

.feature-icon--gold .icon-pulse-ring {
    border-color: var(--accent-gold);
}

.feature-card--interactive:hover .icon-pulse-ring {
    animation: iconPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.feature-card--interactive:hover .icon-pulse-ring--delay {
    animation-delay: 0.6s;
}

@keyframes iconPulse {
    0% {
        opacity: 0.6;
        transform: scale(0.9);
    }

    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

/* Card active glow (when hovered, adds themed border glow) */
.feature-card--interactive[data-card-index="0"]:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-glass), 0 0 30px rgba(124, 58, 237, 0.12);
}

.feature-card--interactive[data-card-index="1"]:hover {
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: var(--shadow-glass), 0 0 30px rgba(45, 212, 191, 0.12);
}

.feature-card--interactive[data-card-index="2"]:hover {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: var(--shadow-glass), 0 0 30px rgba(34, 211, 238, 0.12);
}

.feature-card--interactive[data-card-index="3"]:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow-glass), 0 0 30px rgba(245, 158, 11, 0.12);
}

/* Word Decode Effect */
.decode-text .decode-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: var(--font-mono);
    color: var(--accent-teal);
}

.decode-text .decode-char.decoded {
    opacity: 1;
    transform: translateY(0);
    font-family: var(--font-display);
    color: var(--text-primary);
}

.decode-text .decode-space {
    display: inline;
    width: 0.3em;
}

/* Disable interactive effects on mobile */
@media (max-width: 768px) {
    .feature-card--interactive {
        transform: none !important;
    }

    .card-spotlight {
        display: none;
    }

    .neural-svg {
        display: none;
    }

    .icon-pulse-ring {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════ */

.how-it-works {
    padding: var(--section-padding);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-row::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), var(--brand), var(--glass-border), transparent);
}

.step-card {
    text-align: center;
    padding: 40px 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.step-number--1 {
    background: linear-gradient(135deg, var(--brand), #6D28D9);
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.step-number--2 {
    background: linear-gradient(135deg, var(--accent-teal), #14B8A6);
    color: white;
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.3);
}

.step-number--3 {
    background: linear-gradient(135deg, var(--accent-teal), #14B8A6);
    color: white;
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.3);
}

.step-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   SHOWCASE SECTION (Word of the Day style)
   ═══════════════════════════════════════════════════════════ */

.showcase {
    padding: var(--section-padding);
}

.showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-card {
    padding: 48px;
    border-radius: 24px;
    position: relative;
}

.showcase-word {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.showcase-phonetic {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--accent-teal);
    margin-bottom: 4px;
}

.showcase-pos {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.showcase-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent-teal));
    margin-bottom: 24px;
    border-radius: 1px;
}

.showcase-def {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.showcase-example {
    padding: 16px 20px;
    border-left: 2px solid var(--brand);
    background: rgba(124, 58, 237, 0.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.showcase-content .section-label {
    text-align: left;
}

.showcase-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.showcase-content .section-subtitle {
    text-align: left;
    margin-bottom: 32px;
}

.showcase-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.showcase-features-list .check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(45, 212, 191, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--accent-teal);
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */

.testimonials {
    padding: var(--section-padding);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: var(--accent-gold);
    font-size: 16px;
}

.testimonial-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.avatar--purple {
    background: linear-gradient(135deg, var(--brand), #6D28D9);
}

.avatar--teal {
    background: linear-gradient(135deg, var(--accent-teal), #14B8A6);
}

.avatar--cyan {
    background: linear-gradient(135deg, var(--accent-teal), #14B8A6);
}

.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════ */

.cta {
    padding: var(--section-padding);
}

.cta-box {
    text-align: center;
    padding: 80px 48px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(45, 212, 191, 0.05) 100%);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    animation: ctaGlow 8s ease-in-out infinite;
}

@keyframes ctaGlow {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.cta-note {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 20px;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
    position: relative;
    z-index: 1;
    padding: 40px 0 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--accent-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer-link {
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero Text Animations ─── */
.hero-title {
    perspective: 1000px;
    position: relative;
    /* Context for absolute magnified layer */
    z-index: 10;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity, filter;
    animation: cinematicReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform-origin: center center;
    border-radius: 8px;
    padding: 0 4px;
    margin: 0 -1px;
    position: relative;
    z-index: 1;
}

/* Staggered delays for curtain reveal */
.hero-word:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-word:nth-child(2) {
    animation-delay: 0.25s;
}

.hero-word:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-word:nth-child(5) {
    animation-delay: 0.55s;
}

.hero-word:nth-child(7) {
    animation-delay: 0.7s;
}

.hero-word:nth-child(8) {
    animation-delay: 0.85s;
}

/* Cinematic Blur Reveal Keyframes */
@keyframes cinematicReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9) rotateX(10deg);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

/* Continuous Gradient Flow for "Cognitive" */
.hero-title em {
    background-size: 200% auto;
    animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out) forwards;
    animation-delay: 1.2s;
}

.hero-fade-in--delay-2 {
    animation-delay: 1.4s;
}

.hero-fade-in--delay-3 {
    animation-delay: 1.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Scroll Parallax ─── */
.hero-float {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {

    .hero-word,
    .hero-fade-in,
    .hero-title em {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* ─── Hero Lens Effect ─── */
.hero-title-magnified {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    color: #fff;
    /* The magnified layer is revealed by JS clip-path */
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 20;
    /* KEY FIX: Opaque background hides the base text underneath */
    background-color: var(--bg-deep);

    /* Ensure it matches H1 typography exactly if it's a div */
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: inherit;
    margin: inherit;
    padding: inherit;
    /* JS sets transform and transform-origin */
}

.hero-title-magnified.active {
    opacity: 1;
}

.hero-lens {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.01) 70%);
    backdrop-filter: blur(1.5px);
    /* Subtle blur inside lens */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.3s, transform 0.3s;
    mix-blend-mode: overlay;
}

.hero-lens.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-float {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-row::before {
        display: none;
    }

    .showcase-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(7, 7, 14, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 32px;
        display: flex;
        transition: right 0.4s var(--ease-out);
        z-index: 1001;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links .nav-link {
        font-size: 18px;
    }

    .nav-menu-btn {
        display: block;
        z-index: 1002;
        transition: transform 0.3s var(--ease-out);
    }

    .nav-menu-btn.active {
        transform: rotate(45deg);
    }

    .mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }

    .hero-stats {
        gap: 24px;
    }

    .feature-card,
    .step-card,
    .testimonial-card {
        padding: 28px;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-stat-number {
        font-size: 24px;
    }

    .showcase-word {
        font-size: 36px;
    }
}

/* ─── Light Mobile Nav ─── */
@media (max-width: 768px) {
    [data-theme="light"] .nav-links {
        background: rgba(248, 247, 252, 0.95);
    }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   SUBPAGE STYLES
   ═══════════════════════════════════════════════════════════ */

/* ─── Page Header ─── */
.page-header {
    position: relative;
    z-index: 1;
    padding: 180px 0 60px;
    text-align: center;
}

.page-header-content {
    max-width: 680px;
    margin: 0 auto;
}

.page-header-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.page-header-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--brand-light), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header-title em.text-brand {
    background: none;
    -webkit-text-fill-color: var(--text-brand);
    color: var(--text-brand);
}

.page-header-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Feature Card Detailed ─── */
.feature-card--detailed .feature-desc {
    margin-bottom: 20px;
}

.feature-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    gap: 10px;
}

.feature-details-list li {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.feature-details-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: 700;
}

/* ─── Steps Vertical (How It Works page) ─── */
.steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step-card-detailed {
    display: flex;
    gap: 40px;
    padding: 48px;
    align-items: flex-start;
}

.step-card-left {
    flex-shrink: 0;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.step-number--1 {
    background: linear-gradient(135deg, var(--brand), #9333EA);
}

.step-number--2 {
    background: linear-gradient(135deg, var(--accent-teal), #06B6D4);
}

.step-number--3 {
    background: linear-gradient(135deg, var(--accent-gold), #EF4444);
}

.step-title-lg {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-desc-lg {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.step-desc-lg kbd {
    font-family: var(--font-mono);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    color: var(--text-brand);
}

.step-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.step-highlight {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text-secondary);
}

/* ─── Showcase Page ─── */
.showcase-page {
    position: relative;
    z-index: 1;
    padding: 40px 0 80px;
}

.showcase-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.showcase-card {
    padding: 36px;
}

.showcase-word {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.showcase-phonetic {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-brand);
    margin-bottom: 4px;
}

.showcase-pos {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.showcase-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--brand), transparent);
    margin-bottom: 16px;
    opacity: 0.3;
}

.showcase-def {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.showcase-example {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.08);
    border-left: 3px solid var(--brand);
}

.showcase-features-section {
    padding: 48px;
}

.showcase-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.showcase-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.check-icon {
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ─── Testimonials Page Grid ─── */
.testimonials-grid--page {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ─── Section More ─── */
.section-more {
    text-align: center;
    margin-top: 48px;
}

/* ─── Mobile for Subpages ─── */
@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 40px;
    }

    .step-card-detailed {
        flex-direction: column;
        gap: 20px;
        padding: 32px;
    }

    .showcase-cards-grid {
        grid-template-columns: 1fr;
    }

    .showcase-features-section {
        padding: 32px;
    }

    .showcase-features-grid {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .nav-actions .nav-cta {
        display: none;
    }
}

/* ─── Smooth Theme Transition ─── */
html[data-theme] {
    transition: background-color 0.4s ease, color 0.3s ease;
}

html[data-theme] body {
    transition: background-color 0.4s ease, color 0.3s ease;
}

.glass-card,
.nav,
.nav.scrolled,
.footer,
.btn-primary,
.btn-secondary,
.feature-icon,
.feature-tag,
.cta-box,
.hero-badge,
.hero-float {
    transition: background 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}