/* ─────────────────────────────────────────────────────────────────────────
   TRLLN — Landing page v1
   Colors:
     --indigo  #1F4E6F   primary brand, dark surfaces
     --green   #57FF8F   accent only
     --white   #FFFFFF
     --offwhite #F6F7F8
     --silver  #B8BAB8
     --black   #0B0B0B
   Type:
     Space Grotesk throughout. H1/H2 Bold, H3 Medium, body Regular.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --indigo: #1F4E6F;
  --indigo-deep: #163A55;
  --indigo-ink: #0E2D45;
  --green: #57FF8F;
  --green-ink: #2DBF63;
  --bleu: #3886D8;
  --amber: #F2BB05;
  --silver: #B8BAB8;
  --white: #FFFFFF;
  --offwhite: #F6F7F8;
  --paper: #FBFBFA;
  --black: #0B0B0B;
  --text: #0B0B0B;
  --text-muted: rgba(11, 11, 11, 0.58);
  --text-faint: rgba(11, 11, 11, 0.42);
  --border: rgba(11, 11, 11, 0.10);
  --border-strong: rgba(11, 11, 11, 0.18);
  --hairline: rgba(11, 11, 11, 0.07);

  --max: 1240px;
  --pad: 80px;
  --section-y: 120px;

  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: 'ss01' on, 'ss02' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

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

button { font-family: inherit; cursor: pointer; }

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

/* ── Layout primitives ──────────────────────────────────────────────── */

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

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section--tight { padding: 88px 0; }

.section--dark {
  background: var(--indigo);
  color: var(--white);
}

.section--paper { background: var(--paper); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--green); }
.section--dark .eyebrow::before { background: var(--green); }

/* ── Type scale ─────────────────────────────────────────────────────── */

h1, h2, h3, h4, p { margin: 0; }

.h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}

.h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 500;
}

.body-lg {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  max-width: 56ch;
  text-wrap: pretty;
}

.body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}

.section--dark .body-lg, .section--dark .body { color: rgba(255,255,255,0.72); }

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: var(--indigo-ink);
}
.btn--primary:hover {
  background: #6BFFA0;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  padding: 14px 4px;
}
.btn--ghost:hover { color: var(--indigo); }

.section--dark .btn--ghost { color: var(--white); }
.section--dark .btn--ghost:hover { color: var(--green); }

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

.arrow {
  display: inline-block;
  transition: transform 160ms ease;
}
.btn:hover .arrow,
a:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow--down,
a:hover .arrow--down { transform: translateY(3px); }

/* ── Logo / Pin ─────────────────────────────────────────────────────── */

.pin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pin::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 6px solid currentColor;
  margin-top: 1px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--indigo);
}
.logo .pin { color: var(--indigo); width: 20px; height: 20px; }
.logo .pin::before {
  border-left-width: 4px; border-right-width: 4px; border-top-width: 5.5px;
}
.logo .pin .dot { display: none; }

.section--dark .logo { color: var(--white); }
.section--dark .logo .pin { color: var(--green); }

/* TRLLN wordmark — the LL is rendered as II as a small custom touch */
.logo .wm-i { display: inline-block; transform: translateY(-0.02em); }

