/* OrgMemory landing — TERMINAL // mission-control (matches app dark theme) */
:root {
  --bg: #070A0D;
  --bg-1: #0C1116;
  --bg-2: #10161D;
  --bg-3: #18222D;
  --line: #1C2630;
  --line-2: #2A3744;
  --ink: #E6EEF5;
  --ink-2: #C3D0DB;
  --ink-3: #7C8C9A;
  --ink-4: #4A5662;
  --accent: #FFB000;
  --accent-2: #FFC44D;
  --accent-glow: rgba(255,176,0,0.35);
  --warn: #F2B23C;
  --danger: #FF5B57;
  --good: #52E08A;
  --info: #3FD6D0;
  --serif: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,176,0,0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(255,176,0,0.04), transparent 60%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #0A0E13; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 300;
  transform: translateY(-140%);
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  font-weight: 600;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---- Layout primitives ---- */
.wrap { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .dot { color: var(--ink-4); margin: 0 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.02; }
h1 { font-size: clamp(48px, 7.2vw, 112px); }
h2 { font-size: clamp(40px, 5.6vw, 80px); }
h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.italic { font-style: italic; color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 0;
  font-weight: 500;
  font-size: 15px;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0A0E13; box-shadow: 0 10px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--accent-glow); background: var(--accent-2); }
.btn-primary:active, .btn-ghost:active, .btn-login:active { transform: translateY(0) scale(0.98); }
.btn.loading { opacity: .76; cursor: progress; }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); background: rgba(255,255,255,0.03); }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(7,10,13,0.88), rgba(7,10,13,0.58));
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7,10,13,0.88);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,0.8);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 0;
  background: var(--accent);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  color: #0A0E13;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 16px -6px var(--accent-glow);
}
.brand-name { font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em; }
.brand-name b { font-weight: 600; }
.nav ul { display: flex; gap: 28px; list-style: none; font-size: 14px; color: var(--ink-2); }
.nav ul a { transition: color .2s; }
.nav ul a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 1100px) { .nav ul { display: none; } }
@media (max-width: 760px) { .nav-actions .btn-ghost { display: none; } }

/* ---- Login button ---- */
.btn-login {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-login:hover { border-color: var(--ink-2); background: rgba(255,255,255,0.02); }
.login-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
  box-shadow: 0 0 0 0 rgba(255,176,0,0);
  transition: background .2s, box-shadow .2s;
}
.btn-login .login-sub { display: none; }
.btn-login.is-logged-in .login-dot {
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(82,224,138,0.18);
}
.btn-login.is-logged-in > span:nth-child(2) { display: none; }
.btn-login.is-logged-in .login-sub { display: inline; }
@media (max-width: 640px) {
  .nav { padding: 14px 16px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 0; }
  .nav-actions .btn-primary { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 540px) { .nav-actions .btn-login { display: none; } }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: clamp(92px, 10vh, 124px) 0 34px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 1024px) { .hero-inner { grid-template-columns: 1fr; gap: 42px; } }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-eyebrow .live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,176,0,0.6); }
  50% { box-shadow: 0 0 0 10px rgba(255,176,0,0); }
}

h1.hero-title {
  font-size: clamp(38px, 4.55vw, 68px);
  line-height: 0.98;
  max-width: 760px;
  text-wrap: balance;
}
h1.hero-title .accent { color: var(--accent); font-style: italic; }
h1.hero-title .underline {
  position: relative; white-space: nowrap;
}
h1.hero-title .underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.12em;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
  animation: drawline 1.2s cubic-bezier(.65,.05,.36,1) .6s forwards;
}
@keyframes drawline { to { transform: scaleX(1); } }

.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-fineprint {
  margin-top: 20px; font-family: var(--mono); font-size: 11px;
  color: var(--ink-4); letter-spacing: 0.12em; text-transform: uppercase;
  max-width: 520px; line-height: 1.6;
}

