@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  font-stretch: 75% 125%;
  src: url('assets/fonts/cd31765d.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  font-stretch: 75% 125%;
  src: url('assets/fonts/d47ab3c3.woff2') format('woff2-variations');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}

:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --bg-elevated: #0f1318;
  --surface: #13171d;
  --surface-2: #191f27;
  --surface-inset: #0d1014;
  --text: #f4f6f8;
  --text-secondary: #b8c1cc;
  --muted: #8e99a6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ffd45c;
  --accent-hover: #ffe285;
  --accent-soft: rgba(255, 212, 92, 0.12);
  --on-accent: #0f1215;
  --cyan: #5ce1e6;
  --cyan-soft: rgba(92, 225, 230, 0.12);
  --green: #6ee7b7;
  --green-soft: rgba(110, 231, 183, 0.12);
  --font-sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  font-family: var(--font-sans);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #3a414c var(--bg);
}

@supports selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  ::-webkit-scrollbar {
    width: 9px;
    height: 9px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg);
  }

  ::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #3a414c;
    background-clip: padding-box;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: #a18c4c;
  }

  ::-webkit-scrollbar-thumb:active {
    background-color: var(--accent);
  }

  ::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }

  ::-webkit-scrollbar-corner {
    background: transparent;
  }
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
video:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
ul {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  max-inline-size: 22ch;
}

h3 {
  font-size: clamp(21px, 2.2vw, 28px);
}

h4 {
  font-size: 18px;
  letter-spacing: -0.015em;
}

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

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.muted {
  color: var(--text-secondary);
  line-height: 1.75;
}

.mono-stat {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  z-index: 100;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 12, 15, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand img {
  border-radius: 7px;
  border: 1px solid var(--line-strong);
}

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

.navigation {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-secondary);
}

.navigation a {
  padding-block: 6px;
  transition: color 160ms ease;
}

.navigation a:hover,
.footer a:hover {
  color: var(--accent);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease;
}

.nav-cta .icon {
  width: 15px;
  height: 15px;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.language-switch {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  background: var(--surface);
}

.language-switch button {
  background: none;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  min-height: 28px;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease;
}

.language-switch button[aria-pressed='true'] {
  background: var(--surface-2);
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 18px;
  text-align: center;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 68% 45% at 50% 0%, rgba(255, 212, 92, 0.11), transparent 72%),
    radial-gradient(ellipse 52% 38% at 50% 62%, rgba(92, 225, 230, 0.08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
}

.hero-inner {
  position: relative;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.6;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(19, 23, 29, 0.85);
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.45);
}

h1 {
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 1.05;
  margin-top: 24px;
  letter-spacing: -0.05em;
  max-inline-size: 16ch;
  margin-inline: auto;
}

h1 span {
  display: block;
}

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

.hero-copy {
  max-width: 740px;
  margin: 22px auto 0;
  font-size: 18px;
  line-height: 1.72;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 28px -10px rgba(255, 212, 92, 0.5);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.28);
}

.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 160ms ease;
}

.source-link:hover {
  color: var(--accent);
}

.hero-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
  letter-spacing: 0.02em;
}

.watch-demos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  margin-top: 14px;
  padding: 6px 10px;
}

.watch-demos .icon {
  width: 15px;
  height: 15px;
}

.watch-demos:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* App Showcase Window */
.app-window {
  margin-top: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 14px 14px 0 0;
  position: relative;
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 24px 90px -28px rgba(0, 0, 0, 0.9),
    0 -14px 80px -40px rgba(255, 212, 92, 0.25);
}

.app-window::before {
  content: '';
  height: 2px;
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyan),
    var(--accent),
    var(--green),
    transparent
  );
  opacity: 0.85;
}

