@charset "UTF-8";

/* ============================================================
   PK Khmer Type — Launch Architecture Stylesheet
   ============================================================ */

:root {
  color-scheme: dark;
  --page: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --paper: #070b14;
  --paper-soft: #0c1220;
  --white: #111a2c;
  --ink: #f3f7fd;
  --ink-soft: #b8c7dc;
  --muted: #8292ab;
  --rule: #1e2c42;
  --gold: #ffd166;
  --gold-dim: #e6b94e;
  --gold-bright: #ffd166;
  --signal: #5de9d5;
  --signal-strong: #20cab8;
  --ember: #ffa36e;
  --stone-1: #101422;
  --stone-2: #151b2e;
  --stone-3: #1f2742;
  --stone-edge: #060912;
  --surface: #0e1524;
  --surface-raised: #141f33;
  --font-serif: 'Noto Serif Khmer', Georgia, serif;
  --font-sans: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-khmer: 'Kantumruy Pro', 'Noto Sans Khmer', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-motion *,
body.no-motion *::before,
body.no-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--gold);
  color: #0c0f18;
  font-weight: 700;
  font-size: 13px;
  z-index: 100;
  border-radius: 6px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 14px;
}

.section-shell {
  width: min(var(--page), calc(100% - 64px));
  margin-inline: auto;
}

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

/* ---------- Header ---------- */
.site-header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(32px, calc((100% - var(--page)) / 2));
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.3), 0 0 16px rgba(255, 209, 102, 0.18);
}

.brand-khmer {
  font-family: var(--font-khmer);
  color: var(--gold);
  font-weight: 600;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(93, 233, 213, 0.12);
  border: 1px solid rgba(93, 233, 213, 0.35);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 12px var(--signal); }
}

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

.nav-links a {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color .18s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
  padding: 8px 16px;
  border-radius: 999px;
  color: #070d18;
  background: linear-gradient(135deg, var(--gold), #ffb84d);
  box-shadow: 0 4px 14px rgba(255, 209, 102, 0.22);
  transition: transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.35);
}

.nav-cta svg {
  transition: transform .18s ease;
}

.nav-cta:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 680px;
  padding-top: 76px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 46px;
  position: relative;
}

.hero-copy {
  padding: 10px 0;
}

/* ---------- Hero Announcement Pill ---------- */
.hero-announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 23, 40, 0.85);
  border: 1px solid rgba(255, 209, 102, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 209, 102, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform .22s var(--ease), border-color .22s ease, box-shadow .22s ease;
  user-select: none;
}

.hero-announcement-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 233, 213, 0.6);
  box-shadow: 0 6px 25px rgba(93, 233, 213, 0.22);
}

.pill-radar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: radar-ping 1.8s infinite ease-out;
}

