/* ============================================================
   OBRIY OS — landing design system
   Aesthetic DNA: Arknights tactical UI · PS Vita silk waves ·
   dark obsidian & liquid chrome.
   Plain-language copy; jargon lives only in micro mono-labels.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* materials */
  --bg: #050608;
  --panel: rgba(13, 15, 20, 0.96);
  --panel-solid: rgba(13, 15, 20, 0.92);
  --acrylic: rgba(13, 15, 20, 0.55);
  --line: rgba(148, 163, 184, 0.16);
  --line-soft: rgba(148, 163, 184, 0.1);
  --line-strong: rgba(148, 163, 184, 0.34);
  --chrome-edge: rgba(203, 213, 225, 0.55);

  /* text */
  --txt: #e2e8f0;
  --txt-2: #a7b1c4;
  --txt-3: #a3aec1;
  --txt-4: #929fb5;

  /* accents */
  --sapphire: #0a84ff;
  --sapphire-soft: rgba(10, 132, 255, 0.16);
  --green: #30d158;
  --amber: #ff9f0a;
  --ruby: #ff6b6b;

  /* type */
  --font-display: "Oswald", "Bahnschrift", "Arial Narrow", sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "Consolas", monospace;

  /* geometry */
  --wrap: 1220px;
  --pad: clamp(20px, 4.5vw, 52px);
  --cut: 12px;
  --topbar-h: 64px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.3, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: rgba(10, 132, 255, 0.38);
  color: #fff;
}

:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: #0a84ff;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 12px;
}

/* chrome gradient text (hero line 2, h2 accents) */
.chrome-text {
  background: linear-gradient(
    178deg,
    #ffffff 4%,
    #dbe2ec 36%,
    #93a0b6 56%,
    #c9d2df 76%,
    #f4f7fb 98%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 3. HUD ---------- */
.hud {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.hud-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(148, 163, 184, 0.08);
}

.hud-progress i {
  display: block;
  height: 100%;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, #0a84ff, #7cc0ff);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.55);
}

.hud-tick {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid rgba(148, 163, 184, 0.4);
}

.hud-tick--tl { top: 10px;    left: 10px;    border-top-width: 1px;    border-left-width: 1px; }
.hud-tick--tr { top: 10px;    right: 10px;   border-top-width: 1px;    border-right-width: 1px; }
.hud-tick--bl { bottom: 10px; left: 10px;    border-bottom-width: 1px; border-left-width: 1px; }
.hud-tick--br { bottom: 10px; right: 10px;   border-bottom-width: 1px; border-right-width: 1px; }

.hud-coords {
  position: absolute;
  bottom: 14px;
  left: 34px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.42);
}

.hud-build {
  position: absolute;
  bottom: 14px;
  right: 34px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.42);
}

.reticle {
  position: fixed;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  opacity: 0;
  transition: opacity 0.4s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease);
  will-change: transform;
}

.reticle i {
  position: absolute;
  background: rgba(226, 232, 240, 0.5);
}

.reticle i:first-child {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.reticle i:last-child {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.reticle.is-on {
  opacity: 0.55;
}

.reticle.is-press {
  width: 30px;
  height: 30px;
}

/* ---------- 4. Waves canvas ---------- */
.waves {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.48;
  pointer-events: none;
}

/* ---------- 5. Topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 26px;
  padding-inline: clamp(16px, 3vw, 40px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  background: rgba(5, 6, 8, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 27px;
  height: 27px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 0.32em;
  color: var(--txt);
  white-space: nowrap;
}

.brand-word em {
  font-style: normal;
  font-weight: 300;
  color: var(--txt-3);
  margin-left: 0.55em;
}

.topbar-state-short {
  display: none;
}

.topbar-state {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--txt-3);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
  animation: livePulse 2.6s var(--ease) infinite;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

.topbar-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.topbar-nav > a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--txt-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.topbar-nav > a:hover,
.topbar-nav > a.is-active {
  color: #fff;
  border-bottom-color: rgba(10, 132, 255, 0.7);
}

.topbar-nav > a.topbar-demo {
  border: 1px solid var(--line-strong);
  padding: 8px 15px;
  clip-path: polygon(
    9px 0, 100% 0,
    100% calc(100% - 9px), calc(100% - 9px) 100%,
    0 100%, 0 9px
  );
  border-bottom-color: var(--line-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.topbar-nav > a.topbar-demo:hover {
  color: #fff;
  background: var(--sapphire-soft);
  border-color: rgba(10, 132, 255, 0.65);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  color: var(--txt-4);
  letter-spacing: 0.1em;
}

.topbar-user img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
  filter: brightness(0.92);
}

/* burger */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 42px;
  position: relative;
  border: 1px solid var(--line);
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--txt-2);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.nav-toggle em {
  display: none;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--txt);
  clip-path: polygon(
    var(--cut) 0, 100% 0,
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    0 100%, 0 var(--cut)
  );
  transition: filter 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  isolation: isolate;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn--primary {
  background: linear-gradient(180deg, #2b313f 0%, #191d26 55%, #131722 100%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(10, 132, 255, 0.45);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0), rgba(10, 132, 255, 0.34));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 8px 26px rgba(10, 132, 255, 0.3));
}

.btn--primary:hover::before,
.btn--primary:focus-visible::before {
  opacity: 1;
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: rgba(148, 163, 184, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: #fff;
  background: rgba(148, 163, 184, 0.1);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.65);
}

.btn--small {
  padding: 11px 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  background: linear-gradient(180deg, #262c3a 0%, #151923 100%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
  --cut: 9px;
}

.btn--small:hover,
.btn--small:focus-visible {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.75);
  filter: drop-shadow(0 6px 18px rgba(10, 132, 255, 0.28));
}

/* ---------- 7. Hero ---------- */
main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--topbar-h) + 40px) 0 90px;
}

