/* ==========================================================================
   STANDBY — FOUNDATION.  Editorial dark register: whisper-weight display serif
   doing the emotional work over a near-black achromatic canvas, with chromatic
   colour reserved for illuminated product-surface cards. One true action colour:
   a white pill with an arrow. Tracked mono labels feel stamped, not typed.
   Type substitutes for the editorial-finance register: Fraunces (display serif) ·
   Inter (sans workhorse) · JetBrains Mono (data + tracked labels).
   Fonts load via <link> in each page head.
   ========================================================================== */

:root {
  /* ---- achromatic ladder (the canvas) ---- */
  --obsidian: #0f1011;   /* page canvas */
  --carbon: #090a0b;     /* deepest / elevated card substrate */
  --graphite: #1c1d1f;   /* mid card surface */
  --graphite-2: #2e2e2e; /* frosted overlays, device screens */
  --slate: #3f4041;      /* secondary interactive surface */
  --mist: #6a6b6b;       /* muted helper text */
  --frost: #9f9fa0;      /* body text on dark */
  --pearl: #cacaca;      /* light fills */
  --bone: #f5f5f7;       /* headings */
  --paper: #ffffff;      /* primary text, hairlines, the one CTA fill */

  --hairline: rgba(245, 245, 247, 0.10);
  --hairline-2: rgba(245, 245, 247, 0.16);

  /* ---- chromatic — illuminated product surfaces ONLY (never controls) ---- */
  --amethyst: #847dff;
  --lavender: #d1c9ff;
  --iris: #4b49aa;
  --orchid: #dd90d8;
  --cyan: #00b3dd;
  --sky: #90b8f0;
  --navy: #195f97;

  /* ---- atmosphere: Standby's "open line" horizon (the one atmospheric moment) ---- */
  --horizon: radial-gradient(120% 78% at 50% 116%, #4a8fc4 0%, #1a4788 26%, #131d27 52%, var(--obsidian) 78%);

  /* ---- type ---- */
  --serif: "Newsreader", "Lyon Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --t-display: clamp(3.4rem, 1.6rem + 7.6vw, 6rem);  /* hero ~96px */
  --t-h1: clamp(2.8rem, 1.8rem + 4.2vw, 5rem);       /* section openers ~80px */
  --t-h2: clamp(2rem, 1.4rem + 2.4vw, 2.85rem);      /* medium serif ~38-46px */
  --t-h3: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
  --t-sub: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);      /* subheading 18-20px */
  --t-body: 1.0625rem;                               /* 17px */
  --t-sm: 0.875rem;                                  /* 14px */
  --t-label: 0.6875rem;                              /* 11px tracked */

  --track-label: 0.182em;   /* the stamped UI register */

  /* ---- rhythm ---- */
  --maxw: 1200px;
  --maxw-text: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 3.5rem + 6vw, 8.75rem);   /* ~80-140px */

  /* ---- shape ---- */
  --r-nav: 8px;
  --r-input: 8px;
  --r-card: 16px;
  --r-feature: 30px;
  --r-pill: 999px;

  /* ---- elevation ---- */
  --shadow-pill: rgba(0, 0, 0, 0.2) 0px 18px 20px 0px;
  --shadow-card: 0 24px 60px -34px rgba(0, 0, 0, 0.9);
  --shadow-float: 0 50px 110px -44px rgba(0, 0, 0, 0.92);

  /* ---- motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans); background: var(--obsidian); color: var(--frost);
  font-size: var(--t-body); line-height: 1.6; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  position: relative;
}

/* ==========================================================================
   AURORA — a fluid, animated chromatic wash behind the entire site (fixed, on
   every page). Two slow-drifting layers of brand chromatics keep it from ever
   reading flat-grey, while staying soft enough to keep text crisp on top.
   ========================================================================== */
body::before, body::after {
  content: ""; position: fixed; inset: -28%; z-index: -2; pointer-events: none; will-change: transform;
}
body::before {
  background:
    radial-gradient(38% 46% at 22% 24%, rgba(132, 125, 255, 0.30), transparent 62%),
    radial-gradient(42% 42% at 82% 16%, rgba(0, 179, 221, 0.24), transparent 62%),
    radial-gradient(46% 50% at 70% 84%, rgba(144, 184, 240, 0.20), transparent 62%),
    radial-gradient(40% 46% at 24% 86%, rgba(221, 144, 216, 0.20), transparent 62%);
  filter: blur(48px); animation: aurora-a 26s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(40% 48% at 62% 32%, rgba(75, 73, 170, 0.24), transparent 60%),
    radial-gradient(44% 44% at 30% 62%, rgba(0, 179, 221, 0.14), transparent 60%),
    radial-gradient(40% 40% at 88% 70%, rgba(132, 125, 255, 0.16), transparent 60%);
  filter: blur(62px); animation: aurora-b 34s ease-in-out infinite alternate;
}
@keyframes aurora-a { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 100% { transform: translate(-5%, 4%) rotate(10deg) scale(1.14); } }
@keyframes aurora-b { 0% { transform: translate(0, 0) rotate(0deg) scale(1.06); } 100% { transform: translate(6%, -4%) rotate(-9deg) scale(1); } }
/* a faint top vignette so the nav area stays legible over the wash */
.shell, main { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
input { font: inherit; color: inherit; }

/* headings are the serif voice — whisper weight, never bold */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--bone); line-height: 0.94; letter-spacing: -0.012em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; }
p { text-wrap: pretty; }

