/* Cortext — cortextapp.com. No third-party requests: the one font is
   self-hosted, there is no script. Palette = the app icon's midnight navy
   and cyan→teal gradient; the app's red only for "destroyed". */
@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #061A40;
  --navy-deep: #040F27;
  --navy-panel: #0B2357;
  --ink: #0B1B3A;
  --paper: #F4F7FB;
  --paper-2: #E9EEF6;
  --text-light: #E6EDF7;
  --muted: #8FA3C4;
  --muted-dark: #5E6E8C;
  --line: #24406F;
  --line-light: #D5DDEA;
  --cyan: #15AFFF;
  --teal: #18F0C2;
  --red: #E94560;
  --grad: linear-gradient(100deg, #15AFFF, #08D2E5 52%, #18F0C2);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.28rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.18rem; line-height: 1.55; }
.small { font-size: .95rem; }
.note { font-size: .98rem; color: var(--muted); max-width: 72ch; }
.light .note { color: var(--muted-dark); }
strong { font-weight: 700; }
ul { padding-left: 1.2em; margin: 0 0 1em; max-width: 62ch; }
li { margin: .35em 0; }
li::marker { color: var(--teal); }
.light li::marker { color: var(--cyan); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--wrap); margin: 0 auto; padding: 22px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.mark { width: 46px; height: 46px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em; color: #fff; }
.brand-line { font-size: .82rem; font-weight: 600; color: var(--teal); letter-spacing: .01em; margin-top: 3px; }
.top nav { display: flex; gap: 6px 26px; flex-wrap: wrap; justify-content: flex-end; font-weight: 600; font-size: .98rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text-light); }
.top nav .nav-cta { color: var(--teal); }

/* ── Buttons ── */
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 10px; text-decoration: none;
  font-weight: 700; border: 1.5px solid var(--line); color: var(--text-light);
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--grad); color: var(--navy); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.fine { color: var(--muted); font-size: .95rem; }

