/* glasshouse — an instrument, not a dashboard.
   Two text faces (a printed serif for headings, the system sans for prose) and
   one data face. One accent per state, hairline rules instead of cards. */

:root {
  color-scheme: dark;
  --ground: #05070d;
  --surface: #08121a;
  --line: #14313f;
  --line-soft: #0d1f29;
  --ink: #ddf4f4;
  --ink-dim: #a6c4cc;
  --muted: #86a3b0;
  --track: #1d3b4a;
  --ok: #2ff0d9;
  --warn: #ffb545;
  --leak: #ff2f6d;
  --focus: #7cf9ff;
  --cyan: #2ff0d9;
  --magenta: #ff3ea5;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1140px;
  --r: 2px;
}

html[data-theme="light"] {
  color-scheme: light;
  --ground: #eef3f4;
  --surface: #ffffff;
  --line: #b9cdd0;
  --line-soft: #d5e2e3;
  --ink: #05161a;
  --ink-dim: #1d3a42;
  --muted: #4a6570;
  --track: #b3c6c6;
  --ok: #067d78;
  --warn: #8a5a00;
  --leak: #b3165c;
  --focus: #056d8c;
  --cyan: #067d78;
  --magenta: #b3165c;
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] {
    color-scheme: light;
    --ground: #eef3f4;
    --surface: #ffffff;
    --line: #b9cdd0;
    --line-soft: #d5e2e3;
    --ink: #05161a;
    --ink-dim: #1d3a42;
    --muted: #4a6570;
    --track: #b3c6c6;
    --ok: #067d78;
    --warn: #8a5a00;
    --leak: #b3165c;
    --focus: #056d8c;
    --cyan: #067d78;
    --magenta: #b3165c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

/* ---- drifting background ----
   Three soft fields on a fixed layer, moved with transform only (rasterised
   once, then just translated), so it costs one composite per frame and never
   triggers layout. It sits under everything and never takes the pointer. */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  opacity: 0.9;
}

html[data-theme="light"] .blob,
html[data-theme="auto"] .blob { opacity: 0.4; }

.blob-a {
  top: -28%;
  left: -14%;
  background: radial-gradient(circle at 50% 50%, rgba(47, 240, 217, 0.34), rgba(47, 240, 217, 0) 62%);
  animation: drift-a 54s ease-in-out infinite alternate;
}

.blob-b {
  bottom: -34%;
  right: -18%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 62, 165, 0.30), rgba(255, 62, 165, 0) 62%);
  animation: drift-b 68s ease-in-out infinite alternate;
}

.blob-c {
  top: 24%;
  right: 6%;
  width: 44vmax;
  height: 44vmax;
  background: radial-gradient(circle at 50% 50%, rgba(61, 92, 255, 0.26), rgba(61, 92, 255, 0) 64%);
  animation: drift-c 82s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(-4%, -2%, 0) scale(1); }
  to { transform: translate3d(14%, 10%, 0) scale(1.16); }
}
@keyframes drift-b {
  from { transform: translate3d(6%, 4%, 0) scale(1.1); }
  to { transform: translate3d(-12%, -8%, 0) scale(1); }
}
@keyframes drift-c {
  from { transform: translate3d(4%, 8%, 0) scale(0.94); }
  to { transform: translate3d(-10%, -6%, 0) scale(1.12); }
}

header, main, footer, .noscript { position: relative; z-index: 1; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 0.55vw + 13px, 16.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 2.3vw, 1.95rem); }

p { margin: 0; }

a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--ok); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ground);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ---------- masthead ---------- */

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem clamp(1.1rem, 4vw, 2.5rem) 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}

.wordmark {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.mark {
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid var(--ok);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--ground);
  background: var(--ok);
  transform: translateY(-1px);
}

.standfirst {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.mast-tools { display: flex; gap: 0.5rem; }

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  color: var(--ink-dim);
}

.theme-state {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.theme-btn:hover .theme-state { color: var(--ink); }

/* ---------- shell ---------- */

main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem) 5rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-rows: auto auto;
  column-gap: clamp(1.5rem, 5vw, 4.5rem);
  row-gap: 0.4rem;
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(2rem, 4vh, 3.5rem) 0;
}

.hero-copy { max-width: 40ch; grid-row: 1 / span 2; }

.lede {
  color: var(--ink-dim);
  margin-top: 1.4rem;
  max-width: 46ch;
}