/* readability scrim: the silk stays open on the emblem side */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 6, 8, 0.92) 0%,
    rgba(5, 6, 8, 0.78) 32%,
    rgba(5, 6, 8, 0.34) 56%,
    rgba(5, 6, 8, 0.04) 72%,
    transparent 80%
  );
  pointer-events: none;
}

.hero-inner,
.hero-scroll {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0), var(--bg));
  pointer-events: none;
}

.hero-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.overline {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--sapphire);
  margin-bottom: 26px;
}

.overline::after {
  content: "";
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.8), transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6.6vw, 88px);
  line-height: 1.02;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-lede {
  margin-top: 30px;
  max-width: 54ch;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--txt-2);
}

.hero-lede b {
  color: var(--txt);
  font-weight: 600;
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-metrics {
  margin: 52px 0 0;
  display: flex;
}

.hero-metrics > div {
  padding: 2px 30px 2px 0;
  margin-right: 30px;
  border-right: 0.75px solid var(--line);
}

.hero-metrics > div:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero-metrics dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--txt);
  letter-spacing: 0.04em;
}

.hero-metrics dd {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #8b96aa;
}

/* emblem */
.hero-emblem {
  display: flex;
  justify-content: center;
}

.emblem {
  position: relative;
  width: min(400px, 78%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: rotateX(var(--erx, 0deg)) rotateY(var(--ery, 0deg));
  transform-style: preserve-3d;
  animation: emblemFloat 9s ease-in-out infinite;
}

@keyframes emblemFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

.emblem-orbit {
  position: absolute;
  inset: -9%;
  width: 118%;
  height: 118%;
  fill: none;
}

.emblem-orbit circle {
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 0.25;
  stroke-dasharray: 1.2 2.1;
  animation: orbitSpin 60s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.emblem-plate::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 23%;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.emblem-plate {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 27%;
  background:
    radial-gradient(120% 120% at 28% 18%, #1b2029 0%, #0c0f15 52%, #06070a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(148, 163, 184, 0.12),
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 8px 26px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.emblem-mark {
  width: 72%;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 34px rgba(10, 132, 255, 0.14));
}

.emblem-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 38%,
    rgba(255, 255, 255, 0.09) 47%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.09) 53%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: sheenSweep 7.5s var(--ease) infinite;
}

@keyframes sheenSweep {
  0%, 55%  { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.emblem-caption {
  position: absolute;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(148, 163, 184, 0.62);
  text-shadow: 0 1px 2px rgba(4, 5, 7, 0.95), 0 0 12px rgba(4, 5, 7, 0.9);
}

.emblem-caption--tl { top: -24px; left: 2px; }
.emblem-caption--br { bottom: -24px; right: 2px; }

.hero-scroll {
  position: absolute;
  text-shadow: 0 1px 2px rgba(4, 5, 7, 0.95), 0 0 12px rgba(4, 5, 7, 0.9);
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--txt-4);
  transition: color 0.3s var(--ease);
}

.hero-scroll:hover {
  color: var(--txt-2);
}

.hero-scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.55), transparent);
  overflow: hidden;
  position: relative;
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: #0a84ff;
  animation: scrollDrop 2.2s var(--ease) infinite;
}

