:root {
  --bg: #060b14;
  --glass: rgba(8, 16, 32, 0.52);
  --glass-strong: rgba(8, 15, 28, 0.84);
  --border: rgba(148, 163, 184, 0.24);
  --text: #f1f5f9;
  --muted: #b0bfd4;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --violet: #a78bfa;
  --orange: #fb923c;
  --gold: #fbbf24;
  --blue: #60a5fa;
  --radius: 20px;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Cascadia Code", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 72% 36%, rgba(34, 211, 238, 0.14), transparent 46%),
              radial-gradient(circle at 22% 76%, rgba(167, 139, 250, 0.11), transparent 45%),
              var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  padding: 0.14em 0.45em;
  color: #a5f3fc;
}

/* Fullscreen 3D WebGL Canvas */
.stage-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.stage-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 42%, transparent 40%, rgba(5, 9, 18, 0.54) 100%),
    linear-gradient(180deg, rgba(6, 11, 20, 0.28) 0%, transparent 18%, transparent 84%, rgba(6, 11, 20, 0.68) 100%);
}

/* Top Sticky HUD */
.hud-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.75rem 1.25rem 0;
}

.hud-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.brand-parent { color: var(--muted); transition: color 0.2s; }
.brand-parent:hover { color: var(--cyan); }
.brand-slash { color: rgba(148, 163, 184, 0.45); }
.brand-here { font-weight: 700; color: var(--cyan); }

.hud-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  scrollbar-width: none;
}
.hud-nav::-webkit-scrollbar { display: none; }

.nav-pill {
  flex-shrink: 0;
  padding: 0.33rem 0.8rem;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.22s ease;
}
.nav-pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-pill.is-active {
  color: #06131f;
  background: linear-gradient(120deg, var(--cyan), var(--emerald));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
}

.hud-controls { display: flex; gap: 0.45rem; }

.ctrl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  transition: border-color 0.2s, transform 0.2s;
}
.ctrl-chip:hover { border-color: var(--cyan); transform: translateY(-1px); }
.ctrl-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-dot 1.8s infinite ease-in-out;
}
body[data-motion="lite"] .ctrl-chip .dot {
  background: var(--gold);
  box-shadow: none;
  animation: none;
}

/* Main Content Layer */
.content-layer {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

/* Hero Section */
.hero-section {
  min-height: calc(100vh - 6.5rem);
  display: flex;
  align-items: center;
  scroll-margin-top: 6rem;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.95fr);
  gap: 1.8rem;
  align-items: stretch;
}

.hero-copy {
  padding: 2rem 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.badge-cyan { color: #a5f3fc; background: rgba(34, 211, 238, 0.14); border-color: rgba(34, 211, 238, 0.45); }
.badge-emerald { color: #a7f3d0; background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.4); }
.badge-amber { color: #fde68a; background: rgba(251, 191, 36, 0.14); border-color: rgba(251, 191, 36, 0.4); }

.hero-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.8rem, 3.8vw, 2.95rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.grad-text {
  background: linear-gradient(90deg, var(--cyan), var(--emerald), var(--orange), var(--cyan));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-flow 6s linear infinite;
}

.hero-lead {
  margin: 0 0 1.45rem;
  font-size: 1rem;
  color: var(--muted);
}
.hero-lead strong { color: var(--text); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
  margin-bottom: 1.45rem;
}

.btn-primary,
.btn-ghost,
.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.68rem 1.15rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  border: none;
  color: #04131c;
  background: linear-gradient(125deg, var(--cyan), var(--emerald));
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(52, 211, 153, 0.48); }

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.58);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, 0.12); transform: translateY(-2px); }

.ico-spark { color: var(--cyan); }

/* Progress Meter */
.progress-box {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.42rem;
}
.progress-meta strong { color: var(--emerald); font-family: var(--font-mono); }
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan), var(--orange));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Right Column: Open 3D Viewport Frame + Dock */
.hero-stage-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}

.stage-hud-frame {
  position: relative;
  min-height: 210px;
  flex: 1;
  border-radius: 18px;
  border: 1px dashed rgba(56, 189, 248, 0.25);
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.04), transparent 72%);
  pointer-events: none;
  padding: 0.8rem;
}
.hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(34, 211, 238, 0.72);
  border-style: solid;
}
.hud-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.hud-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a5f3fc;
  background: rgba(6, 15, 29, 0.68);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.tel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 1.4s infinite ease-in-out;
}