/* Hero cockpit mockup */
.cockpit {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(24,34,45,0.7), rgba(12,17,22,0.95));
  padding: 16px;
  box-shadow:
    0 50px 120px -40px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.02),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transform: perspective(2000px) rotateY(-4deg) rotateX(3deg);
  transform-origin: center;
  animation: cockpit-in 1.4s cubic-bezier(.2,.7,.2,1) both;
  justify-self: end;
  max-width: 520px;
  width: 100%;
}
@keyframes cockpit-in {
  from { opacity: 0; transform: perspective(2000px) rotateY(-12deg) rotateX(8deg) translateY(40px); }
  to { opacity: 1; transform: perspective(2000px) rotateY(-4deg) rotateX(3deg); }
}
@media (min-width: 1025px) and (max-height: 760px) {
  .cockpit {
    max-height: 520px;
    overflow: hidden;
  }
  .cockpit::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(12,17,22,0.97));
    pointer-events: none;
  }
}
.cockpit-bar {
  display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.cockpit-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.cockpit-bar .dot.red { background: var(--danger); }
.cockpit-bar .dot.amber { background: var(--accent); }
.cockpit-bar .dot.green { background: var(--good); }
.cockpit-bar .title {
  margin-left: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.18em; text-transform: uppercase;
}
.cockpit-bar .clock { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.cockpit-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px;
}
.tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.tile:hover { border-color: var(--line-2); }
.tile-label {
  font-family: var(--mono); font-size: 9.5px; color: var(--ink-3);
  letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.tile-label .marker { width: 6px; height: 6px; border-radius: 50%; }
.tile-label .marker.danger { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.tile-label .marker.warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.tile-label .marker.good { background: var(--good); }
.tile-label .marker.info { background: var(--info); }
.tile-num {
  font-family: var(--serif); font-size: 36px; font-weight: 500; margin-top: 10px; line-height: 1;
  letter-spacing: -0.02em;
}
.tile-num .unit { font-size: 14px; color: var(--ink-3); font-style: italic; margin-left: 6px; }
.tile-cap { font-size: 11.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }
.tile-trend {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  margin-top: 10px;
}
.tile-trend.up { color: var(--danger); }
.tile-trend.down { color: var(--good); }
.tile.span-2 { grid-column: span 2; }
.tile.span-3 { grid-column: span 3; }
.tile.span-4 { grid-column: span 4; }
.tile.dark { background: var(--bg-1); }
.tile.accent { background: linear-gradient(135deg, rgba(255,176,0,0.18), rgba(255,176,0,0.02)); border-color: rgba(255,176,0,0.3); }
.tile.accent .tile-num { color: var(--accent-2); }

/* Sparkline */
.spark { width: 100%; height: 36px; margin-top: 10px; }
.spark path { fill: none; stroke-width: 1.5; }
.spark .area { fill-opacity: 0.18; stroke: none; }

/* Heat row */
.heat {
  display: grid; grid-template-columns: repeat(28, 1fr); gap: 3px; margin-top: 12px;
}
.heat span { aspect-ratio: 1; border-radius: 0; background: var(--line); }
.heat span.l1 { background: rgba(255,176,0,0.18); }
.heat span.l2 { background: rgba(255,176,0,0.38); }
.heat span.l3 { background: rgba(255,176,0,0.6); }
.heat span.l4 { background: rgba(255,176,0,0.85); }

/* People rows in tile */
.plist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.prow { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; font-size: 12px; }
.pavatar {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 9px; font-family: var(--mono); font-weight: 600;
  color: var(--ink);
}
.prow .bar { height: 4px; background: var(--bg-3); border-radius: 0; overflow: hidden; min-width: 40px; }
.prow .bar > i { display: block; height: 100%; background: var(--accent); }
.prow .tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 2px 6px; border-radius: 0; border: 1px solid var(--line-2);
}
.prow .tag.r { color: var(--danger); border-color: rgba(255,91,87,0.35); }
.prow .tag.w { color: var(--warn); border-color: rgba(242,178,60,0.35); }

/* Focus list */
.focus-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.focus-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; }
.focus-num {
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
  background: var(--bg-3); padding: 2px 6px; border-radius: 0;
  margin-top: 1px;
}
.focus-text { font-size: 12.5px; color: var(--ink); line-height: 1.4; }
.focus-text small { display: block; color: var(--ink-3); font-size: 10.5px; margin-top: 2px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* Risk graph in tile */
.bars {
  display: flex; align-items: flex-end; gap: 4px; height: 50px; margin-top: 12px;
}
.bars i {
  flex: 1; border-radius: 0;
  background: linear-gradient(180deg, var(--accent), rgba(255,176,0,0.2));
  transform-origin: bottom;
  animation: barUp 1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes barUp { from { transform: scaleY(0); } }

/* Connecting flicker dots */
.flicker { animation: flicker 2.4s ease-in-out infinite; }
@keyframes flicker { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, 1320px); }
  .hero { padding: 112px 0 52px; }
  h1.hero-title {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.06;
    letter-spacing: 0;
    max-width: 100%;
  }
  h1.hero-title .underline { white-space: normal; }
  .hero-sub {
    margin-top: 20px;
    max-width: 100%;
    font-size: 15.5px;
    line-height: 1.58;
  }
  .hero-cta {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    width: min(100%, 300px);
  }
  .hero-cta .btn { justify-content: center; width: 100%; }
  .hero-fineprint {
    max-width: 100%;
    font-size: 9.5px;
    letter-spacing: 0.09em;
  }
  .cockpit {
    max-width: 100%;
    max-height: 300px;
    transform: none;
    padding: 12px;
    border-radius: 0;
    overflow: hidden;
    animation-duration: .8s;
  }
  .cockpit::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(180deg, transparent, rgba(12,17,22,0.97));
    pointer-events: none;
  }
  .cockpit-bar .title {
    margin-left: 6px;
    font-size: 8.5px;
    letter-spacing: 0.11em;
  }
  .cockpit-bar .clock { display: none; }
  .cockpit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 11px; border-radius: 0; }
  .tile-label { font-size: 8px; letter-spacing: 0.12em; }
  .tile-num { font-size: 30px; }
  .tile.span-3, .tile.span-4 { grid-column: span 4; }
  .tile.span-2 { grid-column: span 2; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 17px; }
  .btn { font-size: 13px; padding: 12px 16px; }
  .nav-actions .btn-primary { padding: 10px 12px; font-size: 12.5px; }
  h1.hero-title { font-size: clamp(32px, 8.7vw, 36px); }
}