/* ── Hero ── */
.hero-bg { position: relative; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 78% 45%, rgba(21,175,255,.18), transparent 70%),
    radial-gradient(500px 380px at 82% 60%, rgba(24,240,194,.10), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hero {
  position: relative;
  max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 64px;
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
  gap: 24px 56px; align-items: center;
}
.hero-facts {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-facts b { display: block; font-weight: 700; color: #fff; margin-bottom: 4px; }
.hero-facts span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.stack span { display: block; font-size: clamp(1.9rem, 2.95vw, 2.65rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; }
.stack .l1 { color: #fff; }
.stack .l2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.stack .l3 { color: transparent; -webkit-text-stroke: 1.2px #9FB4D8; opacity: .9; }
.hero .lead { margin-top: 26px; }

.hero-demo { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 0 52px; }
.hero-demo::before { content: ""; position: absolute; inset: 0 8% 0 8%; border-radius: 32px; background: linear-gradient(160deg, rgba(21,175,255,.10), rgba(24,240,194,.04) 60%, transparent); border: 1px solid rgba(143,163,196,.18); }
.chip { position: absolute; z-index: 2; background: #0B2357; border: 1px solid #2C4A85; border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); font-size: .82rem; color: var(--text-light); }
.chip-pq { top: 6px; right: 0; padding: 9px 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(24,240,194,.18); }
.chip-card { left: 0; bottom: 0; width: 236px; padding: 12px 14px; line-height: 1.4; color: var(--muted); }
.chip-card b { display: block; color: #fff; margin-bottom: 3px; }
.caption { font-size: .92rem; color: var(--muted); text-align: center; max-width: 34ch; }
.phone {
  width: 330px; border-radius: 40px; padding: 12px 14px 16px; background: var(--navy-deep);
  border: 1.5px solid #2C4A85; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 7px #0A1633, 0 0 0 8px #1B2E58;
  font-size: .9rem;
}
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 4px 14px 8px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.sig { width: 34px; height: 8px; background: linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 9px, var(--muted) 9px 15px, transparent 15px 18px, var(--muted) 18px 24px, transparent 24px 27px, var(--muted) 27px 34px); border-radius: 1px; opacity: .8; }
.phone-top { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 10px 12px; border-bottom: 1px solid var(--line); }
.peer { font-weight: 800; font-size: 1.05rem; }
.tier { color: var(--muted); font-size: .78rem; }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 14px 6px 10px; min-height: 290px; }
.divider { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--cyan); margin: 4px 0; max-width: none; }
.divider .ico { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--cyan); flex: none; position: relative; }
.divider .ico::after { content: ""; position: absolute; left: 4px; top: 1px; width: 2px; height: 4px; background: var(--cyan); }
.divider b { font-weight: 800; }
.bubble { position: relative; max-width: 82%; padding: 9px 12px; border-radius: 16px; line-height: 1.4; }
.bubble.them { align-self: flex-start; background: #14294F; border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: #0F3460; border-bottom-right-radius: 4px; }
.composer { border-top: 1px solid var(--line); padding: 10px 12px 2px; color: var(--muted-dark); font-size: .85rem; }

/* The one animated moment: the countdown reaches zero, the key dies, the
   two bubbles become the app's ⌛ placeholder. Runs once, ~7 s. Only
   opacity is animated (the replacement text overlays the original), so
   the end state is identical everywhere and needs no script. */
.divider.expire { position: relative; }
.divider.expire [data-dead] { display: inline; position: absolute; left: 20px; top: 0; color: var(--red); opacity: 0; }
.bubble .gone { display: inline; position: absolute; left: 12px; right: 12px; top: 9px; color: var(--muted); font-style: italic; font-size: .82rem; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .divider.expire [data-live] { animation: fadeout 6s steps(1, end) forwards; }
  .divider.expire [data-dead] { animation: fadein 6s steps(1, end) forwards; }
  .bubble.them:not(.fresh) .txt, .bubble.me .txt { animation: fadeout 6s steps(1, end) forwards; }
  .bubble.them:not(.fresh) .gone, .bubble.me .gone { animation: fadein 6s steps(1, end) forwards; }
  .bubble.them:not(.fresh), .bubble.me { animation: dim 6s steps(1, end) forwards; }
  .divider.expire [data-live] b { color: transparent; position: relative; }
  .divider.expire [data-live] b::after {
    content: "0m 05s"; position: absolute; left: 0; color: var(--cyan); white-space: nowrap;
    animation: digits 6s steps(1, end) forwards;
  }
}
@keyframes fadeout { 0%, 84% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fadein { 0%, 84% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dim { 0%, 84% { opacity: 1; } 100% { opacity: .9; background-color: #0E1B38; } }
@keyframes digits {
  0% { content: "0m 05s"; } 17% { content: "0m 04s"; } 34% { content: "0m 03s"; }
  51% { content: "0m 02s"; } 68% { content: "0m 01s"; } 84% { content: "0m 00s"; color: #E94560; }
  100% { content: "0m 00s"; }
}
@media (prefers-reduced-motion: reduce) {
  /* Static end state: show the destroyed messages, not the countdown. */
  .divider.expire [data-live] { opacity: 0; }
  .divider.expire [data-dead] { opacity: 1; }
  .bubble.them:not(.fresh) .txt, .bubble.me .txt { opacity: 0; }
  .bubble.them:not(.fresh) .gone, .bubble.me .gone { opacity: 1; }
  .bubble.them:not(.fresh), .bubble.me { background-color: #0E1B38; }
}


/* ── Institutional furniture ── */
.marking {
  margin: 0; padding: 8px 24px; text-align: center; font-size: .82rem; letter-spacing: .02em;
  color: var(--muted); background: var(--navy-deep); border-bottom: 1px solid var(--line);
  max-width: none;
}
.kicker { font-weight: 700; color: var(--teal); margin: 0 0 16px; font-size: 1.15rem; letter-spacing: .01em; }

.pillars-band { padding: 56px 0; border-bottom: 1px solid var(--line-light); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pillars > div { border-left: 3px solid; border-image: var(--grad) 1; padding-left: 20px; }
.pillars h3 { margin-bottom: 8px; font-size: 1.35rem; }
.pillars p { margin: 0; font-size: 1rem; color: #3A4D74; }

table.threat { min-width: 620px; }
table.threat th, table.threat td { border-bottom: 1px solid var(--line); color: var(--text-light); }
table.threat thead th { color: #fff; border-bottom: 2px solid var(--muted); }
table.threat tbody th { width: 32%; font-weight: 700; color: #fff; }
table.threat td { width: auto; color: var(--text-light); }

.deploy h3 { margin-top: 0; }
.deploy { margin-top: 12px; }
.deploy h3:first-child { margin-top: 0; }

.contact .two { margin-top: 0; align-items: center; }

/* ── Inside the app ── */
.screens { background: linear-gradient(180deg, var(--navy) 0%, #0A1F4D 100%); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.shelf figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.shelf figcaption { font-size: .95rem; color: var(--muted); max-width: 32ch; text-align: center; line-height: 1.5; }
.shelf figcaption b { color: var(--text-light); display: block; margin-bottom: 4px; }
.phone.small { width: 300px; font-size: .84rem; }
.convs, .settings { list-style: none; margin: 0; padding: 8px 4px 4px; max-width: none; display: flex; flex-direction: column; }
.convs li { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #10224A; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-panel); color: var(--teal); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: .9rem; }
.av.big { width: 64px; height: 64px; font-size: 1.4rem; margin-bottom: 8px; }
.cv { flex: 1; min-width: 0; }
.cv b { display: block; font-weight: 700; }
.cv i { display: block; font-style: normal; color: var(--muted); font-size: .76rem; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--grad); color: var(--navy); font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.lockmark { width: 12px; height: 10px; border-radius: 2px; background: var(--red); position: relative; margin-right: 4px; }
.lockmark::before { content: ""; position: absolute; left: 2px; top: -6px; width: 6px; height: 6px; border: 2px solid var(--red); border-bottom: 0; border-radius: 5px 5px 0 0; }
.phone.call { display: flex; flex-direction: column; }
.callhead { display: flex; flex-direction: column; align-items: center; padding: 14px 0 12px; }
.callhead b { font-size: 1.05rem; }
.callhead i { font-style: normal; color: var(--muted); font-size: .76rem; }
.sas { margin: 4px 6px 12px; padding: 12px; border-radius: 14px; background: #0B2357; border: 1px solid #2C4A85; text-align: center; }
.sas p { margin: 0 0 6px; max-width: none; }
.sas-title { font-size: .72rem; color: var(--muted); }
.sas-words { font-weight: 800; font-size: 1rem; line-height: 1.45; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .01em; }
.sas-note { font-size: .7rem; color: var(--muted); }
.sas-btn { display: inline-block; margin-top: 4px; padding: 7px 12px; border-radius: 9px; background: var(--grad); color: var(--navy); font-weight: 800; font-size: .78rem; }
.callbar { display: flex; justify-content: space-around; padding: 6px 4px 2px; margin-top: auto; }
.cb { width: 66px; height: 54px; border-radius: 14px; background: #14294F; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .7rem; color: var(--text-light); gap: 2px; }
.cb i { font-style: normal; font-size: .6rem; color: var(--red); }
.cb.muted { border: 1px solid var(--red); }
.cb.end { background: var(--red); color: #fff; font-weight: 700; }
.settings li { display: flex; align-items: center; gap: 10px; padding: 11px 6px; border-bottom: 1px solid #10224A; }
.sv { flex: 1; }
.sv b { display: block; font-weight: 700; font-size: .82rem; }
.sv i { display: block; font-style: normal; color: var(--muted); font-size: .7rem; line-height: 1.3; }
.tog { width: 38px; height: 22px; border-radius: 11px; background: #2A3A5E; position: relative; flex: none; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #B9C7E0; }
.tog.on { background: var(--teal); }
.tog.on::after { left: 19px; background: var(--navy); }
.chev { color: var(--muted); font-size: 1.3rem; padding-right: 6px; }

/* comparison: Cortext column stands out */
table td.y, table thead th:nth-child(2) { background: #E6F4FF; }
table thead th:nth-child(2) { color: #0B5CA8; }
td.y::before { content: "✓ "; }

/* footer */
.foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; align-items: start; }
.brand-small { font-weight: 800; font-size: 1.2rem; color: var(--text-light); }
.foot-brand p { margin: 6px 0 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; justify-self: end; }
.foot-nav a { text-decoration: none; color: var(--muted); }
.foot-nav a:hover { color: var(--text-light); }
.foot-note { grid-column: 1 / -1; margin: 12px 0 0; font-size: .85rem; max-width: none; border-top: 1px solid var(--line); padding-top: 18px; }

/* ── Your key: the standout band ── */
.band.accent { background: linear-gradient(140deg, #0C2A66 0%, #061A40 60%, #071B45 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.band.accent::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 400px at 85% 30%, rgba(24,240,194,.12), transparent 70%); }
.band.accent .wrap { position: relative; }
.keyband { margin-top: 0; align-items: center; }
.keyband .art svg { width: 100%; height: auto; }
.keyband .lbl { fill: #B9C7E0; }
.keyband .lbl.phrase { fill: #FF8DA1; }
.keyband .art svg rect[fill="#F4F7FB"] { fill: #0B2357; }
.keyband .art svg g[fill="#0B2357"] { fill: #CFE3FF; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.tiers > div { padding: 24px 24px 18px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.tiers > div.sealed { border-color: var(--teal); background: rgba(24,240,194,.06); }
.tiers h3 { margin-bottom: 8px; }
.tiers p { margin: 0; font-size: 1rem; color: var(--text-light); }
.band.accent .note { margin-top: 22px; }

/* ── Bands ── */
.band { padding: 88px 0; }
.band.light { background: var(--paper); color: var(--ink); }
.band h2 { margin-bottom: 18px; }
.band .lead { margin-bottom: 40px; }
.light h3 { color: var(--ink); }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 40px 0 28px; }
.three > div { border-top: 3px solid; border-image: var(--grad) 1; padding-top: 18px; }
.three h3 { margin-bottom: 10px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.two h3 { margin-bottom: 10px; }

.flow { width: 100%; height: auto; margin: 12px 0 8px; }
.lbl { font-family: "Manrope", system-ui, sans-serif; font-size: 13px; font-weight: 600; fill: #B9C7E0; }
.light .lbl { fill: #3A4D74; }
.lbl.small { font-size: 12px; font-weight: 500; }
.lbl.phrase { fill: #E94560; font-weight: 700; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 44px 0; border-top: 1px solid var(--line-light); }
.feature:nth-of-type(even) .art { order: 2; }
.feature .art svg { width: 100%; height: auto; }
.feature h3 { font-size: 1.55rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.trio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; padding-top: 44px; border-top: 1px solid var(--line-light); }
.trio h3 { margin-bottom: 10px; }

/* Algorithms */
.algos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 28px; }
.algos > div { padding: 22px 22px 18px; border-radius: 14px; background: var(--navy-panel); border: 1px solid var(--line); }
.algos dt { font-weight: 800; font-size: 1.35rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.algos dd { margin: 8px 0 0; color: var(--muted); font-size: .96rem; }

/* Comparison */
.tablewrap { overflow-x: auto; margin: 32px 0 20px; }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: .98rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-light); vertical-align: top; }
thead th { font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 500; color: var(--ink); }
td { color: var(--muted-dark); width: 14%; }
td.y { color: #0E7C5B; font-weight: 700; }

/* Evaluate */
.cta-box { padding: 36px; border-radius: 20px; background: linear-gradient(160deg, #0F2D6B, #0B2357); border: 1px solid #2C4A85; align-self: start; box-shadow: 0 30px 80px -40px rgba(21,175,255,.35); }
.cta-box ul { margin-bottom: 18px; }
.cta-box h3 { margin-bottom: 10px; }
.cta-box .btn { margin-top: 8px; word-break: break-all; }

footer { border-top: 1px solid var(--line); padding: 44px 0 48px; color: var(--muted); font-size: .92rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .hero-facts { grid-template-columns: 1fr 1fr; order: 3; }
  .chip-pq { position: static; margin-bottom: 14px; }
  .chip-card { position: static; width: auto; margin-top: 14px; }
  .hero-demo::before { display: none; }
  .shelf { grid-template-columns: 1fr; gap: 44px; }
  .foot { grid-template-columns: 1fr; }
  .foot-nav { justify-self: start; }
  .hero-demo { order: 2; padding: 0; }
  .three, .trio, .two, .tiers { grid-template-columns: 1fr; gap: 28px; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 28px; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-of-type(even) .art { order: 0; }
  .algos { grid-template-columns: 1fr 1fr; }
  .band { padding: 64px 0; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero-facts { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: flex-start; }
  .stack span { font-size: 1.75rem; }
  .phone { width: 100%; max-width: 320px; }
  .algos { grid-template-columns: 1fr; }
}

/* ── Motion: one load sequence, one ambient loop, reveals on scroll ──
   Everything is CSS; nothing runs when the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(1) { animation-delay: .05s; }
  .hero-text > :nth-child(2) { animation-delay: .15s; }
  .hero-text > :nth-child(3) { animation-delay: .3s; }
  .hero-text > :nth-child(4) { animation-delay: .42s; }
  .hero-text > :nth-child(5) { animation-delay: .52s; }
  .stack span { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .stack .l1 { animation-delay: .1s; }
  .stack .l2 { animation-delay: .28s; }
  .stack .l3 { animation-delay: .46s; }
  .hero-demo { animation: rise .9s .35s cubic-bezier(.2,.7,.2,1) both; }

  /* the sealed envelope travels device → relay → device, on a loop */
  .env { transform-box: view-box; }
  .env-a { animation: travel-a 7s ease-in-out infinite; }
  .env-b { animation: travel-b 7s ease-in-out infinite; }

  .lockpulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-in-out infinite; }

  /* scroll-driven reveals where the browser supports them; elsewhere the
     final state simply shows */
  @supports (animation-timeline: view()) {
    .pillars > div, .shelf figure, .feature, .trio > div, .algos > div, .deploy > div, .cta-box {
      animation: rise 1s both; animation-timeline: view(); animation-range: entry 0% entry 45%;
    }
    .tog.on::after { animation: flip 1s both; animation-timeline: view(); animation-range: entry 40% entry 90%; }
    .tog.on { animation: tint 1s both; animation-timeline: view(); animation-range: entry 40% entry 90%; }
    .sas-words { animation: surface 1s both; animation-timeline: view(); animation-range: entry 30% entry 90%; }
    .threat tbody tr { animation: rise 1s both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes travel-a {
  0%   { transform: translate(150px, 92px); opacity: 0; }
  8%   { opacity: 1; }
  42%  { transform: translate(340px, 92px); opacity: 1; }
  50%  { transform: translate(340px, 92px); opacity: 0; }
  100% { transform: translate(340px, 92px); opacity: 0; }
}
@keyframes travel-b {
  0%, 50% { transform: translate(564px, 92px); opacity: 0; }
  58%  { opacity: 1; }
  92%  { transform: translate(754px, 92px); opacity: 1; }
  100% { transform: translate(754px, 92px); opacity: 0; }
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .75; } }
@keyframes flip { from { left: 3px; background: #B9C7E0; } to { left: 19px; background: #061A40; } }
@keyframes tint { from { background: #2A3A5E; } to { background: #18F0C2; } }
@keyframes surface { from { opacity: 0; filter: blur(6px); letter-spacing: .08em; } to { opacity: 1; filter: none; letter-spacing: .01em; } }

/* ── Tables on phones: stacked cards, never a sideways scroll ── */
@media (max-width: 700px) {
  .tablewrap { overflow: visible; }
  table, table.threat { min-width: 0; display: block; }
  thead { display: none; }
  tbody, tr { display: block; }
  tr { border: 1px solid var(--line-light); border-radius: 14px; padding: 14px 16px 6px; margin-bottom: 12px; background: #fff; }
  tbody th, td { display: block; width: auto; border: 0; padding: 4px 0; }
  tbody th { font-weight: 700; font-size: 1.02rem; padding-bottom: 8px; }
  td { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; border-top: 1px solid var(--line-light); padding: 8px 0; }
  td::before { content: attr(data-label); color: var(--muted-dark); font-weight: 600; }
  td.y { background: none; }
  td.y::before { content: attr(data-label); color: var(--ink); }
  table.threat tbody th { width: auto; }
  table thead th:nth-child(2) { background: none; }
  /* threat table lives on the dark band */
  table.threat tr { background: rgba(255,255,255,.04); border-color: var(--line); }
  table.threat tbody th, table.threat td { border: 0; padding: 4px 0; }
  table.threat td { display: block; border-top: 1px solid var(--line); padding-top: 10px; }
  table.threat td::before { content: none; }
}