.window-top {
  height: 44px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 12px;
  color: var(--text-secondary);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-title strong {
  color: var(--text);
  font-weight: 800;
}

.window-path {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.window-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.window-mark span {
  color: var(--accent);
}

.screenshot-link {
  display: block;
  position: relative;
  cursor: zoom-in;
  background: var(--surface-inset);
}

.screenshot-link img {
  width: 100%;
}

.expand-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px;
  background: rgba(10, 12, 15, 0.88);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.screenshot-link:hover .expand-hint,
.screenshot-link:focus-visible .expand-hint {
  opacity: 1;
}

.expand-hint .icon {
  display: block;
  width: 15px;
  height: 15px;
}

.app-window figcaption {
  border-top: 1px solid var(--line);
  padding: 13px 18px;
  color: var(--muted);
  font-size: 12px;
  background: var(--bg-elevated);
}

/* Telemetry Spec Strip */
.telemetry-bar {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.telemetry-item {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.telemetry-item:last-child {
  border-right: 0;
}

.telemetry-item strong {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.telemetry-item span {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-secondary);
}

/* Shared Section Rhythm */
.section {
  padding-block: 96px;
}

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

.section-heading h2 {
  margin-top: 12px;
}

.section-heading > .muted {
  margin-top: 16px;
  max-width: 640px;
  font-size: 16px;
}

/* Supported Keyboards Grid */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.board-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.board-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.board-card-featured {
  border-color: rgba(255, 212, 92, 0.34);
  background: linear-gradient(180deg, rgba(255, 212, 92, 0.05) 0%, var(--surface) 45%);
}

.board-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-inset);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.chip-accent {
  border-color: rgba(255, 212, 92, 0.42);
  background: var(--accent-soft);
  color: var(--accent);
}

.chip-cyan {
  border-color: rgba(92, 225, 230, 0.42);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.proto-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.board-stage {
  margin-top: 16px;
  height: 136px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 65%, rgba(255, 255, 255, 0.05), transparent 72%),
    var(--surface-inset);
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.board-card h3 {
  font-size: 19px;
  margin-top: 18px;
  letter-spacing: -0.02em;
}

.board-specs {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.board-specs li {
  position: relative;
  padding-left: 14px;
}

.board-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.status-badge {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
  color: var(--green);
}

.board-callout {
  margin-top: 22px;
  padding: 26px 30px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.board-callout-copy h3 {
  font-size: 20px;
}

.board-callout-copy .muted {
  margin-top: 8px;
  font-size: 14px;
  max-width: 620px;
}

/* Video Demos */
.demos-section {
  padding-top: 32px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.video-demo {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
  scroll-margin-top: 88px;
}

.video-demo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #06080a;
  object-fit: contain;
}

.video-demo figcaption {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--line);
}

.demo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.demo-title h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.demo-title time {
  font-size: 11px;
  font-weight: 750;
  color: var(--accent);
  border: 1px solid rgba(255, 212, 92, 0.3);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 3px 8px;
}

.video-demo figcaption > p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 10px;
  color: var(--text-secondary);
}

/* Bento Feature Suite */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 180ms ease;
}

.bento-card:hover {
  border-color: var(--line-strong);
}

.bento-wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
}

.bento-wide-reverse {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.bento-medium:nth-of-type(2) {
  grid-column: span 7;
}

.bento-medium:nth-of-type(3) {
  grid-column: span 5;
}

.bento-half {
  grid-column: span 6;
  padding: 30px;
}

.bento-copy {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.section-index {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.bento-card h3 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.bento-card .muted {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
}

.detail-line {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--muted);
}

.bento-copy .chip {
  margin-top: 16px;
}

.bento-media-shot {
  margin: 20px 20px 20px 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-inset);
}

.bento-media-shot figcaption {
  padding: 11px 14px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.hall-visual,
.waveform,
.gamepad-visual {
  position: relative;
  min-height: 196px;
  padding: 20px 20px 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface-inset);
  overflow: hidden;
}

.hall-visual {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 212, 92, 0.08), transparent 72%),
    var(--surface-inset);
}

.hall-diagram {
  width: min(340px, 100%);
  height: auto;
  color: var(--text);
}

.waveform {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(110, 231, 183, 0.11), transparent 72%),
    var(--surface-inset);
}

.wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 98px;
}

.wave-bars i {
  display: block;
  width: 5px;
  height: 30px;
  border-radius: 3px;
  background: var(--green);
  transform-origin: bottom;
  animation: eqPulse 2.4s ease-in-out infinite;
}

