/* ============================================================================
   YELLOFIELD — LANDING PAGE DESIGN SYSTEM
   Aesthetic: deep blacks, sleek grays, crisp whites. Glass used sparingly.
   Motion: transform/opacity only (compositor-friendly), spring easing.
============================================================================ */

/* ---------------------------------------------------------------------------
   Tokens
--------------------------------------------------------------------------- */
:root {
  --bg: #050506;
  --bg-raised: #0a0a0c;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.055);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --live: #34c759;
  --wired: #a1a1a6;

  /* Neon yellow — the brand accent. Deliberately NOT a status colour: --live
     stays green so "probe verified" keeps reading as verified, not as brand. */
  --neon: #ffe81a;
  --neon-hot: #fffbe0;
  --neon-dim: rgba(255, 232, 26, 0.34);
  --neon-glow: rgba(255, 232, 26, 0.16);

  --font-sans: "Geist", "Inter", -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code", monospace;

  /* Fast start, long soft landing — the "Apple" entrance curve. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Slight overshoot for small interactive transforms only. */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------------------------------------------------------------------------
   Reset / base
--------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(255, 232, 26, 0.26);
  color: #fff;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] {
  scroll-margin-top: 84px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.01em;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  top: 12px;
}

/* Film grain — kills gradient banding, adds material depth. */
.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------------
   Type primitives
--------------------------------------------------------------------------- */
h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}

h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}

/* Same 7px square as the .sq status markers — the accent speaks the page's
   existing vocabulary rather than introducing a new shape. Inline-block, not
   a flex item, so it stays glued to the first word when the label wraps on
   narrow screens and still follows the parent's text-align. */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  vertical-align: 1px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(255, 232, 26, 0.55);
}

.section {
  padding-block: clamp(88px, 12vw, 148px);
  position: relative;
}

.section-alt {
  background: var(--bg-raised);
  border-block: 1px solid var(--border-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-sub {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.45s var(--ease-spring),
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
  will-change: transform;
}

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

.btn-primary {
  background: var(--text);
  color: #0a0a0c;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 12px 34px rgba(255, 232, 26, 0.2);
}

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

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

/* ---------------------------------------------------------------------------
   Chips
--------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.chip-verified {
  color: var(--live);
  border-color: rgba(52, 199, 89, 0.28);
  background: rgba(52, 199, 89, 0.07);
}

.chip-wired {
  color: var(--text-2);
}

.chip-approve {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
}

/* Small square status markers (deliberately not dots). */
.sq {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
}

.sq-live {
  background: var(--live);
}

.sq-wired {
  background: var(--text-3);
}

/* ---------------------------------------------------------------------------
   Nav — the one place glass is used prominently
--------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 5, 6, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s var(--ease-out);
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(255, 232, 26, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.34s var(--ease-out);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(140px, 18vh, 190px);
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: hidden;
}

/* Hairline engineering grid + soft monochrome key light. No color, no glow. */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 72% 38%, rgba(255, 255, 255, 0.05), transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 76px 76px, 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 78%);
}

/* The LED field. Painted above .hero-bg, below the copy. Legibility is
   handled in JS (the field dims over the text block's measured rect), so the
   mask here only has to soften the outer edges. */
.hero-leds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 104% 100% at 50% 42%, #000 52%, transparent 97%);
  mask-image: radial-gradient(ellipse 104% 100% at 50% 42%, #000 52%, transparent 97%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-sub {
  margin-top: 26px;
  max-width: 540px;
  color: var(--text-2);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Hairline rule as an accent form: the divider ignites yellow at its head and
   cools back to the ordinary border colour. */
.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(
      90deg,
      var(--neon) 0%,
      rgba(255, 232, 26, 0.28) 14%,
      rgba(255, 255, 255, 0.055) 42%,
      rgba(255, 255, 255, 0.055) 100%
    )
    1;
  max-width: 560px;
}

.hero-status li {
  font-size: 13px;
  color: var(--text-3);
}

.hero-status .mono {
  color: var(--text);
  font-weight: 500;
}

/* --- Operating ledger console ------------------------------------------ */
.hero-visual {
  position: relative;
  perspective: 1400px;
}

.console-wrap {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.console-shadow-pane {
  position: absolute;
  inset: 26px -22px -26px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.015);
  transform: translateZ(-60px);
}

