/* ============================================================
   Landing Page — Redesign
   Typography: Syne / Outfit / JetBrains Mono
   Palette: Midnight indigo + electric coral + cool cyan
   ============================================================ */

/* --- Landing Custom Properties --- */
body.landing-page {
    --l-bg: #080a18;
    --l-surface: #0e1129;
    --l-surface-2: #151937;
    --l-surface-3: #1c2045;
    --l-accent: #2bb8e6;
    --l-accent-dim: rgba(43, 184, 230, 0.15);
    --l-accent-glow: rgba(43, 184, 230, 0.35);
    --l-green: #8cc63f;
    --l-green-dim: rgba(140, 198, 63, 0.15);
    --l-charcoal: #5e6874;
    --l-text: #eae8e3;
    --l-text-mid: #9a9eb8;
    --l-text-dim: #5c6080;
    --l-border: rgba(255, 255, 255, 0.06);
    --l-border-hover: rgba(255, 255, 255, 0.14);
    --l-radius: 12px;
    --l-radius-lg: 20px;
    --l-glow: 0 0 40px rgba(43, 184, 230, 0.08);

    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--l-bg);
    color: var(--l-text);
}

html.light body.landing-page {
    --l-bg: #f7f6f3;
    --l-surface: #ffffff;
    --l-surface-2: #f0efec;
    --l-surface-3: #e6e5e0;
    --l-text: #1a1c2b;
    --l-text-mid: #5a5d72;
    --l-text-dim: #8b8ea5;
    --l-border: rgba(0, 0, 0, 0.08);
    --l-border-hover: rgba(0, 0, 0, 0.15);
    --l-glow: 0 0 40px rgba(43, 184, 230, 0.06);
}

/* --- Grid Overlay (subtle atmosphere) --- */
body.landing-page::after {
    content: '';
    position: fixed;
    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: 64px 64px;
    pointer-events: none;
    z-index: 0;
}

html.light body.landing-page::after {
    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);
}

body.landing-page > * {
    position: relative;
    z-index: 1;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.40s; }
.stagger > .reveal:nth-child(7) { transition-delay: 0.48s; }
.stagger > .reveal:nth-child(8) { transition-delay: 0.56s; }
.stagger > .reveal:nth-child(9) { transition-delay: 0.64s; }
.stagger > .reveal:nth-child(10) { transition-delay: 0.72s; }
.stagger > .reveal:nth-child(11) { transition-delay: 0.80s; }
.stagger > .reveal:nth-child(12) { transition-delay: 0.88s; }

/* --- Hero Entrance --- */
@keyframes heroUp {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-anim {
    opacity: 0;
    animation: heroUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.25s; }
.hero-anim-3 { animation-delay: 0.4s; }
.hero-anim-4 { animation-delay: 0.55s; }
.hero-anim-5 { animation-delay: 0.7s; }

/* --- Nav (landing override) --- */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 10, 24, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--l-border);
}

html.light .landing-nav {
    background: rgba(247, 246, 243, 0.85);
}

/* ===========================
   HERO
   =========================== */
.l-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

/* Mesh gradient background */
.l-hero::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 70% 50% at 25% 35%, rgba(43, 184, 230, 0.12), transparent),
        radial-gradient(ellipse 50% 70% at 75% 25%, rgba(140, 198, 63, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 50% 85%, rgba(43, 184, 230, 0.06), transparent);
    animation: meshDrift 22s ease-in-out infinite alternate;
    z-index: 0;
}

html.light .l-hero::before {
    background:
        radial-gradient(ellipse 70% 50% at 25% 35%, rgba(43, 184, 230, 0.06), transparent),
        radial-gradient(ellipse 50% 70% at 75% 25%, rgba(140, 198, 63, 0.04), transparent),
        radial-gradient(ellipse 60% 40% at 50% 85%, rgba(43, 184, 230, 0.03), transparent);
}

@keyframes meshDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3%, 2%) scale(1.04); }
    100% { transform: translate(2%, -1%) scale(1); }
}

.l-hero > * {
    position: relative;
    z-index: 1;
}

.l-hero-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--l-text);
    max-width: 780px;
    margin-bottom: 1.5rem;
}

.l-hero-headline .accent {
    color: var(--l-accent);
}

.l-hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--l-text-mid);
    max-width: 600px;
    line-height: 1.65;
    margin-bottom: 2.25rem;
}

