/* ──────────────────────────────────────────────────────────────
   NeuROK project page — design system adapted from articraft3d.
   Inter typography, light surfaces, #0c8ce9 accent, glassy sticky
   nav, cinematic dark hero, centered section headings, rounded
   media cards with pane labels.
   ────────────────────────────────────────────────────────────── */

:root {
  --surface-0: #ffffff;
  --surface-1: #fafafa;
  --surface-2: #f5f5f5;
  --surface-3: #efefef;

  --text-primary: #111111;
  --text-secondary: #4d5561;
  --text-tertiary: #8b8b8b;
  --text-quaternary: #b0b0b0;

  --border-default: #e6e6e6;
  --border-line: rgba(17, 17, 17, 0.12);
  --border-faint: rgba(17, 17, 17, 0.07);

  --accent: #0c8ce9;
  --accent-strong: #0056c8;
  --accent-deep: #0a7ad0;
  --accent-soft: rgba(12, 140, 233, 0.08);

  --page-width: 1180px;
  --page-gutter: 48px;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 18px 56px rgba(17, 17, 17, 0.10);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.06), 0 14px 34px rgba(0, 0, 0, 0.11);

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Noto Sans", sans-serif;

  --nav-height: 58px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--text-primary);
  background: var(--surface-2);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.16s ease;
}
a:hover { color: var(--accent-deep); }

strong { font-weight: 650; }

::selection { background: rgba(12, 140, 233, 0.22); color: inherit; }

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

/* Cinematic look: suppress native video chrome everywhere. */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

/* ── Shared bits ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Sticky top nav ──────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-height);
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-line);
}
.site-mark {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.site-mark:hover { color: var(--text-primary); }
.site-mark .mark-accent { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
}
.nav-sections a {
  color: #50565f;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 7px;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav-sections a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.nav-cta:hover { color: #fff; background: var(--accent-strong); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

/* ── Hero (scroll-driven reveal, à la articraft) ─────────────────
   The section is taller than the viewport; its media is pinned
   (sticky) while you scroll through it. A JS scroll handler writes
   --hero-enter-progress (0 → 1) onto .hero-section, and the video,
   scrim, and content read it: the video dims, the scrim darkens,
   and the title + authors fade and rise into view.
   ────────────────────────────────────────────────────────────── */