/* ---- Section primitives ---- */
section { padding: 112px 0; position: relative; scroll-margin-top: 92px; }
#problem { padding-top: 28px; }
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 880px; margin-bottom: 64px; }
.section-head .eyebrow { display: inline-flex; gap: 12px; align-items: center; }
.section-head p.lede { font-size: 19px; color: var(--ink-2); max-width: 720px; line-height: 1.55; }

.divider {
  height: 1px; background: var(--line);
  position: relative; overflow: hidden;
}
.divider::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: slide 4s linear infinite;
}
@keyframes slide { to { transform: translateX(400%); } }

/* ---- Problem grid ---- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
@media (max-width: 920px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card { background: var(--bg-1); padding: 32px; position: relative; transition: background .3s; }
.problem-card:hover { background: var(--bg-2); }
.problem-card .ix {
  position: absolute; top: 24px; right: 28px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.18em;
}
.problem-card h3 { color: var(--ink); margin-bottom: 12px; font-size: 24px; }
.problem-card p { color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.problem-card .icon-frame {
  width: 44px; height: 44px; border-radius: 0;
  background: var(--bg-2); border: 1px solid var(--line-2);
  display: grid; place-items: center; margin-bottom: 22px;
  color: var(--accent);
  position: relative;
}
.problem-card .icon-frame svg { width: 22px; height: 22px; }

/* ---- Solution / formula ---- */
.formula-bg { background: var(--bg-1); border-radius: 0; padding: 80px 56px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.formula-bg::before, .formula-bg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
}
.formula-bg::before { background: linear-gradient(135deg, rgba(255,176,0,0.13), transparent 42%); }
.formula-bg::after { background: linear-gradient(315deg, rgba(255,196,77,0.08), transparent 44%); }
.formula-bg > * { position: relative; z-index: 1; }
.formula {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center;
  margin-top: 56px;
  font-family: var(--serif); font-size: clamp(20px, 2.3vw, 36px);
}
.formula .pill {
  padding: 10px 22px; border: 1px solid var(--line-2); border-radius: 0; background: var(--bg-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.formula .op { color: var(--accent); font-size: 1.2em; }
.formula .eq { color: var(--ink-3); font-style: italic; }
.formula .result {
  background: var(--accent); color: #0A0E13; border: 1px solid transparent;
  font-style: italic;
  box-shadow: 0 10px 40px -10px var(--accent-glow);
}

/* ---- Values grid ---- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 0;
  padding: 28px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.value-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.value-card::after {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, transparent 60%, rgba(255,176,0,0.15));
  opacity: 0; transition: opacity .4s; pointer-events: none; border-radius: inherit;
}
.value-card:hover::after { opacity: 1; }
.value-card .vn { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.2em; }
.value-card h3 { margin-top: 14px; font-size: 22px; }
.value-card p { margin-top: 10px; color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.value-card .vline { width: 36px; height: 2px; background: var(--accent); margin-top: 20px; transition: width .3s; }
.value-card:hover .vline { width: 60px; }

/* ---- Scenarios timeline ---- */
.scenarios {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .scenarios { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 620px) {
  .scen-row {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 18px 0;
  }
  .scen-row h3 { font-size: 21px; }
  .scen-row .scen-meta {
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.5;
  }
  .scen-detail {
    position: relative;
    top: auto;
    padding: 24px;
    min-height: auto;
  }
  .scen-detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .scen-arrow { flex-wrap: wrap; line-height: 1.8; }
}
.scen-list { display: flex; flex-direction: column; }
.scen-row {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 24px; padding: 24px 0; border-top: 1px solid var(--line);
  cursor: pointer; transition: background .25s;
  align-items: center;
  border-radius: 0;
}
.scen-row:hover, .scen-row.active { background: linear-gradient(90deg, rgba(255,176,0,0.06), transparent); }
.scen-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.scen-row:last-child { border-bottom: 1px solid var(--line); }
.scen-row .num { font-family: var(--mono); font-size: 13px; color: var(--ink-4); }
.scen-row.active .num { color: var(--accent); }
.scen-row h3 { font-size: 24px; transition: color .25s; }
.scen-row.active h3 { color: var(--accent); }
.scen-row .scen-meta { display: flex; gap: 18px; margin-top: 6px; font-size: 13px; color: var(--ink-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10.5px; }

.scen-detail {
  position: sticky; top: 100px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 0;
  padding: 36px; min-height: 380px;
  transition: opacity .28s ease, transform .28s ease, border-color .28s ease;
}
.scen-detail.is-changing { opacity: 0; transform: translateY(8px); border-color: var(--line-2); }
.scen-detail .ix { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.2em; }
.scen-detail h3 { margin-top: 12px; font-size: 30px; }
.scen-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.scen-detail-grid .lbl { font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 10px; }
.scen-detail-grid p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.scen-arrow {
  margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line-2);
  display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase;
}

/* ---- Features marquee ---- */
.feat-marquee {
  overflow: hidden; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.feat-track {
  display: flex; gap: 56px; animation: marquee 60s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--ink-3);
  white-space: nowrap; width: max-content;
}
.feat-track span { display: inline-flex; align-items: center; gap: 56px; }
.feat-track span::after { content: "✦"; color: var(--accent); font-style: normal; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Features grid ---- */
.feat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 1080px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 0;
  padding: 22px; min-height: 200px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color .25s, background .25s;
}
.feat-card:hover { border-color: var(--line-2); background: var(--bg-2); }
.feat-card .feat-icon {
  width: 32px; height: 32px; border-radius: 0;
  border: 1px solid var(--line-2); background: var(--bg-2);
  display: grid; place-items: center; color: var(--accent);
  margin-bottom: 18px;
}
.feat-card h3 { font-size: 19px; line-height: 1.2; }
.feat-card p { margin-top: 10px; color: var(--ink-3); font-size: 13px; line-height: 1.5; flex: 1; }
.feat-card .feat-tag {
  margin-top: 16px; font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.15em; text-transform: uppercase;
}

/* ---- Big cockpit block ---- */
.cockpit-big {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-1);
  padding: 22px;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.6);
}
.cb-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.cb-header .ttl { font-family: var(--serif); font-size: 22px; }
.cb-header .meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }
.cb-grid { display: grid; grid-template-columns: 280px 1fr 260px; gap: 14px; }
@media (max-width: 1080px) { .cb-grid { grid-template-columns: 1fr; } }
.cb-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cb-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 0; padding: 16px; overflow-x: auto; }
.cb-card h4 { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.cb-card .h-meta { font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px; }
.cb-card.flag { background: linear-gradient(135deg, rgba(255,91,87,0.18), rgba(255,91,87,0.04)); border-color: rgba(255,91,87,0.3); }
.cb-card.flag h4 { color: var(--danger); }

.tbl { width: 100%; font-size: 13px; border-collapse: collapse; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .own { display: flex; align-items: center; gap: 8px; }
.tbl .badge { font-family: var(--mono); font-size: 9.5px; padding: 2px 6px; border-radius: 0; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink-3); }
.tbl .badge.r { color: var(--danger); border-color: rgba(255,91,87,0.4); background: rgba(255,91,87,0.08); }
.tbl .badge.w { color: var(--warn); border-color: rgba(242,178,60,0.4); background: rgba(242,178,60,0.08); }
.tbl .badge.g { color: var(--good); border-color: rgba(82,224,138,0.4); background: rgba(82,224,138,0.08); }

/* Signal stream */
.stream { display: flex; flex-direction: column; gap: 10px; }
.signal {
  display: grid; grid-template-columns: 6px 1fr auto; gap: 10px; align-items: start;
  padding: 10px 12px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 0;
  font-size: 12px;
}
.signal i { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; }
.signal i.r { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.signal i.w { background: var(--warn); }
.signal i.g { background: var(--good); }
.signal .t { color: var(--ink-2); line-height: 1.4; }
.signal .t b { color: var(--ink); font-weight: 500; }
.signal .ts { font-family: var(--mono); font-size: 10px; color: var(--ink-4); white-space: nowrap; }

/* Mini ring */
.ring { display: flex; align-items: center; gap: 14px; }
.ring svg { width: 64px; height: 64px; }
.ring .num { font-family: var(--serif); font-size: 32px; line-height: 1; }
.ring .lbl { font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---- Audience ---- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 920px) { .aud-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aud-grid { grid-template-columns: 1fr; } }
.aud-card {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 0;
  padding: 28px; transition: border-color .25s, background .25s;
  position: relative; overflow: hidden;
}
.aud-card:hover { border-color: var(--accent); }
.aud-card .role {
  font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border: 1px solid rgba(255,176,0,0.3); border-radius: 0;
  background: rgba(255,176,0,0.05);
}
.aud-card h3 { font-size: 26px; margin-top: 16px; }
.aud-card p { margin-top: 14px; color: var(--ink-3); font-size: 14px; line-height: 1.55; }

/* ---- How it works ---- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid; grid-template-columns: 120px 1fr 280px; gap: 32px;
  align-items: center; padding: 36px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .step { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; } }
.step .step-n {
  font-family: var(--serif); font-size: 80px; line-height: 1; color: var(--ink-4);
  transition: color .3s;
}
.step:hover .step-n { color: var(--accent); }
.step h3 { font-size: 28px; }
.step p { color: var(--ink-3); margin-top: 8px; font-size: 14px; max-width: 520px; }
.step .step-art {
  height: 110px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 0;
  position: relative; overflow: hidden;
}

/* ---- Compare table ---- */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: 0; overflow: hidden;
  background: var(--bg-1);
}
.compare th, .compare td {
  text-align: left; padding: 22px 24px; border-bottom: 1px solid var(--line);
  font-size: 14px; vertical-align: top;
}
.compare th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-4); font-weight: 400; background: var(--bg-2); }
.compare th:last-child { color: var(--accent); }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.compare td.om {
  background: linear-gradient(180deg, rgba(255,176,0,0.06), rgba(255,176,0,0.02));
  color: var(--ink);
  border-left: 1px solid rgba(255,176,0,0.2);
}
.compare td .lim { color: var(--ink-3); }
@media (max-width: 880px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare td, .compare th { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 16px 0; }
  .compare th { display: none; }
  .compare td { border: 0; padding: 8px 20px; }
  .compare td:first-child { padding-top: 18px; }
}

