/* Pulse Platform — editorial cyan system
   Differentiated from reference (Manrope/orange neon cards):
   Sora + Source Serif 4, cyan accent, left-rail layout, sharp edges */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap");

:root,
[data-theme="light"] {
  --bg: #eef3f7;
  --bg-elev: #fbfcfe;
  --bg-soft: #e2ebf2;
  --fg: #102033;
  --fg-muted: #4d6074;
  --border: #c5d2df;
  --primary: #0891b2;
  --primary-hover: #0e7490;
  --on-primary: #ffffff;
  --accent: #0f766e;
  --ring: #2cc3ff;
  --hero-glow: rgba(44, 195, 255, 0.14);
  --shadow: none;
  --header-bg: rgba(238, 243, 247, 0.92);
  --rail: #2cc3ff;
  --radius: 2px;
  --font-sans: "Sora", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

[data-theme="dark"] {
  --bg: #071018;
  --bg-elev: #0d1620;
  --bg-soft: #122033;
  --fg: #e8eef5;
  --fg-muted: #93a4b8;
  --border: #243447;
  --primary: #2cc3ff;
  --primary-hover: #5ad2ff;
  --on-primary: #041018;
  --accent: #5eead4;
  --ring: #2cc3ff;
  --hero-glow: rgba(44, 195, 255, 0.12);
  --shadow: none;
  --header-bg: rgba(7, 16, 24, 0.92);
  --rail: #2cc3ff;
}

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

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(44, 195, 255, 0.04) 46% 54%, transparent 54%),
    var(--bg);
  background-size: 28px 28px, auto;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  /* Side breathing — Apple-like margins without fighting band full-bleed */
  width: min(1080px, calc(100% - clamp(2.5rem, 7vw, 5rem)));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
  text-transform: uppercase;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 16px;
  height: 16px;
  stroke: var(--on-primary);
  fill: none;
}

.nav {
  display: flex;
  gap: 1.35rem;
}

.nav a {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--fg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn,
.chip-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover,
.chip-btn:hover {
  border-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.mobile-nav-toggle {
  display: none;
}

/* Hero — ECG + chart panels (HTML/CSS/SVG) */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88dvh, 780px);
  display: flex;
  align-items: center;
  padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  isolation: isolate;
}

.hero-ecg {
  position: absolute;
  inset: 18% 0 22%;
  z-index: 0;
  pointer-events: none;
  color: var(--primary);
  opacity: 0.55;
}

.hero-ecg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--rail) 0 4px, transparent 4px),
    linear-gradient(100deg, var(--bg-elev) 0%, rgba(13, 22, 32, 0.94) 40%, rgba(13, 22, 32, 0.4) 64%, transparent 80%);
}

[data-theme="light"] .hero-scrim {
  background:
    linear-gradient(90deg, var(--rail) 0 4px, transparent 4px),
    linear-gradient(100deg, var(--bg-elev) 0%, rgba(251, 252, 254, 0.96) 40%, rgba(251, 252, 254, 0.5) 64%, transparent 80%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - clamp(2.5rem, 7vw, 5rem)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}

.hero-copy {
  text-align: left;
  max-width: 34rem;
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.1;
}

.hero-brand::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.9rem;
  background: var(--primary);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5.4vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}

.hero-sub {
  margin: 0 0 2.25rem;
  max-width: 42ch;
  color: var(--fg-muted);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-start;
}

.hero-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.chart-panel {
  border: 1px solid var(--border);
  background: rgba(7, 16, 24, 0.78);
  backdrop-filter: blur(10px);
  padding: 1rem;
  min-width: 0;
}

[data-theme="light"] .chart-panel {
  background: rgba(251, 252, 254, 0.9);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}

.chart-live {
  color: var(--primary);
  flex-shrink: 0;
}

.bars-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 92px;
}

.bars-chart [data-bar] {
  flex: 1;
  height: var(--h, 50%);
  min-height: 8%;
  background: var(--primary);
  opacity: 0.45;
  border-radius: 1px;
  transition: height 0.45s ease;
  display: block;
}

.bars-chart [data-bar]:nth-child(3n) {
  opacity: 0.9;
}

.candle-chart {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  height: 92px;
}

.candle-chart [data-candle] {
  position: relative;
  flex: 1;
  height: 100%;
}

.candle-chart [data-candle]::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  top: var(--hi, 15%);
  bottom: calc(100% - var(--lo, 70%));
  transform: translateX(-50%);
  background: currentColor;
  opacity: 0.7;
}

.candle-chart [data-candle]::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 60%;
  top: var(--top, 30%);
  height: var(--body, 24%);
  transform: translateX(-50%);
  background: currentColor;
}

.candle-chart .is-up {
  color: var(--accent);
}

.candle-chart .is-down {
  color: #fb7185;
}

.prob-block {
  display: grid;
  gap: 0.35rem;
  min-height: 92px;
  align-content: center;
}

.prob-row,
.odds-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.prob-row strong,
.odds-line strong {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  transition: width 0.4s ease;
}

