/* ==========================================================================
   ArcadeLink Official Site V2
   Awwwards-grade immersive canvas experience
   Icons: Lucide only · No emoji
   ========================================================================== */

:root {
  --void: #02080f;
  --ink: #061018;
  --panel: #0a1624;
  --panel-2: #0e1e30;
  --line: rgba(120, 180, 220, 0.14);
  --line-strong: rgba(80, 200, 255, 0.35);
  --text: #edf6ff;
  --muted: #7f9cb4;
  --dim: #4d6880;
  --cyan: #2de2ff;
  --cyan-2: #7af0ff;
  --magenta: #ff3d9a;
  --violet: #8b5cff;
  --gold: #f5c542;
  --font-display: "Syne", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --chrome-h: 72px;
  --max: 1280px;
  --cursor-size: 10px;
  --ring-size: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  background: var(--void);
}
html.has-smooth { scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--void);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
body.is-touch { cursor: auto; }
body.is-touch .cursor { display: none !important; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: none;
}
body.is-touch button,
body.is-touch a { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; }
p { margin: 0; }
strong { font-weight: 700; }

/* Selection */
::selection {
  background: rgba(45, 226, 255, 0.28);
  color: #fff;
}

/* Ambient layers */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 40%, rgba(2, 8, 15, 0.75) 100%);
}
.field-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor-dot {
  position: absolute;
  width: var(--cursor-size);
  height: var(--cursor-size);
  margin: calc(var(--cursor-size) / -2) 0 0 calc(var(--cursor-size) / -2);
  border-radius: 50%;
  background: #fff;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0);
}
.cursor-ring {
  position: absolute;
  width: var(--ring-size);
  height: var(--ring-size);
  margin: calc(var(--ring-size) / -2) 0 0 calc(var(--ring-size) / -2);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) scale(var(--rs, 1));
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out), border-color 0.25s;
}
.cursor.is-hover .cursor-ring {
  --ring-size: 64px;
  border-color: var(--cyan);
  background: rgba(45, 226, 255, 0.08);
}
.cursor.is-down .cursor-ring { --rs: 0.85; }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  background: var(--void);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  width: min(420px, 86vw);
  text-align: center;
}
.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.loader-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(45, 226, 255, 0.35);
  animation: logoPulse 1.6s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(45, 226, 255, 0.25); transform: scale(1); }
  50% { box-shadow: 0 0 48px rgba(45, 226, 255, 0.5); transform: scale(1.03); }
}
.loader-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  color: var(--muted);
}
.loader-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 16px rgba(45, 226, 255, 0.6);
  transition: width 0.15s linear;
}
.loader-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}

/* Chrome header */
.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--chrome-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 3vw, 40px);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.chrome.is-solid {
  background: rgba(2, 8, 15, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.chrome-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  z-index: 2;
}
.chrome-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 18px rgba(45, 226, 255, 0.3);
}
.chrome-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.chrome-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.chrome-nav a:hover,
.chrome-nav a.is-active {
  color: var(--text);
  background: rgba(45, 226, 255, 0.08);
}
.nav-idx {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  opacity: 0.7;
}
.chrome-end {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.chip:hover {
  border-color: var(--line-strong);
  color: var(--cyan-2);
  background: rgba(45, 226, 255, 0.06);
}
.chip svg { width: 16px; height: 16px; }
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.nav-burger svg {
  width: 20px;
  height: 20px;
  position: absolute;
}
.nav-burger .icon-close { opacity: 0; transform: scale(0.6); }
.nav-burger[aria-expanded="true"] .icon-menu { opacity: 0; transform: scale(0.6); }
.nav-burger[aria-expanded="true"] .icon-close { opacity: 1; transform: scale(1); }
.nav-burger svg { transition: opacity 0.2s, transform 0.2s; }

/* Progress rail */
.progress-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 110;
  background: transparent;
  pointer-events: none;
}
.progress-rail-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px rgba(45, 226, 255, 0.5);
}

/* HUD */
.hud {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  opacity: 0.7;
}
.hud-item {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}
.hud-k { color: var(--dim); }
.hud-v { color: var(--cyan); min-width: 4.5em; text-align: right; }

/* Stages */
main { position: relative; z-index: 2; }
.stage {
  position: relative;
  padding: clamp(80px, 12vw, 140px) clamp(16px, 4vw, 48px);
}
.stage-hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--chrome-h) + 24px);
  padding-bottom: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
}

