@font-face {
  font-family: 'Geist Pixel Circle';
  src: url('/landing/fonts/GeistPixel-Circle.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #fff;
  --muted: #7a7a7a;
  --soft: #b3b3b3;
  --line: rgba(255, 255, 255, 0.09);
  --font: 'Inter', system-ui, sans-serif;
  --display: 'BubbledotICG-FinePos', 'Geist Pixel Circle', monospace;
  --wrap: 960px;
  --pad: clamp(48px, 7vw, 80px);
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  --pill: #28282a;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 28px);
}

/* ── Header ── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 24px);
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(14px, 2vh, 22px) clamp(14px, 3vw, 28px);
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 44px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #2e2e2e;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.25s;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.signin {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pill);
  color: #ccc;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--nav-shadow);
  flex-shrink: 0;
}

.signin:hover {
  color: #fff;
}

/* ── Hero (video bg only here) ── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  padding: 100px clamp(16px, 3vw, 28px) 64px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #aaa;
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 5.2vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.headline span {
  display: block;
}

.subhead {
  margin: 16px auto 0;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.65;
  color: #c8c8c8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.4);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  margin: 40px 0 0;
  padding: 0;
}

.hero-facts dt {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
}

/* ── Page body (solid black) ── */

.page-body {
  position: relative;
  z-index: 2;
  background: var(--bg);
  /* Slide-in elements start 40px off to the side; mobile browsers widen the
     layout viewport to include them unless they are clipped here. */
  overflow-x: hidden;
  overflow-x: clip;
}

.scope-strip {
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.scope-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 12px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555;
  white-space: nowrap;
}

.scope-track span::before {
  content: '·';
  margin-right: 40px;
  color: #333;
}

/* ── Shared section typography ── */

.section {
  padding-block: var(--pad);
  border-top: 1px solid var(--line);
}

.label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 28ch;
}

.lede {
  margin: 12px 0 0;
  max-width: 48ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--soft);
}

.note {
  margin: 20px 0 0;
  font-size: 12px;
  color: #666;
  max-width: 44ch;
}

/* ── Prose ── */

.prose-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

.prose-cols p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--soft);
}

/* ── Stepper (horizontal flow UI) ── */

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 32px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line);
}

.step {
  position: relative;
  padding: 0 10px;
  text-align: center;
}

.step-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid #444;
  background: #000;
  position: relative;
  z-index: 1;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #888;
}

/* ── Split sections ── */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

/* Grid items default to min-width: auto, so the install command's long line
   would widen the column (and the page) instead of scrolling in its box. */
.split-grid > * {
  min-width: 0;
}

.split-copy code {
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}

.feature-lines {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-lines li {
  padding: 8px 0;
  font-size: 13px;
  color: #bbb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.mini-steps {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
}

/* Terminal UI mock */

.terminal-ui {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0a;
}

.terminal-ui-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #555;
}

.terminal-ui-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333;
}

.terminal-ui-bar span {
  margin-left: 8px;
}

.terminal-ui-line {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12px;
  color: #ccc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-ui-line.head {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
}

.terminal-ui-line em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.terminal-ui-line em.ok {
  color: #6fcf97;
}

.terminal-ui-line em.run {
  color: #b794f4;
}

.terminal-ui-line em.wait {
  color: #d4a84b;
}

/* Code block */

.code-block {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080808;
  font-family: Consolas, 'SF Mono', monospace;
  font-size: 12px;
  line-height: 1.65;
  overflow-x: auto;
}

.code-block .p {
  color: #7eb8ff;
}

.code-block .o {
  color: #8cdc8c;
}

.code-block .dim {
  color: #5a7a5a;
}

/* ── Engine stack (left-accent rows) ── */

.engine-stack {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.engine-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0 16px 14px;
  border-left: 2px solid #333;
}

.engine-row[data-accent='lp'] {
  border-left-color: #5b8def;
}

.engine-row[data-accent='milp'] {
  border-left-color: #a78bfa;
}

.engine-row[data-accent='qp'] {
  border-left-color: #6fcf97;
}

.engine-row[data-accent='gpu'] {
  border-left-color: #f0c674;
}

.engine-badge {
  font-family: var(--display);
  font-size: 14px;
  color: #888;
  padding-top: 2px;
}

.engine-row h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.engine-row p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #888;
}

/* ── USP manifest list ── */

.usp-list {
  margin-top: 28px;
}

.usp-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.usp-index {
  font-family: var(--display);
  font-size: 18px;
  color: #444;
  line-height: 1;
  padding-top: 2px;
}

.usp-item h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.usp-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #888;
  max-width: 52ch;
}

/* ── Stat bar ── */

.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--line);
}

.stat-item {
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  text-align: center;
}

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

.stat-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #777;
}

/* ── Chip wall (sectors) ── */

.chip-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  min-width: 0;
}

.chip strong {
  font-size: 12px;
  font-weight: 600;
}

.chip span {
  font-size: 11px;
  color: #777;
}

/* ── CTA ── */

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
}

.cta-list {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
}

.cta-list b {
  color: #ddd;
  font-weight: 600;
}

.cta-side {
  text-align: right;
}

.cta-big {
  padding: 12px 28px;
  font-size: 14px;
}

/* ── Footer ── */

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.footer-brand {
  font-family: var(--display);
  font-size: 15px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer nav a {
  font-size: 12px;
  color: #666;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: #fff;
}

.footer-note {
  margin: 0;
  margin-left: auto;
  font-size: 11px;
  color: #444;
}

/* ── Mobile menu ── */

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--pill);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  margin-left: -8px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}

.burger span:nth-child(1) {
  top: 16px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger span:nth-child(3) {
  top: 26px;
}

.burger[aria-expanded='true'] {
  background: #fff;
}

.burger[aria-expanded='true'] span {
  background: #000;
}

.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
}

.overlay[hidden] {
  display: none;
}

.sheet {
  width: min(300px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sheet-link {
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #2e2e2e;
  text-decoration: none;
  text-align: center;
  opacity: 0.6;
}

.sheet-link.is-active {
  opacity: 1;
}

.sheet-signin {
  margin-top: 6px;
  padding: 11px;
  border-radius: 999px;
  background: var(--pill);
  color: #fff;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

body.menu-open {
  overflow: hidden;
}

/* ── Responsive ── */

@media (max-width: 860px) {
  .prose-cols,
  .split-grid,
  .stepper,
  .stat-bar,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .stepper::before {
    display: none;
  }

  .step {
    text-align: left;
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .step-dot {
    margin: 4px 0 0;
  }

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

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

  .cta-side {
    text-align: left;
  }

  .footer-note {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .nav,
  .signin {
    display: none;
  }

  .header {
    justify-content: space-between;
    max-width: none;
  }

  .burger {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scope-track {
    animation: none !important;
  }
}
