/* ============================================================
   EFV Option D — Above the World
   Cinematic operator · globe scrubber · high-contrast type
   ============================================================ */

:root {
  --brand-blue: #173ab8;
  --brand-blue-light: #7291ee;
  --brand-amber: #ffb000;
  --brand-yellow: #facd00;
  --brand-paper: #f0f4f8;

  --bg: #050810;
  --bg-2: #0a0e1a;
  --bg-3: #111726;
  --panel: #0d1322;
  --line: rgba(180, 200, 230, 0.14);
  --line-2: rgba(180, 200, 230, 0.28);

  /* HIGH CONTRAST — paper for body on dark, never grey */
  --ink: #f0f4f8;
  --ink-soft: #d0d8e4;
  --ink-faded: #98a3b5;     /* only for labels/eyebrows, never body */
  --accent: var(--brand-amber);
  --live: var(--brand-yellow);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); overflow-x: hidden; }
body {
  font-family: 'Avenir Next LT Pro', 'Avenir Next', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 36px;
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-left {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
}
.bar-left .sq {
  width: 9px; height: 9px; background: var(--live);
  box-shadow: 0 0 14px var(--live);
  animation: pulse 2s infinite;
}
.bar-left .logo-img { height: 52px; width: auto; }

.bar-mid {
  display: flex; gap: 32px; justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.bar-mid a { color: var(--ink-soft); transition: color 0.15s; }
.bar-mid a:hover { color: var(--accent); }

.bar-right { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
.lang-toggle button {
  background: none; border: 0; cursor: pointer;
  color: var(--ink-soft); font: inherit; padding: 2px 4px;
}
.lang-toggle button.active { color: var(--accent); }
.lang-toggle em { font-style: normal; color: var(--ink-faded); }

.btn-accent, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Avenir Next LT Pro', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0a0a0a;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn-accent:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 22px rgba(255,176,0,0.30);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-accent.lg, .btn-ghost.lg {
  font-size: 15px; padding: 14px 24px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- HERO — asymmetric two-column ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 5% 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(23,58,184,0.18), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(255,176,0,0.06), transparent 50%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.08'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 0 60px;
  position: relative;
  z-index: 2;
}
.hero-left { display: flex; flex-direction: column; gap: 30px; }
.hero-right { display: flex; flex-direction: column; gap: 28px; }

.hero-visual {
  position: relative;
  aspect-ratio: 16 / 11;
  width: 100%;
  background: #000;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
}
.hv-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.4s ease-out;
  will-change: transform;
}
.hv-img::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,0.35) 100%);
}
.hv-frame {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hv-frame i {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--accent);
}
.hv-frame i:nth-child(1) { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.hv-frame i:nth-child(2) { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.hv-frame i:nth-child(3) { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.hv-frame i:nth-child(4) { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.hv-meta {
  position: absolute;
  bottom: 18px; left: 22px;
  z-index: 3;
}
.hvm-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  background: rgba(0,0,0,0.6);
  padding: 5px 10px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,176,0,0.35);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  background: rgba(255,176,0,0.06);
  padding: 6px 14px;
  border: 1px solid rgba(255,176,0,0.30);
  align-self: flex-start;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

.hero-h, .hero-h2 {
  font-family: 'Avenir Next LT Pro', sans-serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-h {
  font-size: clamp(40px, 4.6vw, 68px);
}
.hero-h2 {
  font-size: clamp(34px, 3.8vw, 54px);
}
.hero-h em, .hero-h2 em, .final-h em, .mod-h em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-family: 'Avenir Next LT Pro', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 480px;
}

.hero-cta {
  display: flex; gap: 12px;
  flex-wrap: wrap;
}

.venue-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
}
.venue-row.tight { margin-top: 18px; }
.venue-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  background: rgba(15,20,35,0.6);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.venue-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  align-self: center;
  margin-right: 4px;
}

/* Strip at bottom of hero */
.hero-strip {
  position: relative;
  z-index: 3;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  gap: 0;
  background: rgba(8, 12, 22, 0.78);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 30px;
}
.strip-cell {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.strip-cell:last-child { border-right: 0; }
.strip-cell .sl {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.strip-cell .strip-val {
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  font-feature-settings: 'tnum';
}
.strip-cell .strip-val i {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: 2px;
}
.strip-tape {
  display: flex;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  align-items: center;
}
.strip-tape .tt {
  padding: 0 22px;
  border-right: 1px solid var(--line);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.strip-tape .tt:first-child { padding-left: 0; }
.strip-tape .tt:last-child { border-right: 0; padding-right: 0; }
.strip-tape .tt b {
  color: var(--accent);
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 500;
}
.strip-tape .tt i { font-style: normal; font-size: 12px; }
.strip-tape .tt i.up { color: var(--live); }
.strip-tape .tt i.dn { color: #ff7a5c; }

/* ---------- MODULES ---------- */
.mod {
  position: relative;
  padding: 120px 6%;
  overflow: hidden;
  isolation: isolate;
}
.mod-inner {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
/* Asset backgrounds — real photography w/ veil to keep readability.
   Kills the AI-slop "solid panel" feel. */
.mod-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  filter: saturate(1.05) contrast(1.05);
  z-index: 0;
}
.mod-bg-side {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.18;
  width: 55%;
  left: auto; right: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.mod-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(5,8,16,0.50) 90%),
    linear-gradient(180deg, rgba(5,8,16,0.55) 0%, rgba(5,8,16,0.30) 50%, rgba(5,8,16,0.85) 100%);
  z-index: 1;
}
.mod-veil-side {
  background:
    linear-gradient(90deg, rgba(5,8,16,0.95) 30%, rgba(5,8,16,0.45) 100%);
}
.principles-bg {
  background-size: 60%;
  background-position: 110% 50%;
  background-repeat: no-repeat;
  opacity: 0.06;
  filter: saturate(0.6);
}
.mod.platform { background: #060912; }
.mod.algos { background: #080c18; }
.mod.lending { background: #050810; }

.mod-head {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto 56px;
  display: flex; align-items: baseline; gap: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.mod-body {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
}
.mod-id {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-weight: 500;
}
.mod-head h2 {
  font-family: 'Avenir Next LT Pro', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
}
.mod-rule { flex: 1; height: 1px; background: var(--line-2); align-self: center; }
.mod-tag { color: var(--ink-soft); font-style: italic; }

.mod-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.mod-body.rev { grid-template-columns: 1.15fr 1fr; }
/* Let grid cells shrink below their content width so wide children
   (the algo terminal, screen mocks) scroll internally instead of
   widening the whole page on small screens. */
.mod-copy, .mod-visual { min-width: 0; }

.mod-h {
  font-family: 'Avenir Next LT Pro', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}
.mod-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 22px;
}
.mod-copy .venue-note,
.mod-copy .speed-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.mod-copy .speed-note { color: var(--live); }

.mod-bullets { list-style: none; margin-bottom: 28px; }
.mod-bullets.mb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.mod-bullets.mb-grid li {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  background: rgba(13,19,34,0.4);
  backdrop-filter: blur(6px);
}
.mod-bullets.mb-grid b {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}
.mod-bullets.mb-grid span {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.mod-bullets:not(.mb-grid) li {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 16px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.mod-bullets:not(.mb-grid) li:last-child { border-bottom: 0; }
.mod-bullets:not(.mb-grid) b {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}
.mod-bullets:not(.mb-grid) span {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.pipeline {
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pipeline li:not(.arr) {
  flex: 1; min-width: 100px;
  padding: 12px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.pipeline li:not(.arr):hover {
  border-color: rgba(255,176,0,0.5);
  background: rgba(255,176,0,0.04);
}
.pipeline li.active {
  border-color: var(--accent);
  background: rgba(255,176,0,0.10);
  box-shadow: 0 0 24px rgba(255,176,0,0.35), inset 0 0 18px rgba(255,176,0,0.08);
  transform: translateY(-1px);
}
.pipeline li.active i { color: var(--live); }
.pipeline li.active b { color: var(--accent); }
.pipeline i {
  display: block; font-style: normal;
  font-size: 10px; color: var(--accent);
  letter-spacing: 0.18em; margin-bottom: 5px;
  transition: color 0.25s;
}
.pipeline b {
  font-size: 11px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.05em;
  transition: color 0.25s;
}
.pipeline .arr {
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  transition: color 0.25s, text-shadow 0.25s;
}
.pipeline .arr.lit {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255,176,0,0.6);
}

/* Lending pills */
.lend-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.lp {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink);
}

/* ---------- Visuals ---------- */
.screen-frame {
  border: 1px solid var(--line-2);
  background: #000;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,176,0,0.05);
}
.screen-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
.screen-chrome span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line-2);
}
.screen-chrome em { margin-left: 12px; font-style: normal; }

.screen-body {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.screen-body::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.40), rgba(0,0,0,0.85));
}
.screen-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 18px;
  font-family: 'IBM Plex Mono', monospace;
}
.ov-pair {
  grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column; align-items: flex-end;
  align-self: end;
}
.ov-pair .ov-lbl {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.ov-pair .ov-px {
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
  line-height: 1;
  margin: 4px 0;
}
.ov-pair .ov-chg {
  font-size: 14px;
  color: var(--live);
}
.ov-book {
  grid-column: 1; grid-row: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-self: center;
}
.ob-col h6 {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
}
.ob-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.ob-row b { font-weight: 500; color: var(--ink); }
.ob-row i { font-style: normal; color: var(--ink-soft); }
.ob-col:first-child .ob-row b { color: #ff7a5c; }
.ob-col:last-child .ob-row b { color: var(--live); }

.ov-meta {
  grid-column: 1 / -1;
  display: flex; gap: 24px;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.ov-meta b { color: var(--accent); margin-right: 6px; font-weight: 500; }

/* Terminal */
.term {
  background: #04060c;
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.term-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
.term-head span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.term-head em {
  margin-left: 12px;
  font-style: normal;
  flex: 1;
  transition: color 0.2s;
}
.term-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
  animation: pulse 1.6s infinite;
}
.term-body {
  padding: 22px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-feature-settings: 'tnum';
  font-size: 13px;
  line-height: 1.75;
  color: var(--live);
  white-space: pre;
  overflow-x: auto;
  min-height: 280px;
  position: relative;
}
.term-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.term-body .cm { color: var(--ink-faded); }
.term-body .cd { color: var(--ink-soft); }
.term-body .cn { color: var(--ink); }
.term-body .ca { color: var(--accent); }
.term-body .cg { color: var(--live); }

/* Lending dashboard */
.lend-dash {
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  font-family: 'IBM Plex Mono', monospace;
}
.ld-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.ld-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 10px var(--live);
  animation: pulse 2s infinite;
}
.ld-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 20px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.ld-row:last-child { border-bottom: 0; }
.ld-row span {
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  font-size: 11px;
  text-transform: uppercase;
}
.ld-row i {
  font-style: normal;
  color: var(--ink);
  font-feature-settings: 'tnum';
  font-size: 14px;
}
.ld-row i em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 12px;
  margin-left: 4px;
}
.ld-row i.ok { color: var(--live); }

.ld-row.tl {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 14px 20px;
}
.ld-row.tl time {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-feature-settings: 'tnum';
}
.ld-row.tl span {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.ld-row.tl i { font-size: 12px; color: var(--ink-soft); }
.ld-row.tl i.ok { color: var(--live); }

/* ---------- PRINCIPLES ---------- */
.principles {
  position: relative;
  padding: 110px 6%;
  overflow: hidden;
  isolation: isolate;
  background: #060912;
}
.principles .mod-head,
.principles .prin-grid {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.principles .mod-head { margin-bottom: 56px; }
.prin-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.prin-card {
  position: relative;
  padding: 32px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex; flex-direction: column;
  min-height: 220px;
}
.prin-card:hover {
  background: var(--bg-3);
}
.pn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}
.prin-card h4 {
  font-family: 'Avenir Next LT Pro', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.prin-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}
.micro {
  margin-top: auto;
  height: 64px;
  display: flex; align-items: center;
}
.micro-map svg { height: 64px; width: auto; }
.micro-stack-v2 {
  flex-direction: column !important;
  gap: 4px;
  height: auto !important;
  align-items: stretch !important;
  font-family: 'IBM Plex Mono', monospace;
}
.msv-layer {
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.msv-layer.msv-base {
  background: rgba(255,176,0,0.15);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2em;
  box-shadow: inset 0 0 12px rgba(255,176,0,0.10);
}
.msv-divider {
  text-align: center;
  font-size: 9px;
  color: var(--ink-faded);
  letter-spacing: 0.2em;
  padding: 2px 0;
}

.micro-speed {
  flex-direction: row !important;
  gap: 18px;
  height: auto !important;
  align-items: baseline !important;
  font-family: 'IBM Plex Mono', monospace;
}
.msp-big {
  font-family: 'Avenir Next LT Pro', sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 22px rgba(255,176,0,0.30);
}
.msp-big em {
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  margin-left: 4px;
  color: var(--accent);
  letter-spacing: 0;
}
.msp-vs {
  display: flex; flex-direction: column; gap: 4px;
  border-left: 1px solid var(--line-2);
  padding-left: 16px;
}
.msp-lbl {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-faded);
}
.msp-old {
  font-size: 18px;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(255,122,92,0.6);
}
.msp-old em { font-style: normal; font-size: 12px; margin-left: 2px; }

.micro-config {
  flex-direction: column !important;
  gap: 4px;
  height: auto !important;
  align-items: stretch !important;
  font-family: 'IBM Plex Mono', monospace;
  position: relative;
}
.mc-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  padding: 4px 0;
}
.mc-row i {
  width: 9px; height: 9px;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  display: inline-block;
}
.mc-strike span {
  text-decoration: line-through;
  text-decoration-color: rgba(255,122,92,0.7);
  color: var(--ink-faded);
}
.mc-stamp {
  margin-top: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  transform: rotate(-2deg);
  background: rgba(255,176,0,0.08);
  text-transform: uppercase;
}
.micro-log { flex-direction: column; gap: 4px; align-items: stretch; height: 64px; justify-content: center; }
.ml-row {
  display: flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.ml-row i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
}
.micro-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  width: 100%; height: 64px;
}
.micro-grid > div {
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.micro-grid > div.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- FINAL ---------- */
.final {
  position: relative;
  padding: 130px 6%;
  background: #000;
  overflow: hidden;
  text-align: center;
}
.final-bg {
  position: absolute; inset: 0;
  background-image: url('assets/globe/frame_0240.jpg');
  background-size: cover; background-position: center;
  opacity: 0.6;
}
.final-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.92) 80%);
}
.final-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  z-index: 2;
}
.final-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 16px;
  margin-bottom: 32px;
  text-transform: uppercase;
}
.final-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.final-h {
  font-family: 'Avenir Next LT Pro', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 22px;
}
.final-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 36px;
}

