/* QSDM VPN — design system inspired by engineered restraint (x.ai) */
@import url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/style.min.css");
@import url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/style.min.css");

:root {
  color-scheme: dark;
  --canvas: #0a0b0d;
  --canvas-elevated: #121316;
  --canvas-soft: #16181c;
  --white: #ffffff;
  --ink: #0a0b0d;
  /* Accent from brand headline treatment — electric cyan */
  --cyan: #67e8f9;
  --signal: #67e8f9;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-2: rgba(255, 255, 255, 0.42);
  --muted-3: rgba(255, 255, 255, 0.28);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --success: #6ee7a8;
  --warning: #f0c674;
  --danger: #f87171;
  --radius: 8px;
  --radius-lg: 12px;
  --page: min(1120px, calc(100% - 48px));
  --font-sans: "Geist Sans", "GeistSans", ui-sans-serif, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "GeistMono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  transform: translateY(-160%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.skip-link:focus { transform: translateY(0); }

.site-shell { position: relative; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.brand img { width: 28px; height: 28px; }
.brand-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-name span { color: var(--cyan); font-weight: 400; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-nav a { transition: color 0.15s ease; }
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--white); }

/* ── Buttons ────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.button:hover { background: var(--surface-hover); }
.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 3px;
}
.button-small { min-height: 36px; padding: 0 14px; font-size: 0.66rem; }
.button-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.button-primary:hover { background: rgba(255, 255, 255, 0.88); border-color: transparent; }
.button-secondary,
.button-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--white);
}
.button-secondary:hover,
.button-quiet:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ── Type & sections ────────────────────────────────────── */
.section-pad { width: var(--page); margin: 0 auto; padding: 112px 0; }
.section-pad-tight { width: var(--page); margin: 0 auto; padding: 0 0 112px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.signal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--success);
}

