:root {
  color-scheme: dark;
  --bg: #020404;
  --bg-2: #050806;
  --surface: rgba(5, 12, 10, 0.76);
  --surface-strong: #07110d;
  --text: #f2fff8;
  --muted: #9ab2aa;
  --muted-2: #6e8580;
  --green: #00ff73;
  --green-soft: rgba(0, 255, 115, 0.14);
  --cyan: #59d9ff;
  --cyan-soft: rgba(89, 217, 255, 0.14);
  --gold: #e0bd6f;
  --gold-soft: rgba(224, 189, 111, 0.14);
  --red: #ff4d67;
  --line: rgba(0, 255, 115, 0.22);
  --line-2: rgba(89, 217, 255, 0.18);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
  --radius: 8px;
  --max: 1180px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 4, 0.7), #020404 40rem),
    radial-gradient(circle at 80% 4%, rgba(89, 217, 255, 0.2), transparent 26rem),
    radial-gradient(circle at 6% 14%, rgba(0, 255, 115, 0.13), transparent 24rem),
    #020404;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 115, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 217, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-160%);
  background: var(--green);
  color: #00130a;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(0, 255, 115, 0.14);
  background: rgba(2, 4, 4, 0.86);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(100% - 2rem, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 950;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 255, 115, 0.16), rgba(89, 217, 255, 0.08));
  box-shadow: inset 0 0 24px rgba(0, 255, 115, 0.12), 0 0 28px rgba(0, 255, 115, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text span:first-child {
  font-size: 1rem;
}

.brand-text span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 255, 115, 0.05);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.ui-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
}

.ui-icon[hidden],
.hero-canvas[hidden],
.banner-slide[hidden],
.icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 850;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(0, 255, 115, 0.2);
  background: rgba(0, 255, 115, 0.065);
}

.nav-links .nav-generator,
.mobile-generator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.7rem 1.2rem;
  border: 1px solid #cffca0;
  border-radius: 6px;
  background: linear-gradient(105deg, #d9ff80 0%, #5ff6c4 52%, #69d9ff 100%);
  box-shadow: 0 0 0 1px rgba(2, 4, 4, 0.25) inset, 0 8px 26px rgba(0, 255, 115, 0.22);
  color: #061c16;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  transition: filter 180ms ease, box-shadow 180ms ease;
}

.nav-links .nav-generator:hover,
.mobile-generator:hover {
  border-color: #e8ffc0;
  background: linear-gradient(105deg, #eaffad 0%, #8affd5 52%, #95e5ff 100%);
  box-shadow: 0 0 0 1px rgba(2, 4, 4, 0.25) inset, 0 10px 30px rgba(89, 217, 255, 0.28);
  color: #061c16;
}

.nav-links .nav-generator:active,
.mobile-generator:active {
  filter: brightness(0.88);
}

.mobile-generator-shell {
  display: none;
}

.header-banners {
  background: #000;
  border-bottom: 1px solid var(--line-2);
}

.banner-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.banner-stage {
  position: relative;
  aspect-ratio: 3 / 1;
  background: #000;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: block;
}

.banner-slide:focus-visible {
  outline-offset: -4px;
}

.banner-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.banner-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 4px 16px;
  background: var(--bg);
}

.banner-counter {
  min-width: 54px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.banner-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.banner-dot {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 180ms ease, background 180ms ease;
}

.icon-button:hover,
.banner-dot:hover {
  background: var(--green-soft);
  color: var(--green);
}

.banner-dot span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

.banner-dot[aria-current="true"] span {
  background: var(--green);
  box-shadow: 0 0 10px var(--green-soft);
}

main {
  overflow: clip;
}

h1,
h2,
h3,
p,
pre,
code {
  overflow-wrap: anywhere;
}

.hero-section {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid rgba(0, 255, 115, 0.12);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #020404;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 50%, rgba(2, 4, 4, 0.68), rgba(2, 4, 4, 0.34) 34rem, transparent 52rem),
    linear-gradient(90deg, rgba(2, 4, 4, 0.76) 0%, rgba(2, 4, 4, 0.34) 48%, rgba(2, 4, 4, 0.04) 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
}

.holo-stage {
  position: absolute;
  right: 6%;
  top: 13%;
  z-index: 1;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  pointer-events: none;
  perspective: 900px;
  transform-style: preserve-3d;
  opacity: 0.92;
}

.holo-ring,
.holo-core,
.holo-scan {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(89, 217, 255, 0.42);
  box-shadow: 0 0 42px rgba(89, 217, 255, 0.14), inset 0 0 34px rgba(0, 255, 115, 0.08);
  transform: rotateX(68deg) rotateZ(18deg);
}

.ring-one {
  inset: 2%;
  border-color: rgba(0, 255, 115, 0.34);
}

.ring-two {
  inset: 19%;
  border-color: rgba(224, 189, 111, 0.42);
  transform: rotateX(68deg) rotateZ(-22deg);
}

.ring-three {
  inset: 34%;
  border-color: rgba(89, 217, 255, 0.5);
  transform: rotateX(68deg) rotateZ(44deg);
}

.holo-core {
  inset: 45%;
  background: radial-gradient(circle, rgba(0, 255, 115, 0.75), rgba(89, 217, 255, 0.1) 52%, transparent 70%);
  border-color: rgba(0, 255, 115, 0.6);
}

.holo-scan {
  inset: auto 8% 44% 8%;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 115, 0.6), transparent);
  box-shadow: 0 0 26px rgba(0, 255, 115, 0.32);
  transform: rotateZ(-10deg);
}

