:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.84);
  --ink: #090d16;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand-blue: #008cf8;
  --brand-cyan: #00d7fe;
  --brand-grad: linear-gradient(135deg, #008cf8 0%, #00d7fe 100%);
  --shadow-xs: 0 1px 2px rgba(9, 13, 22, 0.04);
  --shadow-sm: 0 4px 12px -2px rgba(9, 13, 22, 0.05), 0 1px 3px rgba(9, 13, 22, 0.04);
  --shadow-md: 0 16px 40px -12px rgba(9, 13, 22, 0.08), 0 2px 8px -2px rgba(9, 13, 22, 0.04);
  --shadow-xl: 0 32px 80px -20px rgba(9, 13, 22, 0.12), 0 8px 24px -6px rgba(9, 13, 22, 0.05);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --container: min(1180px, calc(100% - 48px));
  --portal-open: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand-name {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

code,
kbd,
pre {
  font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}

a {
  color: inherit;
}

/* ==========================================================================
   ZERO PORTAL OVERLAY & SYNCHRONIZED ENTRY
   ========================================================================== */
#portal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  pointer-events: none;
  will-change: contents;
}

#portal canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body.portal-opening .hero-header,
body.portal-opening .workbench-outer {
  transform: scale(calc(0.982 + 0.018 * var(--portal-open, 1)));
  transform-origin: center 35%;
  will-change: transform;
}

/* ==========================================================================
   STUDIO-WHITE ARCHITECTURAL BACKDROP
   ========================================================================== */
.studio-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #ffffff;
  overflow: hidden;
}

.studio-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 12%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 12%, #000 30%, transparent 100%);
}

.studio-aura {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 1120px;
  height: 580px;
  background: radial-gradient(
    ellipse at 50% 32%,
    rgba(0, 140, 248, 0.085) 0%,
    rgba(0, 215, 254, 0.05) 38%,
    transparent 70%
  );
  filter: blur(28px);
}

.studio-crosshairs {
  position: absolute;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, 94vw);
  display: flex;
  justify-content: space-between;
  color: rgba(15, 23, 42, 0.14);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  user-select: none;
}

/* ==========================================================================
   FLOATING GLASSMORPHIC COMMAND HEADER
   ========================================================================== */
.top {
  position: sticky;
  top: 16px;
  z-index: 60;
  width: var(--container);
  margin: 16px auto 0;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 14px 9px 18px;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 999px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  display: block;
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 140, 248, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 140, 248, 0.22);
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.16s ease, background-color 0.16s ease;
}

nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-replay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-replay:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 140, 248, 0.12);
  transform: translateY(-1px);
}

.replay-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 0 0 2px rgba(0, 140, 248, 0.2);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.nav-github:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ==========================================================================
   MAIN & MONUMENTAL EDITORIAL HERO
   ========================================================================== */
main {
  width: var(--container);
  margin-inline: auto;
}

.hero {
  padding: 64px 0 56px;
}

.hero-header {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 5px 14px 5px 8px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 140, 248, 0.08);
  border: 1px solid rgba(0, 140, 248, 0.28);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 140, 248, 0.22);
}

.spec-divider {
  color: var(--line-strong);
  font-size: 13px;
}

.spec-pill {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: 1.01;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
  max-width: 17ch;
}

.hero-gradient-word {
  background: linear-gradient(125deg, #0077e6 0%, #00b8e6 60%, #008cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.8vw, 19.5px);
  line-height: 1.62;
  color: var(--ink-2);
  font-weight: 450;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1.5px);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button-primary {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 12px 28px -8px rgba(9, 13, 22, 0.28);
}

.button-primary:hover {
  background: #182234;
  border-color: #182234;
  color: #ffffff;
  box-shadow: 0 16px 34px -8px rgba(0, 140, 248, 0.32);
}

.button-secondary:hover {
  background: var(--surface);
}

.button-tertiary {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--ink-2);
  padding-inline: 14px;
}

.button-tertiary:hover {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.note,
#release-status {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 62ch;
}

/* ==========================================================================
   FULL-WIDTH INTERACTIVE 02_OS DESKTOP WORKBENCH
   ========================================================================== */
.workbench-outer {
  max-width: 1120px;
  margin: 0 auto;
}

.workbench-toolbar-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.hint-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 140, 248, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 140, 248, 0.22);
}

.workbench-bezel {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-xl), inset 0 1px 0 #ffffff;
  overflow: hidden;
}

/* Authentic Solid Dark GNOME 51 Top Panel (Matches QEMU Screenshot) */
.os-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 14px;
  background: #0c0d10;
  color: #f8fafc;
  border-radius: 12px;
  margin-bottom: 12px;
}