@keyframes scrollDrop {
  0%   { top: -50%; }
  100% { top: 105%; }
}

/* ---------- 8. Sections ---------- */
.sec {
  position: relative;
  padding: clamp(90px, 11vw, 150px) 0;
  scroll-margin-top: calc(var(--topbar-h) + 8px);
}

.sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  max-width: calc(var(--wrap) - 2 * var(--pad));
  margin-inline: auto;
  height: 0.75px;
  background: var(--line);
}

.sec::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(max((100vw - var(--wrap)) / 2, 0px) + var(--pad));
  width: 46px;
  height: 2px;
  background: var(--sapphire);
  opacity: 0.9;
}

.sec-head {
  margin-bottom: clamp(44px, 6vw, 72px);
}

.sec-index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--sapphire);
  margin-bottom: 22px;
}

.sec-index i {
  width: 30px;
  height: 1px;
  background: rgba(10, 132, 255, 0.6);
}

.sec-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46ch);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
}

.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.sec-head h2 em {
  font-style: normal;
  background: linear-gradient(
    178deg,
    #ffffff 4%,
    #dbe2ec 36%,
    #93a0b6 56%,
    #c9d2df 76%,
    #f4f7fb 98%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-sub {
  font-size: 15px;
  line-height: 1.7;
  color: #b6c0d2;
  border-left: 0.75px solid var(--line-strong);
  padding-left: 20px;
  text-shadow: 0 1px 2px rgba(4, 5, 7, 0.9), 0 0 18px rgba(4, 5, 7, 0.8);
}

.sec-tag {
  display: inline-block;
  margin-top: 18px;
  background: rgba(9, 11, 15, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--txt-4);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  padding: 6px 12px;
}

/* ---------- 9. Panels (kernel anatomy) ---------- */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  position: relative;
  padding: 24px 26px 22px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease),
    transform 0.35s var(--ease);
}

/* corner brackets: TL + BR (Arknights micro-frame) */
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: var(--brk, 13px);
  height: var(--brk, 13px);
  border: 0 solid var(--chrome-edge);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.panel::before {
  top: 7px;
  left: 7px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.panel::after {
  bottom: 7px;
  right: 7px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}

.panel:hover,
.panel:focus-within {
  border-top-color: rgba(10, 132, 255, 0.55);
  background: rgba(15, 18, 25, 0.82);
  transform: translateY(-3px);
  --brk: 20px;
}

.panel:hover::before,
.panel:hover::after,
.panel:focus-within::before,
.panel:focus-within::after {
  border-color: rgba(255, 255, 255, 0.9);
}

/* scanline sweep on hover (painted as an extra background layer) */
.panel {
  background-image: linear-gradient(
    180deg,
    transparent 42%,
    rgba(255, 255, 255, 0.045) 50%,
    transparent 58%
  );
  background-size: 100% 320%;
  background-repeat: no-repeat;
  background-position: 0 -120%;
}

.panel:hover {
  animation: panelSweep 0.95s var(--ease);
}

@keyframes panelSweep {
  from { background-position: 0 -120%; }
  to   { background-position: 0 130%; }
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--txt-4);
}

.panel-status {
  color: var(--green);
  opacity: 0.85;
}

.panel-glyph {
  position: absolute;
  top: 56px;
  right: 24px;
  width: 46px;
  height: 46px;
  opacity: 0.9;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}

.panel:hover .panel-glyph {
  filter: drop-shadow(0 0 10px rgba(10, 132, 255, 0.35));
  opacity: 1;
}

.panel .g-stroke {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.6;
}

.panel .g-sapph {
  stroke: var(--sapphire);
}

.panel .g-line {
  fill: none;
  stroke: rgba(148, 163, 184, 0.5);
  stroke-width: 1;
}

.panel .g-sapph-fill {
  fill: var(--sapphire);
  stroke: none;
}

.panel h3 {
  margin-top: 20px;
  max-width: 22ch;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.panel > p {
  margin-top: 12px;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.68;
  color: var(--txt-2);
}

.panel-spec {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
}

.panel-spec li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.panel-spec span {
  color: var(--txt-4);
}

.panel-spec b {
  color: #dce3ee;
  font-weight: 500;
  text-align: right;
}

.panel-foot {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid rgba(10, 132, 255, 0.55);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--txt-4);
}