.address-line {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.mono.big {
  font-size: clamp(1.35rem, 3.1vw, 2.1rem);
  line-height: 1.2;
  word-break: break-all;
}

.sub-line {
  margin-top: 0.9rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
  min-height: 1.4em;
}

/* the one moment: the ring draws once on load */

.dial {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  width: clamp(220px, 25vw, 296px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 7; }
.dial .track {
  stroke: var(--track);
  stroke-width: 5;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}
.dial .fill {
  stroke: var(--ok);
  stroke-linecap: butt;
  stroke-dasharray: 540.35;
  stroke-dashoffset: 540.35;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 0.61, 0.36, 1), stroke 0.45s ease;
}

.dial-face {
  display: grid;
  justify-items: center;
  line-height: 1;
}

.score {
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: -0.04em;
}

.of { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-dim); margin-top: 0.35rem; }

.verdict {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 0.32rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--muted);
}
.verdict[data-state="clean"] { color: var(--ok); }
.verdict[data-state="partial"] { color: var(--warn); }
.verdict[data-state="leaking"] { color: var(--leak); }

.dial-cap {
  position: absolute;
  bottom: -2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.dial-legend {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: start;
  margin-top: 2.2rem;
  display: grid;
  gap: 0.15rem;
  width: clamp(220px, 25vw, 296px);
  border-top: 1px solid var(--line-soft);
  padding-top: 0.7rem;
}

.legend-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--ink-dim);
  padding: 0.22rem 0;
}

.legend-n { color: var(--ink); font-size: 0.95rem; min-width: 1.3ch; text-align: right; }
.legend-row:first-child .legend-n { color: var(--leak); }
.legend-row:nth-child(2) .legend-n { color: var(--warn); }

/* ---------- panels ---------- */

.panel {
  border-top: 1px solid var(--line);
  padding: clamp(2.4rem, 5vh, 4rem) 0;
  display: grid;
  gap: 1.1rem;
}

.panel > h2 { max-width: 30ch; }
.panel > .note { color: var(--muted); max-width: 68ch; font-size: 0.94rem; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 0.4rem;
}

.ipcard {
  background: var(--surface);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.35rem;
  min-height: 7.5rem;
  align-content: start;
}

.ipcard .value { font-size: 1.05rem; word-break: break-all; }
.ipcard .meta { color: var(--muted); font-size: 0.85rem; }
.ipcard[data-state="absent"] .value { color: var(--muted); }

/* ---------- facts grid ---------- */

.grid.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.grid.facts > div {
  background: var(--surface);
  padding: 0.85rem 1.1rem;
  min-height: 4.4rem;
}

.grid.facts dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.grid.facts dd {
  margin: 0;
  font-size: 0.94rem;
  word-break: break-word;
  color: var(--ink);
}

/* ---------- controls ---------- */

.testbar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

button {
  font: inherit;
  cursor: pointer;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.55rem 0.95rem;
  min-height: 44px;
  transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.15s ease;
}

button:hover { border-color: var(--ok); }
button:active { transform: translateY(1px) scale(0.995); }
button[disabled] { opacity: 0.55; cursor: progress; }
button:focus-visible { border-color: var(--focus); }

button.primary {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
  font-weight: 600;
}
button.primary:hover {
  background: var(--ok);
  border-color: var(--ok);
  color: #04120e;
  box-shadow: 0 8px 24px -14px var(--ok);
}

button.ghost { padding: 0.4rem 0.7rem; min-height: 38px; font-size: 0.86rem; }

.status { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.status[data-state="running"] { color: var(--warn); }
.status[data-state="running"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
  animation: gh-pulse 1.1s ease-in-out infinite;
}
.status[data-state="done"] { color: var(--ok); }
.status[data-state="error"] { color: var(--leak); }

/* ---------- rows ---------- */

.rows { list-style: none; margin: 0; padding: 0; display: grid; }

.rows li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
}

.rows li:first-child { border-top: 1px solid var(--line-soft); }
.rows .r-ip { font-family: var(--mono); word-break: break-all; }
.rows .r-where { color: var(--ink-dim); }
.rows .r-note { color: var(--muted); font-size: 0.8rem; text-align: right; }
.rows li[data-flag="leak"] .r-ip { color: var(--leak); }

/* ---------- chips ---------- */

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.chip[data-class="residential"] { color: var(--ok); border-color: var(--ok); }
.chip[data-class="hosting"] { color: var(--warn); border-color: var(--warn); }
.chip[data-class="vpn"], .chip[data-class="proxy"] { color: var(--focus); border-color: var(--focus); }
.chip[data-class="tor"] { color: var(--leak); border-color: var(--leak); }

/* ---------- torrent ---------- */

.magnet {
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 1rem 1.1rem;
  justify-items: start;
}

.magnet code {
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--ink-dim);
  line-height: 1.5;
}

.hint { color: var(--muted); font-size: 0.82rem; }

/* ---------- headers table ---------- */

.headers {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 0.2rem;
}