.console {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

/* Specular top edge — the Liquid-Glass detail, kept to a single hairline. */
.console::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.console-title {
  color: var(--text-3);
  font-size: 12px;
}

.console-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ledger-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 16px;
}

.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ledger-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.ledger-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ledger-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-2);
}

.state-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 12px 16px;
}

.state {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 3px 8px;
  border-radius: 6px;
}

.state.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.state-arrow {
  color: var(--text-3);
  font-size: 11px;
}

.audit {
  display: grid;
  gap: 2px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 8px 10px;
}

.audit-row {
  display: grid;
  grid-template-columns: 44px 66px 1fr auto;
  gap: 12px;
  align-items: baseline;
  font-size: 11.5px;
  padding: 7px 6px;
  border-radius: 8px;
  transition: background-color 0.2s var(--ease-out);
}

.audit-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.audit-pos {
  color: var(--text-3);
}

.audit-hash {
  color: var(--neon-dim);
}

.audit-action {
  color: var(--text);
}

.audit-note {
  color: var(--text-3);
  text-align: right;
}

.probe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 2px 4px 0;
  font-size: 11.5px;
  color: var(--text-2);
}

.probe {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-caption {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text-3);
  text-align: right;
}

/* ---------------------------------------------------------------------------
   Marquee
--------------------------------------------------------------------------- */
.marquee-section {
  padding-block: clamp(40px, 5vw, 60px);
  border-block: 1px solid var(--border-soft);
  background: var(--bg-raised);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-list {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-2);
  white-space: nowrap;
}

/* Separator glyphs are the even children in both tracks (name, ·, name, ·). */
.marquee-list li:nth-child(even) {
  color: var(--neon);
  opacity: 0.75;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------------------------------------------------------------------------
   The Loop
--------------------------------------------------------------------------- */
.loop-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.loop-sticky {
  position: sticky;
  top: 110px;
}

.loop-stat {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}

.loop-stat-num {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--neon);
}

.loop-stat-label {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.5;
}

.loop-steps {
  position: relative;
  padding-left: 34px;
}

.loop-rail {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-soft);
}

/* Scroll progress reads as a filament heating up as you descend the loop. */
.loop-rail-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--neon), rgba(255, 232, 26, 0.22));
  box-shadow: 0 0 10px rgba(255, 232, 26, 0.45);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

.loop-list {
  display: grid;
  gap: 6px;
}

.loop-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.loop-step::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 30px;
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: var(--bg-raised);
  border: 1px solid var(--text-3);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.loop-step:hover {
  background: var(--surface);
  border-color: var(--border-soft);
}

.loop-step:hover::before {
  background: var(--text);
  border-color: var(--text);
}

.loop-num {
  font-size: 12px;
  color: var(--text-3);
  padding-top: 4px;
}

.loop-step h3 {
  margin-bottom: 4px;
}

.loop-step p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ---------------------------------------------------------------------------
   Bento grid — asymmetrical
--------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.bento-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-spring),
    border-color 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out);
  will-change: transform;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  background: var(--surface-hover);
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-ceo {
  grid-column: span 4;
  grid-row: span 2;
  justify-content: space-between;
}

/* One card carries an edge light — the accountable executive, marked. */
.bento-ceo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(var(--neon), rgba(255, 232, 26, 0));
  box-shadow: 0 0 14px rgba(255, 232, 26, 0.35);
}

.bento-managers {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 3;
}

.bento-tag {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.bento-copy p:last-child {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.bento-card > p:not(.bento-tag) {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.manager-list {
  display: grid;
  gap: 9px;
  margin-top: 4px;
}

.manager-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-2);
}

.manager-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--text-3);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.room {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--text-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
}

.memo {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
}

.memo-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 13.5px;
}