.l-hero-cta {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.l-hero-note {
    font-size: 0.8125rem;
    color: var(--l-text-dim);
    margin-bottom: 3rem;
}

/* CTA Buttons */
.l-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.l-btn:hover {
    text-decoration: none;
}

.l-btn-primary {
    background: var(--l-accent);
    color: #fff;
    box-shadow: 0 4px 24px rgba(43, 184, 230, 0.25);
}

.l-btn-primary:hover {
    background: #3dc4ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(43, 184, 230, 0.35);
    color: #fff;
}

.l-btn-outline {
    background: transparent;
    color: var(--l-text);
    border: 1.5px solid var(--l-border-hover);
}

.l-btn-outline:hover {
    border-color: var(--l-accent);
    color: var(--l-accent);
    transform: translateY(-2px);
}

.l-btn-ghost {
    background: transparent;
    color: var(--l-text-mid);
}

.l-btn-ghost:hover {
    color: var(--l-accent);
}

/* Hero Screenshot */
.l-hero-screenshot {
    max-width: 860px;
    width: 100%;
    perspective: 1200px;
}

.l-hero-screenshot .l-browser {
    transform: rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.l-hero-screenshot:hover .l-browser {
    transform: rotateX(0deg);
}

/* Browser Frame */
.l-browser {
    border-radius: var(--l-radius-lg);
    overflow: hidden;
    border: 1px solid var(--l-border-hover);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.l-browser-chrome {
    background: #1e1e2e;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

html.light .l-browser-chrome {
    background: #e8e8ed;
}

.l-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.l-browser-dot:nth-child(1) { background: #ff5f56; }
.l-browser-dot:nth-child(2) { background: #ffbd2e; }
.l-browser-dot:nth-child(3) { background: #27c93f; }

.l-browser img {
    display: block;
    width: 100%;
}

/* ===========================
   STATS BAR
   =========================== */
.l-stats {
    padding: 3rem 0;
    border-bottom: 1px solid var(--l-border);
}

.l-stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.l-stat {
    text-align: center;
}

.l-stat-number {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--l-accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.l-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--l-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===========================
   SHARED SECTION STYLES
   =========================== */
.l-section {
    padding: 5.5rem 0;
    position: relative;
}

.l-section-alt {
    background: var(--l-surface);
}

.l-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--l-text);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.l-section-sub {
    font-size: 1.0625rem;
    color: var(--l-text-mid);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3rem;
    line-height: 1.65;
}

/* Gradient divider between sections */
.l-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--l-border-hover), transparent);
}

/* ===========================
   TOOLS SECTION
   =========================== */
.l-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.l-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.l-tool-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--l-accent-dim), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.l-tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(43, 184, 230, 0.25);
    box-shadow: var(--l-glow);
}

.l-tool-card:hover::before {
    opacity: 1;
}

.l-tool-icon {
    color: var(--l-accent);
    margin-bottom: 0.625rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.l-tool-card:hover .l-tool-icon {
    color: var(--l-green);
}

.l-tool-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--l-text);
}

/* Tools Split */
.l-tools-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.l-tools-split-text h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--l-text);
    margin-bottom: 0.875rem;
}

.l-tools-split-text p {
    font-size: 0.9375rem;
    color: var(--l-text-mid);
    line-height: 1.7;
}

/* Placeholder for missing screenshots */
.l-placeholder {
    background: var(--l-surface-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    aspect-ratio: 16 / 9;
    color: var(--l-text-dim);
}

.l-placeholder svg {
    opacity: 0.3;
    margin-bottom: 0.75rem;
}

.l-placeholder-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ===========================
   TRY TOOLS
   =========================== */
.l-try-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 920px;
    margin: 0 auto 1.75rem;
}

.l-try-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.l-try-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--l-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.l-try-card:hover {
    border-color: var(--l-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.l-try-card:hover::after {
    opacity: 1;
}

.l-try-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--l-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.l-try-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.l-try-text {
    min-width: 0;
}

.l-try-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--l-text);
    line-height: 1.2;
}

.l-try-cat {
    font-size: 0.75rem;
    color: var(--l-text-dim);
}

.l-try-arrow {
    margin-left: auto;
    color: var(--l-text-dim);
    font-size: 1.125rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.l-try-card:hover .l-try-arrow {
    color: var(--l-accent);
    transform: translateX(3px);
}

.l-try-more {
    text-align: center;
}

.l-try-more a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--l-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.l-try-more a:hover {
    text-decoration: underline;
}

/* ===========================
   PORTFOLIOS
   =========================== */
.l-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 3rem;
    max-width: 820px;
    margin: 0 auto;
}