/* Hero */
.hero-orbits {
  position: absolute;
  inset: 10% 5% auto auto;
  width: min(520px, 50vw);
  height: min(520px, 50vw);
  pointer-events: none;
  z-index: -1;
}
.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(45, 226, 255, 0.12);
  animation: spin 40s linear infinite;
}
.orbit-b {
  inset: 12%;
  border-color: rgba(255, 61, 154, 0.12);
  animation-direction: reverse;
  animation-duration: 28s;
}
.orbit::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}
.orbit-b::before {
  background: var(--magenta);
  box-shadow: 0 0 16px var(--magenta);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 28px;
  padding: 8px 14px;
  border: 1px solid rgba(45, 226, 255, 0.25);
  border-radius: 999px;
  background: rgba(45, 226, 255, 0.05);
}
.hero-eyebrow svg { width: 14px; height: 14px; }

.hero-title {
  margin-bottom: 28px;
  perspective: 800px;
}
.hero-line {
  display: block;
  overflow: hidden;
}
.hero-line .word {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 12vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  transform-origin: left bottom;
}
.word-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(237, 246, 255, 0.85);
  background: linear-gradient(120deg, transparent 40%, rgba(45, 226, 255, 0.15) 50%, transparent 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.line-b { margin-top: -0.06em; }

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  max-width: 28em;
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn-magnet {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
}
.btn-magnet-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--cyan), #1ec8f0 40%, var(--magenta));
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
  z-index: -1;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn-magnet-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #031018;
  letter-spacing: 0.02em;
}
.btn-magnet-label svg { width: 18px; height: 18px; }
.btn-magnet:hover .btn-magnet-label { letter-spacing: 0.04em; }

.btn-ghost-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s, gap 0.25s;
}
.btn-ghost-line svg { width: 18px; height: 18px; color: var(--cyan); transition: transform 0.3s var(--ease-out); }
.btn-ghost-line:hover {
  color: var(--cyan-2);
  border-bottom-color: rgba(45, 226, 255, 0.4);
  gap: 14px;
}
.btn-ghost-line:hover svg { transform: translate(2px, -2px); }

/* Hero side panel */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.hero-panel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(45, 226, 255, 0.08),
    0 0 60px rgba(45, 226, 255, 0.12);
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-panel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-panel-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.18) 0%, transparent 40%, transparent 60%, rgba(45,226,255,0.1) 100%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: soft-light;
}
.hero-panel-meta {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-panel-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  background: rgba(2, 8, 15, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  color: var(--cyan-2);
}
.hero-panel-meta svg { width: 12px; height: 12px; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero-metrics li {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(10, 22, 36, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.hero-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--cyan);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.hero-metrics span {
  font-size: 0.72rem;
  color: var(--dim);
  line-height: 1.3;
}

.hero-marquee {
  grid-column: 1 / -1;
  margin: 48px calc(-1 * clamp(16px, 4vw, 48px)) 0;
  border-block: 1px solid var(--line);
  background: rgba(5, 14, 24, 0.55);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 16px 0;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--dim);
  text-transform: uppercase;
}
.marquee-track span { white-space: nowrap; }
.marquee-track span:nth-child(odd) { color: rgba(45, 226, 255, 0.45); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Stage headers */
.stage-head {
  max-width: var(--max);
  margin: 0 auto 48px;
}
.stage-head-inline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: end;
}
.stage-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  align-self: start;
  padding-top: 8px;
}
.stage-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.t-block {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.9;
}
.t-fluid {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: 22em;
}

/* Protocol horizontal rail — vertical scroll scrubs horizontal cinema */
.stage-protocol {
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}
.stage-sticky {
  position: sticky;
  top: 0;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--chrome-h) + 32px) 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 8, 15, 0.2), rgba(2, 8, 15, 0.55));
  backdrop-filter: blur(2px);
}
.stage-sticky .stage-head {
  padding: 0 clamp(16px, 4vw, 48px);
  margin-bottom: 28px;
}
.protocol-viewport {
  overflow: hidden;
  margin-top: 20px;
}
.protocol-rail {
  display: flex;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 48px) 28px;
  width: max-content;
  will-change: transform;
}
.proto-card {
  width: min(340px, 78vw);
  min-height: 360px;
  padding: 32px 28px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(45, 226, 255, 0.06), transparent 50%),
    var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.proto-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}
.proto-card:hover {
  border-color: rgba(45, 226, 255, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(45, 226, 255, 0.08);
}
.proto-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(45, 226, 255, 0.1);
  border: 1px solid rgba(45, 226, 255, 0.22);
  color: var(--cyan);
  margin-bottom: 8px;
}
.proto-icon svg { width: 24px; height: 24px; }
.proto-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.proto-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  line-height: 1.7;
}
.proto-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.proto-progress {
  height: 2px;
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  width: calc(100% - clamp(32px, 8vw, 96px));
  overflow: hidden;
}
.proto-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