/* ---------- 10. App matrix ---------- */
.app-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid var(--chrome-edge);
  border-left: 1.5px solid var(--chrome-edge);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease), width 0.3s var(--ease),
    height 0.3s var(--ease);
}

.app:hover::before,
.app:focus-visible::before {
  opacity: 1;
  width: 18px;
  height: 18px;
}

.app {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(10, 12, 17, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: default;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.45s var(--ease-spring);
}

.app > * {
  position: relative;
  z-index: 1;
}

.app-name {
  text-shadow: 0 1px 2px rgba(4, 5, 7, 0.95), 0 0 14px rgba(4, 5, 7, 0.85);
}

.app-desc,
.app-tag {
  text-shadow: 0 1px 2px rgba(4, 5, 7, 0.95);
}

.app:hover,
.app:focus-visible {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 18, 25, 0.72);
  transform: translateY(-4px);
}

/* sapphire focus pool beneath the active app (synced with the waves shader) */
.app::before {
  content: "";
  position: absolute;
  inset: 4% 10%;
  background: radial-gradient(
    52% 42% at 50% 45%,
    rgba(10, 132, 255, 0.22),
    rgba(10, 132, 255, 0.06) 55%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.app:hover::before,
.app:focus-visible::before {
  opacity: 1;
}

.app-squircle {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 27%;
  background: radial-gradient(125% 125% at 30% 18%, #262c38 0%, #10131a 55%, #07080b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(148, 163, 184, 0.1),
    0 14px 30px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  overflow: visible;
}

.app-squircle::after {
  /* mirror-like contact reflection under the icon */
  content: "";
  position: absolute;
  top: calc(100% + 5px);
  left: 8%;
  width: 84%;
  height: 26px;
  background: radial-gradient(
    50% 60% at 50% 0%,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.03) 55%,
    transparent 78%
  );
  opacity: 0.35;
  transition: opacity 0.4s var(--ease);
}

.app:hover .app-squircle::after,
.app:focus-visible .app-squircle::after {
  opacity: 1;
}

.app-icon {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: brightness(0.96) contrast(1.07) saturate(0.88)
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
  transition: filter 0.35s var(--ease), transform 0.45s var(--ease-spring);
}

.app:hover .app-icon,
.app:focus-visible .app-icon {
  filter: brightness(1.14) contrast(1.05) saturate(0.95)
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.18));
  transform: scale(1.05);
}

/* mirror highlight sweeping across the chrome */
.app-sheen {
  position: absolute;
  inset: 0;
  border-radius: 27%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 60%
  );
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
}

.app:hover .app-sheen,
.app:focus-visible .app-sheen {
  animation: appSheen 0.85s var(--ease) forwards;
}

@keyframes appSheen {
  0%   { transform: translateX(-140%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(140%); opacity: 0; }
}

.app::after {
  content: attr(data-index);
  position: absolute;
  right: 12px;
  bottom: 2px;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 62px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.13);
  pointer-events: none;
}

.app-name {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 15.5px;
  color: #e7ebf3;
}

.app-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(10, 132, 255, 0.78);
}

.app-desc {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--txt-3);
  max-width: 30ch;
}

.matrix-foot {
  margin-top: 34px;
  text-shadow: 0 1px 2px rgba(4, 5, 7, 0.9);
  padding-top: 16px;
  border-top: 1px dashed rgba(148, 163, 184, 0.16);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--txt-4);
}

.matrix-foot .plain {
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  color: var(--txt-3);
}

/* ---------- 11. Security ---------- */
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}

.guarantees {
  list-style: none;
  margin: 0;
  padding: 28px 30px 26px;
  display: grid;
  gap: 26px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  position: relative;
}

.guarantees::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid var(--chrome-edge);
  border-left: 1.5px solid var(--chrome-edge);
}

.guarantee + .guarantee {
  border-top: 1px dashed rgba(148, 163, 184, 0.16);
  padding-top: 26px;
}

.guarantee {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px 18px;
}

.guarantee-idx {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.45);
}

.guarantee h3 {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.guarantee p {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--txt-2);
}

.guarantee p b {
  color: var(--txt);
}

.guarantee-note {
  display: inline-block;
  margin-top: 12px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--txt-3);
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
  padding-bottom: 3px;
}