.final-form {
  max-width: 620px;
  margin: 0 auto 30px;
  text-align: left;
}
.ff-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 14px;
}
.final-form label { display: flex; flex-direction: column; gap: 8px; }
.final-form .ff-full { display: block; margin-bottom: 18px; }
.final-form .ff-full > span { display: block; margin-bottom: 8px; }
.final-form span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.final-form input,
.final-form select,
.final-form textarea {
  background: rgba(15,20,35,0.8);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  backdrop-filter: blur(6px);
}
.final-form input:focus,
.final-form select:focus,
.final-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.final-form textarea { resize: vertical; }

.ff-cta {
  display: flex; gap: 14px; justify-content: center;
  margin: 28px 0 0;
  flex-wrap: wrap;
}

.final-meta {
  margin-top: 36px;
  display: flex; gap: 26px; justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.foot {
  padding: 60px 6% 40px;
  background: #04060c;
  border-top: 1px solid var(--line);
}
.foot-grid {
  max-width: 1500px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1.3fr 1.3fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px dashed var(--line);
}
.f-brand .foot-logo { height: 28px; margin-bottom: 14px; }
.f-brand p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 280px;
}
.f-col h6 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
  text-transform: uppercase;
}
.f-col a, .f-col address {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 8px;
  font-style: normal;
  line-height: 1.55;
}
.f-col a:hover { color: var(--accent); }
.foot-line {
  max-width: 1500px; margin: 24px auto 0;
  display: flex; gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bar-left .sq, .eyebrow .dot, .ld-live, .final-tag .dot { animation: none; }
  .hv-img { transform: scale(1.05) !important; }
}