@media (max-width: 620px) {
  .cockpit-big { padding: 14px; border-radius: 0; }
  .cb-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 6px 4px 18px;
  }
  .cb-header .meta { flex-wrap: wrap; gap: 8px; }
  .tbl { min-width: 560px; }
}

/* ---- Security ---- */
.sec-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-list { display: flex; flex-direction: column; gap: 14px; }
.sec-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 0; background: var(--bg-1); }
.sec-item:hover { border-color: var(--line-2); }
.sec-item .si {
  width: 44px; height: 44px; border-radius: 0; background: var(--bg-2);
  display: grid; place-items: center; color: var(--accent); border: 1px solid var(--line-2);
}
.sec-item h4 { font-family: var(--serif); font-size: 19px; }
.sec-item p { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; line-height: 1.5; }

.sec-art {
  position: relative; aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: 0;
  background: radial-gradient(circle at center, var(--bg-2), var(--bg-1) 70%);
  display: grid; place-items: center; overflow: hidden;
}
.sec-art svg { width: 90%; height: 90%; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); padding: 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); font-weight: 500;
  color: var(--ink); transition: color .25s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .plus {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .35s ease, background .25s, border-color .25s;
  color: var(--ink-2);
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--accent); color: #0A0E13; border-color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .5s ease;
}
.faq-a-inner { padding: 0 0 28px; color: var(--ink-3); font-size: 15px; line-height: 1.6; max-width: 820px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---- Final CTA ---- */
.final-cta {
  border: 1px solid var(--line); border-radius: 0; padding: 80px 56px;
  text-align: center; position: relative; overflow: hidden;
  background: var(--bg-1);
}
.final-cta::before, .final-cta::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
}
.final-cta::before { background: linear-gradient(135deg, rgba(255,176,0,0.16), transparent 44%); }
.final-cta::after { background: linear-gradient(315deg, rgba(255,196,77,0.08), transparent 42%); }
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { max-width: 880px; margin: 0 auto; }
.final-cta p { color: var(--ink-2); margin: 24px auto 36px; max-width: 660px; font-size: 18px; line-height: 1.55; }
.final-cta .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Other products ---- */
.other-products { padding: 32px 0; margin-top: 80px; border-top: 1px solid var(--line); }
.other-products-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.other-products-label {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4);
}
.other-products-text { flex: 1 1 320px; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.other-products-text a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); transition: color .2s ease, border-color .2s ease; }
.other-products-text a:hover { color: var(--accent); border-color: var(--accent); }
.other-products-more { margin-left: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; white-space: nowrap; }
@media (max-width: 640px) { .other-products-inner { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---- Footer ---- */
footer { padding: 60px 0 40px; border-top: 1px solid var(--line); margin-top: 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .links { display: flex; gap: 18px 24px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.foot .links a:hover { color: var(--ink); }
.foot small { color: var(--ink-4); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; }

/* ---- Reveal animations ---- */
.js .reveal { opacity: 0.08; transform: translateY(20px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0.08; transform: translateY(16px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
.js .reveal-stagger.in > *:nth-child(7) { transition-delay: 0.47s; }
.js .reveal-stagger.in > *:nth-child(8) { transition-delay: 0.54s; }

/* Float */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---- Login modal ---- */
.lm {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lm.open { opacity: 1; pointer-events: all; }
.lm-overlay {
  position: absolute; inset: 0;
  background: rgba(7,10,13,0.88);
  backdrop-filter: blur(10px);
}
.lm-panel {
  position: relative; z-index: 1;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 0;
  padding: 40px;
  width: min(480px, calc(100% - 40px));
  box-shadow:
    0 60px 100px -20px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.03);
  transform: translateY(20px) scale(0.97);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.lm.open .lm-panel { transform: none; }
.lm-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.lm-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent;
  display: grid; place-items: center;
  color: var(--ink-3); font-size: 13px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.lm-close:hover { border-color: var(--ink-3); color: var(--ink); background: var(--bg-2); }
.lm-title {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 10px;
}
.lm-sub { color: var(--ink-3); font-size: 14px; line-height: 1.5; margin-bottom: 28px; }
.lm-form { display: flex; flex-direction: column; gap: 16px; }
.lm-field { display: flex; flex-direction: column; gap: 7px; }
.lm-field label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-4);
}
.lm-field input {
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 0; padding: 13px 16px;
  color: var(--ink); font-family: var(--sans); font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.lm-field input::placeholder { color: var(--ink-4); }
.lm-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,176,0,0.15);
}
.lm-error {
  font-size: 13px; color: var(--danger);
  font-family: var(--mono); letter-spacing: 0.04em;
  min-height: 18px;
  display: none;
}
.lm-error.visible { display: block; }
.lm-submit {
  width: 100%; justify-content: center;
  margin-top: 4px; padding: 15px;
  font-size: 15px;
  position: relative;
}
.lm-submit.loading { opacity: .7; pointer-events: none; }
.lm-submit.loading::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  border: 2px solid rgba(10,14,19,.35); border-top-color: #0A0E13;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  section { padding: 80px 0; }
  h2 { font-size: clamp(28px, 8vw, 36px); }
  h1.hero-title br { display: none; }
  .formula-bg, .final-cta { padding: 48px 24px; }
  .section-head { gap: 16px; margin-bottom: 42px; }
  .section-head p.lede { font-size: 16px; }
  .foot { align-items: flex-start; flex-direction: column; }
  .lm-panel { padding: 28px; width: min(100% - 28px, 480px); }
  .lm-title { font-size: 28px; }
}

@media (max-width: 480px) {
  section { padding: 60px 0; }
  #problem { padding-top: 20px; }
  .step .step-n { font-size: 52px; }
  .cb-header .meta { display: none; }
}

/* ---- Mobile nav burger ---- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.nav-burger:hover { border-color: var(--ink-3); background: rgba(255,255,255,0.04); }
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-2);
  border-radius: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 49;
  background: rgba(7,10,13,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer ul {
  list-style: none;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}
.nav-drawer ul li a {
  display: block;
  padding: 14px 28px;
  font-size: 16px;
  color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-drawer ul li a:hover,
.nav-drawer ul li a:focus {
  color: var(--ink);
  background: rgba(255,255,255,0.03);
}
.nav-drawer-login {
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.nav-drawer ul li.nav-drawer-login a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .nav-burger { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal,
  .js .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .cockpit { transform: none !important; }
}