.wave-bars i:nth-child(2n) {
  height: 52px;
  background: var(--cyan);
  animation-delay: -0.4s;
}

.wave-bars i:nth-child(3n) {
  height: 76px;
  background: var(--accent);
  animation-delay: -0.9s;
}

.wave-bars i:nth-child(4n) {
  height: 92px;
  background: #ff9c7a;
  animation-delay: -1.3s;
}

.wave-bars i:nth-child(5n) {
  height: 44px;
  background: #a7b8ff;
  animation-delay: -1.7s;
}

@keyframes eqPulse {
  0%,
  100% {
    transform: scaleY(0.74);
  }
  50% {
    transform: scaleY(1);
  }
}

.visual-label {
  position: absolute;
  bottom: 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.gamepad-visual {
  border-bottom: 0;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 55% 65%, rgba(92, 225, 230, 0.11), transparent 74%),
    var(--surface-inset);
}

.gamepad-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.key-cluster {
  text-align: center;
  line-height: 1;
}

.key-cluster > div {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.key-cluster kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: 800 11px var(--font-mono);
}

.key-cluster > kbd {
  border-color: rgba(255, 212, 92, 0.55);
  color: var(--accent);
}

.mapping-arrow {
  color: var(--muted);
  width: 24px;
  height: 24px;
}

.controller {
  width: 170px;
  color: var(--cyan);
  filter: drop-shadow(0 0 22px rgba(92, 225, 230, 0.18));
}

.bento-icon-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bento-icon-head .section-index {
  margin-bottom: 0;
}

.feature-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 212, 92, 0.28);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mono-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface-inset);
  color: var(--text-secondary);
}

.mid-cta {
  margin-top: 32px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 212, 92, 0.28);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 212, 92, 0.08), var(--surface) 58%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mid-cta h3 {
  margin-top: 8px;
  font-size: 23px;
}

.mid-cta .muted {
  margin-top: 8px;
  font-size: 14px;
  max-width: 560px;
}

.mid-cta-actions {
  margin-top: 0;
  flex-shrink: 0;
}

/* System Architecture Compare */
.compare-section {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.setup-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.setup-part {
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.setup-part-service {
  background: linear-gradient(180deg, rgba(255, 212, 92, 0.05) 0%, var(--surface) 52%);
  border-color: rgba(255, 212, 92, 0.3);
}

.setup-part-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.setup-part-head .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.setup-part h3 {
  font-size: 24px;
}

.setup-part > .muted {
  font-size: 14px;
  margin-top: 10px;
}

.setup-part ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.setup-part li {
  position: relative;
  padding: 0 0 14px 22px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}

.setup-part li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.service-requirement {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}

.text-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
}

.text-link .icon {
  width: 15px;
  height: 15px;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.compare-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 22px;
  max-width: 820px;
  line-height: 1.75;
}

/* Quick Start */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid rgba(255, 212, 92, 0.35);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}

.step-card h3 {
  font-size: 20px;
  margin-top: 18px;
}

.step-card .muted {
  font-size: 14px;
  margin-top: 10px;
}

.setup-notes {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
  display: grid;
  gap: 10px;
}

.setup-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.setup-note .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
  margin-top: 3px;
}

/* FAQ */
.faq-section {
  padding-top: 16px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 56px;
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 96px;
}

.faq-heading h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.2vw, 38px);
}

.faq-heading .muted {
  margin-top: 12px;
  font-size: 14px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 22px 36px 22px 0;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
  line-height: 1.5;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 18px;
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
}

details[open] summary::after {
  content: '−';
}

details p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-bottom: 22px;
  padding-right: 24px;
}

/* Final Banner */
.final-section {
  text-align: center;
  padding: 84px 0 92px;
  background:
    radial-gradient(ellipse 65% 75% at 50% 0%, rgba(255, 212, 92, 0.1), transparent 72%),
    var(--bg-elevated);
  border-block: 1px solid var(--line-strong);
  position: relative;
}