.compare {
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 6px 22px 14px;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
  font-size: 13px;
  line-height: 1.55;
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row--head {
  border-bottom: 1px solid var(--line-strong);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  padding: 14px 0 12px;
}

.compare-label {
  color: #dde3ed;
  font-weight: 500;
}

.compare-row--head .compare-label {
  font-weight: 400;
}

.compare-legacy,
.compare-obriy {
  font-size: 12.5px;
}

.compare-legacy {
  color: var(--txt-3);
}

.compare-legacy::before {
  content: "✕";
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 107, 107, 0.75);
  margin-right: 9px;
}

.compare-obriy {
  color: #dbe4f4;
}

.compare-obriy::before {
  content: "✓";
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  margin-right: 9px;
}

.attack-sim {
  margin-top: 14px;
  position: relative;
  padding: 22px 24px 24px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
}

.attack-sim::before,
.attack-sim::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 0 solid var(--chrome-edge);
}

.attack-sim::before {
  top: 7px;
  left: 7px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.attack-sim::after {
  bottom: 7px;
  right: 7px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}

.sim-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.sim-head span {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--sapphire);
}

.sim-head h3 {
  font-size: 16px;
  font-weight: 600;
}

.sim-log {
  margin-top: 16px;
  min-height: 168px;
  max-height: 230px;
  overflow-y: auto;
  padding: 14px 16px;
  background: rgba(4, 5, 8, 0.65);
  border: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: #9fb0c8;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.sim-idle {
  color: var(--txt-4);
}

.sim-line {
  display: block;
}

.sim-line--ok   { color: var(--green); }
.sim-line--warn { color: var(--amber); }
.sim-line--deny { color: var(--ruby); }
.sim-line--dim  { color: var(--txt-4); }
.sim-line--hot  { color: #eaf1fb; }

.sim-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sim-verdict {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 1px dashed rgba(48, 209, 88, 0.4);
  padding: 7px 12px;
}

/* ---------- 12. Terminal ---------- */
.term {
  position: relative;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.term::before,
.term::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 0 solid var(--chrome-edge);
  z-index: 2;
}

.term::before {
  top: 7px;
  left: 7px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.term::after {
  bottom: 7px;
  right: 7px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}

.term-titlebar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(148, 163, 184, 0.04);
}

.term-dots {
  display: flex;
  gap: 7px;
}

.term-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4150;
  transition: background 0.3s var(--ease);
}

.term-dots:hover i:nth-child(1) { background: #ff5f57; }
.term-dots:hover i:nth-child(2) { background: #ff9f0a; }
.term-dots:hover i:nth-child(3) { background: #30d158; }

.term-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--txt-2);
}

.term-state {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--txt-4);
}

.term-body {
  height: 400px;
  overflow-y: auto;
  padding: 20px 24px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.78;
  letter-spacing: 0.02em;
  color: #b9c4d6;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.016) 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(180deg, rgba(7, 8, 11, 0.9), rgba(5, 6, 8, 0.96));
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.term-body::-webkit-scrollbar,
.sim-log::-webkit-scrollbar {
  width: 8px;
}

.term-body::-webkit-scrollbar-thumb,
.sim-log::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
}

.term-body > div {
  white-space: pre-wrap;
  word-break: break-word;
}

