:root {
  --ink-950: #060708;
  --ink-900: #08090a;
  --ink-850: #0c0d0f;
  --ink-800: #101114;
  --ink-700: #16181c;
  --ink-600: #1f2228;
  --cream-50: #f4f1ea;
  --cream-100: #ede9e0;
  --cream-200: #d8d2c4;
  --cream-300: #b4ad9d;
  --text-1: #f7f6f3;
  --text-2: #9b9a94;
  --text-3: #64645f;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --amber: #e6b566;
  --clay: #d97757;
  --hair: rgba(237, 233, 224, 0.09);
  --hair-2: rgba(237, 233, 224, 0.14);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 10, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hair);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text-1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cream-50); color: var(--ink-950); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--hair-2); color: var(--cream-100); background: rgba(237, 233, 224, 0.03); }
.btn-ghost:hover { border-color: rgba(237, 233, 224, 0.28); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 40px; text-align: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(237, 233, 224, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(65% 55% at 50% 0, #000 25%, transparent 100%);
  mask-image: radial-gradient(65% 55% at 50% 0, #000 25%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  width: 760px;
  height: 460px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.14), transparent 70%);
}
.hero > .wrap { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: rgba(237, 233, 224, 0.03);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-200);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 10px var(--teal-400); }

.display {
  margin: 26px auto 0;
  max-width: 13ch;
  font-size: clamp(3rem, 5.4vw + 1rem, 5.5rem);
  font-weight: 530;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--teal-300) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.display .serif { letter-spacing: -0.02em; padding-right: 0.06em; }

.lead {
  margin: 24px auto 0;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: balance;
}
.lead b { color: var(--cream-100); font-weight: 500; }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.facts span b { color: var(--cream-200); font-weight: 500; }

/* ---------- window frame ---------- */
.window {
  position: relative;
  border-radius: 16px;
  background: var(--ink-850);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--hair), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.window.glow { box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2), 0 8px 60px -8px rgba(45, 212, 191, 0.28), 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--hair);
  background: var(--ink-800);
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3038; display: block; }
.window-bar i:nth-child(1) { background: rgba(217, 119, 87, 0.75); }
.window-bar i:nth-child(2) { background: rgba(230, 181, 102, 0.75); }
.window-bar i:nth-child(3) { background: rgba(45, 212, 191, 0.7); }
.window-bar .title { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-bar .chip { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--teal-300); letter-spacing: 0.06em; white-space: nowrap; }
.window img { width: 100%; height: auto; }
.window .pad { padding: 18px; background: #0a0b0d; }

.hero-video { margin-top: 64px; }
.video { position: relative; padding-top: 56.25%; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- sections ---------- */
.section { padding: 112px 0; position: relative; }
.section + .section { border-top: 1px solid var(--hair); }
.center { text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-300);
}
.kicker .n { color: var(--text-3); }
.kicker .rule { width: 28px; height: 1px; background: var(--hair-2); display: block; }

.h2 {
  margin: 18px 0 0;
  font-size: clamp(2.25rem, 3vw + 0.7rem, 3.5rem);
  font-weight: 530;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}
.h3 { margin: 16px 0 0; font-size: clamp(1.7rem, 1.6vw + 1rem, 2.35rem); font-weight: 530; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.p { margin: 16px 0 0; color: var(--text-2); font-size: 17px; line-height: 1.65; max-width: 46ch; }
.center .p { margin-left: auto; margin-right: auto; max-width: 58ch; }
.p b { color: var(--cream-100); font-weight: 500; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; color: var(--cream-200); font-size: 15.5px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--teal-400); background: rgba(45, 212, 191, 0.18); }

/* numbered feature rows */
.features { display: grid; gap: 120px; margin-top: 88px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature-media { min-width: 0; }
.feature-text { min-width: 0; }
.stack-shots { display: grid; gap: 16px; }
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pills .window { border-radius: 12px; }

/* ---------- say it demo ---------- */
.demo { margin-top: 56px; text-align: left; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.cli-tab {
  font: inherit;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cli-tab:hover { color: var(--text-1); border-color: rgba(237, 233, 224, 0.28); }
.cli-tab.active { color: var(--ink-950); background: var(--teal-300); border-color: var(--teal-300); }
.cli-tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.cli-screen { padding: 26px 28px 30px; min-height: 290px; background: #0a0b0d; }
.cli-prompt-line { display: flex; gap: 12px; align-items: baseline; font-size: clamp(1.05rem, 0.8vw + 0.85rem, 1.4rem); letter-spacing: -0.02em; font-weight: 500; color: var(--cream-50); }
.cli-prompt-line .who { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); transform: translateY(-2px); }
.cli-cursor { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; background: var(--teal-300); transform: translateY(3px); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cli-output { margin-top: 22px; display: grid; gap: 2px; border-top: 1px solid var(--hair); padding-top: 14px; }
.cli-output .l {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 7px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cream-200);
  animation: rise 0.28s ease both;
}
.cli-output .l .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.cli-output .l.tok-ok .k { color: var(--teal-300); }
.cli-output .l.tok-header { color: var(--cream-50); }
.cli-output .l.tok-header .k { color: var(--amber); }
.cli-output .l.tok-warn .k { color: var(--clay); }
.cli-output .l.tok-muted { color: var(--text-2); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; text-align: left; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; text-align: left; }
.card {
  position: relative;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  box-shadow: 0 0 0 1px var(--hair);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.22), 0 8px 40px -8px rgba(45, 212, 191, 0.22); }
.card .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-300); }
.card .by { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 4px; }
.card h4 { margin: 14px 0 0; font-size: 19px; font-weight: 530; letter-spacing: -0.02em; line-height: 1.25; }
.card p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.card ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.card ul b { color: var(--cream-100); font-weight: 500; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--teal-300); }