.progress-fill.yes {
  background: var(--primary);
}

.progress-fill.no {
  background: #64748b;
}

.spark-svg {
  display: block;
  width: 100%;
  height: 92px;
  color: var(--primary);
}

.hero-ecg path {
  will-change: d;
}

.odds-bars {
  display: grid;
  gap: 0.35rem;
}

.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.how-grid > li {
  background: var(--bg-elev);
  padding: 1.85rem 1.6rem;
}

.how-num {
  display: block;
  margin-bottom: 0.95rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
}

.how-grid h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.how-grid p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.preview-card {
  background: var(--bg-elev);
  padding: 1.75rem 1.55rem;
}

.preview-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.preview-card h3 {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
}

.hub-grid-home {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-charts {
    max-width: 520px;
  }

  .how-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-ecg {
    opacity: 0.3;
  }

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

/* Sections — Apple-like vertical rhythm; bands (::before) follow via inset:0 */
section {
  padding: clamp(4.25rem, 9vw, 7.5rem) 0;
}

/* Alternating section bands + edge lines */
main > section:not(.hero),
.marquee,
.doc-sec,
.hub-hero {
  position: relative;
  isolation: isolate;
}

main > section:not(.hero)::before,
.marquee::before,
.doc-sec::before,
.hub-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  border-block: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: transparent;
}

/* Soft / elev alternating tones */
main > section:not(.hero):nth-of-type(even)::before,
.doc-page section.doc-sec:nth-of-type(even)::before {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-soft) 72%, var(--bg)) 0%,
      color-mix(in srgb, var(--bg-soft) 55%, var(--bg)) 100%
    );
}

main > section:not(.hero):nth-of-type(odd)::before,
.doc-page section.doc-sec:nth-of-type(odd)::before,
.hub-hero::before {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-elev) 88%, var(--bg)) 0%,
      color-mix(in srgb, var(--bg-elev) 70%, var(--bg)) 100%
    );
}

.marquee::before {
  background: color-mix(in srgb, var(--bg-elev) 92%, var(--primary) 4%);
}

/* Thin cyan hairlines at section edges */
main > section:not(.hero)::after,
.doc-sec::after,
.hub-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: min(72rem, 94vw);
  height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--primary) 45%, transparent) 22%,
    color-mix(in srgb, var(--primary) 70%, transparent) 50%,
    color-mix(in srgb, var(--primary) 45%, transparent) 78%,
    transparent 100%
  );
}

/* Bottom edge accent (slightly softer) */
main > section:not(.hero),
.doc-sec,
.hub-hero {
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--border) 90%, transparent);
}

.section-label {
  display: inline-block;
  margin-bottom: 0.95rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.75rem, 5vw, 3.75rem);
  border-left: 3px solid var(--rail);
  padding-left: 1.15rem;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 600;
}

.section-head h2 em {
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}

.section-head p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1.05rem;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.mission-body {
  font-size: 1.15rem;
  color: var(--fg-muted);
}

