/* Nova Video Player — design tokens mirror docs/ARCHITECTURE.md §10 */

:root {
  --canvas: #08080a;
  --surface: #111115;
  --surface-raised: #18181d;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  --text: #f5f5f7;
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.38);

  --cyan: #3ed8ff;
  --blue: #4a7dff;
  --violet: #8b5cf6;
  --magenta: #ff4fd8;
  --ember-1: #ffb36b;
  --ember-2: #ff6a88;

  --spectrum: linear-gradient(120deg, var(--ember-1), var(--ember-2) 26%, var(--magenta) 48%, var(--violet) 68%, var(--blue) 84%, var(--cyan));
  --ember: linear-gradient(120deg, var(--ember-1), var(--ember-2));

  --xs: 4px;
  --sm: 8px;
  --md: 12px;
  --lg: 16px;
  --xl: 24px;
  --xxl: 32px;
  --xxxl: 48px;
  --huge: 64px;

  --r-control: 8px;
  --r-menu: 12px;
  --r-card: 16px;
  --r-panel: 22px;
  --r-hero: 28px;

  --t-hover: 120ms;
  --t-state: 220ms;
  --t-panel: 360ms;
  --t-hero: 600ms;
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-emphasis: cubic-bezier(0.2, 0, 0, 1);

  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);

  --max: 1200px;
  --nav-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter",
    "Helvetica Neue", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  /* The width/height attributes map to a fixed CSS height, so an image narrowed by
     max-width would keep its full attribute height and stretch vertically. */
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* The aurora wash behind the whole page; the chrome stays near-black glass. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 90vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(42% 52% at 18% 8%, rgba(255, 140, 90, 0.16), transparent 70%),
    radial-gradient(44% 55% at 78% 4%, rgba(123, 92, 246, 0.2), transparent 72%),
    radial-gradient(50% 50% at 50% 30%, rgba(62, 216, 255, 0.1), transparent 75%);
  filter: blur(20px);
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--xl);
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  color: var(--text-2);
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 62ch;
}

.overline {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--md);
}

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

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(180%) blur(32px);
  -webkit-backdrop-filter: saturate(180%) blur(32px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-state) var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--xl);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
  flex-shrink: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--xs);
  margin-inline-start: auto;
}

.nav .btn {
  margin-inline-start: var(--sm);
}

/* Outranks the `.nav a` colour rule, which would otherwise leave the label the
   same near-white as the fill. Glass at rest, luminous white on hover. */
.nav a.btn-nav {
  background: var(--glass);
  color: var(--text);
  border-color: var(--hairline-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav a.btn-nav:hover {
  background: #fff;
  color: #0a0a0c;
  border-color: transparent;
}

.nav a {
  padding: 7px 12px;
  border-radius: var(--r-control);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-hover) var(--ease-out), background var(--t-hover) var(--ease-out);
}

.nav a:hover {
  color: var(--text);
  background: var(--glass);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--r-control);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

/* ---------- Language picker ---------- */

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

.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 34px;
  border-radius: var(--r-control);
  background: var(--glass);
  border: 1px solid var(--hairline);
  color: var(--text-2);
  transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}

.lang-picker:hover,
.lang-picker:focus-within {
  color: var(--text);
  border-color: var(--hairline-strong);
}

.lang-picker svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.8;
}

.lang-picker select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding-inline-end: 2px;
  cursor: pointer;
  outline: none;
}

.lang-picker option {
  background: var(--surface-raised);
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-hover) var(--ease-out), background var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out), opacity var(--t-hover) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary actions are luminous white pills with dark text. */
.btn-primary {
  background: var(--text);
  color: #0a0a0c;
}

.btn-primary:hover {
  background: #fff;
}

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border-color: var(--hairline-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-secondary:hover {
  background: var(--glass-strong);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--md);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section-head {
  max-width: 68ch;
  margin-bottom: var(--xxxl);
}

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

.section-head p {
  margin-top: var(--lg);
}

.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
  border: 0;
  margin: 0;
}

