/* Subnetry website. Layout concept: the app's "mission control" instrument panel turned into a page:
   a telemetry strip, framed screens, mono readouts, and quiet bands between them. Dark first, like the app. */
:root {
  color-scheme: dark;
  --bg: #060a12;
  --band: #0a111e;
  --surface: #0d1524;
  --surface-2: #132036;
  --line: #1c2a42;
  --line-strong: #2a3d5c;
  --text: #e6edf7;
  --text-2: #9fb0c8;
  --text-3: #6d7f9a;
  --accent: #22d3ee;
  --accent-ink: #03141b;
  --glow: rgba(34, 211, 238, .28);
  --grid: rgba(34, 211, 238, .05);
  --good: #34d399;
  --warn: #fbbf24;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.3rem + 3.4vw, 3.75rem);
  --radius: 8px;
  --max: 1180px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #eef2f7; --band: #e4eaf2; --surface: #f8fafc; --surface-2: #e6edf6; --line: #cdd7e4; --line-strong: #b3c1d4;
    --text: #0b1220; --text-2: #3d4b63; --text-3: #5d6c84; --accent: #0880a0; --accent-ink: #ffffff;
    --glow: rgba(8, 128, 160, .18); --grid: rgba(8, 128, 160, .06); --good: #047857; --warn: #b45309;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f7; --band: #e4eaf2; --surface: #f8fafc; --surface-2: #e6edf6; --line: #cdd7e4; --line-strong: #b3c1d4;
  --text: #0b1220; --text-2: #3d4b63; --text-3: #5d6c84; --accent: #0880a0; --accent-ink: #ffffff;
  --glow: rgba(8, 128, 160, .18); --grid: rgba(8, 128, 160, .06); --good: #047857; --warn: #b45309;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--step-0)/1.6 var(--body);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
b { font-weight: 600; }

.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 12px; }

/* --- header + telemetry strip ---------------------------------------------------------------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font: 700 15px/1 var(--mono); letter-spacing: .22em; }
.brand img { color: var(--accent); }
.brand.small { font-size: 12px; gap: 8px; }
.top-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.top-nav a { color: var(--text-2); text-decoration: none; font: 500 var(--step--1)/1 var(--body); }
.top-nav a:hover { color: var(--text); }
.top-nav .gh { color: var(--accent); }
.telemetry { border-top: 1px solid var(--line); background: var(--band); }
.telemetry-row { display: flex; flex-wrap: wrap; gap: 6px 26px; min-height: 30px; align-items: center;
  font: 500 11px/1.4 var(--mono); letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; }
.telemetry b { color: var(--text); font-weight: 600; letter-spacing: .06em; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); margin-right: 8px; vertical-align: 1px; }
.dot.live { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.dot.soon { background: var(--warn); }

/* --- type ------------------------------------------------------------------------------------------ */
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--step-3); line-height: 1.04; font-weight: 800; }
h2 { font-size: var(--step-2); line-height: 1.12; font-weight: 750; }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 700; }
.eyebrow { margin: 0 0 12px; font: 600 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: "▸ "; }
.lede { font-size: var(--step-1); color: var(--text-2); max-width: 36em; margin: 20px 0 0; }
.section-lede { color: var(--text-2); max-width: 44em; margin: 12px 0 0; }
.fine { color: var(--text-3); font-size: var(--step--1); max-width: 70em; margin: 22px 0 0; }