@keyframes radar-ping {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(93, 233, 213, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(93, 233, 213, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(93, 233, 213, 0); }
}

.pill-title {
  color: var(--gold);
  font-weight: 750;
}

.pill-divider {
  color: rgba(255, 255, 255, 0.25);
}

.pill-desc {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 10px;
}

.pill-arrow {
  color: var(--signal);
  transition: transform .2s ease;
}

.hero-announcement-pill:hover .pill-arrow {
  transform: translateX(3px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-mark {
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--signal));
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
  border-radius: 1px;
}

.hero h1 {
  font-size: clamp(44px, 5.2vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin: 0;
}

.hero h1 span {
  color: var(--gold);
  background: linear-gradient(110deg, #ffd166 10%, #ffeaa7 50%, #5de9d5 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-shimmer {
  background: linear-gradient(90deg, #ffd166 0%, #fff7d6 20%, #5de9d5 40%, #ffd166 60%, #ffa36e 80%, #ffd166 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: text-shimmer 6s linear infinite !important;
}

@keyframes text-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-lede {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold), #ffb84d);
  color: #070d18;
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.25);
}

.button-primary:hover {
  box-shadow: 0 8px 26px rgba(255, 209, 102, 0.4);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(93, 233, 213, 0.4);
  color: #ffffff;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.stat-chip svg {
  color: var(--gold);
}

/* ---------- Hero Visual / Mockup ---------- */
.hero-visual {
  margin: 0;
  position: relative;
  border-radius: 20px;
  background: linear-gradient(150deg, #12192b, #090e19);
  padding: 12px;
  border: 1px solid rgba(255, 209, 102, 0.25);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 45px rgba(255, 209, 102, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  perspective: 1000px;
}

.visual-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- Hero Board Wrap (App Keyboard Authentic Replica) ---------- */
.hero-image-wrap {
  position: relative;
  border-radius: 16px;
  background: transparent;
}

.hero-board-wrap.board-wrap {
  max-width: 100%;
  margin: 0;
  padding: 18px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  box-shadow:
    0 24px 65px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(255, 209, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-board-wrap .chassis-deck-id {
  font-size: 0.78rem;
}

/* Chassis Audio Equalizer */
.chassis-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

.eq-bar {
  width: 2.5px;
  border-radius: 1px;
  background: var(--signal);
  box-shadow: 0 0 6px var(--signal);
}

.eq-bar:nth-child(1) { height: 4px; animation: eq-dance 0.85s ease-in-out infinite alternate; }
.eq-bar:nth-child(2) { height: 9px; animation: eq-dance 0.65s ease-in-out infinite alternate 0.15s; }
.eq-bar:nth-child(3) { height: 6px; animation: eq-dance 0.75s ease-in-out infinite alternate 0.3s; }
.eq-bar:nth-child(4) { height: 11px; animation: eq-dance 0.95s ease-in-out infinite alternate 0.1s; }

@keyframes eq-dance {
  0% { height: 3px; opacity: 0.6; }
  50% { height: 12px; opacity: 1; }
  100% { height: 5px; opacity: 0.75; }
}

@keyframes bp-key-wave {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3.5px); border-color: var(--signal); color: #fff; box-shadow: 0 0 8px rgba(93, 233, 213, 0.4); }
  100% { transform: translateY(0); }
}

.vector-matrix-card {
  position: relative;
  overflow: hidden;
}

.vector-matrix-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(93, 233, 213, 0.9), transparent);
  box-shadow: 0 0 14px rgba(93, 233, 213, 0.7);
  top: 0;
  animation: laser-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes laser-sweep {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero-board-wrap .chassis-actions {
  gap: 6px;
}

.hero-board-wrap .chassis-dash-btn,
.hero-board-wrap .chassis-docs-btn,
.hero-board-wrap .chassis-3d-btn {
  padding: 4px 9px;
  font-size: 0.68rem;
}

.hero-board-wrap .keyboard {
  gap: 5px;
}

.hero-board-wrap .row {
  gap: 5px;
}

.hero-board-wrap .key {
  height: clamp(36px, 3.8vw, 48px);
  font-size: clamp(0.85rem, 1.1vw, 1.02rem);
  border-radius: 7px;
  border-bottom-width: 2.5px;
}

.hero-board-wrap .key .shift-badge {
  font-size: clamp(0.52rem, 0.65vw, 0.62rem);
  top: 2.5px;
  right: 3.5px;
}

.hero-board-wrap .key.space {
  gap: 8px;
}

.hero-board-wrap .key.space .space-glyph {
  font-size: 1.15rem;
}

.hero-board-wrap .key-inspector-hud {
  padding: 8px 14px;
  margin-top: 10px;
}

.hero-board-wrap .inspector-glyph-box {
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
}

.hero-board-wrap .inspector-code {
  font-size: 0.64rem;
}

.hero-board-wrap .inspector-name {
  font-size: 0.8rem;
}

.hero-board-wrap .inspector-chip {
  font-size: 0.64rem;
  padding: 3px 8px;
}

.hero-board-wrap .keyboard-footnote {
  margin-top: 8px;
  font-size: 0.72rem;
}

.visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px 4px;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-caption-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: all .16s ease;
}

.hero-caption-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-caption-tab.is-active {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.38);
  color: var(--gold);
}

.hero-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Intro Band / Layout Previews ---------- */
.intro-band {
  background: var(--paper-soft);
  border-block: 1px solid var(--rule);
  padding: 80px 0 88px;
  position: relative;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-heading h2 {
  font-size: clamp(34px, 4.4vw, 50px);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

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

.layout-card {
  border-radius: 16px;
  background: linear-gradient(150deg, #111a2d, #0b111e);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.layout-card:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 233, 213, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(93, 233, 213, 0.12);
}

/* ---------- Layout Card Blueprints (Miniature Mechanical Blueprints) ---------- */
.layout-card-blueprint {
  border-radius: 10px;
  background: radial-gradient(circle at 50% 25%, #131c2e, #070b14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform .24s ease, border-color .24s ease;
}

.layout-card:hover .layout-card-blueprint {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.35);
}

.layout-card:hover .layout-card-blueprint.bp-nida {
  border-color: rgba(56, 189, 248, 0.45);
}

.layout-card:hover .layout-card-blueprint.bp-english {
  border-color: rgba(52, 211, 153, 0.45);
}

.blueprint-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bp-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.bp-pill {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1.5px 6px;
  border-radius: 4px;
}

.bp-gold {
  background: rgba(255, 209, 102, 0.14);
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.bp-cyan {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.bp-emerald {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.bp-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}

.bp-row {
  display: flex;
  gap: 3px;
  width: 100%;
}

.bp-key {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #172133;
  border-radius: 3.5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.6);
  font-family: var(--font-khmer), var(--font-ui), sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  user-select: none;
  transition: all .12s ease;
}

.bp-key.bp-mod {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #64748b;
  background: #0f1724;
}

.bp-key.bp-homing {
  background: #252b1b;
  color: #fde047;
  border-color: rgba(255, 209, 102, 0.5);
  font-weight: 700;
  box-shadow: 0 0 6px rgba(255, 209, 102, 0.25);
}

.bp-nida .bp-key.bp-homing {
  background: #102636;
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.25);
}

.bp-english .bp-key.bp-homing {
  background: #0d2822;
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.25);
}

.bp-key.bp-coeng {
  background: #162a3f;
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.6);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.bp-space-row {
  margin-top: 2px;
}

.bp-space {
  flex: 6;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  gap: 5px;
}

.bp-space-gold {
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.08);
}

.space-coeng-glyph {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.bp-space-cyan {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.bp-space-emerald {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.blueprint-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bp-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.layout-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.layout-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.layout-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.28);
}

.layout-card-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.layout-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d6e4f7;
  cursor: pointer;
  transition: all .18s ease;
}

.layout-card-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #080d17;
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.3);
}

/* ---------- Keyboard Deck Section ---------- */
.keyboard-section {
  padding: 96px 0 100px;
  position: relative;
}

.deck-controls-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.layout-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 21, 35, 0.85);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.layout-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}