/* Signal timeline */
.signal-timeline {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.signal-node {
  position: relative;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.signal-frame {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sf-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.sf-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  background: linear-gradient(180deg, var(--text) 0%, rgba(237, 246, 255, 0.15) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.signal-body {
  padding: 24px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 200px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.signal-node:hover .signal-body {
  border-color: rgba(45, 226, 255, 0.35);
  transform: translateY(-4px);
}
.signal-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(45, 226, 255, 0.08);
  margin-bottom: 14px;
}
.signal-icon svg { width: 20px; height: 20px; }
.signal-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.signal-body p {
  color: var(--muted);
  font-size: 0.92rem;
}
.signal-line {
  position: absolute;
  top: 2.6rem;
  right: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(45, 226, 255, 0.5), rgba(255, 61, 154, 0.2));
  z-index: -1;
  transform: translateX(50%);
}
.signal-node:last-child .signal-line { display: none; }

/* Catalog */
.catalog-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.cat-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.3s;
}
.cat-card:hover {
  border-color: rgba(45, 226, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.cat-featured {
  grid-row: span 2;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, transparent 10%, rgba(2, 8, 15, 0.92) 70%),
    linear-gradient(135deg, #3a1020 0%, #0a2040 55%, #061828 100%);
  border-color: rgba(45, 226, 255, 0.22);
}
.cat-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255, 61, 154, 0.25), transparent 45%),
    radial-gradient(ellipse at 10% 90%, rgba(45, 226, 255, 0.18), transparent 50%);
  pointer-events: none;
}
.cat-featured > * { position: relative; z-index: 1; }
.cat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
  padding-bottom: 40px;
}
.cat-code {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(45, 226, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(45, 226, 255, 0.25);
  margin-bottom: 16px;
}
.cat-badge svg { width: 14px; height: 14px; }
.cat-badge.muted {
  background: rgba(127, 156, 180, 0.1);
  color: var(--muted);
  border-color: var(--line);
}
.cat-badge.accent {
  background: rgba(255, 61, 154, 0.12);
  color: #ff7ab8;
  border-color: rgba(255, 61, 154, 0.3);
}
.cat-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.cat-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--dim);
}
.cat-list svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
  flex-shrink: 0;
}
.cat-native {
  background:
    linear-gradient(145deg, rgba(139, 92, 255, 0.12), transparent 50%),
    var(--panel);
}
.catalog-note {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--dim);
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(10, 22, 36, 0.4);
}
.catalog-note svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Stack */
.stack-board {
  max-width: var(--max);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.stack-node {
  padding: 28px 20px;
  border-radius: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.stack-node:hover {
  transform: translateY(-4px);
}
.stack-client {
  background: rgba(45, 226, 255, 0.06);
  border-color: rgba(45, 226, 255, 0.28);
}
.stack-server {
  background: rgba(255, 61, 154, 0.06);
  border-color: rgba(255, 61, 154, 0.28);
}
.stack-node svg {
  width: 28px;
  height: 28px;
  color: var(--cyan);
  margin-bottom: 6px;
}
.stack-server svg { color: #ff7ab8; }
.stack-node strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.stack-node span {
  font-size: 0.82rem;
  color: var(--muted);
}
.stack-pipes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pipe {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(45, 226, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
  position: relative;
}
.pipe small {
  color: var(--dim);
  font-size: 0.68rem;
  margin-top: 2px;
}
.stack-host {
  max-width: var(--max);
  margin: 0 auto 28px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 36, 0.5);
  text-align: center;
}
.stack-host-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.stack-host-label svg { width: 18px; height: 18px; color: var(--cyan); }
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.stack-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.82rem;
  color: var(--muted);
}
.stack-chips svg { width: 15px; height: 15px; color: var(--cyan); }

.stack-stats {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  text-align: center;
  padding: 28px 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.stat:hover {
  border-color: rgba(45, 226, 255, 0.35);
  transform: translateY(-3px);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Acquire */
.acquire-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}
.acq-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.3s;
  min-height: 280px;
}
.acq-card:hover {
  border-color: rgba(45, 226, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}
.acq-primary {
  background:
    linear-gradient(155deg, rgba(45, 226, 255, 0.14), transparent 45%),
    var(--panel);
  border-color: rgba(45, 226, 255, 0.3);
  box-shadow: 0 0 50px rgba(45, 226, 255, 0.08);
}
.acq-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(45, 226, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(45, 226, 255, 0.2);
}
.acq-icon svg { width: 22px; height: 22px; }
.acq-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.acq-card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.acq-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan);
  margin-top: 8px;
}
.acq-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}
.acq-card:hover .acq-cta svg { transform: translate(3px, -3px); }

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: rgba(45, 226, 255, 0.35); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-body {
  padding: 0 24px 22px;
}
.faq-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Finale */
.stage-finale {
  padding-bottom: clamp(100px, 14vw, 160px);
}
.finale-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px);
  border-radius: 28px;
  text-align: center;
  border: 1px solid rgba(45, 226, 255, 0.28);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(45, 226, 255, 0.16), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 61, 154, 0.12), transparent 50%),
    var(--panel);
  box-shadow: 0 0 80px rgba(45, 226, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.finale-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 24px;
}
.finale-kicker svg { width: 16px; height: 16px; }
.finale-title {
  margin-bottom: 36px;
}
.finale-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.finale-line.outline {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(237, 246, 255, 0.75);
  margin-top: 0.1em;
}
.finale-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(2, 8, 15, 0.85);
  padding: 64px clamp(16px, 4vw, 48px) 32px;
}
.footer-top {
  max-width: var(--max);
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-tag {
  color: var(--dim);
  font-size: 0.9rem;
}
.footer-cols {
  max-width: var(--max);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  color: var(--dim);
  font-size: 0.92rem;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--dim);
}

