/* Trivex Server Rooms: one stylesheet, no build step.
   Works under the site's Content-Security-Policy: no inline styles anywhere, everything here.
   Order: tokens, base, layout, components, sections, motion, reduced motion. Mobile first. */

/* ---- Design tokens ------------------------------------------------------------------- */
:root {
  --bg: #0b0e14;
  --bg-raised: #0f141d;
  --surface: #121925;
  --surface-2: #172031;
  --border: rgba(150, 180, 225, 0.13);
  --border-strong: rgba(150, 180, 225, 0.24);
  --grid-line: rgba(120, 160, 220, 0.055);

  --text: #f1f5fb;
  --text-muted: #a2b0c6;
  --text-dim: #8493ab;
  --on-accent: #041321;

  --accent-1: #0a9bff;
  --accent-2: #00d4ff;
  --gradient: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  --gradient-diag: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --cyan-35: rgba(0, 212, 255, 0.35);
  --cyan-15: rgba(0, 212, 255, 0.15);
  --blue-glow: rgba(10, 155, 255, 0.28);
  --glow-sm: 0 0 18px rgba(0, 180, 255, 0.28);
  --glow-md: 0 0 40px rgba(0, 170, 255, 0.22);

  --font-head: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: 16px;
  --header-h: 116px;
  --section-y: clamp(56px, 7vw, 96px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2?v=9338e65f") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Faint grid and soft blue glow behind everything. Decorative only. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}

body::after {
  background:
    radial-gradient(ellipse 60% 45% at 75% -5%, var(--blue-glow), transparent 70%),
    radial-gradient(ellipse 45% 35% at 5% 10%, rgba(0, 212, 255, 0.08), transparent 70%);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 8.5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.85rem, 5.2vw, 2.9rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-2);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #7fe6ff;
}

img,
svg {
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The SVG sprite holds shared symbols. It must stay rendered (not display:none) or some
   browsers drop its gradients. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-2);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-accent);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 6vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.gradient-text {
  color: var(--accent-2);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ---- Icons --------------------------------------------------------------------------- */
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

/* ---- Logo ---------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

/* The logo's text carries logo.svg's own font, size and colour as attributes (tests/test_logo.py);
   no CSS rule may set them, or the page would show a different logo. */
.logo svg {
  display: block;
  width: 168px;
  height: auto;
}

/* ---- Buttons ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary {
  background: var(--gradient);
  color: var(--on-accent);
  box-shadow: var(--glow-sm);
}

.btn--primary:hover {
  color: var(--on-accent);
  box-shadow: 0 0 28px rgba(0, 200, 255, 0.45);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--cyan-35);
  background: rgba(0, 212, 255, 0.06);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.92rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Tagline pill -------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 7px 16px 7px 8px;
  border: 1px solid var(--cyan-35);
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.05);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.12), inset 0 0 12px rgba(0, 212, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  line-height: 1.3;
}

.pill-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  border: 1px solid rgba(0, 212, 255, 0.55);
  border-radius: 50%;
}

.pill-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2), 0 0 2px #fff;
}

/* ---- Header -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo cta"
    "nav nav";
  align-items: center;
  column-gap: 16px;
  padding-top: 12px;
}

.header-inner .logo {
  grid-area: logo;
}

.header-cta {
  grid-area: cta;
}

.site-nav {
  grid-area: nav;
  margin-inline: calc(-1 * var(--gutter));
  overflow-x: auto;
  scrollbar-width: none;
  /* A soft fade on the right shows that the row scrolls on small screens. */
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
  mask-image: linear-gradient(90deg, #000 82%, transparent);
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 8px var(--gutter) 10px;
  width: max-content;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a.is-active {
  box-shadow: inset 0 0 0 1px var(--cyan-15);
}

/* ---- Hero ---------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(40px, 8vw, 104px) clamp(16px, 4vw, 40px);
}

.hero-inner {
  display: grid;
  gap: clamp(48px, 7vw, 72px);
  align-items: center;
}

.hero .lead {
  margin-bottom: 32px;
}

.hero-visual {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring {
  fill: none;
  stroke: rgba(150, 190, 240, 0.16);
  stroke-width: 1;
}

.ring--dashed {
  stroke: rgba(0, 212, 255, 0.3);
  stroke-dasharray: 2 9;
}

.ring--arc {
  stroke: url(#ring-gradient);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 210 1000;
}

.ring-glow {
  fill: url(#core-glow);
}

.orbit {
  transform-origin: 200px 200px;
}

.orbit-dot {
  fill: var(--accent-2);
}

.orbit-dot--blue {
  fill: var(--accent-1);
}

.hero-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 26%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid var(--cyan-35);
  border-radius: 28%;
  background: linear-gradient(160deg, #142034, #0c1119);
  box-shadow: var(--glow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-core svg {
  width: 58%;
  height: 58%;
  filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.45));
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(15, 21, 32, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.chip .icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--cyan-15);
  color: var(--accent-2);
}

.chip--cores {
  top: 10%;
  left: 2%;
}

.chip--memory {
  top: 44%;
  right: -1%;
}

.chip--disk {
  bottom: 9%;
  left: 12%;
}

/* ---- Cards and lists ----------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(23, 32, 49, 0.7), rgba(15, 20, 29, 0.7));
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text-muted);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--cyan-15);
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.07);
  color: var(--accent-2);
}

.note {
  display: flex;
  gap: 10px;
  margin: 28px 0 0;
  padding: 14px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.note .icon {
  margin-top: 2px;
  color: var(--accent-2);
}

/* ---- How it works -------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}

/* ---- Features ------------------------------------------------------------------------ */
.stats {
  display: grid;
  gap: 16px;
  margin: 0;
}

.stat {
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(23, 32, 49, 0.75), rgba(15, 20, 29, 0.6));
  overflow: hidden;
  position: relative;
}

.stat::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-35), transparent);
}