/* --- buttons --------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface);
  font: 600 13px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 22px var(--glow); }
.btn.primary:hover { box-shadow: 0 0 32px var(--glow); transform: translateY(-1px); }
.btn.ghost { background: transparent; }

/* --- hero ---------------------------------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 6vw, 84px) 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-note { margin: 14px 0 0; color: var(--text-3); font: 500 12px/1.5 var(--mono); letter-spacing: .06em; }

.screen { margin: 0; position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--glow); overflow: hidden; }
.screen img { border-radius: calc(var(--radius) - 1px); }
.screen figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 4px;
  font: 500 11px/1.3 var(--mono); letter-spacing: .08em; color: #e6edf7; background: rgba(6, 10, 18, .78); border: 1px solid #2a3d5c; }
.hero-screen { isolation: isolate; }
.sweep { position: absolute; inset: -40%; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from 0deg, transparent 0deg 320deg, rgba(34, 211, 238, .16) 352deg, transparent 360deg);
  animation: sweep 7s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; margin: 48px 0 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.readouts div { padding: 16px 20px; border-left: 1px solid var(--line); }
.readouts div:first-child { border-left: 0; }
.readouts dt { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.readouts dd { margin: 6px 0 0; font: 700 var(--step-1)/1.2 var(--display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .readouts div { border-left: 0; border-top: 1px solid var(--line); } .readouts div:first-child { border-top: 0; } }

/* --- bands & tool groups ------------------------------------------------------------------------- */
.band { background: var(--band); border-block: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px); }
/* Five groups of different lengths: balanced columns rather than a grid with a hole in the last row. */
.groups { columns: 3 300px; column-gap: 18px; margin-top: 40px; }
.group { break-inside: avoid; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.group h3 { font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.group dl { margin: 14px 0 0; display: grid; gap: 4px 0; }
.group dt { font-weight: 600; margin-top: 10px; }
.group dt:first-child { margin-top: 0; }
.group dd { margin: 0; color: var(--text-2); font-size: .9375rem; }

/* --- spotlights ------------------------------------------------------------------------------------- */
.spotlights { padding-block: clamp(56px, 7vw, 100px); }
.spotlights .wrap { display: grid; gap: clamp(56px, 8vw, 110px); }
.spot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .spot { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 52px; }
  .spot.flip { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .spot.flip .screen { order: 2; }
}
.spot-copy { min-width: 0; }
.spot-copy p:not(.eyebrow) { color: var(--text-2); margin: 16px 0 0; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); }
.ticks li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--good); font-size: .875rem; }

/* --- downloads ---------------------------------------------------------------------------------------- */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; margin-top: 36px; }
.dl { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); min-width: 0; }
.dl.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 30px var(--glow); }
.dl.mine::before { content: "Your computer"; align-self: flex-start; margin-bottom: 6px; padding: 3px 8px; border-radius: 4px;
  font: 600 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); }
.dl-sub { margin: 0; color: var(--text-2); }
.dl-meta { margin: 8px 0 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-3); font: 500 12px/1.4 var(--mono); }
.dl .btn { margin-top: auto; }
.dl .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* --- install --------------------------------------------------------------------------------------------- */
.install { padding-block: clamp(56px, 7vw, 96px); }
.tabs { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.tabs button { font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); background: none;
  border: 0; border-radius: 5px; padding: 10px 18px; cursor: pointer; min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.panel { margin-top: 22px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 820px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 64px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2); }
.steps li b { color: var(--text); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 15px;
  font: 600 14px/1.4 var(--mono); color: var(--accent); }

/* --- extras table ---------------------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.extras { width: 100%; border-collapse: collapse; min-width: 560px; }
.extras th, .extras td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.extras thead th { border-top: 0; font: 600 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.extras tbody th { font-weight: 600; white-space: nowrap; }
.extras td { color: var(--text-2); }

/* --- privacy ------------------------------------------------------------------------------------------------- */
.privacy { padding-block: clamp(56px, 7vw, 96px); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
.privacy-grid p:not(.eyebrow) { color: var(--text-2); margin: 16px 0 0; max-width: 34em; }
.contacts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contacts li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 18px; padding: 14px 18px; border-top: 1px solid var(--line); }
.contacts li:first-child { border-top: 0; }
.contacts span { color: var(--text-2); }
@media (max-width: 560px) { .contacts li { grid-template-columns: minmax(0, 1fr); } }
.use { border-left: 3px solid var(--warn); padding-left: 14px; color: var(--text-2); }

/* --- FAQ ------------------------------------------------------------------------------------------------------- */
#faq details { border-top: 1px solid var(--line); }
#faq details:last-of-type { border-bottom: 1px solid var(--line); }
#faq h2 { margin-bottom: 28px; }
#faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: var(--step-1); }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 500 24px/1 var(--mono); color: var(--accent); }
#faq details[open] summary::after { content: "–"; }
#faq details p { margin: 0 0 20px; color: var(--text-2); max-width: 42em; }

/* --- footer ------------------------------------------------------------------------------------------------------ */
.foot { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--text-3); font-size: var(--step--1); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot .brand { color: var(--text-2); }

@media (max-width: 760px) {
  .top-nav a:not(.gh):not([href="#download"]) { display: none; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sweep { animation: none; opacity: 0; }
  .btn { transition: none; }
}