.layout-tab svg {
  color: var(--muted);
}

.layout-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.layout-tab.is-active {
  background: linear-gradient(135deg, var(--gold), #ffb84d);
  color: #070d18;
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.28);
}

.layout-tab.is-active svg {
  color: #070d18;
}

.deck-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.layer-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(14, 21, 35, 0.85);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.layer-tab {
  border: none;
  background: transparent;
  padding: 7px 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}

.layer-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.layer-tab.is-active {
  background: rgba(93, 233, 213, 0.16);
  color: var(--signal);
  border: 1px solid rgba(93, 233, 213, 0.4);
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(14, 21, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}

.sound-toggle-btn:hover {
  border-color: rgba(255, 209, 102, 0.35);
  color: #ffffff;
}

.sound-toggle-btn.is-active {
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.35);
}

.sound-toggle-btn svg {
  color: inherit;
}

/* ---------- Feature Section ---------- */
.feature-section {
  padding: 96px 0 100px;
  background: var(--paper-soft);
  border-block: 1px solid var(--rule);
}

.feature-row {
  display: grid;
  grid-template-columns: 0.35fr 1fr 1.25fr;
  gap: 36px;
  align-items: center;
  padding: 38px 0;
  border-top: 1px solid var(--rule);
}

.feature-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-mono);
  align-self: start;
}

.feature-number span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-top: 4px;
}

.feature-copy h3 {
  font-size: clamp(24px, 2.7vw, 34px);
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.feature-copy p {
  margin: 14px 0 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 650;
  transition: gap .18s ease;
}

.inline-link:hover {
  gap: 9px;
  color: #ffeaa7;
}

.feature-image-frame {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #080d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.feature-image-frame figcaption {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: #0a0f1b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Feature 01: Modifier Matrix */
.vector-matrix-card {
  padding: 18px 20px;
  background: radial-gradient(circle at 75% 30%, #152238, #070b14);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.matrix-card-header,
.curriculum-topline,
.telemetry-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.mch-title,
.c-title,
.t-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e2e8f0;
}

.mch-badge,
.c-badge,
.t-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.matrix-layers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.matrix-layer-row {
  display: grid;
  grid-template-columns: 60px 1.2fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all .16s ease;
}

.matrix-layer-row:hover,
.matrix-layer-row.is-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 209, 102, 0.3);
}

.ml-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 3px 6px;
  border-radius: 4px;
}