/* ---------- Glass surfaces ---------- */

.card {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--xl);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  transition: transform var(--t-state) var(--ease-out), background var(--t-state) var(--ease-out),
    border-color var(--t-state) var(--ease-out);
}

.card h3,
.card h4 {
  margin-bottom: var(--sm);
}

.card p {
  font-size: 0.9375rem;
}

.card-hover:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
  border-color: var(--hairline-strong);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: clamp(24px, 4vw, 44px);
}

.grid {
  display: grid;
  gap: var(--lg);
}

/* Explicit column counts rather than auto-fit: a nine-card section must read as
   3 x 3, and auto-fit would silently make it 4 + 4 + 1 at container width. */
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Icon badge ---------- */

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-menu);
  margin-bottom: var(--lg);
  background: var(--glass-strong);
  border: 1px solid var(--hairline);
  color: var(--text);
}

.icon svg {
  width: 20px;
  height: 20px;
}

.icon-ember {
  background: linear-gradient(135deg, rgba(255, 179, 107, 0.22), rgba(255, 106, 136, 0.22));
  border-color: rgba(255, 150, 120, 0.3);
  color: var(--ember-1);
}

.icon-violet {
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.2), rgba(139, 92, 246, 0.22));
  border-color: rgba(160, 110, 255, 0.32);
  color: #c9a6ff;
}

.icon-cyan {
  background: linear-gradient(135deg, rgba(74, 125, 255, 0.22), rgba(62, 216, 255, 0.2));
  border-color: rgba(80, 180, 255, 0.32);
  color: var(--cyan);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}

.hero .lead {
  margin: var(--xl) auto 0;
}

.hero .btn-group {
  justify-content: center;
  margin-top: var(--xxl);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-bottom: var(--xl);
}

.hero-eyebrow img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.hero-title span {
  display: block;
}

/* The frame hugs the image and centres itself, so it can neither leave a gap down one
   side nor stretch a screenshot past its natural width, which visibly softens it. */
.hero-shot,
.media-full {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--r-hero);
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-shot {
  margin-top: clamp(40px, 6vw, 72px);
}

.media-full + .ticks {
  margin-top: clamp(32px, 4vw, 48px);
}

.hero-shot::after,
.media-full::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px);
}

.page-hero .lead {
  margin-top: var(--xl);
}

/* ---------- Pillars ---------- */

.pillar {
  padding: var(--xxl);
  border-radius: var(--r-panel);
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-state) var(--ease-out), border-color var(--t-state) var(--ease-out);
}

.pillar::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  opacity: 0.85;
}

.pillar-1::before {
  background: var(--ember);
}

.pillar-2::before {
  background: linear-gradient(90deg, var(--magenta), var(--violet));
}

.pillar-3::before {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
}

.pillar-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.pillar h3 {
  margin: var(--lg) 0 var(--md);
  font-size: 1.5rem;
}

/* ---------- Feature list ---------- */

.ticks {
  list-style: none;
  margin: var(--lg) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spectrum);
}

.ticks-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px var(--xl);
}

.ticks-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px var(--xl);
}

/* ---------- Chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sm);
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}

.chip:hover {
  color: var(--text);
  border-color: var(--hairline-strong);
}

.chip-more {
  color: var(--text-3);
  background: transparent;
  border-style: dashed;
}

/* ---------- Split (text + media) ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--lg);
  text-align: center;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ---------- Status badges (shipping vs. roadmap) ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-now {
  color: #6ee7a8;
  background: rgba(110, 231, 168, 0.1);
  border: 1px solid rgba(110, 231, 168, 0.22);
}

.badge-soon {
  color: var(--ember-1);
  background: rgba(255, 179, 107, 0.1);
  border: 1px solid rgba(255, 179, 107, 0.22);
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  margin-bottom: var(--md);
}

/* ---------- Accordion (FAQ) ---------- */