.hero-section {
  --hero-enter-progress: 0;
  position: relative;
  min-height: 200vh;
  background: #05080c;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: calc(1 - var(--hero-enter-progress) * 0.32);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: calc(0.32 + var(--hero-enter-progress) * 0.68);
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.55) 0%, rgba(5, 8, 12, 0.40) 45%, rgba(5, 8, 12, 0.85) 100%),
    radial-gradient(120% 80% at 50% 35%, rgba(5, 8, 12, 0) 38%, rgba(5, 8, 12, 0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--page-width), calc(100% - 48px));
  padding: 96px 0 64px;
  text-align: center;
  color: #fff;
  opacity: var(--hero-enter-progress);
  transform: translateY(calc((1 - var(--hero-enter-progress)) * 60px));
  will-change: opacity, transform;
}
/* When JS isn't driving the variable (reduced motion / no-JS), show it. */
.hero-section.is-static .hero-content { opacity: 1; transform: none; }
.hero-section.is-static .hero-scrim { opacity: 0.7; }
.hero-section.is-static .hero-video { opacity: 1; }
.hero-content .eyebrow {
  color: #bcd7ff;
  font-size: clamp(15px, 1.6vw, 21px);
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}
/* Highlighted phrase in the blurb — same (lightened) blue as the CVPR eyebrow. */
.hero-summary .hl { color: #bcd7ff; font-weight: 500; }
.hero-content h1 {
  margin: 0;
  font-size: clamp(46px, 6.8vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-summary {
  max-width: 880px;
  margin: 30px auto 0;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.62;
  text-align: center;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.86);
}
.hero-venue {
  display: inline-block;
  margin: 22px auto 0;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-authors {
  margin: 26px auto 0;
  font-size: clamp(15px, 1.9vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}
.hero-authors a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hero-authors a:hover {
  color: #b8d6ff;
  text-decoration-color: #b8d6ff;
}
/* inline-block keeps the superscript out of the link's underline. */
.hero-authors sup { display: inline-block; margin-left: 1px; font-size: 0.66em; }
.hero-affiliations {
  margin: 14px auto 0;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.hero-affiliations sup { font-size: 0.7em; }
.hero-equal-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px auto 0;
}
.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 9px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.hero-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}
.hero-action.is-primary { background: var(--accent); border-color: transparent; }
.hero-action.is-primary:hover { background: var(--accent-deep); }
.hero-action svg { width: 16px; height: 16px; }
.hero-action.is-soon { color: rgba(255, 255, 255, 0.82); }
.hero-action.is-soon:hover { color: #fff; }

/* "Coming soon" pill — sits inside an action button. */
.soon-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--radius-pill);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  display: inline-flex;
  color: rgba(255, 255, 255, 0.72);
  opacity: calc(1 - var(--hero-enter-progress) * 2.2);
  transform: translateX(-50%);
  animation: cue-bob 2.2s ease-in-out infinite;
}
.scroll-cue:hover { color: #fff; }
.hero-section.is-static .scroll-cue { opacity: 1; }
@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ── Sections ────────────────────────────────────────────────── */
main { display: block; background: var(--surface-2); }

.content-section {
  width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  padding: 88px 0;
  border-bottom: 1px solid var(--border-line);
}
.content-section:last-of-type { border-bottom: none; }

.section-heading {
  max-width: 840px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.section-heading p {
  margin: 16px auto 0;
  max-width: 780px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Low-profile heading for utility sections (BibTeX, Acknowledgements). */
.section-heading.is-minor { margin-bottom: 24px; }
.section-heading.is-minor h2 {
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 640;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
}

/* ── Demo blocks ─────────────────────────────────────────────── */
.demo-block { margin: 0 auto; }
.demo-block + .demo-block { margin-top: 64px; }
.demo-block > h3 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 660;
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-align: center;
  color: var(--text-primary);
}
.demo-sub {
  margin: 0 auto 22px;
  max-width: 760px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: var(--text-tertiary);
}
.demo-caption {
  margin: 14px auto 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
  color: var(--text-secondary);
}

/* ── Media cards ─────────────────────────────────────────────── */
.media-pane {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e0e12;
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-card);
}
.media-pane + .media-pane { margin-top: 18px; }
.media-pane video,
.media-pane img {
  width: 100%;
  height: auto;
  display: block;
}
/* Loading spinner shown on a media container while its video/image loads. */
.media-pane.is-loading::after,
.related-thumb.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: media-spin 0.8s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.media-pane.is-light.is-loading::after {
  border-color: rgba(0, 0, 0, 0.12);
  border-top-color: rgba(0, 0, 0, 0.45);
}
@keyframes media-spin { to { transform: rotate(360deg); } }

.pane-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pane-label.is-accent {
  background: var(--accent);
  font-size: 13px;
  padding: 7px 14px;
}
/* Longer descriptive caption that lives in the corner instead of a pill word. */
.pane-label.is-caption {
  max-width: min(74%, 460px);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}

/* Light card — for renders / comparison frames that sit on white. */
.media-pane.is-light { background: var(--surface-0); }

/* Generated-output videos that grow to fill the screen on scroll (chord-style).
   Breaks out of the constrained section to full-bleed; JS drives the width
   from a smaller value up to 100vw as the pane's center nears the viewport
   center. left:50% + translateX(-50%) keeps it centered at every width. */
.media-pane.is-scroll-scale {
  position: relative;
  left: 50%;
  width: 64vw;
  max-width: 100vw;
  transform: translateX(-50%);
  transition: width 0.1s ease-out;
}
@media (max-width: 760px) {
  .media-pane.is-scroll-scale { width: 100vw; }
}
/* Paired input pane that shrinks (centered) as its output grows — adds
   contrast to the grow-on-scroll effect. JS drives the width. */
.media-pane.is-scroll-shrink {
  margin-left: auto;
  margin-right: auto;
  transition: width 0.1s ease-out;
}
@media (max-width: 760px) {
  .media-pane.is-scroll-shrink { width: 100%; }
}

/* Spotlight: a fixed scrim (JS-driven opacity) dims the page while an output
   video is centered; the output panes sit above it so they stay lit. The nav
   (z-index 50) stays above the scrim and usable. */
.scroll-dim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #04060a;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s linear;
}
.media-pane.is-scroll-scale { z-index: 45; }
/* The nav stays on top (never hidden by a full-bleed video) but dims in sync
   with the spotlight via its own overlay. */
.site-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -1px; /* also cover the nav's 1px border-bottom so it dims too */
  background: #04060a;
  opacity: var(--nav-dim, 0);
  pointer-events: none;
  transition: opacity 0.12s linear;
}

/* Solid button for light-background sections and the footer. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(12, 140, 233, 0.25);
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.btn:hover { color: #fff; background: var(--accent-deep); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }

/* Two-up grid for input / output pairs. */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 760px) {
  .media-grid { grid-template-columns: 1fr; }
}