.pill-stack {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.pill {
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pill h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* Products — stacked rows, no soft cards */
.products-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.product-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding: 1.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  transition: background 0.2s ease;
}

.product-row:hover {
  border-color: transparent;
  transform: none;
  background: rgba(44, 195, 255, 0.04);
}

.product-row h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-row p {
  margin: 0 0 0.75rem;
  color: var(--fg-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hub-link {
  display: inline-flex;
  margin-top: 2rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
}

.hub-link:hover {
  opacity: 0.85;
}

/* Video */
.video-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.video-play:hover {
  background: rgba(0, 0, 0, 0.38);
}

.video-play[hidden],
.video-play.is-hidden {
  display: none !important;
}

.video-play span {
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--primary);
  border: 0;
  pointer-events: none;
}

.video-play svg {
  margin-left: 3px;
  fill: var(--on-primary);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.stat {
  padding: 1.85rem 1.35rem;
  border-radius: 0;
  background: var(--bg-elev);
  border: 0;
  border-right: 1px solid var(--border);
  text-align: left;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat span {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* Legal */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}

.legal-card {
  padding: 2rem 1.75rem;
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-elev);
}

.legal-card:last-child {
  border-right: 0;
}

.legal-card .country {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.legal-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.3;
  font-family: var(--font-serif);
}

.legal-meta {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.legal-meta li + li {
  margin-top: 0.25rem;
}

.legal-card > p {
  margin: 0 0 1rem;
  color: var(--fg-muted);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.member {
  padding: 1.75rem 1.5rem;
  border-radius: 0;
  border: 0;
  background: var(--bg-elev);
  text-align: left;
}

.member img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  margin: 0 0 0.9rem;
  border: 1px solid var(--border);
}

.member h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.member .role {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

.member p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  align-items: center;
  justify-content: flex-start;
  margin-top: 3.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.partners img {
  height: 26px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(0.35);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

[data-theme="dark"] .partners img {
  filter: brightness(1.15) grayscale(0.2);
}

.partners img:hover {
  opacity: 1;
  filter: none;
}

/* CTA */
.cta-band {
  text-align: left;
  padding: clamp(3rem, 6vw, 4.5rem);
  border-radius: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rail);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.cta-band h2 em {
  font-style: italic;
  color: var(--primary);
}

.cta-band p {
  margin: 0 0 1.85rem;
  max-width: 520px;
  color: var(--fg-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-start;
}

/* Footer */
.site-footer {
  padding: 3.25rem 0 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  background: var(--bg-elev);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: var(--fg-muted);
  font-size: 0.88rem;
}

/* Hub index */
.page-hero {
  padding: clamp(3.75rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 2.75rem);
  border-left: 4px solid var(--rail);
  padding-left: 1.15rem;
  margin-left: 0;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--fg-muted);
  max-width: 560px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  padding-bottom: 0;
  margin-bottom: clamp(4rem, 8vw, 5.5rem);
}

.hub-card {
  display: block;
  padding: 1.85rem 1.75rem;
  border-radius: 0;
  border: 0;
  background: var(--bg-elev);
  transition: background 0.2s ease;
}

.hub-card:hover {
  border-color: transparent;
  transform: none;
  background: rgba(44, 195, 255, 0.06);
}

.hub-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.hub-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* Doc / hub detail pages */
.doc-page {
  padding: clamp(2rem, 4vw, 2.75rem) 0 clamp(4.5rem, 8vw, 6rem);
}

.crumb {
  margin: 1.25rem 0 2rem;
  font-size: 0.9rem;
}

.crumb a {
  color: var(--primary);
  font-weight: 600;
}

.doc-hero {
  border-left: 4px solid var(--rail);
  padding-left: 1.15rem;
  margin-bottom: clamp(2.75rem, 5vw, 3.75rem);
}

.doc-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.doc-hero .lead,
.doc-sec .lead,
p.lead {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.doc-sec {
  padding: clamp(3.5rem, 7vw, 5.75rem) 0;
  border-top: none;
  margin: 0;
}

.doc-sec-head {
  margin-bottom: 1.65rem;
}

.doc-sec-head h2,
.doc-sec > h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
}

.doc-sec h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 1rem 0;
}

.info-card {
  padding: 1.5rem 1.45rem;
  background: var(--bg-elev);
}

.info-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.info-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.doc-list,
.step-list,
.timeline {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--fg-muted);
}

.step-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.step-list > li {
  counter-increment: step;
  padding: 1.35rem 0 1.35rem 3.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.timeline > li {
  margin-bottom: 1rem;
}

.tl-q {
  display: inline-block;
  min-width: 5rem;
  margin-right: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.tariff-card {
  padding: 1.5rem 1.35rem;
  background: var(--bg-elev);
}

.tariff-rate {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0.35rem 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--fg-muted);
  font-weight: 600;
  white-space: nowrap;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 1.1rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--fg-muted);
}

.muted,
.disclaimer {
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.legal-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-family: var(--font-serif);
}

.legal-prose h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-prose p {
  color: var(--fg-muted);
}

.legal-page {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4.5rem, 8vw, 6rem);
  max-width: 760px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* Visible when JS never runs / motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

html:not(.js) .reveal,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .mission-grid,
  .legal-grid,
  .product-row,
  .info-grid,
  .tariff-grid {
    grid-template-columns: 1fr;
  }

  .legal-card,
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    position: relative;
  }

  /* Login → icon button on mobile / tablet header */
  .header-actions > a.btn-outline {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    color: transparent;
    gap: 0;
  }

  .header-actions > a.btn-outline::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: var(--primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E")
      center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }

  .header-actions > a.btn-outline:hover::before {
    background: var(--primary-hover);
  }
}

@media (max-width: 640px) {
  .stats,
  .hub-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-ghost {
    display: none;
  }
}

/* === PRESENTATION MODE === */
.present-btn {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--border));
  background: var(--bg-elev);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--bg) 65%, transparent);
}
.present-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.present-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html.is-presenting,
html.is-presenting body {
  overflow: hidden;
}
.present-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: var(--bg);
  color: var(--fg);
}
html.is-presenting .present-overlay {
  display: grid;
  grid-template-rows: 1fr auto;
}
.present-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}
.present-slide {
  width: min(1100px, 100%);
  transform-origin: center center;
  max-height: 100%;
  overflow: auto;
}
.present-slide .hub-sticky-nav,
.present-slide .crumb,
.present-slide .site-header,
.present-slide .skip-link {
  display: none !important;
}
.present-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}
.present-version {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.present-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.present-nav button,
.present-exit {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  min-width: 44px;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.present-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.present-nav button:hover:not(:disabled),
.present-exit:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.present-count {
  min-width: 4.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
  font-size: 0.85rem;
}
.present-close-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.present-close-x:hover {
  border-color: var(--primary);
  color: var(--primary);
}
@media (max-width: 640px) {
  .present-btn span {
    display: none;
  }
  .present-btn {
    padding: 0.8rem;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
  }
}