.station-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.dock-node {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.dock-node:hover { transform: translateY(-3px); }
.dock-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.76rem;
}
.dock-text strong { display: block; font-size: 0.85rem; line-height: 1.25; }
.dock-text small { color: var(--muted); font-size: 0.73rem; }

.dock-emerald .dock-num { background: rgba(52, 211, 153, 0.2); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.45); }
.dock-emerald:hover { border-color: var(--emerald); box-shadow: 0 8px 22px rgba(52, 211, 153, 0.2); }
.dock-violet .dock-num { background: rgba(167, 139, 250, 0.2); color: var(--violet); border: 1px solid rgba(167, 139, 250, 0.45); }
.dock-violet:hover { border-color: var(--violet); box-shadow: 0 8px 22px rgba(167, 139, 250, 0.2); }
.dock-orange .dock-num { background: rgba(251, 146, 60, 0.2); color: var(--orange); border: 1px solid rgba(251, 146, 60, 0.45); }
.dock-orange:hover { border-color: var(--orange); box-shadow: 0 8px 22px rgba(251, 146, 60, 0.2); }
.dock-gold .dock-num { background: rgba(251, 191, 36, 0.2); color: var(--gold); border: 1px solid rgba(251, 191, 36, 0.45); }
.dock-gold:hover { border-color: var(--gold); box-shadow: 0 8px 22px rgba(251, 191, 36, 0.2); }

/* Section Headers */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.section-head h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.sub-line { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Steps Stack */
.steps-section { scroll-margin-top: 6rem; }
.steps-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.45rem;
}

.step-card {
  padding: 1.55rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scroll-margin-top: 6rem;
}
.step-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.35; }
.analogy { margin: 0; font-size: 0.92rem; color: var(--muted); }
.analogy strong { color: var(--text); }

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.step-badges { display: flex; align-items: center; gap: 0.5rem; }
.step-no {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}
.pill-role { font-size: 0.78rem; color: var(--muted); }

.done-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
}
.done-toggle input { accent-color: var(--emerald); cursor: pointer; }

.accent-emerald { border-top: 2px solid rgba(52, 211, 153, 0.65); }
.accent-emerald .step-no { color: var(--emerald); background: rgba(52, 211, 153, 0.14); }
.accent-violet { border-top: 2px solid rgba(167, 139, 250, 0.65); }
.accent-violet .step-no { color: var(--violet); background: rgba(167, 139, 250, 0.14); }
.accent-orange { border-top: 2px solid rgba(251, 146, 60, 0.65); }
.accent-orange .step-no { color: var(--orange); background: rgba(251, 146, 60, 0.14); }
.accent-gold { border-top: 2px solid rgba(251, 191, 36, 0.7); }
.accent-gold .step-no { color: var(--gold); background: rgba(251, 191, 36, 0.16); }

.mini-grid { display: flex; flex-direction: column; gap: 0.65rem; }

.code-box {
  background: rgba(5, 10, 20, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 0.68rem 0.85rem;
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  color: var(--muted);
}
.code-box code {
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  color: #67e8f9;
  font-size: 0.83rem;
  overflow-x: auto;
  white-space: nowrap;
}

.sim-terminal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: rgba(6, 78, 59, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.32);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.sim-prompt { color: var(--emerald); font-weight: 700; flex-shrink: 0; }
.sim-output { color: #d1fae5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.copy-btn {
  flex-shrink: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 7px;
  padding: 0.18rem 0.55rem;
  transition: background 0.18s;
}
.copy-btn:hover { background: rgba(56, 189, 248, 0.3); }
.copy-btn.is-copied { color: #052e16; background: var(--emerald); border-color: var(--emerald); }

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.78rem;
}
.flow-pill {
  padding: 0.32rem 0.62rem;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.callout-bar {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.35);
  font-size: 0.84rem;
}

.domain-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.perk-chip {
  padding: 0.58rem 0.68rem;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.28);
}
.perk-chip strong { display: block; font-size: 0.8rem; color: #fde68a; }
.perk-chip small { font-size: 0.72rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 0.15rem; }

.step-footer {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.btn-3d {
  font-size: 0.8rem;
  padding: 0.48rem 0.9rem;
  border: 1px solid rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
}
.btn-3d:hover { background: rgba(34, 211, 238, 0.24); transform: translateY(-1px); }

.ext-link { font-size: 0.84rem; font-weight: 700; color: var(--cyan); }
.ext-link:hover { text-decoration: underline; }

/* Models Section */
.models-section { scroll-margin-top: 6rem; }

.combo-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}
.combo-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 18, 34, 0.72);
  color: var(--muted);
  transition: all 0.2s ease;
}
.combo-btn:hover { color: var(--text); border-color: var(--cyan); }
.combo-btn.is-active {
  color: #05161f;
  background: linear-gradient(120deg, var(--emerald), var(--cyan));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(52, 211, 153, 0.35);
}