/* ---------- table ---------- */
.table-wrap { margin-top: 56px; border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); background: var(--ink-850); overflow-x: auto; text-align: left; }
table.can { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.can th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding: 14px 22px; border-bottom: 1px solid var(--hair); background: var(--ink-800); }
table.can td { padding: 14px 22px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.can tr:last-child td { border-bottom: 0; }
table.can td:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-300); white-space: nowrap; padding-top: 17px; }
table.can td:nth-child(2) { color: var(--cream-100); }
table.can td:nth-child(3) { color: var(--text-2); }

/* ---------- closing ---------- */
.closing { position: relative; padding: 128px 0; text-align: center; overflow: hidden; }
.closing::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -260px;
  width: 900px;
  height: 520px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.13), transparent 70%);
}
.closing .wrap { position: relative; }
.closing img.icon { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 26px; box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2), 0 8px 50px -6px rgba(45, 212, 191, 0.4); }

.foot { border-top: 1px solid var(--hair); padding: 30px 0 40px; font-size: 13.5px; color: var(--text-3); }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.foot a { color: var(--text-2); transition: color 0.15s; }
.foot a:hover { color: var(--text-1); }
.foot .right { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- reveal (only when JS is on) ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .cli-cursor, .cli-output .l { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-media { order: 0; }
  .features { gap: 88px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .p { max-width: 60ch; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-row { gap: 12px; }
  .nav-row .btn { margin-left: auto; }
  .hero { padding: 64px 0 24px; }
  .hero-video { margin-top: 44px; }
  .section { padding: 76px 0; }
  .features { margin-top: 56px; gap: 72px; }
  .grid-4 { grid-template-columns: 1fr; }
  .lead { font-size: 16.5px; }
  .cli-screen { padding: 20px 18px 24px; min-height: 340px; }
  .cli-prompt-line { flex-direction: column; gap: 6px; }
  .cli-output .l { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; font-size: 14px; }
  .closing { padding: 88px 0; }
  .foot .right { margin-left: 0; }
  .window-bar .chip { display: none; }
  /* the table becomes a list of cards */
  table.can { min-width: 0; }
  table.can thead { display: none; }
  table.can, table.can tbody, table.can tr, table.can td { display: block; }
  table.can tr { padding: 14px 18px; border-bottom: 1px solid var(--hair); }
  table.can tr:last-child { border-bottom: 0; }
  table.can td { padding: 0; border: 0; }
  table.can td:first-child { padding: 0 0 6px; }
  table.can td:nth-child(3) { padding-top: 4px; font-size: 14px; }
}