.t-dim   { color: var(--txt-4); }
.t-ok    { color: var(--green); }
.t-sapph { color: #4da3ff; }
.t-warn  { color: var(--amber); }
.t-err   { color: var(--ruby); }
.t-cmd   { color: #eef2f9; font-weight: 700; }
.t-head  { color: #eef2f9; }
.t-note  { color: #6e7a90; }

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #9fc5ff;
  animation: caretBlink 1.05s steps(1) infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

.term-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  border-top: 1px solid var(--line-soft);
  background: rgba(7, 8, 11, 0.7);
}

.term-input label {
  font-size: 12px;
  color: var(--sapphire);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.term-input input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #eef2f9;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  caret-color: #0a84ff;
}

.term-input input:focus {
  outline: none;
}

.term-input input::placeholder {
  color: var(--txt-4);
}

.term-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 24px 16px;
  border-top: 1px dashed rgba(148, 163, 184, 0.12);
}

.term-hints button {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--txt-3);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  padding: 5px 12px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.term-hints button:hover,
.term-hints button:focus-visible {
  color: #fff;
  border-color: rgba(10, 132, 255, 0.6);
  background: var(--sapphire-soft);
}

.term-foot {
  margin-top: 18px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--txt-4);
  line-height: 1.9;
}

/* ---------- 13. Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 54px 0 76px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.6fr) auto;
  gap: clamp(30px, 5vw, 70px);
}

.footer-brand .brand-word {
  font-size: 13px;
}

.footer-line {
  margin-top: 16px;
  max-width: 42ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--txt-2);
}

.footer-micro {
  margin-top: 18px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--txt-4);
}

.footer-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-nav-title {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--sapphire);
  margin-bottom: 6px;
}

.footer-nav a {
  width: fit-content;
  font-size: 13.5px;
  color: var(--txt-2);
  transition: color 0.25s var(--ease);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-status {
  display: grid;
  gap: 7px;
  justify-items: end;
  align-content: start;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--txt-4);
  text-align: right;
}

/* ---------- 14. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1240px) {
  .topbar-state-full {
    display: none;
  }

  .topbar-state-short {
    display: inline;
  }

  .topbar-user {
    display: none;
  }
}

@media (max-width: 1100px) {
  .app-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: calc(var(--topbar-h) + 24px);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-emblem {
    order: 2;
    margin-top: 14px;
  }

  .emblem {
    width: min(300px, 66%);
  }

  .security-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sec-head-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .sec-sub {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle em {
    display: block;
    position: absolute;
    right: -1px;
    bottom: -16px;
    font-style: normal;
    font-size: 8px;
    letter-spacing: 0.22em;
    color: var(--txt-4);
  }

  .topbar-nav {
    position: fixed;
    top: calc(var(--topbar-h) + 10px);
    left: 12px;
    right: 12px;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    background: rgba(8, 10, 14, 0.94);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
  }

  body.nav-open .topbar-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .topbar-nav > a {
    padding: 15px 22px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
    font-size: 12.5px;
  }

  .topbar-nav > a.topbar-demo {
    clip-path: none;
    border: 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
    background: none;
  }

  .topbar-nav .topbar-user {
    display: flex;
    padding: 15px 22px 8px;
    font-size: 10px;
  }

  .hud-coords,
  .hud-build {
    display: none;
  }
}

@media (max-width: 760px) {
  .sec {
    padding-top: 68px;
    padding-bottom: 76px;
  }

  .sec-head {
    margin-bottom: 36px;
  }

  .panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .app {
    padding: 20px 16px 18px;
  }

  .app-squircle {
    width: 76px;
    height: 76px;
  }

  .app-desc {
    font-size: 12px;
  }

  .compare-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 0;
  }

  .compare-row--head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .compare-row--head .compare-label {
    display: none;
  }

  .compare-legacy::before {
    content: "ЗВИЧАЙНА: ";
    color: var(--txt-4);
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }

  .compare-obriy::before {
    content: "OBRIY: ";
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }

  .term-body {
    height: 340px;
    font-size: 11.5px;
  }

  .hero-metrics {
    flex-wrap: wrap;
    gap: 18px 0;
  }

  .hero-metrics > div {
    padding-right: 18px;
    margin-right: 18px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-status {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  :root {
    --topbar-h: 58px;
  }

  .brand-word {
    font-size: 13.5px;
    letter-spacing: 0.24em;
  }

  .btn {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .reticle {
    display: none;
  }

  .hud-tick {
    display: none;
  }

  .hero-scroll {
    display: none;
  }
}

/* Reading surfaces keep moving highlights behind the content, even when a
   bright wave crosses a heading. The emblem still has an open background. */
.sec-head {
  /* A feathered scrim has no rectangular black edge over the silk. */
  background: radial-gradient(ellipse at 38% 50%,
    rgba(5, 6, 8, 0.57) 0%, rgba(5, 6, 8, 0.24) 60%, transparent 85%);
  padding-block: 24px;
  text-shadow: 0 2px 8px #050608;
}
.sec-head h2 { text-shadow: none; }
.app { background: rgba(13, 15, 20, 0.96); }
.topbar { background: rgba(5, 6, 8, 0.94); }
.sec { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.panel p, .guarantee p, .app-desc { line-height: 1.75; }
.app-desc { font-size: 14px; }
.t-note { color: var(--txt-3); }
.term-hints button { min-height: 44px; min-width: 44px; }
.btn:focus-visible { outline-offset: -4px; outline-width: 2px; }
@media (max-width: 920px) {
  .topbar-nav { visibility: hidden; }
  body.nav-open .topbar-nav { visibility: visible; }
}
@media (max-width: 760px) {
  .app-desc { font-size: 13px; }
  .sec-sub { font-size: 15px; }
  .term-body { font-size: 13px; }
}

/* ---------- 16. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