.ml-base { background: #1e293b; color: #94a3b8; border: 1px solid rgba(255, 255, 255, 0.1); }
.ml-shift { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.ml-altgr { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.ml-coeng { background: rgba(255, 209, 102, 0.15); color: var(--gold); border: 1px solid rgba(255, 209, 102, 0.35); }

.ml-desc {
  font-size: 11.5px;
  color: #94a3b8;
}

.ml-samples {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.ml-glyph {
  font-family: var(--font-khmer), var(--font-ui), sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.ml-glyph.hl {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Feature 02: Curriculum Stages Track */
.vector-curriculum-card {
  padding: 18px 20px;
  background: radial-gradient(circle at 25% 30%, #152238, #070b14);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curriculum-stages-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stage-step.is-complete {
  border-color: rgba(52, 211, 153, 0.25);
}

.stage-step.is-active {
  background: rgba(255, 209, 102, 0.06);
  border-color: rgba(255, 209, 102, 0.35);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  width: 22px;
}

.step-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-name {
  font-size: 12.5px;
  font-weight: 650;
  color: #f1f5f9;
}

.step-keys {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-khmer), var(--font-ui), sans-serif;
}

.step-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

.step-tag.live {
  background: rgba(255, 209, 102, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.35);
}

/* Feature 03: Telemetry Matrix HUD */
.vector-telemetry-card {
  padding: 18px 20px;
  background: radial-gradient(circle at 50% 30%, #152238, #070b14);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.telemetry-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-panel {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.panel-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #34d399;
}

.panel-val.gold {
  color: var(--gold);
  font-size: 14px;
}

.panel-val .delta {
  font-size: 10px;
  color: #f87171;
  margin-left: 6px;
}

.panel-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin: 2px 0;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #10b981);
}

.panel-sub {
  font-size: 9.5px;
  color: #94a3b8;
}

.finger-heat-row {
  display: flex;
  gap: 3px;
  margin: 2px 0;
}

.fh-pip {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  padding: 3px 0;
  border-radius: 3px;
  background: #1e293b;
  color: #94a3b8;
}

.fh-pip.hot {
  background: rgba(255, 209, 102, 0.25);
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.4);
}

.sparkline-wrap {
  height: 28px;
  display: flex;
  align-items: center;
}

.sparkline-svg {
  width: 100%;
  height: 28px;
}

.feature-row-reverse {
  grid-template-columns: 0.35fr 1.25fr 1fr;
}

.feature-row-reverse .feature-image-frame {
  order: 2;
}

.feature-row-reverse .feature-copy {
  order: 3;
}

.feature-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.practice-tile {
  background: linear-gradient(145deg, #121c2d, #0d1522);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .2s ease, border-color .2s ease;
}

.practice-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 233, 213, 0.35);
}

.tile-icon {
  color: var(--gold);
  margin-bottom: 4px;
}

.practice-tile strong {
  font-size: 13px;
  color: var(--ink);
}

.practice-tile span {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Learning Section ---------- */
.learning-section {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.learning-copy {
  position: sticky;
  top: 110px;
}

.learning-copy h2 {
  font-size: clamp(38px, 4.8vw, 56px);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.learning-copy p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 20px 0 26px;
}

.learning-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.learning-step {
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  padding-top: 2px;
}

.learning-step h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
}

.learning-step p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.step-check {
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 4px;
}

/* ---------- Practice Starter Drill ---------- */
.practice-section {
  padding: 96px 0 100px;
  background: var(--paper-soft);
  border-block: 1px solid var(--rule);
}

.practice-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.practice-copy h2 {
  font-size: clamp(36px, 4.5vw, 52px);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.practice-copy p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  margin: 18px 0 24px;
}

.practice-layouts {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.practice-layout {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .16s ease;
}

.practice-layout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.practice-layout.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #070d18;
  font-weight: 700;
}

.practice-card {
  background: linear-gradient(150deg, #101828, #0a0f1b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.practice-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.practice-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pct-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: pulse-dot 2s infinite ease-in-out;
}

.practice-card-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.practice-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.3);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.practice-streak-badge.streak-hot {
  background: rgba(255, 209, 102, 0.22);
  border-color: rgba(255, 209, 102, 0.6);
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.4);
  animation: streak-glow 1.4s ease-in-out infinite alternate;
}

@keyframes streak-glow {
  0% { transform: scale(0.98); box-shadow: 0 0 8px rgba(255, 209, 102, 0.3); }
  100% { transform: scale(1.04); box-shadow: 0 0 16px rgba(255, 209, 102, 0.6); }
}

.practice-progress-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.prompt-label {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.exercise-prompt {
  min-height: 48px;
  font-family: var(--font-khmer);
  font-size: 26px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--muted);
  word-break: break-word;
  user-select: none;
}

.exercise-prompt .done {
  color: var(--signal);
}

.exercise-prompt .current {
  color: #070d18;
  background: var(--gold);
  border-radius: 4px;
  padding: 0 4px;
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.4);
}

.exercise-entry {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #080d16;
  border-radius: 8px;
  font-family: var(--font-khmer);
  font-size: 16px;
  color: #ffffff;
  cursor: text;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.exercise-entry:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 2px rgba(93, 233, 213, 0.2), 0 0 20px rgba(93, 233, 213, 0.1);
}

.entry-placeholder {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
}

.exercise-feedback {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 10px;
}

.exercise-feedback .is-error {
  color: #ff8595;
}

.exercise-feedback .is-success {
  color: var(--signal);
}

.exercise-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: 12px;
}

.reset-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 4px 0;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .16s ease;
}

.reset-button:hover {
  color: var(--ink);
}

.practice-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 650;
}