.headers th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.5rem 0.6rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.headers td {
  vertical-align: top;
  padding: 0.6rem 0.6rem 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.headers td:first-child { font-family: var(--mono); color: var(--ink-dim); white-space: nowrap; }
.headers td:nth-child(2) { font-family: var(--mono); word-break: break-word; color: var(--ink); }
.headers td:last-child { color: var(--muted); font-size: 0.8rem; }

/* ---------- findings ---------- */

.findings { list-style: none; margin: 0.3rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line-soft); }

.finding {
  position: relative;
  background: var(--surface);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  align-items: start;
}

.finding::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.finding:hover::before { opacity: 1; background: var(--ok); }

.sev {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 0.15rem;
}
.sev-0 { color: var(--ok); }
.sev-1 { color: var(--muted); }
.sev-2 { color: var(--warn); }
.sev-3 { color: var(--leak); }

.fbody { display: grid; gap: 0.3rem; }
.fbody strong { font-weight: 600; font-size: 0.96rem; }
.fbody span { color: var(--muted); font-size: 0.88rem; }
.fbody em { color: var(--ink-dim); font-style: normal; font-size: 0.86rem; }
.fbody em::before { content: "→ "; color: var(--muted); }

/* ---------- api + foot ---------- */

.api { border-top: 1px solid var(--line); padding: 3rem 0 0; display: grid; gap: 1rem; }
.api pre {
  margin: 0;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

.foot {
  border-top: 1px solid var(--line);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem clamp(1.1rem, 4vw, 2.5rem) 3rem;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.small { font-size: 0.75rem; }

.noscript {
  max-width: var(--wrap);
  margin: 0 auto 2rem;
  padding: 1rem clamp(1.1rem, 4vw, 2.5rem);
  border: 1px solid var(--warn);
  color: var(--ink);
}

/* ---------- motion ----------
   One entrance on load, and then only feedback for what the pointer or the
   tests actually do. Nothing animates because the page scrolled. */

@keyframes gh-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes gh-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gh-row {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
@keyframes gh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.82); }
}
@keyframes gh-breathe {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.04); }
}

.hero-copy > * { animation: gh-rise 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.04s; }
.hero-copy > :nth-child(2) { animation-delay: 0.14s; }
.hero-copy > :nth-child(3) { animation-delay: 0.24s; }
.hero-copy > :nth-child(4) { animation-delay: 0.33s; }
.dial { animation: gh-fade 1s ease 0.28s both; }
.dial-legend { animation: gh-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.42s both; }

.dial::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  box-shadow: 0 0 60px -10px var(--dial, var(--ok));
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

.rows li { animation: gh-row 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.rows li:nth-child(2) { animation-delay: 0.05s; }
.rows li:nth-child(3) { animation-delay: 0.1s; }
.rows li:nth-child(4) { animation-delay: 0.14s; }
.rows li:nth-child(5) { animation-delay: 0.18s; }
.rows li:nth-child(6) { animation-delay: 0.22s; }

.wordmark .mark { transition: transform 0.2s ease, box-shadow 0.2s ease; }

@media (hover: hover) and (pointer: fine) {
  button { transition: transform 0.14s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.2s ease; }
  button:hover { transform: translateY(-1px); }

  .rows li { transition: background-color 0.16s ease, padding-left 0.16s ease; }
  .rows li:hover { background: rgba(127, 160, 170, 0.06); padding-left: 0.5rem; }

  .ipcard { transition: box-shadow 0.22s ease, background-color 0.22s ease; }
  .ipcard:hover { box-shadow: inset 0 1px 0 0 var(--ok); }

  .headers tbody tr { transition: background-color 0.14s ease; }
  .headers tbody tr:hover { background: rgba(127, 160, 170, 0.05); }

  .grid.facts > div { transition: background-color 0.16s ease; }
  .grid.facts > div:hover { background: rgba(127, 160, 170, 0.05); }

  .wordmark:hover .mark { transform: translateY(-1px) scale(1.18); box-shadow: 0 0 0 4px rgba(79, 214, 176, 0.12); }

  a { transition: text-decoration-color 0.15s ease, color 0.15s ease; }
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    padding: 2.5rem 0 3rem;
    row-gap: 1.4rem;
  }
  .hero-copy { max-width: none; grid-row: auto; }
  .dial { grid-column: 1; grid-row: auto; justify-self: start; width: 210px; }
  .dial-legend { grid-column: 1; grid-row: auto; justify-self: stretch; margin-top: 1.6rem; }
  .standfirst { display: none; }
  .masthead { grid-template-columns: 1fr auto; }
}