.memo-k {
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.memo-v {
  color: var(--text-2);
}

.planes {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.plane {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: baseline;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  padding: 11px 14px;
  font-size: 13px;
}

.plane-name {
  color: var(--text);
  font-size: 12px;
}

.plane-job {
  color: var(--text-2);
}

/* ---------------------------------------------------------------------------
   Integrations table
--------------------------------------------------------------------------- */
.integ {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.integ-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 17px 26px;
  border-bottom: 1px solid var(--border-soft);
  transition: background-color 0.25s var(--ease-out);
}

.integ-row:last-child {
  border-bottom: none;
}

.integ-row:not(.integ-head):hover {
  background: rgba(255, 255, 255, 0.035);
}

.integ-head {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
  padding-block: 12px;
}

.integ-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.integ-role {
  color: var(--text-2);
  font-size: 14px;
}

.integ-foot {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------------------
   Governance
--------------------------------------------------------------------------- */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gov-card {
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition:
    transform 0.5s var(--ease-spring),
    border-color 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out);
  will-change: transform;
}

.gov-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  background: var(--surface-hover);
}

.gov-icon {
  width: 26px;
  height: 26px;
  color: var(--text-2);
  margin-bottom: 18px;
}

.gov-card h3 {
  margin-bottom: 8px;
}

.gov-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   Evidence
--------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  padding: 30px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.stat:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.stat-num {
  display: block;
  font-size: clamp(44px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--neon);
}

.stat-zero .stat-num {
  color: var(--live);
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.manifesto {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(255, 255, 255, 0.045), transparent 70%),
    rgba(12, 12, 14, 0.6);
  text-align: center;
}

.manifesto blockquote {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--text);
}

.manifesto figcaption {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------------------
   Final CTA
--------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  padding-block: clamp(100px, 14vw, 170px);
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
}

.cta-inner h2 {
  font-size: clamp(36px, 5.4vw, 64px);
}

.cta-sub {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
}

.cta-buttons {
  justify-content: center;
  margin-top: 38px;
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-raised);
  padding-top: clamp(56px, 7vw, 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-tag {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-3);
  max-width: 260px;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-head {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.footer-col a,
.footer-col span {
  font-size: 13.5px;
  color: var(--text-2);
}

.footer-col a {
  transition: color 0.2s var(--ease-out);
  width: fit-content;
}

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

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------------------
   Reveal system — spring-like entrances, transform/opacity only
--------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--rd, 0ms);
  will-change: transform, opacity;
}

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

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-sub,
  .hero-status {
    margin-inline: auto;
  }

  .hero-status {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }

  .loop-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .loop-sticky {
    position: static;
  }

  .bento-ceo {
    grid-column: span 6;
    grid-row: span 1;
  }

  .bento-managers {
    grid-column: span 3;
    grid-row: span 1;
  }

  .bento-card:not(.bento-ceo):not(.bento-managers):not(.bento-wide) {
    grid-column: span 3;
  }

  .bento-wide {
    grid-column: span 3;
  }

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

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-ceo,
  .bento-managers,
  .bento-wide,
  .bento-card:not(.bento-ceo):not(.bento-managers):not(.bento-wide) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gov-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .integ-row {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
  }

  .integ-role {
    grid-column: 1 / -1;
  }

  .integ-head {
    display: none;
  }

  .audit-row {
    grid-template-columns: 40px 1fr;
  }

  .audit-hash,
  .audit-note {
    display: none;
  }

  .loop-step {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------------------------------------------------------------------------
   Reduced motion — everything lands instantly, nothing animates
--------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .marquee-list[aria-hidden="true"] {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Pricing tiers

   Three cards against one Payment Link. The featured card is the only place
   the neon accent carries a border, so the eye lands on it before the copy is
   read — status colours (--live) stay reserved for verification chips.
--------------------------------------------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out);
  will-change: transform;
}

.tier:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--surface-hover);
}

.tier-featured {
  border-color: var(--neon-dim);
  background: linear-gradient(180deg, rgba(255, 232, 26, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 70px -30px var(--neon-glow);
}

.tier-featured:hover {
  border-color: rgba(255, 232, 26, 0.5);
}

.tier-flag {
  position: absolute;
  top: -10px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--neon);
  color: #0a0a0c;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tier-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.tier-amt {
  font-size: clamp(38px, 4.4vw, 46px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.tier-featured .tier-amt {
  color: var(--neon-hot);
}

.tier-line {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.tier-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.tier-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.tier-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
}

.tier-featured .tier-list li::before {
  background: var(--neon-dim);
}

.tier-btn {
  width: 100%;
}

.pricing-note {
  margin-top: 28px;
  max-width: 760px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .tiers {
    grid-template-columns: 1fr;
  }

  .tier-featured {
    order: -1;
  }
}