/* To top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.to-top[hidden] { display: none; }

/* Reveal system */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.reveal-line {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-line.is-in {
  opacity: 1;
  transform: none;
}
body.is-ready .hero-line .word {
  animation: wordIn 1.1s var(--ease-out) both;
}
body.is-ready .line-b .word { animation-delay: 0.12s; }
@keyframes wordIn {
  from {
    opacity: 0;
    transform: translate3d(0, 110%, 0) rotateX(-40deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ========== Inner pages ========== */
body[data-page="inner"] { cursor: none; }
body[data-page="inner"].is-touch { cursor: auto; }

.page-hero {
  position: relative;
  z-index: 2;
  padding: calc(var(--chrome-h) + 48px) clamp(16px, 4vw, 48px) 48px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(45, 226, 255, 0.1), transparent 70%);
}
.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.5; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.page-hero .lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38em;
  line-height: 1.7;
}
.page-content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px);
}
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2.2em 0 0.75em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.05rem;
  margin: 1.5em 0 0.5em;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
.prose p, .prose li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.2em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--text); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.15em 0.4em;
  background: rgba(45, 226, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--cyan-2);
}
.prose pre {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  margin: 0 0 1.25em;
}
.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.6;
}
.prose .callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(45, 226, 255, 0.22);
  background: rgba(45, 226, 255, 0.05);
  margin: 0 0 1.25em;
  color: var(--muted);
  font-size: 0.94rem;
}
.prose .callout svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}
.prose .callout.warn {
  border-color: rgba(245, 197, 66, 0.35);
  background: rgba(245, 197, 66, 0.06);
}
.prose .callout.warn svg { color: var(--gold); }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--cyan-2); }
.prose .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.5em;
}

.dl-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: 0.92rem;
}
.dl-table th, .dl-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
.dl-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.dl-table td { color: var(--text); }
.dl-table tr:hover td { background: rgba(45, 226, 255, 0.03); }

.page-footer-mini {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 0.82rem;
  background: rgba(2, 8, 15, 0.85);
}
.page-footer-mini a {
  color: var(--muted);
  margin-left: 12px;
}
.page-footer-mini a:hover { color: var(--cyan); }

/* Responsive */
@media (max-width: 1024px) {
  .chrome-nav { display: none; }
  .chrome-nav.is-open {
    display: flex;
    position: fixed;
    inset: var(--chrome-h) 0 auto 0;
    transform: none;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    background: rgba(2, 8, 15, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .chrome-nav.is-open a {
    padding: 14px 16px;
    border-radius: 12px;
  }
  .nav-burger { display: grid; }
  .stage-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 0;
  }
  .hero-side { order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-orbits { display: none; }
  .signal-timeline { grid-template-columns: 1fr; gap: 28px; }
  .signal-line { display: none; }
  .catalog-grid { grid-template-columns: 1fr; }
  .cat-featured { grid-row: auto; min-height: 320px; }
  .stack-board { grid-template-columns: 1fr; }
  .stack-pipes { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .stack-stats { grid-template-columns: repeat(2, 1fr); }
  .acquire-grid { grid-template-columns: 1fr; }
  .hud { display: none; }
}

@media (max-width: 640px) {
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-line .word { font-size: clamp(2.8rem, 16vw, 4rem); }
  .stage-head-inline { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .br-desk { display: none; }
  .chip span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  [data-reveal], .reveal-line { opacity: 1; transform: none; }
  body.is-ready .hero-line .word { animation: none; }
}
