/* Barad landing — same console as the app.
   Warm ink surfaces, hairline borders, phosphor-amber accent,
   monospace data, serif wordmark. */

:root {
  color-scheme: dark;
  --ink-0: #0c0b09;
  --ink-1: #121110;
  --ink-2: #191715;
  --ink-3: #211e1b;
  --line: #2e2a25;
  --line-strong: #45403a;
  --bone: #e8e2d6;
  --bone-dim: #a89f90;
  --bone-faint: #8a8275;
  --amber: #f0a33c;
  --amber-dim: #8a6224;
  --green: #8fce76;
  --red: #e06c5a;
  --blue: #7fb3d3;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--bone);
  font: 14px/1.6 var(--font-mono);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Page background lives on the root so the fixed boids canvas
   (z-index -1) can paint between it and the content. */
html {
  background: var(--ink-0);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(240, 163, 60, 0.06), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.008) 2px 4px);
}

body { background: transparent; }

::selection { background: var(--amber-dim); color: var(--bone); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--ink-0); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

a { color: var(--bone); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }

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

/* ---------- LED ---------- */

.led {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--bone-faint);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
  flex: none;
}
.led-green { background: var(--green); box-shadow: 0 0 6px rgba(143, 206, 118, 0.5); }
.led-amber { background: var(--amber); box-shadow: 0 0 6px rgba(240, 163, 60, 0.55); }

/* ---------- Buttons ---------- */

.btn {
  font: inherit;
  cursor: pointer;
  display: inline-block;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  color: var(--bone);
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.btn:hover { border-color: var(--amber); text-decoration: none; }

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #16120a;
  font-weight: 600;
}
.btn-primary:hover { background: #ffb95a; border-color: #ffb95a; }

.btn-lg { padding: 0.85rem 2.2rem; font-size: 15px; }

/* ---------- Header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.head-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bone-dim);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.head-brand:hover { color: var(--bone); }
.head-brand .led { animation: led-breathe 4s ease-in-out infinite; }

@keyframes led-breathe {
  0%, 100% { box-shadow: 0 0 4px rgba(143, 206, 118, 0.35); }
  50% { box-shadow: 0 0 8px rgba(143, 206, 118, 0.65); }
}

/* ---------- Hero ---------- */

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

.hero-boids {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.hero-coords {
  margin: 0 0 28px;
  color: var(--bone-faint);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .hero { padding-top: 64px; }
  .hero-coords { letter-spacing: 0.18em; font-size: 11px; }
}
.hero-coords .sep { color: var(--amber-dim); }

.hero-mark {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 128px);
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: var(--bone);
  text-shadow: 0 0 60px rgba(240, 163, 60, 0.18);
}

.hero-tower {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--bone-dim);
}
.hero-tower em { font-style: normal; color: var(--amber); }

.hero-sub {
  margin: 26px 0 0;
  max-width: var(--measure);
  color: var(--bone-dim);
  font-size: 15px;
}
.hero-sub strong { color: var(--bone); font-weight: 400; }

.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-invite {
  color: var(--bone-faint);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.hero-invite b { color: var(--bone-dim); font-weight: 600; }

.gate-rule {
  height: 1px;
  margin: 64px 0 0;
  background: linear-gradient(90deg, var(--amber-dim), var(--line) 40%, transparent);
}

/* ---------- App teaser frame ---------- */

.teaser { padding: 56px 0 8px; }

.teaser-label {
  margin: 0 0 14px;
  color: var(--bone-faint);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.frame {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--ink-1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.frame-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--bone-faint);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}
.frame-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line-strong); }
.frame-title { margin-left: 10px; }

.frame-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 430px;
}

.frame-rail {
  border-right: 1px solid var(--line);
  background: var(--ink-1);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.frame-brand { font-family: var(--font-serif); letter-spacing: 0.18em; font-size: 16px; }
.frame-brand small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--bone-faint); margin-top: 3px; }
.frame-rail-label { color: var(--bone-faint); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; margin: 8px 0 0; }
.frame-session {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--bone-dim);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame-session.is-active { border-color: var(--line-strong); background: var(--ink-2); color: var(--bone); }

.frame-stage { display: flex; flex-direction: column; background: var(--ink-0); }

.frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.frame-head-id { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.frame-status { color: var(--bone-faint); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.gauge-block { min-width: 150px; }
.gauge-labels { display: flex; justify-content: space-between; color: var(--bone-faint); font-size: 10.5px; letter-spacing: 0.08em; margin-bottom: 4px; }
.gauge { height: 4px; background: var(--ink-3); border: 1px solid var(--line); }
.gauge-fill { height: 100%; width: 14%; background: var(--amber); transition: width 900ms ease; }

.frame-tabs { display: flex; gap: 2px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.frame-tab {
  padding: 9px 13px;
  font-size: 12px;
  color: var(--bone-faint);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}
.frame-tab.is-active { color: var(--bone); border-bottom-color: var(--amber); }

.frame-transcript {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  overflow: hidden;
}

.t-line { display: flex; gap: 10px; min-width: 0; opacity: 0; transform: translateY(4px); transition: opacity 300ms ease, transform 300ms ease; }
.t-text { min-width: 0; overflow-wrap: anywhere; }
.t-line.is-on { opacity: 1; transform: none; }
.t-prefix { color: var(--bone-faint); flex: none; }
.t-user { color: var(--bone); }
.t-user .t-prefix { color: var(--amber); }
.t-tool { color: var(--bone-dim); }
.t-ok { color: var(--green); }
.t-agent { color: var(--bone); }
.t-agent .t-prefix { color: var(--green); }
.t-caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--amber);
  vertical-align: -2px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.frame-composer {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.frame-input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--ink-1);
  border-radius: 3px;
  padding: 9px 12px;
  color: var(--bone-faint);
  font-size: 12.5px;
}
.frame-send {
  border: 1px solid var(--amber);
  background: var(--amber);
  color: #16120a;
  border-radius: 3px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Overlaid phone viewport ---------- */

.teaser-row { position: relative; padding-bottom: 46px; }
.teaser-row .frame { width: calc(100% - 160px); }
.teaser-row .frame-head,
.teaser-row .frame-transcript,
.teaser-row .frame-composer { padding-right: 132px; }

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 272px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: var(--ink-2);
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--ink-0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px 7px;
  color: var(--bone-faint);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.phone-session { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.phone-transcript {
  flex: 1;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  overflow: hidden;
}
.phone-transcript .t-line { gap: 7px; }
.phone-transcript .t-caret { height: 12px; width: 6px; }

.phone-composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.phone-composer .frame-input { padding: 7px 10px; font-size: 11px; }
.phone-composer .frame-send { padding: 7px 12px; font-size: 12px; }

@media (max-width: 860px) {
  .teaser-row { padding-bottom: 0; }
  .teaser-row .frame { display: none; }
  .phone { position: static; margin: 0 auto; }
}

@media (max-width: 720px) {
  .frame-rail { display: none; }
  .frame-body { grid-template-columns: 1fr; min-height: 380px; }
  .gauge-block { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .t-line { transition: none; }
  .t-caret, .head-brand .led { animation: none; }
}

/* ---------- Specs ---------- */

.specs { padding: 72px 0; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.spec {
  padding: 28px 24px 8px 0;
  border-right: 1px solid var(--line);
  margin-right: 24px;
}
.spec:last-child { border-right: 0; margin-right: 0; }
.spec h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
}
.spec p { margin: 0; color: var(--bone-dim); font-size: 13.5px; }
.spec p strong { color: var(--bone); font-weight: 400; }

@media (max-width: 720px) {
  .specs-grid { grid-template-columns: 1fr; }
  .spec { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .spec:last-child { border-bottom: 0; }
}

/* ---------- Providers ---------- */

.providers { padding: 8px 0 88px; }
.providers-inner {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-1);
  padding: 26px 28px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.providers-key {
  color: var(--bone-faint);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  flex: none;
}
.providers p { margin: 0; color: var(--bone-dim); font-size: 13.5px; max-width: 70ch; }
.providers p strong { color: var(--bone); font-weight: 400; }

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--bone-faint);
  font-size: 12px;
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--bone-faint); text-decoration: none; }
.foot-links a:hover { color: var(--bone); }

/* ---------- Legal pages ---------- */

.legal { padding: 64px 0 96px; }
.legal-body { max-width: 74ch; }
.legal h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 46px);
  letter-spacing: 0.03em;
  margin: 0 0 6px;
}
.legal .legal-updated { color: var(--bone-faint); font-size: 12.5px; margin: 0 0 40px; }
.legal h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin: 30px 0 10px; font-weight: 600; }
.legal p, .legal li { color: var(--bone-dim); font-size: 13.5px; }
.legal p strong, .legal li strong { color: var(--bone); font-weight: 600; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: 0.45em 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 12.5px; margin: 16px 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; color: var(--bone-dim); }
.legal th { color: var(--bone); background: var(--ink-1); font-weight: 600; }