.faq {
  display: grid;
  gap: var(--md);
}

details.qa {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--lg) var(--xl);
  transition: border-color var(--t-state) var(--ease-out);
}

details.qa[open] {
  border-color: var(--hairline-strong);
}

details.qa summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lg);
}

details.qa summary::-webkit-details-marker {
  display: none;
}

details.qa summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-right: 1.75px solid var(--text-3);
  border-bottom: 1.75px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t-state) var(--ease-out);
}

details.qa[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

details.qa p {
  margin-top: var(--md);
  font-size: 0.9375rem;
}

/* ---------- Timeline (changelog / roadmap) ---------- */

.timeline {
  display: grid;
  gap: var(--xl);
  position: relative;
  padding-inline-start: var(--xxl);
}

.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--hairline-strong), transparent);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--xxl) * -1);
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
}

.timeline-item::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--xxl) * -1 + 4px);
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spectrum);
}

.timeline-meta {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.timeline-item ul {
  margin: var(--md) 0 0;
  padding-inline-start: 18px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.timeline-item li {
  margin-bottom: 6px;
}

/* ---------- Prose (legal / blog) ---------- */

.prose {
  max-width: 76ch;
}

.prose h2 {
  font-size: 1.5rem;
  margin: var(--xxl) 0 var(--md);
}

.prose h3 {
  font-size: 1.125rem;
  margin: var(--xl) 0 var(--sm);
}

.prose p,
.prose li {
  color: var(--text-2);
  font-size: 0.9688rem;
}

.prose p + p {
  margin-top: var(--md);
}

.prose ul,
.prose ol {
  margin: var(--md) 0;
  padding-inline-start: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875em;
  background: var(--glass-strong);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 2px 6px;
}

.meta {
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ---------- Not-IPTV clarification ---------- */

.notice {
  display: flex;
  gap: var(--lg);
  padding: var(--xl);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.notice .icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  border-radius: var(--r-hero);
  padding: clamp(48px, 7vw, 88px) var(--xl);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--hairline);
}

.cta .btn-group {
  justify-content: center;
  margin-top: var(--xl);
}

.cta img.mark {
  width: 76px;
  height: 76px;
  margin: 0 auto var(--xl);
  border-radius: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: var(--huge) 0 var(--xxl);
  margin-top: var(--xxl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--xxl);
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: var(--md);
  max-width: 34ch;
}

.footer-owner {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  margin-top: var(--lg);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out),
    background var(--t-hover) var(--ease-out);
}

.footer-owner:hover {
  color: var(--text);
  background: var(--glass-strong);
  border-color: var(--hairline-strong);
}

.footer-owner::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--spectrum);
}

.footer-col h5 {
  margin: 0 0 var(--md);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--t-hover) var(--ease-out);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: var(--huge);
  padding-top: var(--xl);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--md);
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-hero) var(--ease-emphasis), transform var(--t-hero) var(--ease-emphasis);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticks-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--xl);
  }

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

@media (max-width: 680px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticks-2,
  .ticks-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The header collapses earlier than the content breakpoint below: with seven links plus
   Download, the inline nav would sit almost against the wordmark under about 860px. */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: var(--md) var(--lg) var(--xl);
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-bottom: 1px solid var(--hairline);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 var(--lg);
  }

  .hero .btn-group,
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .notice {
    flex-direction: column;
  }

  .timeline {
    padding-inline-start: var(--xl);
  }

  .timeline-item::before {
    inset-inline-start: calc(var(--xl) * -1);
  }

  .timeline-item::after {
    inset-inline-start: calc(var(--xl) * -1 + 4px);
  }

  .lang-picker {
    order: 99;
    width: 100%;
    margin: var(--sm) 0 0;
  }

  .nav .btn {
    margin-inline-start: 0;
    margin-top: var(--sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