.combo-verdict {
  max-width: 820px;
  margin: 0 auto 1.65rem;
  padding: 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  border-color: rgba(52, 211, 153, 0.45);
}
.verdict-tag { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--emerald); letter-spacing: 0.08em; }
.combo-verdict strong { font-size: 1.02rem; }
.combo-verdict p { margin: 0; font-size: 0.87rem; color: var(--muted); }

.models-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.model-card {
  padding: 1.45rem 1.6rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.model-card:hover { border-color: rgba(56, 189, 248, 0.55); }
.model-card.is-selected {
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.55), 0 22px 54px rgba(16, 185, 129, 0.18);
}

.model-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.rank-badge { font-size: 0.76rem; font-weight: 800; padding: 0.24rem 0.66rem; border-radius: 999px; }
.rank-1 { background: rgba(52, 211, 153, 0.2); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.45); }
.rank-2 { background: rgba(96, 165, 250, 0.2); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.45); }
.rank-3 { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.rank-4 { background: rgba(192, 132, 252, 0.18); color: #d8b4fe; border: 1px solid rgba(192, 132, 252, 0.45); }

.price-tag { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); font-weight: 700; }
.model-card h3 { margin: 0; font-size: 1.15rem; }
.model-sub { margin: -0.35rem 0 0; font-family: var(--font-mono); font-size: 0.77rem; color: var(--muted); }

.stat-bars { list-style: none; padding: 0; margin: 0.2rem 0; display: flex; flex-direction: column; gap: 0.46rem; }
.stat-bars li { display: grid; grid-template-columns: 108px 1fr 28px; align-items: center; gap: 0.6rem; font-size: 0.8rem; }
.stat-bars span { color: var(--muted); }
.stat-bars b { font-family: var(--font-mono); text-align: right; font-size: 0.77rem; }
.bar { height: 8px; border-radius: 999px; background: rgba(15, 23, 42, 0.85); overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.16); }
.bar i { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--emerald)); transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1); }

.model-note { margin: 0; font-size: 0.86rem; color: var(--muted); }
.model-note strong { color: var(--text); }

/* Footer */
.site-footer {
  padding: 1.2rem 1.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.86rem; font-weight: 700; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { margin: 0; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }

.page-404 { display: grid; place-items: center; padding: 1.5rem; }
.notfound-card { max-width: 460px; padding: 2rem; text-align: center; }

@keyframes text-flow {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@media (max-width: 960px) {
  .hero-grid,
  .steps-stack,
  .models-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    min-height: auto;
    padding-top: 0.6rem;
  }
  .stage-hud-frame {
    min-height: 150px;
  }
  .domain-perks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hud-bar {
    padding: 0.45rem 0.65rem 0;
  }
  .hud-inner {
    border-radius: 14px;
    padding: 0.5rem 0.75rem;
    gap: 0.45rem;
  }
  .hud-nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 0.15rem;
  }
  .hero-section,
  .steps-section,
  .step-card,
  .models-section {
    scroll-margin-top: 7.5rem;
  }
  .station-dock {
    grid-template-columns: 1fr;
  }
  .hero-copy,
  .step-card,
  .model-card {
    padding: 1.2rem;
  }
  .stat-bars li {
    grid-template-columns: 94px 1fr 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grad-text, .ctrl-chip .dot, .tel-dot { animation: none; }
  .glass-panel, .bar i { transition: none; }
}