.scan-two {
  bottom: 36%;
  transform: rotateZ(8deg);
  background: linear-gradient(90deg, transparent, rgba(89, 217, 255, 0.6), transparent);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-7) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.72fr);
  gap: var(--space-5);
  align-items: center;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 var(--space-2);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.65rem;
  line-height: 0.98;
  font-weight: 800;
  text-shadow: 0 0 32px rgba(89, 217, 255, 0.12);
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
}

.hero-dek {
  max-width: 710px;
  color: #d8e9e0;
  font-size: 1.15rem;
  margin: var(--space-4) 0 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.05rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green);
  color: #00130a;
  border: 1px solid var(--green);
  box-shadow: 0 0 30px rgba(0, 255, 115, 0.16);
}

.button-secondary {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.terminal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(7, 17, 13, 0.9), rgba(2, 4, 4, 0.76));
  box-shadow: var(--shadow);
  padding: var(--space-4);
  min-height: 430px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 950;
}

.terminal-card pre {
  margin: var(--space-4) 0;
  color: #c8ffd9;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.signal-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: var(--space-4) 0 0;
  background: rgba(0, 255, 115, 0.12);
  border: 1px solid rgba(0, 255, 115, 0.16);
}

.signal-metrics div {
  padding: var(--space-3);
  background: rgba(2, 4, 4, 0.74);
}

.signal-metrics dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.signal-metrics dd {
  margin: 0.25rem 0 0;
  font-weight: 950;
}

.intro-band,
.feature-grid,
.ops-section,
.keyword-matrix,
.momentum-cluster,
.generator-panel,
.bottom-cta,
.article-lead,
.split-section,
.faq-list,
.safety-note,
.rule-list {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.intro-band,
.split-section,
.ops-section,
.generator-panel {
  padding: var(--space-7) 0;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: var(--space-5);
  align-items: start;
}

.intro-band p,
.article-lead p,
.split-section p,
.bottom-cta p,
.ops-section p,
.generator-panel p {
  color: #d1e1d9;
  font-size: 1.04rem;
}

.safety-note {
  margin-top: 0;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  border: 1px solid rgba(224, 189, 111, 0.34);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(224, 189, 111, 0.1), rgba(0, 255, 115, 0.045));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  color: #fff8df;
}

.keyword-matrix {
  padding: var(--space-6) 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.momentum-cluster {
  padding: var(--space-6) 0;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.section-intro {
  grid-column: 1 / -1;
  max-width: 780px;
  margin-bottom: var(--space-3);
}

.section-intro p {
  color: var(--muted);
}

.matrix-cell {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(0, 255, 115, 0.22);
  border-radius: var(--radius);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(0, 255, 115, 0.07), rgba(89, 217, 255, 0.025));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cluster-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: space-between;
  padding: var(--space-4);
  border: 1px solid rgba(224, 189, 111, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(224, 189, 111, 0.09), rgba(0, 255, 115, 0.035)),
    rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.matrix-cell:hover,
.cluster-card:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 217, 255, 0.42);
  background: linear-gradient(180deg, rgba(0, 255, 115, 0.1), rgba(89, 217, 255, 0.05));
}

.matrix-cell span,
.cluster-card span,
.feature-number,
.rule-list span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 950;
}

.matrix-cell strong {
  color: var(--text);
  font-size: 1.45rem;
}

.cluster-card strong {
  color: var(--text);
  font-size: 1.26rem;
}

.matrix-cell em,
.cluster-card em {
  color: var(--muted);
  font-style: normal;
}

.feature-grid {
  padding: var(--space-6) 0 var(--space-7);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.feature-card,
.ops-grid article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  padding: var(--space-4);
}

.feature-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
}

.feature-card p,
.ops-grid p,
.rule-list p,
.check-list p,
.faq-list p {
  color: var(--muted);
}