@media (max-width: 640px) {
  .rows li { grid-template-columns: 1fr; gap: 0.2rem; }
  .rows .r-note { text-align: left; }
  .headers, .headers thead, .headers tbody, .headers tr, .headers td, .headers th { display: block; }
  .headers thead { position: absolute; left: -9999px; }
  .headers tr { border-bottom: 1px solid var(--line-soft); padding: 0.7rem 0; }
  .headers td { border: 0; padding: 0.1rem 0; }
  .headers td:first-child { color: var(--muted); font-size: 0.72rem; }
  .testbar button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-delay: 0s !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .dial .fill { transition: none; }
  .dial::before { display: none; }
  .hero-copy > *, .dial, .dial-legend, .rows li { opacity: 1; transform: none; }
}

/* ---------- the room ----------
   Cyberpunk, but a working instrument rather than a neon poster: one cyan,
   one magenta, a scanline you notice only when it moves, and a floor grid that
   gives the page a horizon instead of a flat fill. */

.aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, transparent 55%, rgba(2, 4, 9, 0.7) 100%),
    linear-gradient(to top, rgba(255, 62, 165, 0.10), transparent 34%);
}

.aurora::after {
  content: "";
  position: absolute;
  inset: -10% 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.32) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
  opacity: 0.5;
  animation: scan 14s linear infinite;
}

@keyframes scan {
  from { transform: translateY(0); }
  to { transform: translateY(3px); }
}

html[data-theme="light"] .aurora::after { opacity: 0.18; }
html[data-theme="light"] .aurora::before {
  background: radial-gradient(120% 90% at 50% -10%, transparent 45%, rgba(210, 224, 228, 0.9) 100%);
}

.floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -6vh;
  height: 42vh;
  background-image:
    linear-gradient(rgba(47, 240, 217, 0.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 240, 217, 0.22) 1px, transparent 1px);
  background-size: 64px 42px, 64px 42px;
  transform: perspective(46vh) rotateX(66deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 88%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 88%);
  opacity: 0.85;
  animation: floor-pan 24s linear infinite;
}

html[data-theme="light"] .floor { opacity: 0.3; }

@keyframes floor-pan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 42px, 0 0; }
}

/* the display type carries a two-colour split, one pixel either way */
h1 {
  text-shadow:
    1px 0 rgba(255, 62, 165, 0.32),
    -1px 0 rgba(47, 240, 217, 0.32);
}

.wordmark { text-shadow: 0 0 18px rgba(47, 240, 217, 0.35); }

.mark {
  box-shadow: 0 0 10px 1px rgba(47, 240, 217, 0.55);
  animation: mark-pulse 3.2s ease-in-out infinite;
}

@keyframes mark-pulse {
  0%, 100% { box-shadow: 0 0 8px 0 rgba(47, 240, 217, 0.35); }
  50% { box-shadow: 0 0 16px 2px rgba(47, 240, 217, 0.7); }
}

.mono.big {
  color: #eafffb;
  text-shadow: 0 0 22px rgba(47, 240, 217, 0.35);
}

.dial .fill { filter: drop-shadow(0 0 3px var(--dial, var(--ok))); }

.verdict { box-shadow: 0 0 0 1px currentColor inset, 0 0 16px -6px currentColor; }

.panel { position: relative; }

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.panel::before { top: -1px; left: 0; border-right: 0; border-bottom: 0; }
.panel::after { top: -1px; right: 0; border-left: 0; border-bottom: 0; }

button { border-color: var(--line); }
button:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px -8px var(--cyan);
  color: #eafffb;
}
button.primary {
  background: linear-gradient(180deg, rgba(47, 240, 217, 0.16), rgba(47, 240, 217, 0.06));
  border-color: var(--cyan);
  color: #eafffb;
  text-shadow: 0 0 12px rgba(47, 240, 217, 0.45);
}
button.primary:hover {
  background: var(--cyan);
  color: #03181a;
  text-shadow: none;
}

.ipcard .value, .rows .r-ip { color: #d9fffb; }
.chip[data-class="vpn"], .chip[data-class="proxy"] { color: var(--magenta); border-color: var(--magenta); }

.api pre { border-color: var(--line); box-shadow: inset 0 0 40px -30px var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  .blob, .floor, .aurora::after, .mark { animation: none !important; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
  text-shadow: 0 0 14px rgba(47, 240, 217, 0.45);
}

.eyebrow .live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px rgba(255, 62, 165, 0.8);
  animation: gh-pulse 1.8s ease-in-out infinite;
}

/* the hero's copy is one column: the eyebrow rides above the headline */
.hero-copy > .eyebrow { animation-delay: 0.02s; }
.hero-copy > h1 { animation-delay: 0.08s; }
.hero-copy > .lede { animation-delay: 0.18s; }
.hero-copy > .address-line { animation-delay: 0.28s; }
.hero-copy > .sub-line { animation-delay: 0.36s; }