.os-topbar-left,
.os-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.os-workspaces-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.ws-pill-active {
  width: 22px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
}

.ws-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.os-cli-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.cli-mode-pill {
  padding: 3px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cli-mode-pill:hover {
  color: #ffffff;
}

.cli-mode-pill.is-active {
  background: #ffffff;
  color: #0c0d10;
}

.os-topbar-clock {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.os-tiling-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.os-tiling-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.os-sys-tray {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  opacity: 0.92;
}

/* Workbench Screen & Tiled / Floating Modes */
.workbench-screen {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  min-height: 360px;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.workbench-screen.is-floating {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 10px 24px;
}

.workbench-screen.is-floating .os-window-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.workbench-screen.is-floating .os-window {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.os-window-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.os-window {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
}

.os-window-focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 140, 248, 0.1), var(--shadow-sm);
}

.os-win-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.os-win-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.os-win-title-group svg {
  flex-shrink: 0;
}

.os-win-title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-win-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.os-win-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-3);
}

.os-win-badge-accent {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 140, 248, 0.08);
  border: 1px solid rgba(0, 140, 248, 0.28);
  color: var(--brand-blue);
  white-space: nowrap;
}

.win-dots {
  display: inline-flex;
  gap: 5px;
}

.win-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.os-win-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Terminal Window Content */
.os-terminal-body {
  background: #fcfdff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.term-command-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}

.term-user {
  color: var(--brand-blue);
  font-weight: 700;
}

.term-dir {
  color: var(--ink-3);
}

.term-dollar {
  color: var(--ink-3);
}

.term-typed {
  color: var(--ink);
  font-weight: 600;
}

.term-caret {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--brand-blue);
  animation: caret-blink 1.1s steps(2, start) infinite;
}

@keyframes caret-blink {
  to {
    visibility: hidden;
  }
}

.term-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11.5px;
}

.term-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: baseline;
}

.term-key {
  color: var(--ink-3);
  font-weight: 600;
}

.term-val {
  color: var(--ink-2);
}

.term-footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.term-footer-chips span {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-3);
}

/* Evidence Graph Inspector Window */
.os-inspector-body {
  gap: 12px;
}

.inspector-nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.inspector-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.16s ease;
}

.inspector-node.is-active {
  background: rgba(0, 140, 248, 0.07);
  border-color: var(--brand-blue);
}

.node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
}

.inspector-node.is-active .node-dot {
  background: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 140, 248, 0.2);
}

.inspector-node strong {
  display: block;
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--ink);
}

.inspector-node small {
  display: block;
  font-size: 9.5px;
  color: var(--ink-3);
}

.inspector-json {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-2);
  overflow-x: auto;
}

/* Isolation Window */
.os-isolation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.iso-stat {
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.iso-label {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.iso-value {
  font-size: 12px;
  color: var(--ink);
}

.iso-value-ok {
  color: #059669;
}

/* ==========================================================================
   AUTHENTIC 02_OS SIMPLE MATTE DOCK (Exact Match to Screenshot: No Glass, No Mac Zoom)
   ========================================================================== */
.os-dock-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.os-dock {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  background: #2b2d30;
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(9, 13, 22, 0.14);
}

.dock-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.dock-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dock-icon-btn svg {
  display: block;
  width: 36px;
  height: 36px;
}

.dock-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.14);
  margin-inline: 2px;
}

/* ==========================================================================
   SECTIONS & ASYMMETRIC BENTO GRID (#desktop)
   ========================================================================== */
.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-header {
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.section-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 24ch;
}

.section-lead {
  margin: 0;
  max-width: 50ch;
  font-size: 16px;
  color: var(--ink-2);
}

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

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(0, 140, 248, 0.08),
    transparent 60%
  );
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #94a3b8;
}

.bento-featured {
  border-color: rgba(0, 140, 248, 0.42);
  background: linear-gradient(180deg, rgba(0, 140, 248, 0.03) 0%, #ffffff 48%);
}

.bento-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bento-index {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.bento-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.bento-pill-accent {
  background: rgba(0, 140, 248, 0.08);
  border-color: rgba(0, 140, 248, 0.28);
  color: var(--brand-blue);
}

.bento-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.bento-copy {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.62;
}

/* Runtime Schema Diagram inside Bento 1 */
.runtime-diagram {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.schema-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schema-box {
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-xs);
}

.schema-box-highlight {
  border-color: rgba(0, 140, 248, 0.45);
  background: linear-gradient(135deg, rgba(0, 140, 248, 0.05), #ffffff);
}

.schema-tag {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-blue);
  margin-bottom: 2px;
}

.schema-box strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.schema-box small {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
}

.schema-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.connector-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
}

/* Desktop Mini Spec inside Bento 2 */
.desktop-mini-spec {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-tile-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-2);
}