/* Responsive */
@media (max-width: 1100px) {
  .mod-body, .mod-body.rev { grid-template-columns: 1fr; gap: 50px; }
  .prin-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-strip { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (max-width: 720px) {
  .bar { grid-template-columns: 1fr auto; padding: 12px 18px; }
  .bar-mid { display: none; }
  .bar-left .logo-img { height: 38px; }
  .hero { padding: 110px 5% 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 20px 0 30px; }
  .hero-h { font-size: clamp(36px, 9vw, 56px); }
  .hero-h2 { font-size: clamp(30px, 8vw, 48px); }
  .hero-sub { font-size: 16px; }
  .prin-grid { grid-template-columns: 1fr; }
  .mod-bullets.mb-grid { grid-template-columns: 1fr; }
  .foot { padding: 40px 5%; }
  .foot-grid { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; align-items: stretch; }
  .pipeline .arr { display: none; }
  .ff-row { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip .strip-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-strip .strip-cell:last-child { border-bottom: 0; }

  /* Top bar: drop the redundant CTA (the funnel lives in every section
     below) and compact the Log in button so the bar fits on phones. */
  .bar-right .btn-accent { display: none; }
  .bar-right .btn-ghost { padding: 8px 13px; font-size: 12px; }

  /* Tighten module rhythm and keep wide content contained on mobile. */
  .mod { padding: 84px 6%; }
  .principles { padding: 84px 6%; }
  .final { padding: 96px 6%; }
  .mod-head { flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
  .mod-head .mod-rule { display: none; }
  .term-body { font-size: 11px; padding: 16px; min-height: 200px; }
}