/* ── Header ─────────────────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease, border-color 180ms ease;
  border-bottom: 1px solid transparent;
}
.header--scrolled {
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--hairline);
  padding: 12px 0;
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__item {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.nav__item:hover { background: rgba(31,78,111,0.05); color: var(--indigo); }
.nav__item--active {
  background: rgba(31,78,111,0.05);
  color: var(--indigo);
  border-color: rgba(31,78,111,0.18);
}
.nav__item:focus { outline: none; }
.nav__item:focus-visible { outline: 2px solid rgba(31,78,111,0.35); outline-offset: 2px; }
.nav__caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.7;
  transition: transform 160ms ease;
}
.nav__item--active .nav__caret { transform: rotate(-135deg) translate(-1px, -1px); }

/* ── Mega menu ──────────────────────────────────────────────────────── */

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(1080px, calc(100vw - 32px));
  background: var(--white);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(14,45,69,0.04),
    0 12px 28px -16px rgba(14,45,69,0.14);
  border: 1px solid var(--hairline);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 200ms ease;
}
.mega--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 4px);
}
.mega__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.mega__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.mega__title b { color: var(--text); font-weight: 600; }
.mega__hint {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.mega__tile {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  transition: background 140ms ease, transform 140ms ease;
  position: relative;
}
.mega__tile:hover { background: var(--offwhite); }
.mega__tile:hover .mega__arrow { transform: translateX(3px); color: var(--green-ink); }
.mega__tile-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  min-height: 1.4em;
}
.mega__tile-t {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.mega__arrow {
  font-size: 13px;
  color: var(--text-faint);
  transition: transform 160ms ease, color 160ms ease;
}
.mega__tile-d {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.mega__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-muted);
}
.mega__foot a {
  color: var(--indigo);
  font-weight: 500;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero__row {
  display: grid;
  gap: 64px;
  align-items: center;
}
.hero--type-left .hero__row { grid-template-columns: 1.05fr 1fr; }
.hero--type-centered .hero__row { grid-template-columns: 1fr; text-align: center; }
.hero--type-centered .body-lg { margin-left: auto; margin-right: auto; }
.hero--type-centered .hero__ctas { justify-content: center; }
.hero--visual-behind .hero__row { grid-template-columns: 1fr; }
.hero--visual-behind .hero__copy { position: relative; z-index: 2; max-width: 620px; }
.hero--visual-behind .hero__visual {
  position: absolute;
  top: 50%;
  right: -6%;
  width: 70%;
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, rgba(0,0,0,0.85) 55%, transparent 88%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, rgba(0,0,0,0.85) 55%, transparent 88%);
}

.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__copy .h1 { margin-top: 8px; }
.hero__ctas { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.hero__meta {
  display: flex;
  gap: 28px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.hero__meta-item .mono { color: var(--text-faint); margin-bottom: 4px; display: block; }
.hero__meta-item b { font-weight: 600; color: var(--text); font-size: 15px; }

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero--type-centered .hero__visual { aspect-ratio: 16 / 8; margin-top: 48px; }

/* ── Section 2 — Proof ──────────────────────────────────────────────── */

.proof__intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}
.proof__intro .body-lg b { color: var(--text); font-weight: 600; }
.proof__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 48px 32px 44px 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat:last-child { border-right: none; padding-right: 0; }
.stat:not(:first-child) { padding-left: 32px; }
.stat__num {
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}
.stat__num sup {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 500;
  margin-left: 4px;
  color: var(--text-muted);
}
.stat__label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Section 3 — Problem ────────────────────────────────────────────── */

.problem__top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.megafig {
  font-size: clamp(100px, 14vw, 220px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  justify-self: end;
}
.hl {
  background-image: linear-gradient(transparent 76%, var(--green) 76%, var(--green) 94%, transparent 94%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1100ms cubic-bezier(.6, .04, .35, 1);
  transition-delay: 200ms;
  padding: 0 0.04em;
}
.is-in-view .hl {
  background-size: 100% 100%;
}
.megafig em {
  font-style: normal;
  color: var(--indigo);
  position: relative;
}
.megafig em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.04em;
  height: 0.05em;
  background: var(--green);
}
.megafig sub {
  font-size: 0.18em;
  vertical-align: middle;
  margin-left: 0.1em;
  font-weight: 500;
  color: var(--text-muted);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.pain {
  padding: 36px 32px 0 0;
  border-right: 1px solid var(--border);
}
.pain:last-child { border-right: none; padding-right: 0; }
.pain:not(:first-child) { padding-left: 32px; }
.pain__h {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
  color: var(--text);
  text-wrap: balance;
}
.pain__b {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}
.pain__index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 22px;
  display: block;
}

/* ── Section 4 — How it works (dark) ───────────────────────────────── */

.how__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.how__row--stacked {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 64px;
}
.how__row--stacked .how__copy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: 64px;
  align-items: start;
}
.how__row--stacked .how__copy > .eyebrow,
.how__row--stacked .how__copy > .h2 {
  grid-column: 1;
}
.how__row--stacked .how__copy > .body-lg {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}
.how__row--stacked .how__steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 8px;
}
.how__row--stacked .step {
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
  border-right: 1px solid rgba(255,255,255,0.12);
  padding: 28px 24px 0 0;
}
.how__row--stacked .step:last-child {
  border-right: none;
  border-bottom: none;
  padding-right: 0;
}
.how__row--stacked .step:not(:first-child) {
  padding-left: 24px;
}
.how__copy { display: flex; flex-direction: column; gap: 28px; }
.how__steps {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.step__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.step__h {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 6px;
}
.step__b {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}

.mesh-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--indigo-deep);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.mesh-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(14,45,69,0.65) 100%);
  pointer-events: none;
}
.mesh-stage__chip {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  z-index: 3;
}
.mesh-stage__chip-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.mesh-stage__legend {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  z-index: 3;
}

.mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.mesh-canvas--light { position: absolute; }

/* ── Mesh-stage inline (for HTML-based viz) ─────────────────────────── */
.mesh-stage--inline {
  aspect-ratio: auto;
  align-self: stretch;
  height: auto;
  min-height: 540px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.18)), var(--indigo-deep);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.mesh-stage--inline::after { display: none; }

/* Shared viz primitives */
.viz {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  font-family: var(--font);
  position: relative;
  z-index: 2;
}
.viz__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.viz__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.88);
}
.viz__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}
.viz__hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}

/* ── Journey trace ──────────────────────────────────────────────────── */

.viz--journey { gap: 22px; padding: 4px; flex: 1; min-height: 0; }

.journey__route {
  position: relative;
  padding: 28px 24px 64px;
  flex: 0 0 auto;
  min-height: 108px;
}
.journey__line {
  position: absolute;
  top: 50px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(255,255,255,0.14);
}
.journey__line-fill {
  position: absolute;
  inset: 0;
  background: var(--green);
  width: 0;
  transition: width 80ms linear;
  box-shadow: 0 0 8px var(--green);
}
.journey__node {
  position: absolute;
  top: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 80px;
  text-align: center;
}
.journey__node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--indigo-deep);
  border: 1.5px solid rgba(255,255,255,0.35);
  position: relative;
  z-index: 2;
  transition: border-color 200ms ease, background 200ms ease;
}
.journey__node--done .journey__node-dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(87,255,143,0.12);
}
.journey__node-id {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}
.journey__node--done .journey__node-id { color: var(--green); }
.journey__node-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
}
.journey__asset {
  position: absolute;
  top: 38px;
  transform: translateX(-50%);
  z-index: 3;
  transition: left 80ms linear;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(87,255,143,0.5));
}