.l-portfolio-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.l-portfolio-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--l-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.l-portfolio-check svg {
    width: 13px;
    height: 13px;
}

.l-portfolio-item strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--l-text);
    margin-bottom: 0.2rem;
}

.l-portfolio-item span {
    font-size: 0.8125rem;
    color: var(--l-text-mid);
    line-height: 1.5;
}

/* ===========================
   DISCOVERIES + DEMOS
   =========================== */
.l-disc-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.l-disc-intro .l-section-title {
    text-align: left;
    margin-left: 0;
}

.l-disc-intro p {
    font-size: 1.0625rem;
    color: var(--l-text-mid);
    line-height: 1.65;
}

.l-disc-demos {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.l-demo-card {
    display: flex;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius-lg);
    overflow: hidden;
}

.l-demo-card.reverse {
    flex-direction: row-reverse;
}

.l-demo-card.full-width {
    flex-direction: column;
}

.demo-visual {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.demo-text {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-text strong {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--l-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.demo-text span {
    font-size: 0.9375rem;
    color: var(--l-text-mid);
    line-height: 1.65;
}

/* Canvas demos */
.demo-canvas-wrap {
    position: relative;
    border-radius: var(--l-radius);
    overflow: hidden;
    background: #0d1117;
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.demo-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
}

.demo-hud {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #22c55e;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
}

/* Easing Race */
.demo-race-tracks {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-race-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-race-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--l-text-dim);
    width: 60px;
    text-align: right;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

.demo-race-lane {
    flex: 1;
    height: 24px;
    background: var(--l-surface-2);
    border: 1px solid var(--l-border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.demo-race-ball {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: none;
}

/* Beat Grid */
.demo-beat-wrap {
    width: 100%;
    padding: 0.5rem;
}

.demo-beat-grid {
    display: grid;
    grid-template-columns: auto repeat(16, 1fr);
    gap: 3px;
    margin-bottom: 1rem;
}

.demo-beat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--l-text-dim);
    display: flex;
    align-items: center;
    padding-right: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.demo-beat-cell {
    aspect-ratio: 1;
    background: var(--l-surface-2);
    border: 1px solid var(--l-border);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
    min-width: 0;
}

.demo-beat-cell:hover {
    border-color: var(--l-accent);
}

.demo-beat-cell.active {
    background: var(--l-accent);
    border-color: var(--l-accent);
}

.demo-beat-cell.playing {
    box-shadow: 0 0 10px var(--l-accent-glow);
}

.demo-beat-cell.downbeat {
    border-left: 2px solid var(--l-text-dim);
}

/* Demo Buttons */
.demo-btn-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.demo-btn {
    padding: 0.4rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--l-accent);
    color: white;
    transition: all 0.2s ease;
}

.demo-btn:hover {
    background: #3dc4ef;
    box-shadow: 0 4px 16px rgba(43, 184, 230, 0.3);
}

.demo-btn-secondary {
    padding: 0.4rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: 1px solid var(--l-border-hover);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    color: var(--l-text-mid);
    transition: all 0.2s ease;
}

.demo-btn-secondary:hover {
    border-color: var(--l-accent);
    color: var(--l-accent);
}

/* Discovery links */
.l-disc-more {
    text-align: center;
    margin-bottom: 2rem;
}

.l-disc-more a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--l-accent);
    text-decoration: none;
}

.l-disc-more a:hover {
    text-decoration: underline;
}

.l-disc-outro {
    font-size: 1rem;
    color: var(--l-text-mid);
    line-height: 1.65;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ===========================
   TERMINAL
   =========================== */
.l-terminal-demo {
    max-width: 680px;
    margin: 0 auto 3rem;
    border-radius: var(--l-radius-lg);
    overflow: hidden;
    border: 1px solid var(--l-border-hover);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    position: relative;
}

.l-terminal-bar {
    background: #1e1e2e;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.l-terminal-dots {
    display: flex;
    gap: 0.375rem;
}

.l-terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.l-terminal-dots span:nth-child(1) { background: #ff5f56; }
.l-terminal-dots span:nth-child(2) { background: #ffbd2e; }
.l-terminal-dots span:nth-child(3) { background: #27c93f; }

.l-terminal-title {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.l-terminal-body {
    background: #0c0e1a;
    padding: 1.5rem 1.75rem;
    position: relative;
}

/* Subtle scan line effect */
.l-terminal-body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.008) 2px,
        rgba(255, 255, 255, 0.008) 4px
    );
    pointer-events: none;
}

.l-terminal-body pre {
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #c8cad8;
    white-space: pre;
    overflow-x: auto;
}

.terminal-prompt {
    color: var(--l-accent);
    font-weight: 700;
}

.terminal-dim {
    color: #4a4e69;
    font-style: italic;
}

.terminal-link {
    color: var(--l-green);
}

/* Terminal Features */
.l-terminal-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.l-terminal-feat {
    padding: 1.75rem;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.l-terminal-feat:hover {
    border-color: var(--l-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(43, 184, 230, 0.08);
}

.l-terminal-feat h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--l-text);
    margin-bottom: 0.5rem;
}

.l-terminal-feat p {
    font-size: 0.8125rem;
    color: var(--l-text-mid);
    line-height: 1.6;
}

.l-terminal-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--l-text);
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================
   EDUCATORS
   =========================== */
.l-educator-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.l-educator-card {
    padding: 2rem;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius-lg);
    border-top: 3px solid var(--l-accent);
    transition: all 0.3s ease;
}

.l-educator-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.l-educator-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--l-text);
    margin-bottom: 0.75rem;
}