.feature-card a {
  min-height: 44px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  font-weight: 850;
  text-decoration: none;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.ops-grid strong {
  color: var(--text);
  font-size: 1.06rem;
}

.generator-panel {
  margin-bottom: var(--space-7);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 255, 115, 0.11), rgba(89, 217, 255, 0.045)),
    rgba(255, 255, 255, 0.025);
  align-items: center;
}

.article-hero {
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid rgba(0, 255, 115, 0.12);
  background:
    radial-gradient(circle at 82% 0%, rgba(89, 217, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 18% 22%, rgba(0, 255, 115, 0.12), transparent 22rem);
}

.article-hero .inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.article-hero h1 {
  max-width: 880px;
  font-size: 4rem;
}

.article-hero p:last-child {
  max-width: 760px;
  color: #dbe9e3;
  font-size: 1.14rem;
}

.article-lead {
  padding: var(--space-6) 0 var(--space-4);
  max-width: 900px;
}

.story-teaser {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line-2);
}

.story-teaser h2,
.story-intro h2,
.story-related h2 {
  max-width: 760px;
  font-size: 2.3rem;
}

.story-teaser p:not(.section-kicker),
.story-intro p,
.story-related p {
  max-width: 760px;
  color: #d1e1d9;
  font-size: 1.05rem;
}

.story-teaser .button {
  margin-top: var(--space-2);
}

.story-intro,
.story-prose,
.story-next,
.story-related {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

.story-intro {
  padding: var(--space-6) 0 var(--space-4);
}

.story-list {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto var(--space-7);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none;
}

.story-list a {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.story-list a:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.story-list span:first-child {
  color: var(--green);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
}

.story-list strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.12;
}

.story-list p {
  margin: 0;
  color: #d1e1d9;
}

.story-read {
  margin-top: auto;
  color: var(--cyan);
  font-weight: 850;
}

.story-prose {
  padding: var(--space-6) 0;
  color: #e0e9e4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.8;
}

.story-prose p {
  margin: 0 0 1.45rem;
}

.story-next {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--line-2);
}

.story-next a,
.story-related a {
  color: var(--cyan);
  text-underline-offset: 0.25rem;
}

.story-next a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.story-related {
  padding-bottom: var(--space-7);
}

.check-list {
  display: grid;
  gap: var(--space-3);
}

.check-list p {
  margin: 0;
  padding: var(--space-3);
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.035);
}

.rule-list {
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.rule-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.faq-list {
  padding: var(--space-6) 0;
  display: grid;
  gap: var(--space-3);
  max-width: 920px;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-3) var(--space-4);
}

.faq-list summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.bottom-cta {
  margin-bottom: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 255, 115, 0.12), rgba(89, 217, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
}

.site-footer {
  border-top: 1px solid rgba(0, 255, 115, 0.12);
  padding: var(--space-5) 0;
  background: #020404;
}

.footer-shell {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero-shell,
  .intro-band,
  .split-section,
  .ops-section,
  .generator-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .keyword-matrix,
  .cluster-grid,
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holo-stage {
    right: -12%;
    top: 16%;
    width: 62vw;
    opacity: 0.36;
  }
}

@media (max-width: 960px) {
  .nav-shell {
    min-height: 66px;
  }

  .mobile-generator-shell {
    display: block;
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: 0 0 0.75rem;
  }

  .mobile-generator {
    display: flex;
    width: 100%;
    min-height: 52px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2);
    border: 1px solid rgba(0, 255, 115, 0.18);
    border-radius: var(--radius);
    background: var(--bg);
    max-height: calc(100vh - 146px);
    max-height: calc(100dvh - 146px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    box-shadow: var(--shadow);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .banner-counter {
    display: none;
  }

  .banner-controls {
    justify-content: center;
    padding-inline: 8px;
  }
}

@media (max-width: 760px) {
  .story-list {
    grid-template-columns: 1fr;
  }

  .story-list a {
    min-height: auto;
  }

  .story-prose {
    font-size: 1.05rem;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-shell {
    padding: var(--space-6) 0;
  }

  h1,
  .article-hero h1 {
    font-size: 2.35rem;
    line-height: 1.04;
  }

  .hero-dek,
  .article-hero p:last-child {
    font-size: 1rem;
  }

  .terminal-card {
    min-height: auto;
  }

  .feature-grid,
  .keyword-matrix,
  .cluster-grid,
  .ops-grid,
  .signal-metrics {
    grid-template-columns: 1fr;
  }

  .holo-stage {
    right: -24%;
    top: 18%;
    width: 86vw;
    opacity: 0.22;
  }

  .safety-note {
    grid-template-columns: 1fr;
  }

  .rule-list li {
    grid-template-columns: 1fr;
  }

  .bottom-cta,
  .generator-panel {
    padding: var(--space-4);
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
