/* Relay landing: dark-tech, one accent (#06b6d4 cyan), Geist + Geist Mono.
   Matches apps/web neutral near-black palette. Radius: buttons pill, panels 10px. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist_latest_latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist_latest_latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist_latest_latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist_latest_latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono_latest_latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono_latest_latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --panel: #131416;
  --panel-2: #1a1b1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fg: #f2f4f7;
  --muted: #9aa3ad;
  --faint: #5d6670;
  --accent: #06b6d4;
  --accent-dim: rgb(6 182 212 / 0.12);
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #04282f; padding: 8px 16px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 16, 19, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--fg); text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.mark { width: 20px; height: 20px; color: var(--accent); }
.nav nav {
  display: flex; gap: 24px; margin-left: auto;
}
.nav nav a {
  color: var(--muted); text-decoration: none; font-size: 13.5px;
  transition: color 0.15s;
}
.nav nav a:hover { color: var(--fg); }
.gh { width: 14px; height: 14px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  padding: 9px 20px;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-solid {
  background: var(--accent); color: #04282f; font-weight: 600;
}
.btn-solid:hover { background: #22d3ee; color: #06262b; }
.btn-ghost {
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }
.nav .btn { padding: 7px 16px; font-size: 13px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(60% 44% at 50% -6%, rgb(6 182 212 / 0.11), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 100%,
    var(--bg);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 30px;
  background: rgba(10, 10, 11, 0.6);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgb(6 182 212 / 0.7);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.hero h1 .hl {
  background: linear-gradient(92deg, #67e8f9, var(--accent) 55%, #0e7490);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  max-width: 56ch;
}
.cta-row {
  display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap;
  align-items: center; justify-content: center;
}
.install-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg);
  background: #060607;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 8px 10px 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.install-chip:hover { border-color: rgb(6 182 212 / 0.5); }
.install-chip code { font: inherit; color: inherit; white-space: nowrap; }
.install-chip .chip-copy {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  transition: color 0.15s, border-color 0.15s;
}
.install-chip:hover .chip-copy { color: var(--fg); border-color: var(--line-strong); }
.install-chip.copied .chip-copy { color: var(--accent); border-color: rgb(6 182 212 / 0.45); }

.hero-shot {
  margin-top: 64px;
  width: min(1080px, 100%);
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(14, 16, 19, 0.6),
    0 30px 90px -20px rgba(0, 0, 0, 0.8),
    0 0 110px -30px rgb(6 182 212 / 0.22);
  overflow: hidden;
  text-align: left;
}
.shot-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.chrome-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.chrome-url {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 3px 12px;
}
.hero-shot img {
  display: block; width: 100%; height: auto;
}

/* ---------- flow strip ---------- */

.flow {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.pipeline {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.pipeline .arrow { color: var(--faint); }
.pipeline span[role="listitem"] {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.pipeline .accent {
  border-color: rgb(6 182 212 / 0.45);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex; gap: 48px;
  width: max-content;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--faint);
  animation: scroll 36s linear infinite;
}
.marquee-track span::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 48px;
  background: var(--faint);
  border-radius: 50%;
  vertical-align: middle;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section-alt {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 40%);
}
.section-h {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.split-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 46ch;
}
.mono-list {
  list-style: none;
  margin-top: 32px;
  display: grid; gap: 20px;
}
.mono-list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: baseline;
}
.mono-list b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.mono-list span { color: var(--muted); font-size: 14px; }

.split-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
.split-shot figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  text-align: center;
}

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cell {
  grid-column: span 2;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.cell:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cell h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.cell p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.cell code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 5px;
}
.cell-mcp { grid-column: span 4; }
.cell-shot {
  grid-column: span 4;
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.cell-shot img {
  width: 100%; height: 240px;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--line);
}
.cell-shot-label { padding: 20px 28px 24px; }

.term {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--fg);
  background: #060607;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  white-space: pre;
}
.t-dim { color: var(--faint); }

/* ---------- platforms ---------- */

.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.plat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.plat:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.plat h3 {
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
}
.plat p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.plat code {
  font-family: var(--mono); font-size: 12px; color: var(--fg);
  background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 5px;
}
.plat-list {
  list-style: none;
  margin-top: 16px;
  display: grid; gap: 6px;
}
.plat-list li {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  padding-left: 14px;
  position: relative;
}
.plat-list li::before {
  content: "·";
  position: absolute; left: 0;
  color: var(--accent);
}

/* ---------- self-host ---------- */

.deploy {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(120% 160% at 50% -40%, rgb(6 182 212 / 0.09), transparent 60%),
    var(--panel);
  padding: 64px 48px;
  text-align: center;
}
.deploy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.deploy-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
}
.deploy-sub code {
  font-family: var(--mono); font-size: 12.5px; color: var(--fg);
  background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 5px;
}
.term-lg {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: left;
  font-size: 12px;
}
.stack {
  list-style: none;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}
.stack li {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
}
.footer-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.foot-note {
  color: var(--faint);
  font-size: 13px;
  margin-left: auto;
}
.footer nav { display: flex; gap: 20px; }
.footer nav a {
  color: var(--muted); font-size: 13px; text-decoration: none;
  transition: color 0.15s;
}
.footer nav a:hover { color: var(--fg); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { padding-top: 64px; }
  .hero h1 { font-size: clamp(2.1rem, 8.5vw, 3rem); }
  .install-chip code { white-space: normal; }
  .split, .split-rev { grid-template-columns: 1fr; gap: 36px; }
  .split-rev .split-copy { order: -1; }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell-mcp, .cell-shot { grid-column: auto; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .mono-list li { grid-template-columns: 1fr; gap: 4px; }
  .nav nav { display: none; }
  .deploy { padding: 44px 24px; }
  .foot-note { margin-left: 0; width: 100%; order: 3; }
  .term { white-space: pre-wrap; overflow-wrap: anywhere; }
  p code { overflow-wrap: break-word; }
}

@media (max-width: 560px) {
  .platforms { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .install-chip {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
    padding: 12px 14px;
  }
  .install-chip code {
    flex: 1;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-height: 1.5;
  }
  .install-chip .chip-copy { flex-shrink: 0; }
  .cta-row .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cell:hover, .plat:hover { transform: none; }
}