.stat dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stat dt .icon {
  color: var(--accent-2);
}

.stat dd {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.stat-num {
  font-size: clamp(2.6rem, 7vw, 3.4rem);
  line-height: 1;
  margin-right: 6px;
  letter-spacing: -0.03em;
}

.features-body {
  display: grid;
  gap: 40px;
  margin-top: clamp(40px, 7vw, 72px);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(18, 25, 37, 0.6);
}

.feature .icon-badge {
  margin-bottom: 0;
  flex: none;
}

.feature h3 {
  margin-bottom: 4px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

/* Portal illustration (drawn, not a screenshot). */
.portal-figure {
  margin: 0;
}

.mock {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #131b29, #0d121b);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), var(--glow-md);
  overflow: hidden;
  font-size: 0.92rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(150, 180, 225, 0.25);
}

.mock-bar .mock-title {
  width: auto;
  height: auto;
  margin-left: 10px;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.mock-body {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 26px);
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mock-room {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.meters {
  display: grid;
  gap: 12px;
}

.meter-name {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.meter-track {
  display: block;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(150, 180, 225, 0.1);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
}

.meter-fill--cpu {
  width: 28%;
}

.meter-fill--mem {
  width: 54%;
}

.meter-fill--disk {
  width: 38%;
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-btn {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.mock-btn--primary {
  border-color: transparent;
  background: var(--gradient);
  color: var(--on-accent);
}

.mock-rows {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-muted);
}

.mock-row + .mock-row {
  border-top: 1px solid var(--border);
}

.mock-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
}

.portal-figure figcaption {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.88rem;
  text-align: center;
}

/* ---- Privacy promise ----------------------------------------------------------------- */
.promise {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(10, 155, 255, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(23, 32, 49, 0.8), rgba(13, 18, 27, 0.8));
}

.promise-grid {
  display: grid;
  gap: 16px;
}

.promise .card {
  background: rgba(11, 14, 20, 0.55);
}

/* ---- Pricing ------------------------------------------------------------------------- */
.price-card {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid transparent;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(180deg, #141c2a, #0e131c) padding-box,
    linear-gradient(135deg, rgba(10, 155, 255, 0.7), rgba(0, 212, 255, 0.25) 45%, rgba(150, 180, 225, 0.12)) border-box;
  box-shadow: var(--glow-md);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  margin: 0 0 28px;
  font-family: var(--font-head);
  font-weight: 700;
}

.price-period {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.price-amount {
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.included-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.check-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin-bottom: 8px;
}

.check-list li {
  display: flex;
  gap: 12px;
}

.check-list .icon {
  margin-top: 3px;
  color: var(--accent-2);
}

.price-card .btn {
  margin-top: 28px;
}

/* ---- Contact ------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.contact-rows {
  display: grid;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(18, 25, 37, 0.6);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 18px 22px;
}

.contact-row + .contact-row {
  border-top: 1px solid var(--border);
}

.contact-row dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.contact-row dt .icon {
  color: var(--accent-2);
}

.contact-row dd {
  margin: 0;
  font-weight: 600;
}

.contact-more {
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* ---- Footer -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-y);
  padding-block: 48px 40px;
  border-top: 1px solid var(--border);
  background: rgba(8, 10, 15, 0.6);
}

.footer-top {
  display: grid;
  gap: 24px;
  align-items: center;
}

.footer-top .pill {
  margin: 0;
  justify-self: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-legal p {
  margin: 0 0 4px;
}

/* ---- Privacy page -------------------------------------------------------------------- */
.doc {
  max-width: 780px;
}

.doc h2 {
  margin-top: 1.8em;
  font-size: clamp(1.35rem, 3.6vw, 1.7rem);
}

.doc p,
.doc li {
  color: var(--text-muted);
}

.doc strong {
  color: var(--text);
}

.doc ul {
  display: grid;
  gap: 10px;
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.doc li::marker {
  color: var(--accent-2);
}

.doc .note {
  margin: 0 0 1em;
}

/* ---- Wider screens ------------------------------------------------------------------- */
@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .steps,
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .promise-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: auto 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  :root {
    --header-h: 72px;
  }

  body {
    font-size: 1.0625rem;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav cta";
    min-height: 72px;
    padding-top: 0;
  }

  .site-nav {
    margin-inline: 0;
    justify-self: center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .site-nav ul {
    padding: 0;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
  }

  .features-body {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-top {
    grid-template-columns: auto auto 1fr;
  }

  .footer-links {
    grid-column: auto;
    justify-content: flex-end;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }
}

/* ---- Motion (CSS first, only when the visitor has not asked for less) ----------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .orbit--slow {
    animation: spin 60s linear infinite;
  }

  .orbit--fast {
    animation: spin 36s linear infinite reverse;
  }

  .pill-dot::after {
    animation: pulse 2.4s ease-in-out infinite;
  }

  .chip {
    animation: float 6s ease-in-out infinite;
  }

  .chip--memory {
    animation-delay: -2s;
  }

  .chip--disk {
    animation-delay: -4s;
  }

  /* Reveal on scroll: pure CSS where the browser supports scroll-driven animations. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }

  /* Fallback: main.js adds .reveal-js only where the CSS above is not supported. Without
     JavaScript nothing is ever hidden. */
  .reveal-js .reveal {
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .reveal-js .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  body::before,
  body::after,
  .site-header,
  .hero-visual {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