.mini-tile-a {
  padding: 16px 10px;
  background: #ffffff;
  border: 1.5px solid var(--brand-blue);
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-tile-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-tile-b,
.mini-tile-c {
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
  color: var(--ink-3);
}

.mini-spec-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
}

.mini-spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.mini-spec-list span {
  color: var(--ink-3);
}

/* Sovereign Matrix inside Bento 3 */
.sovereign-matrix {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.matrix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}

.matrix-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.matrix-badge-clean {
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Zero Portal Timeline inside Bento 4 */
.portal-timeline-card {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.portal-stage-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-xs);
}

.stage-time {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brand-blue);
}

.portal-stage-item strong {
  font-size: 13px;
  color: var(--ink);
}

.portal-stage-item small {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ==========================================================================
   SECTION 02: EVIDENCE PIPELINE CIRCUIT (#pipeline)
   ========================================================================== */
.pipeline-circuit {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
}

.pipeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.pipeline-step-active {
  border-color: rgba(0, 140, 248, 0.45);
  background: linear-gradient(180deg, rgba(0, 140, 248, 0.03) 0%, #ffffff 60%);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.step-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.step-badge-blue {
  background: rgba(0, 140, 248, 0.1);
  border-color: rgba(0, 140, 248, 0.3);
  color: var(--brand-blue);
}

.step-latency {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--ink-3);
}

.pipeline-step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.pipeline-step p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  flex: 1;
}

.step-code-pill {
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  width: fit-content;
}

.pipeline-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  width: 42px;
}

.pipeline-link svg {
  width: 100%;
  height: 20px;
}

/* ==========================================================================
   SECTION 03: KEYBOARD ERGONOMICS & SPEC SHEET (#workspace)
   ========================================================================== */
.ergonomics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.keybind-card,
.spec-sheet-card {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.card-header-bar h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 750;
}

.card-header-bar p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
}

.header-chip {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

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

.keybind-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.keybind-row:hover {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.keybind-row.is-active {
  background: rgba(0, 140, 248, 0.06);
  border-color: var(--brand-blue);
  color: var(--ink);
}

.keybind-label {
  font-weight: 550;
}

.keycap-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-3);
}

kbd {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(9, 13, 22, 0.05);
}

.shortcut-readout {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.readout-keys {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  color: var(--brand-blue);
}

.readout-sep {
  color: var(--ink-3);
}

.spec-table {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-row {
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--line);
}

.spec-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.spec-row dt {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.spec-row dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink);
}

/* ==========================================================================
   SECTION 04: GET THE IMAGE (#try)
   ========================================================================== */
.try {
  padding-bottom: 84px;
}

.try-shell {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.try-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.try-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.try-intro p {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 15.5px;
}

.try-body-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: start;
}

.cmd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.cmd-tab {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-2);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.cmd-tab:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.cmd-tab.is-active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.code-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.manifest-sub {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
}

.copy-btn {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.copy-btn.is-copied {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(0, 140, 248, 0.08);
}

pre {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
}

code {
  font-size: 0.92em;
}

p code,
li code,
dd code,
.install-callout code,
.workbench-toolbar-hint code,
.portal-stage-item code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

.install-callout {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}

#files {
  list-style: none;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.file-item:hover {
  border-color: rgba(0, 140, 248, 0.4);
  background: #ffffff;
}

.file-link {
  text-decoration: none;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.file-link:hover {
  color: var(--brand-blue);
}

.file-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.file-empty {
  padding: 14px 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ==========================================================================
   SCROLL REVEAL & FOOTER
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

footer {
  width: var(--container);
  margin-inline: auto;
  padding: 28px 0 52px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.footer-dot {
  color: var(--line-strong);
}

.footer-copy {
  color: var(--ink-3);
}

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

.footer-right a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 550;
}

.footer-right a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-replay-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--brand-blue);
  font-weight: 600;
  cursor: pointer;
}

.footer-replay-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .workbench-screen {
    grid-template-columns: 1fr;
  }

  .bento-span-7,
  .bento-span-5 {
    grid-column: span 12;
  }

  .pipeline-circuit {
    grid-template-columns: 1fr;
  }

  .pipeline-link {
    display: none;
  }

  .ergonomics-grid,
  .try-body-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --container: calc(100% - 28px);
  }

  .top-inner {
    border-radius: 20px;
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

  .runtime-diagram,
  .portal-timeline-card {
    grid-template-columns: 1fr;
  }

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

  .try-shell {
    padding: 24px 18px;
  }

  .footer-copy,
  .footer-dot {
    display: none;
  }
}

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

  #portal {
    display: none;
  }

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

  .term-caret {
    animation: none;
  }
}