.l-educator-card > p {
    font-size: 0.9375rem;
    color: var(--l-text-mid);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.l-educator-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.l-educator-list li {
    font-size: 0.8125rem;
    color: var(--l-text-mid);
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
}

.l-educator-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--l-accent);
}

/* Educator Screenshot Placeholder */
.l-educator-screenshot {
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/* Educator Funding */
.l-educator-funding {
    padding: 2rem;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius-lg);
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.l-educator-funding h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--l-text);
    margin-bottom: 0.75rem;
}

.l-educator-funding p {
    font-size: 0.9375rem;
    color: var(--l-text-mid);
    line-height: 1.65;
}

/* Educator Quote */
.l-educator-quote {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    border-left: 3px solid var(--l-accent);
    background: var(--l-surface);
    border-radius: 0 var(--l-radius-lg) var(--l-radius-lg) 0;
}

.l-educator-quote p {
    font-size: 1rem;
    color: var(--l-text-mid);
    line-height: 1.7;
    font-style: italic;
}

/* ===========================
   CHROMEBOOK
   =========================== */
.l-chrome-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.l-chrome-card {
    padding: 1.75rem;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.l-chrome-card:hover {
    border-color: var(--l-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(43, 184, 230, 0.06);
}

.l-chrome-card-icon {
    margin-bottom: 0.75rem;
    line-height: 1;
    color: var(--l-accent);
}

.l-chrome-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--l-text);
    margin-bottom: 0.5rem;
}

.l-chrome-card p {
    font-size: 0.8125rem;
    color: var(--l-text-mid);
    line-height: 1.6;
}

.l-chrome-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--l-text);
    text-align: center;
}

/* ===========================
   SAFETY
   =========================== */
.l-safety-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 3rem;
    max-width: 820px;
    margin: 0 auto 2rem;
}

.l-safety-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.l-safety-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--l-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.l-safety-icon svg {
    width: 14px;
    height: 14px;
}

.l-safety-item strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--l-text);
    margin-bottom: 0.2rem;
}

.l-safety-item span {
    font-size: 0.8125rem;
    color: var(--l-text-mid);
    line-height: 1.55;
}

.l-safety-note {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    font-size: 0.875rem;
    color: var(--l-text-dim);
    line-height: 1.6;
    font-style: italic;
}

/* ===========================
   HOW STUDENTS LEARN
   =========================== */
.l-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.l-how-pillar {
    padding: 2rem;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius-lg);
    position: relative;
    overflow: hidden;
}

.l-how-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--l-accent), var(--l-green));
}

.l-how-icon {
    color: var(--l-accent);
    margin-bottom: 1rem;
    line-height: 1;
}

.l-how-pillar h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--l-text);
    margin-bottom: 0.75rem;
}