h1, h2, h3, p { text-wrap: pretty; }
h1, h2 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h1 { font-size: clamp(3.2rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h1 span, h2 span { color: var(--cyan); }
h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: min(92vh, 820px);
  display: grid;
  place-items: center;
  padding: 120px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.055), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--page);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-brand {
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}
.hero-lede {
  max-width: 560px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-actions.centered { justify-content: center; }
.proof-list {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proof-list li { display: flex; align-items: center; gap: 8px; }
.proof-list span {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.55rem;
}

/* Legacy hero grid (download pages still use split layout) */
.hero-copy { position: relative; z-index: 3; }
.hero-visual { display: none; }

.signal-strip {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.signal-strip div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.signal-strip div:last-child { border-right: 0; }
.signal-strip span { color: var(--cyan); }

.section-heading {
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 64px;
}
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -12px; }
.section-heading > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Features ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  position: relative;
  grid-column: span 4;
  min-height: 280px;
  padding: 32px;
  background: var(--canvas-elevated);
}
.feature-card-wide { grid-column: span 8; }
.feature-card-accent { background: var(--canvas-soft); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.card-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}
.feature-card > p:last-of-type {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.profile-preview {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
}
.profile-preview > div { display: flex; align-items: center; gap: 11px; }
.profile-preview small,
.profile-preview strong { display: block; }
.profile-preview small {
  color: var(--muted-3);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}
.profile-preview strong { margin-top: 3px; font-size: 0.8rem; font-weight: 500; }
.server-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.synced,
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-pill span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

/* ── Workflow ───────────────────────────────────────────── */
.workflow {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
  border-top: 1px solid var(--line);
}
.workflow-intro { position: sticky; top: 88px; }
.workflow-intro > p:not(.eyebrow) {
  margin: 22px 0 24px;
  color: var(--muted);
  line-height: 1.7;
}
.text-link {
  color: var(--cyan);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(103, 232, 249, 0.35);
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}
.text-link:hover { opacity: 0.75; }

.steps { margin: 0; padding: 0; list-style: none; }
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  min-height: 148px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:first-child { border-top: 1px solid var(--line); }
.step-number {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.steps p {
  max-width: 480px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Operators ──────────────────────────────────────────── */
.operator-section { padding-top: 32px; }
.operator-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  min-height: 560px;
  padding: clamp(36px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--canvas-elevated);
}
.operator-copy { position: relative; z-index: 2; align-self: center; }
.operator-copy > p:not(.eyebrow) {
  margin: 20px 0;
  color: var(--muted);
  line-height: 1.7;
}
.operator-list {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.operator-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.operator-list span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.dashboard-preview {
  position: relative;
  z-index: 2;
  align-self: center;
  min-height: 400px;
  display: grid;
  grid-template-columns: 56px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
}
.preview-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: var(--canvas-soft);
}
.preview-sidebar img { margin-bottom: 8px; width: 28px; height: 28px; }
.nav-dot {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.nav-dot.active { background: rgba(255, 255, 255, 0.85); }

.preview-main { padding: 20px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; }
.preview-head small,
.preview-head strong { display: block; }
.preview-head small {
  color: var(--muted-3);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}
.preview-head strong { margin-top: 4px; font-size: 1rem; font-weight: 500; }
.preview-head > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.preview-metrics div {
  position: relative;
  min-height: 78px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.preview-metrics small,
.preview-metrics strong { display: block; }
.preview-metrics small {
  color: var(--muted-3);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
}
.preview-metrics strong { margin-top: 10px; font-size: 0.95rem; font-weight: 500; }
.preview-metrics i { display: none; }

.preview-chart {
  height: 120px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 16px 12px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.preview-chart span {
  flex: 1;
  min-height: 10px;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0.85;
}
.preview-chart .bar-1 { height: 32%; }
.preview-chart .bar-2 { height: 48%; }
.preview-chart .bar-3 { height: 42%; }
.preview-chart .bar-4 { height: 64%; }
.preview-chart .bar-5 { height: 55%; }
.preview-chart .bar-6 { height: 78%; }
.preview-chart .bar-7 { height: 70%; }
.preview-chart .bar-8 { height: 92%; }
.preview-chart .bar-9 { height: 84%; }

.preview-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.5fr;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.preview-row span {
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.preview-row span:last-child { background: rgba(110, 231, 168, 0.28); }

/* ── Principles ─────────────────────────────────────────── */
.principles {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.principles-copy { position: sticky; top: 88px; }
.principles-copy > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.principle-grid article {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principle-grid article > span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.principle-grid h3 { margin-top: 28px; }
.principle-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}
.principle-grid a {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(103, 232, 249, 0.35);
}

/* ── Final CTA ──────────────────────────────────────────── */
.final-cta {
  padding-top: 128px;
  padding-bottom: 128px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas-elevated);
}
.cta-mark img { width: 40px; height: 40px; }
.final-cta h2 { max-width: 720px; margin: 0 auto; }
.final-cta > p:not(.eyebrow) {
  max-width: 520px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  position: relative;
  width: var(--page);
  margin: 0 auto;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 0.875rem;
}
.footer-links {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, 140px);
  gap: 32px;
}
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong {
  margin-bottom: 4px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links a { color: var(--muted); font-size: 0.8rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

/* ── Download page ──────────────────────────────────────── */
.download-main { position: relative; width: var(--page); margin: 0 auto; }
.download-hero {
  min-height: 680px;
  padding: 100px 0 96px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}
.download-copy h1 { font-size: clamp(3.2rem, 6.5vw, 5.4rem); }
.download-lede {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}
.download-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.download-footnote {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.release-card {
  position: relative;
  padding: clamp(24px, 3.5vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--canvas-elevated);
}
.release-card-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.release-card-head > img {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}
.release-card-head h2 {
  margin-top: 6px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}
.release-badge {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}
.release-meta { position: relative; margin: 0; }
.release-meta div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.release-meta dt { color: var(--muted-2); font-size: 0.8rem; }
.release-meta dd {
  margin: 0;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: right;
}
.checksum-block { position: relative; margin-top: 20px; }
.checksum-block p {
  margin: 0 0 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.checksum {
  display: block;
  padding: 12px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.65;
  user-select: all;
}

.release-notice,
.migration-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--canvas-elevated);
}
.migration-notice { margin-bottom: 16px; }
.release-notice > span,
.migration-notice > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
}
.release-notice h2,
.migration-notice h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.release-notice p,
.migration-notice p {
  max-width: 880px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}
.migration-notice strong { color: var(--white); }

.install-section {
  padding: 112px 0;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(48px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
}
.install-intro {
  max-width: 440px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.install-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.install-steps li > span {
  padding-top: 3px;
  color: var(--muted-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.install-steps h3 { font-size: 1.05rem; }
.install-steps p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.download-support {
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.download-support .eyebrow { margin-bottom: 10px; }
.download-support h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

/* ── Legal ──────────────────────────────────────────────── */
.legal-main {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 120px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.legal-back:hover { color: var(--white); }
.legal-title { font-size: clamp(2.6rem, 7vw, 4.2rem); }
.legal-date {
  margin: 16px 0 48px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.legal-main article { display: grid; gap: 36px; }
.legal-main section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal-main section h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.legal-main section p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}
.legal-main section a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Motion ─────────────────────────────────────────────── */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner {
  animation: rise-in 0.7s ease-out both;
}
.signal-strip div {
  animation: rise-in 0.55s ease-out both;
}
.signal-strip div:nth-child(1) { animation-delay: 0.08s; }
.signal-strip div:nth-child(2) { animation-delay: 0.14s; }
.signal-strip div:nth-child(3) { animation-delay: 0.2s; }
.signal-strip div:nth-child(4) { animation-delay: 0.26s; }

@media (max-width: 1050px) {
  .site-nav { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading .eyebrow { margin-bottom: 0; }
  .section-heading > p:last-child { max-width: 640px; }
  .feature-card,
  .feature-card-wide { grid-column: span 6; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-intro,
  .principles-copy { position: static; }
  .workflow-intro { max-width: 720px; }
  .operator-panel { grid-template-columns: 1fr; }
  .operator-copy { max-width: 720px; }
  .dashboard-preview { max-width: 680px; width: 100%; margin: 0 auto; }
  .principles { grid-template-columns: 1fr; }
  .principles-copy { max-width: 720px; }
  .download-hero { grid-template-columns: 1fr; }
  .download-copy { max-width: 760px; }
  .release-card { max-width: 640px; }
  .install-section { grid-template-columns: 1fr; }
  .install-section > div:first-child { max-width: 720px; }
}

@media (max-width: 760px) {
  :root { --page: min(100% - 32px, 1120px); }
  .site-header { min-height: 56px; padding: 0 16px; }
  .site-header .button { display: none; }
  .section-pad { padding: 80px 0; }
  .section-pad-tight { padding-bottom: 80px; }
  .hero {
    min-height: auto;
    padding: 88px 0 72px;
  }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .proof-list {
    display: grid;
    justify-content: center;
    gap: 12px;
  }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip div:nth-child(2) { border-right: 0; }
  .signal-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { padding-bottom: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card,
  .feature-card-wide { grid-column: auto; min-height: 260px; }
  .feature-card-wide { min-height: 340px; }
  .profile-preview { align-items: flex-start; flex-direction: column; }
  .workflow { gap: 40px; }
  .steps li { grid-template-columns: 40px 1fr; gap: 12px; }
  .operator-panel { padding: 28px 18px; }
  .dashboard-preview { grid-template-columns: 44px 1fr; min-height: 340px; }
  .preview-sidebar { padding: 12px 6px; }
  .preview-main { padding: 14px; }
  .preview-metrics { gap: 6px; }
  .principle-grid { grid-template-columns: 1fr; }
  .download-hero { min-height: auto; padding: 72px 0 72px; gap: 40px; }
  .download-copy h1 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .download-actions { flex-direction: column; align-items: stretch; }
  .download-actions .button { width: 100%; }
  .release-card { padding: 20px; }
  .release-notice,
  .migration-notice { grid-template-columns: 1fr; padding: 20px; }
  .install-section { padding: 80px 0; gap: 40px; }
  .install-steps li { grid-template-columns: 36px 1fr; }
  .download-support {
    padding: 64px 0;
    align-items: stretch;
    flex-direction: column;
  }
  .download-support .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
  .footer-bottom { flex-direction: column; }
}

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