.practice-next:hover {
  color: #ffeaa7;
}

/* ---------- Comparison Section ---------- */
.comparison-section {
  padding: 96px 0 100px;
}

.comparison-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.comparison-heading h2 {
  font-size: clamp(34px, 4.4vw, 50px);
  margin: 0;
  letter-spacing: -0.04em;
}

.comparison-heading p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0 0;
}

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #0b111e;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  min-width: 680px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
}

.comparison-table thead th {
  background: #111a2d;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.comparison-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 28%;
}

.comparison-table td {
  color: var(--ink-soft);
}

.comparison-table .table-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--signal);
  font-weight: 600;
}

.comparison-table .table-check svg {
  color: var(--gold);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-note {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin: 12px 4px 0;
}

/* ---------- Philosophy Section ---------- */
.philosophy-section {
  background: var(--paper-soft);
  border-block: 1px solid var(--rule);
  padding: 86px 0 92px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr 0.45fr;
  gap: 36px;
  align-items: center;
}

.philosophy-copy h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.philosophy-copy p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 18px 0 0;
}

.philosophy-note {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 14px;
  font-size: 12px;
  color: var(--gold);
  margin-top: 18px;
}

.philosophy-mark {
  margin: 0;
  text-align: center;
}

.philosophy-mark img {
  display: block;
  margin: 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.35), 0 0 35px rgba(255, 209, 102, 0.2);
}

.philosophy-mark figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ---------- Final CTA ---------- */
.final-cta {
  width: 100%;
  max-width: none;
  background:
    radial-gradient(ellipse 45rem 25rem at 85% 50%, rgba(93, 233, 213, 0.12), transparent 75%),
    linear-gradient(115deg, #101a2d, #080e19 75%);
  border-top: 1px solid var(--rule);
  color: #fff;
  min-height: 380px;
  padding: 72px max(32px, calc((100% - var(--page)) / 2));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.final-inner {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.final-inner h2 {
  font-size: clamp(40px, 5.6vw, 68px);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.final-inner p:not(.eyebrow) {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 500px;
  line-height: 1.75;
  margin: 18px 0 26px;
}

.final-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.final-glyph {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-family: var(--font-khmer);
  font-size: clamp(80px, 14vw, 170px);
  opacity: 0.05;
  letter-spacing: 0.2em;
  pointer-events: none;
  user-select: none;
}

/* ---------- Page Footer ---------- */
.page-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.footer-brand {
  font-size: 13px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.page-footer p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-size: 11.5px;
  color: var(--ink-soft);
  transition: color .18s ease;
}

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

/* ---------- Motion Toggle & Reveal Observer ---------- */
.motion-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  background: rgba(14, 21, 35, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transition: all .18s ease;
}

.motion-toggle:hover {
  border-color: var(--gold);
  color: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 960px) {
  .section-shell {
    width: calc(100% - 44px);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 60px;
  }
  .layout-preview-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
  .feature-image-frame,
  .feature-tiles-grid {
    grid-column: 2;
    margin-top: 8px;
  }
  .feature-row-reverse .feature-image-frame {
    order: 3;
  }
  .learning-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .learning-copy {
    position: static;
  }
  .practice-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .philosophy-mark {
    display: none;
  }
  .page-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .page-footer p {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: clamp(38px, 10vw, 48px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .button {
    justify-content: center;
  }
  .deck-controls-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .layout-tabs,
  .deck-actions-right {
    justify-content: center;
  }
  .hero-mech-keyboard {
    padding: 8px 6px;
    gap: 4px;
    overflow-x: auto;
  }
  .mech-row {
    gap: 3px;
    min-width: 500px;
  }
  .mech-key {
    height: 32px;
  }
  .mech-key .mk-main {
    font-size: 11px;
  }
  .mech-key .mk-sub {
    font-size: 7px;
  }
  .layout-card-blueprint {
    overflow-x: auto;
  }
  .bp-grid {
    min-width: 360px;
  }
  .matrix-layer-row {
    grid-template-columns: 50px 1fr;
    gap: 8px;
  }
  .ml-samples {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .telemetry-dash-grid {
    grid-template-columns: 1fr;
  }
}
