:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040a12;
  --surface: #0d1a29;
  --surface-2: #102236;
  --line: rgba(159, 194, 218, 0.16);
  --line-strong: rgba(127, 240, 216, 0.34);
  --text: #f3f7fb;
  --muted: #9fb0c1;
  --mint: #79efd3;
  --mint-2: #b7ffe9;
  --cyan: #4ac9f0;
  --amber: #ffd071;
  --danger: #ffb6a9;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 86% 8%, rgba(33, 140, 170, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--mint);
  color: #04100d;
  padding: 10px 14px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
}
.nav-shell {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(121, 239, 211, 0.14), rgba(74, 201, 240, 0.04));
  box-shadow: inset 0 0 26px rgba(121, 239, 211, 0.08);
}
.brand-mark i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.brand-mark i:nth-child(1) { transform: translate(-10px, 7px); }
.brand-mark i:nth-child(2) { transform: translate(10px, 7px); background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.brand-mark i:nth-child(3) { transform: translateY(-10px); background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: 0.01em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { position: relative; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; transform: scaleX(0); background: var(--mint); transition: transform 180ms ease; }
nav a:hover, nav a:focus-visible { color: var(--text); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
.lab-badge { justify-self: end; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: 90px 0 82px; }
.hero::after { content: ""; position: absolute; z-index: -2; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.hero-glow { position: absolute; z-index: -3; width: 740px; height: 740px; top: -360px; right: -170px; border-radius: 50%; background: rgba(52, 194, 203, 0.11); filter: blur(90px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr); gap: clamp(46px, 7vw, 98px); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--mint); font-size: 11px; font-weight: 850; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 1px; background: currentColor; box-shadow: 0 0 9px currentColor; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { margin: 0; letter-spacing: -0.045em; line-height: 1.08; }
h1 { max-width: 720px; font-size: clamp(42px, 5.25vw, 72px); font-weight: 720; }
h1 em { display: block; margin-top: 6px; color: var(--mint-2); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-answer { max-width: 680px; margin: 28px 0 0; color: #bfd0df; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--mint); color: #051511; box-shadow: 0 13px 36px rgba(69, 225, 191, 0.18); }
.button.secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.025); color: var(--text); }
.trust-row { display: flex; flex-wrap: wrap; gap: 17px; margin: 25px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; font-weight: 650; }
.trust-row li::before { content: "✓"; margin-right: 7px; color: var(--mint); }

.memory-visual { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(6, 14, 26, 0.78); box-shadow: var(--shadow); }
.visual-topline, .media-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.visual-topline { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: breathe 1.8s ease-in-out infinite; }
.media-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #020914; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-shine { position: absolute; inset: 0; background: linear-gradient(128deg, rgba(255, 255, 255, 0.08), transparent 27%, transparent 73%, rgba(121, 239, 211, 0.05)); pointer-events: none; }
.media-controls { border-top: 1px solid var(--line); }
.format-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #07111f; }
.format-switch button { min-height: 34px; border: 0; border-radius: 7px; padding: 6px 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 800; }
.format-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--mint); box-shadow: inset 0 0 0 1px var(--line-strong); }
.media-status { color: var(--muted); font-size: 10px; text-align: right; }
figcaption { padding: 0 16px 16px; color: #7f91a2; font-size: 10px; line-height: 1.55; }

.answer-strip { border-bottom: 1px solid var(--line); background: #091626; }
.answer-grid { min-height: 104px; display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.answer-grid p { margin: 0; max-width: 900px; color: #b9cad8; font-size: 14px; }
.answer-grid p span { display: inline-block; margin-right: 8px; color: var(--amber); font-size: 10px; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.answer-grid a { white-space: nowrap; color: var(--mint); font-size: 12px; font-weight: 800; text-decoration: none; }

.section { padding: 112px 0; border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: 800px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr); gap: 70px; align-items: end; }
h2 { max-width: 720px; font-size: clamp(34px, 4vw, 54px); font-weight: 680; }
.section-heading > p, .section-intro, .clarity-copy > p, .sources-grid > div > p { margin: 0; color: var(--muted); font-size: 16px; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 56px 0 0; padding: 0; list-style: none; }
.process-grid li { position: relative; min-height: 310px; border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: linear-gradient(160deg, rgba(16, 34, 54, 0.8), rgba(8, 20, 34, 0.52)); }
.step-number { position: absolute; top: 22px; right: 24px; color: #61778b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.step-icon { width: 78px; height: 78px; position: relative; margin: 16px 0 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: radial-gradient(circle, rgba(121, 239, 211, 0.25), rgba(121, 239, 211, 0.02) 60%); box-shadow: inset 0 0 30px rgba(121, 239, 211, 0.08); }
.step-icon::before, .step-icon::after { content: ""; position: absolute; border-radius: 50%; }
.step-icon::before { inset: 22px; background: var(--mint); box-shadow: 0 0 18px var(--mint); }
.step-icon::after { inset: -10px; border: 1px solid rgba(121, 239, 211, 0.15); }
.step-icon.encode { border-radius: 20px; transform: rotate(12deg); }
.step-icon.encode::before { border-radius: 9px; }
.step-icon.recall::before { background: var(--amber); box-shadow: 0 0 18px var(--amber); }
.process-grid h3 { margin: 0 0 10px; font-size: 21px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.clarity-section { background: linear-gradient(135deg, #0a1727, #07111f 70%); }
.clarity-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr); gap: clamp(50px, 8vw, 110px); align-items: start; }
.clarity-copy > p { max-width: 560px; margin-top: 24px; }
.care-note { margin-top: 34px; border-left: 2px solid var(--amber); padding: 4px 0 4px 20px; }
.care-note strong { color: var(--amber); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.care-note p { margin: 7px 0 0; color: #becddd; font-size: 13px; }
.signal-list { border-top: 1px solid var(--line); }
.signal-list article { min-width: 0; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.signal-list article > span { color: var(--mint); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.signal-list h3, .signal-list p { margin: 0; }
.signal-list h3 { font-size: 17px; }
.signal-list p { margin-top: 4px; color: var(--muted); font-size: 13px; }

.faq-grid, .sources-grid { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr); gap: clamp(50px, 8vw, 110px); }
.section-intro { margin-top: 22px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; color: #dfeaf3; font-size: 16px; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--mint); font-size: 23px; font-weight: 300; transition: transform 180ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -4px 42px 23px 0; color: var(--muted); font-size: 14px; }
.sources-section { background: #050c15; }
.sources-grid ol { margin: 0; padding: 0; list-style: none; counter-reset: source; }
.sources-grid li { counter-increment: source; position: relative; padding: 20px 0 20px 48px; border-bottom: 1px solid var(--line); }
.sources-grid li::before { content: counter(source, decimal-leading-zero); position: absolute; top: 23px; left: 0; color: var(--mint); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.sources-grid a { color: var(--text); font-size: 14px; font-weight: 750; text-underline-offset: 4px; }
.sources-grid li span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

footer { padding: 46px 0; background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.footer-grid strong, .footer-grid span { color: var(--text); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid p { margin: 7px 0 0; color: #708396; font-size: 11px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
@keyframes breathe { 50% { opacity: 0.45; transform: scale(0.82); } }

@media (max-width: 920px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { padding-top: 68px; }
  .hero-grid, .clarity-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 760px; }
  .memory-visual { width: min(680px, 100%); }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .process-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .process-grid li { scroll-snap-align: start; }
  .faq-grid, .sources-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 32px, 1180px); }
  .nav-shell { min-height: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .lab-badge { display: none; }
  .hero { padding: 56px 0 60px; }
  h1 { font-size: clamp(37px, 11vw, 52px); }
  .hero-answer { margin-top: 22px; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .trust-row { gap: 10px 16px; }
  .visual-topline, .media-controls { align-items: flex-start; flex-direction: column; }
  .media-status { text-align: left; }
  .answer-grid { grid-template-columns: 1fr; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
  .section { padding: 78px 0; }
  .process-grid { grid-template-columns: minmax(252px, 84vw) minmax(252px, 84vw) minmax(252px, 84vw); margin-top: 38px; }
  .process-grid li { min-height: 292px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