.final-section::before {
  content: '';
  height: 2px;
  position: absolute;
  top: -1px;
  left: 22%;
  right: 22%;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent);
}

.final-section h2 {
  margin: 14px auto 0;
  font-size: clamp(32px, 4.4vw, 52px);
}

.final-section .muted {
  margin: 16px auto 0;
  max-width: 580px;
  font-size: 16px;
}

/* Footer */
.footer {
  padding-block: 44px 28px;
}

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

.footer-top p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 440px;
}

.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-secondary);
  padding-top: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}

.screenshot-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}

/* Lightbox Dialog */
.lightbox {
  background: #0d1014;
  border: 1px solid var(--line-strong);
  max-width: min(96vw, 1800px);
  max-height: 94vh;
  padding: 0;
  border-radius: 10px;
  overflow: auto;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox img {
  max-height: 90vh;
  width: auto;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  right: 22px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(16, 20, 26, 0.92);
  font-size: 26px;
  line-height: 1;
  z-index: 1;
}

.lightbox-open {
  overflow: hidden;
}

/* Progressive Reveal Motion */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .boards-grid .reveal:nth-child(2),
.js .steps .reveal:nth-child(2) {
  transition-delay: 35ms;
}

.js .boards-grid .reveal:nth-child(3),
.js .steps .reveal:nth-child(3) {
  transition-delay: 70ms;
}

.js .boards-grid .reveal:nth-child(4) {
  transition-delay: 105ms;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .shell {
    width: min(1160px, calc(100% - 48px));
  }

  .boards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-cta {
    display: none;
  }

  .bento-wide {
    grid-template-columns: 1fr;
  }

  .bento-media-shot {
    margin: 0 24px 24px;
  }

  .faq-section {
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .telemetry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telemetry-item:nth-child(2n) {
    border-right: 0;
  }

  .telemetry-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .demo-grid,
  .setup-parts,
  .steps {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide,
  .bento-wide-reverse,
  .bento-medium:nth-of-type(2),
  .bento-medium:nth-of-type(3),
  .bento-half {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .gamepad-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .board-callout,
  .mid-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-section {
    grid-template-columns: 1fr;
  }

  .faq-heading {
    position: static;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .shell {
    width: calc(100% - 32px);
  }

  .nav-shell {
    min-height: 64px;
    gap: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .js .menu-toggle {
    display: block;
  }

  .js .navigation {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 18px 20px 22px;
    background: rgba(15, 19, 24, 0.98);
    border-bottom: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    gap: 14px;
    font-size: 15px;
  }

  .js .navigation.is-open {
    display: flex;
  }

  .navigation a {
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .language-switch button {
    min-height: 36px;
    padding: 6px 10px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-eyebrow {
    font-size: 10px;
    padding: 6px 12px;
  }

  h1 {
    font-size: clamp(36px, 9.6vw, 48px);
    margin-top: 18px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions,
  .mid-cta-actions,
  .final-section .actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .source-link {
    width: 100%;
    min-height: 48px;
  }

  .app-window {
    margin-top: 30px;
    border-radius: 10px 10px 0 0;
  }

  .window-top {
    height: 36px;
    padding-inline: 12px;
  }

  .window-path {
    display: none;
  }

  .expand-hint {
    opacity: 1;
    right: 8px;
    bottom: 8px;
    padding: 7px;
  }

  .telemetry-grid,
  .boards-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 4px;
  }

  .telemetry-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 64px;
  }

  .bento-copy,
  .bento-half,
  .setup-part,
  .step-card,
  .board-callout,
  .mid-cta {
    padding: 22px;
  }

  .bento-media-shot {
    margin: 0 18px 20px;
  }

  .controller {
    width: 132px;
  }

  .gamepad-stage {
    gap: 16px;
  }

  .key-cluster kbd {
    width: 28px;
    height: 28px;
  }

  .lightbox-close {
    right: 12px;
    top: 12px;
  }
}

@media (max-width: 600px) {
  html:not(.js) .nav-shell {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  html:not(.js) .nav-actions {
    margin-left: auto;
  }

  html:not(.js) .navigation {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