/* ── Comparison switcher ─────────────────────────────────────── */
#comp-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 820px;
  margin: 0 auto 34px;
  padding: 0;
}
#comp-buttons .button {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-secondary);
  background: var(--surface-0);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 10px 17px;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}
#comp-buttons .button:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
#comp-buttons .button.is-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(12, 140, 233, 0.30);
}

.comp-scene { width: 100%; }
.comp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
  gap: 18px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
@media (max-width: 680px) {
  .comp-stage { grid-template-columns: 1fr; }
}

/* ── Related work from the group ─────────────────────────────── */
.related-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-item {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 20px;
  align-items: center;
  padding: 14px;
  background: var(--surface-0);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
}
.related-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: #0e0e12;
  border: 1px solid var(--border-faint);
}
.related-thumb img,
.related-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-body { text-align: left; min-width: 0; }
.related-title {
  margin: 0;
  font-size: 16px;
  font-weight: 660;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}
.related-title a { color: inherit; }
.related-title a:hover { color: var(--accent); }
.related-authors {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tertiary);
}
.related-authors a { color: var(--text-secondary); font-weight: 500; }
.related-authors a:hover { color: var(--accent); }
.related-authors .me { color: var(--text-secondary); font-weight: 500; }
.related-venue {
  margin: 7px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.related-venue .oral { color: var(--accent); font-weight: 700; }
.related-tldr {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
@media (max-width: 640px) {
  .related-item { grid-template-columns: 1fr; gap: 14px; }
  .related-thumb { max-width: 340px; }
}

/* ── BibTeX ──────────────────────────────────────────────────── */
.bibtex-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface-0);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.bibtex-card pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
.bibtex-card code { font: inherit; color: inherit; }
.bibtex-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-secondary);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.bibtex-copy:hover { color: var(--accent); border-color: var(--accent); }
.bibtex-copy.is-copied { color: #fff; background: var(--accent); border-color: var(--accent); }
.bibtex-copy svg { width: 13px; height: 13px; }

/* ── Acknowledgements ────────────────────────────────────────── */
.ack-body {
  max-width: 840px;
  margin: 0 auto;
  text-align: left;
}
.ack-body p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-secondary);
}
.ack-body p:last-child { margin-bottom: 0; }
.ack-body a { font-weight: 500; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-0);
  border-top: 1px solid var(--border-line);
  padding: 52px 24px 56px;
}
.footer-inner {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  text-align: center;
}
.footer-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.footer-meta {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}
.footer-links a { font-size: 13.5px; font-weight: 600; }
.footer-links a.is-soon { color: var(--text-tertiary); }
.footer-links a.is-soon:hover { color: var(--text-secondary); }
.footer-note {
  max-width: 980px;
  margin: 0 auto;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-tertiary);
}
.footer-note p { margin: 9px 0 0; }
.footer-note p:first-child { margin-top: 0; }
.footer-note a { color: var(--accent); font-weight: 500; }

.footer-copy {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-quaternary);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  .site-nav { padding: 0 18px; }
  .nav-sections { display: none; }
  .hero-content { padding: 88px 16px 64px; }
  .hero-summary { display: none; }
  .content-section {
    width: calc(100% - 36px);
    padding: 60px 0;
  }
  .demo-block + .demo-block { margin-top: 48px; }
}
