@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #e9edf0;
  --ink-dim: #a9b4bd;
  --bg: #0b0e11;
  --surface: #12171c;
  --surface-2: #171d23;
  --line: #2a333b;
  --accent: #f2a65a;
  --accent-ink: #1a1207;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --radius: 14px;
  --wrap: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
dt, dd { margin: 0; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Navigation — single line on desktop */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 17, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  transform: rotate(45deg);
}
.brand__name { font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.brand__slash { color: var(--accent); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  color: var(--ink-dim);
  font-size: 15px;
  transition: color 160ms ease;
}
.nav__links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 140ms ease, background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #ffb56c; }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink-dim); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; margin-left: 4px; }

/* Hero — split */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 88px 32px 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
}
.hero__copy { max-width: 600px; }
.hero h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
}
.hero__lede {
  color: var(--ink-dim);
  font-size: 19px;
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; }
.hero__visual > img {
  width: 100%;
  aspect-ratio: 9 / 8;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.telemetry {
  position: absolute;
  right: -20px;
  bottom: 28px;
  width: min(340px, 86%);
  background: rgba(18, 23, 28, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.telemetry__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.telemetry__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.telemetry__sample { margin-left: auto; opacity: 0.65; font-size: 10px; }
.telemetry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.telemetry__grid > div { background: var(--surface); padding: 14px 16px; }
.telemetry dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-dim); }
.telemetry dd { font-family: var(--mono); font-size: 16px; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Stack strip */
.stack-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stack-strip span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
}

/* Shared section shell */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 116px 32px;
}
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head h2,
.split h2,
.architecture h2,
.band h2,
.cta h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 18px;
}
.section__head p,
.split__copy > p,
.architecture__head p,
.band__content p,
.cta__content p {
  color: var(--ink-dim);
  font-size: 18px;
  max-width: 62ch;
  margin: 0;
}

/* Bento — asymmetric, 3 cells for 3 surfaces */
.bento {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
}
.tile--feature { grid-row: span 2; min-height: 540px; }
.tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.tile--feature::after,
.tile--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 11, 14, 0.94) 0%, rgba(8, 11, 14, 0.2) 60%, transparent 100%);
  z-index: 1;
}
.tile--tint { background: var(--surface-2); }
.tile__body { position: relative; z-index: 2; padding: 30px; }
.tile h3 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; }
.tile p { color: var(--ink-dim); font-size: 16px; margin: 0 0 18px; max-width: 48ch; }
.tile--feature p { color: #d5dde3; }
.tile__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* Full-width photographic band */
.band { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 11, 14, 0.96) 0%, rgba(8, 11, 14, 0.72) 48%, rgba(8, 11, 14, 0.15) 100%);
}
.band__content { position: relative; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 80px 32px; }
.band__content h2 { max-width: 16ch; }
.band__content p { max-width: 56ch; }

/* Split section */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.split__visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.split__copy > p { margin-bottom: 32px; }
.specs { border-top: 1px solid var(--line); }
.specs > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); padding-top: 3px; }
.specs dd { font-size: 15px; color: var(--ink); }

/* Architecture diagram */
.architecture { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.architecture__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.12; filter: grayscale(1); }
.architecture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, rgba(11,14,17,0.86) 40%, rgba(11,14,17,0.94) 100%); }
.architecture__inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 112px 32px; }
.architecture__head { max-width: 720px; margin-bottom: 56px; }
.flow {
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.flow__group {
  flex: 1 0 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 23, 28, 0.92);
  padding: 16px;
  min-height: 132px;
}
.flow__group--core { border-color: var(--accent); }
.flow__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--accent); }
.flow__nodes { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.flow__nodes span {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: 5px;
  color: var(--ink);
  white-space: nowrap;
}
.flow__arrow { flex: 0 0 22px; align-self: center; height: 1px; background: var(--line); position: relative; }
.flow__arrow::after { content: ""; position: absolute; right: 0; top: -3px; border-left: 6px solid var(--line); border-top: 3px solid transparent; border-bottom: 3px solid transparent; }

/* Final CTA */
.cta { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__scrim { position: absolute; inset: 0; background: rgba(8, 11, 14, 0.78); }
.cta__content { position: relative; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 80px 32px; }
.cta__content h2 { max-width: 18ch; }
.cta__content p { margin-bottom: 30px; max-width: 54ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.footer__links a { color: var(--ink-dim); font-size: 14px; transition: color 160ms ease; }
.footer__links a:hover { color: var(--ink); }
.footer__meta { flex: 1 0 100%; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--ink-dim); }

/* Responsive collapse */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .btn--sm { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .hero__copy { max-width: 720px; }
  .hero__visual > img { aspect-ratio: 16 / 10; }
  .bento { grid-template-columns: 1fr; }
  .tile--feature { grid-row: auto; min-height: 420px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 88px 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__inner { padding: 0 20px; gap: 12px; }
  .btn--sm { display: none; }
  .hero, .section, .band__content, .architecture__inner, .cta__content { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .telemetry { right: 12px; bottom: 12px; width: 92%; }
  .telemetry__grid > div { padding: 10px 12px; }
  .telemetry dd { font-size: 14px; }
  .stack-strip { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 18px 20px; }
  .specs > div { grid-template-columns: 1fr; gap: 4px; }
  .tile__body { padding: 24px; }
  .footer__inner { padding: 36px 20px; }
  .footer__links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .telemetry { opacity: 1; transform: none; }
}