::selection { background: var(--paper); color: var(--carbon); }
:focus-visible { outline: 1px solid var(--paper); outline-offset: 3px; border-radius: 4px; }

* { scrollbar-width: thin; scrollbar-color: var(--slate) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 99px; border: 3px solid var(--obsidian); }

.skip { position: absolute; left: 16px; top: -64px; z-index: 999; background: var(--paper); color: var(--carbon); padding: 10px 16px; border-radius: var(--r-input); font-weight: 500; transition: top 0.2s var(--ease); }
.skip:focus { top: 16px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.center { text-align: center; }
.measure { max-width: var(--maxw-text); }

/* ---------- the stamped label (mono, wide-tracked) ---------- */
.label { font-family: var(--mono); font-size: var(--t-label); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--frost); }
.label--accent { color: var(--paper); }

/* ---------- editorial section heading (two-word, first word italic) ---------- */
.heading { font-family: var(--serif); font-weight: 300; font-size: var(--t-h1); line-height: 0.92; color: var(--bone); letter-spacing: -0.014em; }
.heading em { font-style: italic; }
.lede { font-family: var(--sans); font-weight: 300; font-size: var(--t-sub); color: var(--frost); line-height: 1.5; margin-top: 22px; }
.center .lede { margin-inline: auto; max-width: 30em; }

/* ---------- buttons — the ONE action colour is a white pill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--mono); font-size: var(--t-label); font-weight: 400;
  letter-spacing: var(--track-label); text-transform: uppercase;
  padding: 13px 20px; border-radius: var(--r-pill); white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--primary { background: var(--paper); color: var(--carbon); box-shadow: var(--shadow-pill); }
.btn--primary:hover { background: var(--bone); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--bone); border: 1px solid var(--hairline-2); }
.btn--ghost:hover { background: rgba(245, 245, 247, 0.05); border-color: var(--hairline-2); }
.btn--plain { padding: 13px 6px; color: var(--frost); }
.btn--plain:hover { color: var(--paper); }
.btn__arrow { transition: transform 0.25s var(--ease); font-family: var(--sans); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- status / promo pill ---------- */
.pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: var(--t-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bone); padding: 7px 15px; border: 1px solid var(--hairline-2); border-radius: var(--r-pill); background: rgba(15, 16, 17, 0.5); backdrop-filter: blur(8px); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 200; transition: background 0.4s var(--ease), border-color 0.4s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(15, 16, 17, 0.72); border-bottom-color: var(--hairline); backdrop-filter: saturate(150%) blur(20px); -webkit-backdrop-filter: saturate(150%) blur(20px); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { height: 17px; width: auto; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { font-family: var(--mono); font-size: var(--t-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--frost); padding: 9px 13px; border-radius: var(--r-nav); transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--bone); background: rgba(245, 245, 247, 0.05); }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__cta .sign { font-family: var(--mono); font-size: var(--t-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--frost); padding: 13px 14px; transition: color 0.2s var(--ease); }
.nav__cta .sign:hover { color: var(--bone); }
@media (max-width: 940px) { .nav__links { display: none; } .nav__cta .sign { display: none; } }

/* ---------- content card (achromatic) ---------- */
.card { background: var(--carbon); border: 1px solid var(--hairline); border-radius: var(--r-card); transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }

/* ---------- chromatic product-surface card (no border; colour carries it) ---------- */
.surface { position: relative; border-radius: var(--r-feature); overflow: hidden; padding: 28px; color: var(--paper); box-shadow: var(--shadow-card); isolation: isolate; }
.surface::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 16, 17, 0.18), rgba(15, 16, 17, 0.74)); pointer-events: none; }
.surface--amethyst { background: radial-gradient(120% 120% at 20% 0%, #9a93ff, #5a52cc 60%, #2f2c7a); }
.surface--cyan { background: radial-gradient(120% 120% at 20% 0%, #2fd0f5, #00a6cf 55%, #0a5f7e); }
.surface--sky { background: radial-gradient(120% 120% at 20% 0%, #aaccf6, #6f9fe0 55%, #2f5d9a); }
.surface--orchid { background: radial-gradient(120% 120% at 20% 0%, #ec9fe6, #c66dc0 55%, #6f3a78); }
.surface__tag { font-family: var(--mono); font-size: 0.625rem; letter-spacing: var(--track-label); text-transform: uppercase; color: rgba(255, 255, 255, 0.86); }
.surface__title { font-family: var(--serif); font-weight: 300; font-size: var(--t-h3); color: var(--paper); margin-top: auto; line-height: 1.04; }
.surface__sub { font-size: var(--t-sm); color: rgba(255, 255, 255, 0.82); margin-top: 10px; line-height: 1.5; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--hairline); padding-block: 64px 40px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__top { grid-template-columns: 1fr; } }
.foot__brand img { height: 16px; }
.foot__brand p { color: var(--mist); max-width: 30ch; margin-top: 16px; font-size: var(--t-sm); line-height: 1.55; }
.foot__col h5 { font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--mist); margin-bottom: 16px; }
.foot__col a { display: block; font-size: var(--t-sm); color: var(--frost); padding: 6px 0; transition: color 0.2s var(--ease); }
.foot__col a:hover { color: var(--bone); }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.foot__bottom span { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.06em; color: var(--mist); }

/* ---------- restrained editorial reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