.l-how-pillar p {
    font-size: 0.9375rem;
    color: var(--l-text-mid);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.l-how-note {
    display: block;
    font-size: 0.8125rem;
    color: var(--l-text-dim);
    font-style: italic;
}

.l-how-onboarding {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--l-text-dim);
    margin-top: 2.5rem;
}

/* ===========================
   MANIFESTO
   =========================== */
.l-manifesto-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--l-surface);
    border-radius: var(--l-radius-lg);
    border-left: 4px solid var(--l-accent);
    position: relative;
}

.l-manifesto-block::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    font-family: 'Plus Jakarta Sans', serif;
    color: var(--l-accent);
    opacity: 0.15;
    line-height: 1;
}

.l-manifesto-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--l-text);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.l-manifesto-body {
    font-size: 1.0625rem;
    color: var(--l-text-mid);
    line-height: 1.75;
}

/* ===========================
   BUILT BY
   =========================== */
.l-built-by {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.l-built-by-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--l-text-dim);
    margin-bottom: 0.5rem;
}

.l-built-by-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.l-built-by-name a {
    color: var(--l-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.l-built-by-name a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.l-built-by-desc {
    font-size: 0.9375rem;
    color: var(--l-text-mid);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.l-built-by-desc:last-of-type {
    margin-bottom: 1.5rem;
}

/* ===========================
   FINAL CTA
   =========================== */
.l-final-cta {
    text-align: center;
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
}

.l-final-cta::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse at center, var(--l-accent-dim), transparent 60%);
    z-index: 0;
}

.l-final-cta > * {
    position: relative;
    z-index: 1;
}

.l-final-cta h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--l-text);
    margin-bottom: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.l-final-cta p {
    font-size: 1rem;
    color: var(--l-text-mid);
    margin-bottom: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===========================
   FOOTER
   =========================== */
.l-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--l-border);
}

.l-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin-bottom: 0.875rem;
    flex-wrap: wrap;
}

.l-footer-links a {
    font-size: 0.8125rem;
    color: var(--l-text-mid);
    text-decoration: none;
    transition: color 0.2s;
}

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

.l-footer p {
    font-size: 0.8125rem;
    color: var(--l-text-dim);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .l-hero {
        min-height: auto;
        padding: 5rem 1.5rem 3rem;
    }

    .l-hero-headline {
        font-size: 1.875rem;
    }

    .l-stats-grid {
        gap: 2rem;
    }

    .l-stat-number {
        font-size: 2rem;
    }

    .l-section {
        padding: 4rem 0;
    }

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

    .l-tools-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .l-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .l-demo-card,
    .l-demo-card.reverse {
        flex-direction: column;
    }

    .demo-visual {
        padding: 1.25rem;
    }

    .demo-text {
        padding: 1.25rem;
    }

    .demo-race-label {
        width: 50px;
        font-size: 0.625rem;
    }

    .l-disc-intro .l-section-title {
        text-align: center;
    }

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

    .l-educator-cards {
        grid-template-columns: 1fr;
    }

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

    .l-safety-grid {
        grid-template-columns: 1fr;
    }

    .l-how-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .l-how-grid .l-how-pillar:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .l-manifesto-block {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .l-hero {
        padding: 3.5rem 1.25rem 2.5rem;
    }

    .l-hero-headline {
        font-size: 1.5rem;
    }

    .l-hero-sub {
        font-size: 1rem;
    }

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

    .l-section {
        padding: 3rem 0;
    }

    .l-section-title {
        font-size: 1.5rem;
    }

    .l-stats-grid {
        gap: 1.25rem;
    }

    .l-stat {
        min-width: 40%;
    }

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

    .l-try-grid {
        grid-template-columns: 1fr;
    }

    .demo-beat-grid {
        gap: 2px;
    }

    .demo-beat-label {
        font-size: 0.5625rem;
    }

    .demo-race-label {
        width: 40px;
        font-size: 0.5625rem;
    }

    .l-terminal-body {
        padding: 1rem 1.25rem;
    }

    .l-terminal-body pre {
        font-size: 0.75rem;
    }

    .l-terminal-features {
        grid-template-columns: 1fr;
    }

    .l-chrome-grid {
        grid-template-columns: 1fr;
    }

    .l-how-grid {
        grid-template-columns: 1fr;
    }

    .l-manifesto-block {
        padding: 1.5rem;
    }

    .l-manifesto-headline {
        font-size: 1.25rem;
    }

    .l-educator-quote {
        padding: 1.5rem;
    }
}
