/* Hawkseer public surface — "Studio Console" tokens + shared components.
 *
 * One stylesheet for every page a signed-out (or freshly signed-in) person
 * sees: the marketing pages link it (/site/site.css), the sign-in / signup /
 * members pages INLINE it (they must also render on a local engine that has
 * no /site route).  Dark only, on purpose: the pre-auth pages are the
 * studio's lobby — the same deep-charcoal room as the app and the launch
 * video.  Status colours (green/amber/red/blue) mean status and nothing
 * else, and they glow; the accent (#8b8bff) marks what you can act on and
 * the brand.  Surfaces are layered (a soft ring + a 1px top light), not
 * outlined; motion is one voice (fast-out settle, a slight spring).
 */
:root {
  color-scheme: dark;
  --bg: #111417;          /* the room */
  --bg-raised: #181c1f;   /* panels, the console */
  --bg-sunk: #0c0e10;     /* wells: inputs, code */
  --bg-hi: #232a2f;       /* hover, chips */
  --line: #262c31;        /* hairlines (the exception now) */
  --line-strong: #3a4248;
  --ink: #e9ece8;
  --dim: #9ba59f;         /* 7.3:1 on --bg */
  --faint: #7f8984;       /* ≥4.7:1 on --bg and --bg-raised — meta text only */
  --accent: #8b8bff;
  --accent-2: #b478ff;
  --accent-soft: rgba(139, 139, 255, .14);
  --green: #3fcf8e;
  --amber: #f5b84d;
  --red: #ff6b6b;
  --blue: #4d9fff;
  --display: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  /* elevation: a soft ring + the 1px top light + ambient depth */
  --ring: 0 0 0 1px rgba(233, 236, 232, .06);
  --hl: inset 0 1px 0 rgba(255, 255, 255, .055);
  --shadow: var(--ring), 0 2px 8px rgba(0, 0, 0, .28), 0 30px 60px -28px rgba(0, 0, 0, .75);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--ink); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(139, 139, 255, .32); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── type: the video's voice — big, tight, expanded display; mono labels ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1.3 var(--mono);
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.ink { color: var(--ink); }
.h1 {
  font-weight: 840; font-stretch: 122%;
  font-size: clamp(42px, 6.5vw, 92px); line-height: .95; letter-spacing: -.035em;
}
.h1-page {
  font-weight: 830; font-stretch: 120%;
  font-size: clamp(38px, 5.6vw, 72px); line-height: .97; letter-spacing: -.032em;
}
.h2 {
  font-weight: 800; font-stretch: 118%;
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.01; letter-spacing: -.03em;
}
.h3 { font-weight: 700; font-stretch: 106%; font-size: 21px; line-height: 1.25; letter-spacing: -.005em; }
.lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--dim); max-width: 46ch; }
.lede b, .lede strong { color: var(--ink); font-weight: 600; }

/* ── links + buttons: raised, they lift on hover and press in ──────────── */
.link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(139, 139, 255, .45); text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease-out); }
.link:hover { text-decoration-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.1 var(--display); font-stretch: 108%; letter-spacing: .005em;
  text-decoration: none; text-align: center; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out),
              box-shadow .25s var(--ease-out), translate .2s var(--ease-out), scale .12s var(--ease-out);
}
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 0; scale: .97; }
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 2px rgba(0, 0, 0, .25), 0 10px 26px -12px rgba(0, 0, 0, .9);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0, 0, 0, .25), 0 16px 34px -12px rgba(0, 0, 0, .95), 0 0 0 4px rgba(139, 139, 255, .18);
}
.btn-ghost { background: rgba(233, 236, 232, .04); color: var(--ink); border-color: transparent; box-shadow: var(--hl), var(--ring); }
.btn-ghost:hover { background: var(--bg-hi); border-color: transparent; box-shadow: var(--hl), 0 0 0 1px rgba(233, 236, 232, .1), 0 10px 24px -14px rgba(0, 0, 0, .9); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.arrow { font-family: var(--mono); font-weight: 500; display: inline-block; transition: translate .25s var(--ease-spring); }
a:hover > .arrow, .btn:hover .arrow { translate: 3px 0; }

/* ── status LEDs (status only) — they glow ─────────────────────────────── */
.led { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.led.g { background: var(--green); box-shadow: 0 0 10px rgba(63, 207, 142, .65); }
.led.a { background: var(--amber); box-shadow: 0 0 10px rgba(245, 184, 77, .6); }
.led.r { background: var(--red); box-shadow: 0 0 10px rgba(255, 107, 107, .6); }
.led.b { background: var(--blue); box-shadow: 0 0 10px rgba(77, 159, 255, .65); }
.led.o { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }

/* ── brand ────────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
/* the lockup's wordmark: HAWKSEER in Archivo 900 expanded caps */
.brand b { font-weight: 900; font-stretch: 125%; font-size: 16px; letter-spacing: .035em; text-transform: uppercase; }

/* ── top navigation ──────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(17, 20, 23, .78); border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 12px 30px -22px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.nav-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { display: inline-flex; padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--dim); font-size: 15px; font-weight: 500;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out); }
.nav-links a:hover { color: var(--ink); background: rgba(233, 236, 232, .06); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(233, 236, 232, .07); box-shadow: var(--hl); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-signin { text-decoration: none; color: var(--dim); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out); }
.nav-signin:hover { color: var(--ink); background: rgba(233, 236, 232, .06); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; min-height: 38px; display: inline-flex; align-items: center;
  padding: 0 14px; border: 0; border-radius: 999px; background: rgba(233, 236, 232, .05); box-shadow: var(--hl), var(--ring);
  font: 600 14px var(--display); color: var(--ink); transition: background-color .2s var(--ease-out); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--bg-hi); }
.nav-menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; list-style: none; padding: 8px;
  background: rgba(36, 42, 47, .92); border: 0; border-radius: 18px; box-shadow: var(--hl), var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  transform-origin: top right; animation: vf-drop .26s var(--ease-out); }
@keyframes vf-drop { from { opacity: 0; translate: 0 -6px; scale: .96; } }
.nav-menu li a { display: block; padding: 10px 12px; border-radius: 11px; text-decoration: none; color: var(--ink); font-size: 15px; }
.nav-menu li a:hover { background: var(--bg-hi); }
@media (max-width: 880px) {
  .nav-in { gap: 12px; }
  .nav-in > nav { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 420px) {
  .nav-signin { display: none; }
  .brand b { font-size: 14px; }
}
/* phones: the bar's three things (mark, the one pill, Menu) fit 390 px */
@media (max-width: 520px) {
  .nav-in { gap: 8px; }
  .nav-in .brand { gap: 8px; }
  .nav-in .brand b { font-size: 14px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding: 0 12px; font-size: 13px; }
  .nav-actions .btn .arrow { display: none; }
  .nav-menu summary { padding: 0 12px; }
}

/* ── footer ──────────────────────────────────────────────────────────── */
.foot-site { border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 120px); padding: 48px 0 40px; color: var(--dim); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font: 500 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--dim); transition: color .2s var(--ease-out); }
.foot-grid a:hover { color: var(--ink); }
.foot-note { max-width: 32ch; margin-top: 14px; }
.foot-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px;
  font: 400 13px/1.5 var(--mono); color: var(--faint); }