.journey__telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}
.tm {
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tm__l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}
.tm__v {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tm__u {
  font-size: 14px;
  margin-left: 3px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.tm__s {
  font-size: 11.5px;
  color: rgba(87,255,143,0.7);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.journey__spark {
  flex: 1 1 auto;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.spark__l {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.spark__v {
  font-size: 13px;
  font-family: var(--mono);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}
.spark__bars {
  width: 100%;
  flex: 1;
  min-height: 40px;
}

/* ── Dashboard slice ─────────────────────────────────────────────────── */

.viz--dash {
  gap: 0;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  background: var(--indigo-ink);
  flex: 1;
  min-height: 0;
}
.dash__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.dash__chrome > * { min-width: 0; }
.dash__chrome-l { display: flex; align-items: center; gap: 8px; }
.dash__pin {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.2px solid var(--green);
  position: relative;
}
.dash__pin::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 2.4px solid transparent;
  border-right: 2.4px solid transparent;
  border-top: 3.4px solid var(--green);
}
.dash__title {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  font-size: 11.5px;
}
.dash__tabs {
  display: flex;
  gap: 0;
  align-items: center;
  flex-shrink: 1;
  overflow: hidden;
}
.dash__tab {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  padding: 5px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  white-space: nowrap;
}
.dash__tab--active {
  background: rgba(87,255,143,0.10);
  color: var(--green);
}
.dash__chrome-r {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

.dash__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  flex: 1;
  min-height: 0;
}
.dash__map {
  background: var(--indigo-ink);
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash__map-h, .dash__panel-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.dash__map-h-r, .dash__panel-h-r {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}
.dash__map-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
}
.dash__map-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dash__counter {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(14,45,69,0.85);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dash__counter-n {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  line-height: 1;
}
.dash__counter-l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}

.dash__col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.dash__panel {
  background: var(--indigo-ink);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.dash__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.dash__row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 11px;
  white-space: nowrap;
}
.dash__row > * { overflow: hidden; text-overflow: ellipsis; }
.dash__row:last-child { border-bottom: none; }
.dash__row-id {
  font-family: var(--mono);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
  font-size: 10.5px;
}
.dash__row-loc { color: rgba(255,255,255,0.55); }
.dash__row-st {
  text-align: right;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.dash__row-st--green { color: var(--green); }
.dash__row-st--amber { color: var(--amber); }
.dash__row-st--dim   { color: rgba(255,255,255,0.4); }

.dash__alerts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash__alert {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
}
.dash__alert-sev {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  background: rgba(255,255,255,0.3);
}
.dash__alert--warn .dash__alert-sev { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dash__alert--info .dash__alert-sev { background: var(--green); }
.dash__alert-t {
  display: block;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 2px;
}
.dash__alert-d {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

/* ── Circuit viz ───────────────────────────────────────────────────── */

.viz--circuit { gap: 16px; flex: 1; min-height: 0; padding: 4px; }

.circuit__stage {
  flex: 1;
  min-height: 460px;
  background:
    radial-gradient(ellipse at center, rgba(87,255,143,0.04), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
}
.circuit__svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Sensor viz ─────────────────────────────────────────────────────── */

.viz--sensor { gap: 22px; padding: 4px; flex: 1; min-height: 0; }

.sensor__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.sensor__product {
  background: linear-gradient(180deg, #fafafa, #e9eaec);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.sensor__product::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(87,255,143,0.10), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(31,78,111,0.06), transparent 55%);
  pointer-events: none;
}
.sensor__product img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18));
  max-height: 320px;
  object-fit: contain;
}
.sensor__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 6px 0;
  position: relative;
  z-index: 1;
}
.sensor__caption .tm__l { color: rgba(11,11,11,0.55); }
.sensor__caption-sub {
  font-size: 13px;
  color: rgba(11,11,11,0.7);
  line-height: 1.4;
}

.sensor__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  align-content: start;
}
.sensor__spec {
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sensor__spec-v {
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.sensor__spec-s {
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
}
.sensor__cert {
  grid-column: 1 / -1;
  padding: 14px 16px;
  background: rgba(87,255,143,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sensor__cert-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sensor__cert-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Proof section product chip ─────────────────────────────────────── */

.proof__device {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  margin: 0 0 56px;
  padding: 24px 28px 24px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.proof__device-img {
  background: linear-gradient(180deg, #ffffff, #ececec);
  border-radius: 8px;
  padding: 12px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof__device-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.10));
}
.proof__device-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proof__device-copy .tm__l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
}
.proof__device-copy .tm__l::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  margin-right: 8px;
  vertical-align: 1px;
}
.proof__device-h {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--text);
  max-width: 50ch;
  text-wrap: balance;
}
.proof__device-meta {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.proof__device-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Section 5 — Differentiators ────────────────────────────────────── */

.diff__head {
  margin-bottom: 64px;
  max-width: 720px;
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.diff {
  padding: 44px 40px 44px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  background: var(--white);
  position: relative;
}
.diff--accent { background: var(--indigo); color: var(--white); }
.diff--accent .diff__h { color: var(--white); }
.diff--accent .diff__b { color: rgba(255,255,255,0.78); }
.diff--accent .diff__mark { color: var(--green); }
.diff__mark {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.diff__h {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  line-height: 1.15;
  text-wrap: balance;
}
.diff__b {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.diff__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.diff__price-num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--green);
}
.diff__price-unit {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* ── Section 6 — Use cases ──────────────────────────────────────────── */

.uses__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}
.uses__head .body-lg { max-width: 44ch; }

.uses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.use {
  background: var(--white);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: background 160ms ease;
  cursor: pointer;
  position: relative;
}
.use:hover { background: var(--paper); }
.use:hover .use__arrow { transform: translate(3px, -3px); color: var(--green-ink); }
.use__mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  white-space: nowrap;
}
.use__mono > span { overflow: hidden; text-overflow: ellipsis; }
.use__h {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-top: auto;
  text-wrap: balance;
}
.use__b {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
.use__arrow {
  position: absolute;
  top: 36px;
  right: 32px;
  font-size: 18px;
  color: var(--text-faint);
  transition: transform 180ms ease, color 180ms ease;
}

/* Asymmetric layout variant */
.uses-grid--asym { display: grid; grid-template-columns: repeat(6, 1fr); }
.uses-grid--asym .use:nth-child(1) { grid-column: span 3; }
.uses-grid--asym .use:nth-child(2) { grid-column: span 3; }
.uses-grid--asym .use:nth-child(3) { grid-column: span 2; }
.uses-grid--asym .use:nth-child(4) { grid-column: span 2; }
.uses-grid--asym .use:nth-child(5) { grid-column: span 2; }
.uses-grid--asym .use:nth-child(6) { grid-column: span 6; min-height: 200px; }

/* Index variant - typographic list */
.uses-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.uses-list .use-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 2fr 60px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  cursor: pointer;
  transition: padding 200ms ease;
}
.uses-list .use-row:last-child { border-bottom: none; }
.uses-list .use-row:hover { padding-left: 16px; padding-right: 16px; background: var(--paper); }
.uses-list .use-row:hover .use__arrow-inline { transform: translateX(4px); color: var(--green-ink); }
.use-row__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.use-row__h {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text);
}
.use-row__b {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
.use__arrow-inline {
  font-size: 20px;
  color: var(--text-faint);
  transition: transform 200ms ease, color 200ms ease;
  justify-self: end;
}

.uses__foot {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 24px;
}
.uses__foot-l {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ── Section 7 — Demo CTA ───────────────────────────────────────────── */

.cta {
  text-align: center;
  padding: 48px 0 100px;
  background: var(--paper);
}
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 0; }
.cta__card {
  position: relative;
  width: 100%;
  background: var(--indigo);
  color: var(--white);
  border-radius: 24px;
  padding: 96px 64px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(14,45,69,0.4);
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta__bg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.cta__inner .h2 { color: var(--white); max-width: 18ch; }
.cta__inner .body-lg { color: rgba(255,255,255,0.72); max-width: 56ch; }
.cta__ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.cta__inner .btn--ghost { color: var(--white); }
.cta__inner .btn--ghost:hover { color: var(--green); }
.cta__inner .eyebrow { color: var(--green); }

/* ── Footer ─────────────────────────────────────────────────────────── */

.footer {
  background: var(--indigo);
  color: var(--white);
  padding: 96px 0 48px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
.footer__brand .logo { color: var(--white); margin-bottom: 24px; }
.footer__brand .logo .pin { color: var(--green); }
.footer__brand p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.55; margin-bottom: 12px; max-width: 28ch; }
.footer__brand .contact { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  transition: color 140ms ease;
}
.footer__col a:hover { color: var(--green); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer__bottom-l { display: flex; gap: 24px; }
.footer__bottom-l a:hover { color: var(--white); }

/* ── Section divider ────────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--border);
  max-width: var(--max);
  margin: 0 auto;
}

/* ── Modal ──────────────────────────────────────────────────────────── */

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(14,45,69,0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.modal-back--open { opacity: 1; visibility: visible; transition: opacity 220ms ease; }
.modal {
  background: var(--white);
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
  transform: translateY(20px);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.modal-back--open .modal { transform: translateY(0); }
.modal__head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.modal__title { font-size: 28px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.05; max-width: 14ch; }
.modal__close {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal__close:hover { background: var(--offwhite); color: var(--text); }
.modal__sub { color: var(--text-muted); font-size: 15px; line-height: 1.5; margin-bottom: 28px; max-width: 44ch; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 500; color: var(--text-muted); font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(31,78,111,0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal__submit {
  margin-top: 12px;
  align-self: flex-start;
}
.modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 0 16px;
  text-align: center;
}
.modal__success-pin {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-ink);
  font-size: 28px;
}

/* ── Tooltip flag for "open" state of mega menu ────────────────────── */

.flag {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--green);
  color: var(--indigo-ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Image placeholders ─────────────────────────────────────────────── */

.placeholder {
  background:
    repeating-linear-gradient(135deg,
      rgba(31,78,111,0.06) 0,
      rgba(31,78,111,0.06) 1px,
      transparent 1px,
      transparent 10px),
    var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* Animate-in helpers */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-up 480ms ease both; }

/* ─────────────────────────────────────────────────────────────────────
   v2 — Scroll-driven polish layered across the page
   ───────────────────────────────────────────────────────────────────── */

/* Proof stats — staggered fade-up when the section enters view */
.proof__stats .stat {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.is-in-view .proof__stats .stat { opacity: 1; transform: translateY(0); }
.is-in-view .proof__stats .stat:nth-child(1) { transition-delay: 0ms; }
.is-in-view .proof__stats .stat:nth-child(2) { transition-delay: 110ms; }
.is-in-view .proof__stats .stat:nth-child(3) { transition-delay: 220ms; }

/* Differentiator tiles — staggered fade-up when section enters view */
.diff-grid .diff {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.is-in-view .diff-grid .diff { opacity: 1; transform: translateY(0); }
.is-in-view .diff-grid .diff:nth-child(1) { transition-delay: 0ms; }
.is-in-view .diff-grid .diff:nth-child(2) { transition-delay: 80ms; }
.is-in-view .diff-grid .diff:nth-child(3) { transition-delay: 160ms; }
.is-in-view .diff-grid .diff:nth-child(4) { transition-delay: 240ms; }

/* Primary CTA breathing halo — scoped to the hero and final CTA section
   so it draws attention to the conversion action without being everywhere. */
.hero .btn--primary,
.cta__inner .btn--primary {
  animation: cta-halo 4.4s ease-out infinite;
}
@keyframes cta-halo {
  0%   { box-shadow: 0 0 0 0 rgba(87, 255, 143, 0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(87, 255, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 255, 143, 0); }
}
/* Pause the halo while hovering — the hover already has its own affordance */
.hero .btn--primary:hover,
.cta__inner .btn--primary:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .proof__stats .stat { transition: none; transform: none; opacity: 1; }
  .diff-grid .diff { transition: none; transform: none; opacity: 1; }
  .hero .btn--primary,
  .cta__inner .btn--primary { animation: none; }
  .hl { transition: none; background-size: 100% 100%; }
}

/* ─────────────────────────────────────────────────────────────────────
   v2 — Section 4: The device
   Premium product page register: white, generous whitespace, soft shadows.
   ───────────────────────────────────────────────────────────────────── */

.section--device {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(31,78,111,0.05), transparent 55%),
    var(--white);
  position: relative;
  overflow: hidden;
}
.section--device::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0, var(--white) 12%, var(--white) 88%, transparent 100%);
  pointer-events: none;
}
.section--device > .wrap { position: relative; z-index: 1; }

.device__head {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}
.device__head .h2 { max-width: 16ch; }
.device__head .body-lg { max-width: 46ch; }
.device__head-em {
  color: var(--text);
  font-weight: 500;
}

/* ── Device hero stage ───────────────────────────────────────────── */

.device__hero {
  margin-bottom: 72px;
}
.device__hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 50% 50%, #F6F6F3 0%, #E4E2DC 56%, #CCCAC3 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -30px rgba(14,45,69,0.18);
  transition: box-shadow 360ms ease, transform 360ms cubic-bezier(.2,.7,.2,1);
  --dv-mx: 50%;
  --dv-my: 50%;
}
.device__hero-stage:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 40px 80px -30px rgba(14,45,69,0.28),
    0 0 0 1px rgba(87,255,143,0.18);
  transform: translateY(-2px);
}
/* Cursor spotlight — radial Spring-Green glow that follows the cursor. */
.device__hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 340px at var(--dv-mx) var(--dv-my),
    rgba(87, 255, 143, 0.32),
    rgba(87, 255, 143, 0.12) 32%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}
.device__hero-stage:hover::after { opacity: 1; }
.device__hero-stage:hover .device__data-overlay {
  filter: drop-shadow(0 0 6px rgba(87,255,143,0.4));
}
.device__hero-stage:hover .device__hero-imgwrap {
  animation-duration: 4s;
}
.device__hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,
      transparent 0,
      transparent 39px,
      rgba(31,78,111,0.055) 39px,
      rgba(31,78,111,0.055) 40px),
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 39px,
      rgba(31,78,111,0.055) 39px,
      rgba(31,78,111,0.055) 40px);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 25%, #000 75%);
  mask-image: radial-gradient(ellipse at center, transparent 25%, #000 75%);
  pointer-events: none;
}

.device__hero-imgwrap {
  position: relative;
  display: block;
  max-width: 76%;
  max-height: 78%;
  z-index: 1;
  animation: device-float 6s ease-in-out infinite;
}
.device__hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 56px 56px rgba(14, 45, 69, 0.28))
    drop-shadow(0 22px 26px rgba(14, 45, 69, 0.14))
    drop-shadow(0 4px 8px rgba(14, 45, 69, 0.08));
  position: relative;
  z-index: 1;
}

/* SVG data overlay — sits on top of the image, but lets the uplink beam
   spill above the image's top edge. */
.device__data-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
  /* Default animation play state — sped up on hover via a CSS var */
}

@keyframes device-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

@media (prefers-reduced-motion: reduce) {
  .device__hero-imgwrap { animation: none; }
  .device__data-overlay * { animation: none !important; }
}

.device__chip {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.device__chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.device__cta {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  cursor: pointer;
}
.device__cta .arrow {
  font-family: var(--font);
  font-size: 12px;
  transition: transform 180ms ease;
}
.device__cta:hover {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
  box-shadow: 0 12px 24px -10px rgba(14,45,69,0.5);
}
.device__cta:hover .arrow { transform: translateX(3px); }

.device__caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.device__caption .tm__l { color: var(--indigo); }
.device__caption-s {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Spec ticks anchored at the four corners */
.device__tick {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font);
  /* Scroll-in reveal: start hidden, fade + rise when stage is in-view. */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.device__hero-stage.is-in-view .device__tick {
  opacity: 1;
  transform: translateY(0);
}
.device__hero-stage.is-in-view .device__tick--tl { transition-delay: 0.15s; }
.device__hero-stage.is-in-view .device__tick--tr { transition-delay: 0.32s; }
.device__hero-stage.is-in-view .device__tick--bl { transition-delay: 0.49s; }
.device__hero-stage.is-in-view .device__tick--br { transition-delay: 0.66s; }
.device__tick-l {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.device__tick-v {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.device__tick--tl { top: 80px; left: 48px; }
.device__tick--tr { top: 80px; right: 48px; text-align: right; align-items: flex-end; }
.device__tick--bl { bottom: 100px; left: 48px; }
.device__tick--br { bottom: 100px; right: 48px; text-align: right; align-items: flex-end; }

/* tick connector lines (decorative) */
.device__tick::after {
  content: '';
  position: absolute;
  background: var(--border-strong);
  height: 1px;
  width: 48px;
  top: 100%;
  margin-top: 6px;
  transform: scaleX(0);
  transition: transform 500ms ease;
  transition-delay: inherit;
}
.device__tick--tl::after { left: 0; transform-origin: 0% 50%; }
.device__tick--tr::after { right: 0; transform-origin: 100% 50%; }
.device__tick--bl::after, .device__tick--br::after {
  top: auto; bottom: 100%; margin-top: 0; margin-bottom: 6px;
}
.device__tick--bl::after { left: 0; transform-origin: 0% 50%; }
.device__tick--br::after { right: 0; transform-origin: 100% 50%; }
.device__hero-stage.is-in-view .device__tick::after { transform: scaleX(1); }

/* ── Three supporting points ─────────────────────────────────────── */

.device__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.device__point {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.device__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.device__point-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.device__point-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.device__point-h {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text);
  line-height: 1;
}
.device__point-b {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ── Photo placeholder (shared) ──────────────────────────────────── */

.ph {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
}
.ph svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ph__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  max-width: 78%;
}
.ph__label-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
}
.ph__label-v {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────────────
   v2 — Use cases: 'featured' layout (one elevated tile + 5-up rest)
   ───────────────────────────────────────────────────────────────────── */

.uses-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.use--featured {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  position: relative;
}
.use--featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -28px rgba(14,45,69,0.18);
}
.use__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  background: var(--indigo);
  color: var(--white);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -10px rgba(14,45,69,0.45);
}
.use__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(87,255,143,0.22), 0 0 10px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
.use--featured .use__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.use__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.use__featured-copy {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.use__featured-copy .use__mono {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.use__h--lg {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-top: 4px;
}
.use--featured .use__b {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 52ch;
}
.use__cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
}
.use--featured:hover .use__cta .arrow { transform: translateX(4px); color: var(--green-ink); }

.uses-featured__rest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.uses-featured__rest .use {
  min-height: 0;
  padding: 24px 28px 24px 28px;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.uses-featured__rest .use__mono {
  flex: 0 0 90px;
}
.uses-featured__rest .use__h {
  flex: 1 1 auto;
  font-size: 18px;
  font-weight: 500;
  margin-top: 0;
  letter-spacing: -0.012em;
}
.uses-featured__rest .use__b {
  display: none;
}
.uses-featured__rest .use__arrow {
  position: static;
  font-size: 16px;
}

/* Responsive nudge — keep simple at 1024 */
@media (max-width: 1080px) {
  .device__points { grid-template-columns: 1fr 1fr; }
  .device__points > :nth-child(3) { grid-column: 1 / -1; }
  .device__head { grid-template-columns: 1fr; gap: 24px; }
  .device__tick { display: none; }
  .uses-featured { grid-template-columns: 1fr; }
}