.foot-base a { color: var(--dim); text-decoration: none; }
.foot-base a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── forms: soft wells; focus arrives as an accent halo ─────────────────── */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > legend { margin-bottom: 10px; }
.lbl { font: 500 11.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 0; }
.lbl .opt { font: 400 12px var(--mono); letter-spacing: 0; text-transform: none; color: var(--faint); margin-left: 6px; }
.input {
  width: 100%; min-width: 0; min-height: 48px; padding: 11px 16px; border-radius: 14px;
  border: 1px solid transparent; background: var(--bg-sunk); color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), var(--ring);
  font: 400 16px/1.35 var(--display);
  transition: box-shadow .2s var(--ease-out), background-color .2s var(--ease-out);
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: transparent; background: #0e1113;
  box-shadow: 0 0 0 1px rgba(139, 139, 255, .75), 0 0 0 4px rgba(139, 139, 255, .16); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid transparent; background: rgba(233, 236, 232, .04); box-shadow: var(--hl), var(--ring);
  color: var(--dim); font: 500 14px/1 var(--display);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out), translate .2s var(--ease-out), scale .12s var(--ease-out); }
.chip:hover span { color: var(--ink); background: var(--bg-hi); translate: 0 -1px; }
.chip:active span { scale: .96; translate: 0 0; }
.chip input:checked + span { background: var(--accent-soft); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(139, 139, 255, .8), 0 8px 18px -10px rgba(139, 139, 255, .8); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--dim); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.check a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.check a:hover { text-decoration-color: var(--ink); }
.alert { border: 0; box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .08);
  color: #f7c2b9; border-radius: 14px; padding: 12px 16px; font-size: 15px; line-height: 1.45; }
.note { font: 400 13px/1.5 var(--mono); color: var(--dim); }

/* ── code / command wells ──────────────────────────────────────────────── */
.cmd { display: flex; align-items: flex-start; gap: 12px; background: var(--bg-sunk); border: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), var(--ring);
  border-radius: 14px; padding: 12px 12px 12px 16px; }
.cmd code { flex: 1; min-width: 0; font: 400 14px/1.6 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: break-all; }
.cmd code .p { color: var(--faint); user-select: none; }
.copy { flex: none; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--bg-hi);
  box-shadow: var(--hl), var(--ring); color: var(--ink); font: 500 13px/1 var(--mono); cursor: pointer;
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), scale .12s var(--ease-out); }
.copy:hover { background: #2c3339; }
.copy:active { scale: .95; }
.copy[data-done] { color: var(--green); box-shadow: inset 0 0 0 1px rgba(63, 207, 142, .55), 0 0 16px -4px rgba(63, 207, 142, .7); }
code.inline { font: 400 .9em var(--mono); background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
kbd { font: 500 .85em var(--mono); background: var(--bg-hi); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

/* ── motion: entrances, scroll reveals (site.js adds .reveal), one voice;
   reduced motion renders everything settled ──────────────────────────── */
.rise { opacity: 0; transform: translateY(14px); animation: vf-rise .8s var(--ease-out) forwards; }
.d1 { animation-delay: .04s; } .d2 { animation-delay: .14s; } .d3 { animation-delay: .26s; }
.d4 { animation-delay: .4s; } .d5 { animation-delay: .56s; } .d6 { animation-delay: .7s; }
@keyframes vf-rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
  .reveal { opacity: 1; translate: none; }
}
