/* ============================================================
   PROJECT CHIMERA — Neo-Noir Glitchwave Landing
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111118;
  --bg-card: #0d0d14;
  --mid-blue: #001f3f;
  --dark-purple: #1a0a1a;

  --neon-cyan: #00f0ff;
  --neon-pink: #ff00aa;
  --neon-green: #39ff14;
  --neon-yellow: #f0ff00;
  --neon-purple: #b000ff;

  --text: #e8e8f0;
  --text-dim: #8a8a9a;
  --text-muted: #5a5a6a;
  --silver: #a0a0b0;
  --white: #ffffff;

  --font-display: "Orbitron", sans-serif;
  --font-head: "Rajdhani", sans-serif;
  --font-mono: "Share Tech Mono", monospace;

  --header-h: 72px;
  --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-glitch: steps(2, end);

  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.15);
  --glow-pink: 0 0 20px rgba(255, 0, 170, 0.4), 0 0 60px rgba(255, 0, 170, 0.15);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-head);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: crosshair;
}

body.is-loading { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; border: none; background: none; }
ul { list-style: none; }
em { font-style: normal; color: var(--neon-cyan); }

::selection {
  background: rgba(0, 240, 255, 0.3);
  color: var(--white);
}

:focus-visible {
  outline: 1px solid var(--neon-cyan);
  outline-offset: 3px;
}

/* --- Utilities --- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* --- Overlays --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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: 200px;
  mix-blend-mode: overlay;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #050508;
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 240, 255, 0.03) 1px,
    rgba(0, 240, 255, 0.03) 2px
  );
  animation: scan-move 8s linear infinite;
}

@keyframes scan-move {
  to { background-position: 0 100px; }
}

.loader__content {
  position: relative;
  width: min(90vw, 420px);
  text-align: center;
}

.loader__logo {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 2rem;
}

.loader__logo span {
  color: var(--neon-pink);
  text-shadow: var(--glow-pink);
}

.loader__bar {
  height: 2px;
  background: rgba(0, 240, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  box-shadow: var(--glow-cyan);
  transition: width 0.15s linear;
}

.loader__status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1rem;
  letter-spacing: 0.1em;
}

.loader__hex {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  min-height: 1.2em;
  letter-spacing: 0.05em;
  word-break: break-all;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.7);
  transition: background 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 1px 0 rgba(0, 240, 255, 0.15);
}

.header__inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-pink), transparent);
  opacity: 0.4;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  position: relative;
  z-index: 1001;
}

.logo__bracket { color: var(--neon-pink); }
.logo__text {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.logo__ver {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-left: 0.4rem;
}
.logo--sm { font-size: 0.95rem; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 0.5rem 0.85rem;
  position: relative;
  transition: color 0.25s;
}

.nav__link::before {
  content: attr(data-section);
  display: block;
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
  letter-spacing: 0.05em;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.nav__link--cta {
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  margin-left: 0.5rem;
}

.nav__link--cta:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: var(--glow-cyan);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--neon-cyan);
  transition: transform 0.3s, opacity 0.3s;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding: 0.95rem 1.75rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, color 0.2s;
  clip-path: polygon(
    0 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
}

.btn__text { position: relative; z-index: 2; }
.btn__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 0, 170, 0.15));
  z-index: 0;
}
.btn__glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.btn--primary {
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.08), 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn--primary:hover {
  color: var(--bg);
  transform: translateY(-2px);
}

.btn--primary:hover .btn__bg {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
}

.btn--primary:hover .btn__glow { opacity: 1; }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-dim);
  clip-path: none;
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 0, 170, 0.5);
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 0.85rem;
}

/* --- Glitch text --- */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text:hover::before,
.glitch-text:hover::after,
.glitch-text.is-glitching::before,
.glitch-text.is-glitching::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.glitch-text:hover::before,
.glitch-text.is-glitching::before {
  color: var(--neon-cyan);
  transform: translate(-2px, 1px);
  clip-path: inset(0 0 55% 0);
  animation: glitch-1 0.3s var(--ease-glitch) infinite;
}

.glitch-text:hover::after,
.glitch-text.is-glitching::after {
  color: var(--neon-pink);
  transform: translate(2px, -1px);
  clip-path: inset(45% 0 0 0);
  animation: glitch-2 0.3s var(--ease-glitch) infinite;
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(-2px, 1px); clip-path: inset(0 0 55% 0); }
  50% { transform: translate(3px, -1px); clip-path: inset(20% 0 30% 0); }
}
@keyframes glitch-2 {
  0%, 100% { transform: translate(2px, -1px); clip-path: inset(45% 0 0 0); }
  50% { transform: translate(-3px, 2px); clip-path: inset(10% 0 50% 0); }
}

/* --- Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  gap: 2rem;
  z-index: 2;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  to { background-position: 60px 60px; }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0, 240, 255, 0.06), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255, 0, 170, 0.05), transparent),
    linear-gradient(to bottom, transparent 60%, var(--bg));
  pointer-events: none;
}

.hero__hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 3;
}

.hero__hud--tl { top: calc(var(--header-h) + 1.5rem); left: 1.5rem; }
.hero__hud--tr { top: calc(var(--header-h) + 1.5rem); right: 1.5rem; text-align: right; }
.hero__hud--bl { bottom: 5rem; left: 1.5rem; }
.hero__hud--br { bottom: 5rem; right: 1.5rem; text-align: right; }

.hud-label { color: var(--text-muted); opacity: 0.7; }
.hud-value { color: var(--neon-cyan); }
.hud-value--live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--neon-green);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hud-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.hud-bars i {
  display: block;
  width: 3px;
  background: var(--neon-cyan);
  box-shadow: 0 0 4px var(--neon-cyan);
  animation: bar-bounce 1.2s ease-in-out infinite;
}

.hud-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.hud-bars i:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.hud-bars i:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.hud-bars i:nth-child(4) { height: 55%; animation-delay: 0.45s; }
.hud-bars i:nth-child(5) { height: 80%; animation-delay: 0.6s; }

@keyframes bar-bounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-left: max(1.5rem, calc((100vw - var(--container)) / 2));
  padding-right: 1rem;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--neon-pink);
  margin-bottom: 1.25rem;
}

.tag-bracket { opacity: 0.5; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero__title > .glitch-text {
  display: block;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.25);
}

.hero__title-sub {
  display: block;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.hero__lead {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-dim);
  max-width: 32em;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.stat__unit {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--neon-cyan);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero__visual {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  padding-right: max(1.5rem, calc((100vw - var(--container)) / 2));
}

.hex-core {
  position: relative;
  width: min(420px, 45vw);
  aspect-ratio: 1;
  color: var(--neon-cyan);
}

.hex-core__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50%;
}

.hex-core__ring--1 {
  animation: spin 20s linear infinite;
  border-style: dashed;
  border-color: rgba(0, 240, 255, 0.3);
}

.hex-core__ring--2 {
  inset: 12%;
  animation: spin 14s linear infinite reverse;
  border-color: rgba(255, 0, 170, 0.25);
  border-style: dotted;
}

.hex-core__ring--3 {
  inset: 24%;
  animation: spin 10s linear infinite;
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.08), 0 0 40px rgba(0, 240, 255, 0.08);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hex-core__center {
  position: absolute;
  inset: 28%;
  display: grid;
  place-items: center;
}

.hex-core__svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.5));
  animation: hex-pulse 3s ease-in-out infinite;
}

@keyframes hex-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.hex-core__data {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hex-core__data span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}

.hex-core__data span:nth-child(1) {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--neon-pink);
}

.hex-core__data span:nth-child(2) {
  bottom: 18%;
  left: -5%;
  color: var(--neon-cyan);
}

.hex-core__data span:nth-child(3) {
  bottom: 18%;
  right: -5%;
  color: var(--neon-green);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.scroll-hint__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--neon-cyan), transparent);
  animation: scroll-line 1.5s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.5; }
}

/* --- Sections common --- */
.section {
  position: relative;
  padding: 7rem 0;
  z-index: 2;
}

.section__bg-label {
  position: absolute;
  top: 2rem;
  right: max(1rem, calc((100vw - var(--container)) / 2 - 1rem));
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 240, 255, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.section__header {
  margin-bottom: 3.5rem;
  max-width: 720px;
}

.section__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--neon-pink);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* --- Prologue --- */
.prologue {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(26, 10, 26, 0.4) 50%, var(--bg) 100%);
}

.prologue__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.prologue__text p {
  margin-bottom: 1.25rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.85;
}

.prologue__text strong {
  color: var(--neon-cyan);
  font-weight: 600;
}

.prologue__highlight {
  font-family: var(--font-mono);
  font-size: 0.95rem !important;
  color: var(--neon-green) !important;
  border-left: 2px solid var(--neon-green);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

.data-viz {
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 20, 30, 0.5);
  backdrop-filter: blur(8px);
  padding: 1.25rem;
  position: relative;
}

.data-viz::before,
.data-viz::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--neon-cyan);
  border-style: solid;
}
.data-viz::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.data-viz::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

.data-viz__header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.blink {
  color: var(--neon-pink);
  animation: pulse 1s step-end infinite;
}

.data-viz__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 180px;
  margin-bottom: 1.25rem;
}

.data-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, rgba(0, 240, 255, 0.05), rgba(0, 240, 255, 0.5));
  border: 1px solid rgba(0, 240, 255, 0.3);
  position: relative;
  transition: height 1s var(--ease-out);
  animation: bar-grow 1.2s var(--ease-out) backwards;
}

.data-bar--alert {
  background: linear-gradient(to top, rgba(255, 0, 170, 0.05), rgba(255, 0, 170, 0.5));
  border-color: rgba(255, 0, 170, 0.4);
}

.data-bar span {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

@keyframes bar-grow {
  from { height: 0; }
}

.data-viz__footer code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-pink);
  letter-spacing: 0.05em;
}

/* --- Features --- */
.solution {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 31, 63, 0.35), transparent);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.08);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 48px;
  height: 48px;
  color: var(--neon-cyan);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
  transition: color 0.3s, transform 0.3s;
}

.feature-card:hover .feature-card__icon {
  color: var(--neon-pink);
  transform: scale(1.08);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.feature-card__code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-pink);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.feature-card__desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.feature-card__meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Architecture --- */
.architecture {
  background:
    linear-gradient(180deg, transparent, rgba(0, 31, 63, 0.2), transparent);
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
}

.arch-layer {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(10, 15, 25, 0.6);
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.arch-layer:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: var(--glow-cyan);
}

.arch-layer__num {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  border-right: 1px solid rgba(0, 240, 255, 0.15);
  letter-spacing: 0.1em;
}

.arch-layer__body {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.arch-layer__body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.arch-layer__body p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.arch-layer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.arch-layer__tags span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 0, 170, 0.3);
  color: var(--neon-pink);
  background: rgba(255, 0, 170, 0.05);
}

.arch-connector {
  display: flex;
  justify-content: center;
  height: 28px;
}

.arch-connector span {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-pink));
  position: relative;
}

.arch-connector span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--neon-pink);
}

/* Terminal */
.terminal {
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: #06060c;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.terminal__dots {
  display: flex;
  gap: 6px;
}

.terminal__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.terminal__dots i:nth-child(1) { background: #ff5f57; }
.terminal__dots i:nth-child(2) { background: #febc2e; }
.terminal__dots i:nth-child(3) { background: #28c840; }

.terminal__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.terminal__body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
}

.terminal__line { color: var(--text-dim); }
.t-prompt { color: var(--neon-green); margin-right: 0.5rem; }
.t-cmd { color: var(--text); }
.t-out { color: var(--neon-cyan); }
.t-err { color: var(--neon-pink); }
.t-dim { color: var(--text-muted); }

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--neon-cyan);
  vertical-align: text-bottom;
  animation: pulse 0.8s step-end infinite;
  margin-left: 2px;
}

/* --- Roadmap / Timeline --- */
.roadmap {
  background: radial-gradient(ellipse 60% 40% at 30% 50%, rgba(176, 0, 255, 0.06), transparent);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline__track {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-pink), transparent);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__node {
  position: relative;
  padding-left: 2rem;
}

.timeline__dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  background: var(--bg);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  z-index: 1;
}

.timeline__dot--future {
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 0, 170, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.timeline__phase {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
}

.timeline__content {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 13, 20, 0.6);
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.timeline__item:hover .timeline__content {
  border-color: rgba(0, 240, 255, 0.3);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--neon-pink);
  display: block;
  margin-bottom: 0.5rem;
}

.timeline__content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.timeline__content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- CTA Section --- */
.cta-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 240, 255, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(255, 0, 170, 0.06), transparent);
  pointer-events: none;
}

.cta-box {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: 3.5rem 2.5rem;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(10, 12, 20, 0.85);
  backdrop-filter: blur(16px);
}

.cta-box__corners i {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--neon-cyan);
  border-style: solid;
}

.cta-box__corners i:nth-child(1) {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.cta-box__corners i:nth-child(2) {
  top: -1px; right: -1px;
  border-width: 2px 2px 0 0;
}
.cta-box__corners i:nth-child(3) {
  bottom: -1px; left: -1px;
  border-width: 0 0 2px 2px;
}
.cta-box__corners i:nth-child(4) {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

.cta-box__code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--neon-pink);
  margin-bottom: 1rem;
}

.cta-box__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
}

.cta-box__lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 0.75rem 0.5rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.04);
}

.countdown__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.countdown__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.countdown__sep {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--neon-pink);
  margin-bottom: 1rem;
  animation: pulse 1s step-end infinite;
}

/* Form */
.register-form__row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.form-field {
  flex: 1;
  text-align: left;
  position: relative;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-field input {
  width: 100%;
  padding: 0.95rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-field input::placeholder { color: var(--text-muted); }

.form-field input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: var(--neon-pink);
}

.register-form__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.register-form__note a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--neon-green);
  background: rgba(57, 255, 20, 0.05);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  animation: success-in 0.5s var(--ease-out);
}

.form-success__icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-success code {
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.register-form.is-done .register-form__row,
.register-form.is-done .register-form__note {
  display: none;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  background: rgba(5, 5, 8, 0.9);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--neon-cyan);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.social-link:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.footer__copy {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

/* --- Sound toggle --- */
.sound-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(10, 10, 10, 0.85);
  color: var(--text-dim);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.sound-toggle:hover,
.sound-toggle[aria-pressed="true"] {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 6rem;
  }

  .hero__content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
  }

  .hero__lead { margin-inline: auto; }

  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }

  .hero__visual {
    padding: 2rem 1.5rem 0;
    order: -1;
  }

  .hex-core {
    width: min(280px, 70vw);
  }

  .hero__hud--bl,
  .hero__hud--br { bottom: 1.5rem; }

  .prologue__grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .hamburger { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.97);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    z-index: 1000;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav__link {
    font-size: 1rem;
    padding: 1rem 2rem;
    text-align: center;
  }

  .nav__link::before {
    font-size: 0.65rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .section { padding: 5rem 0; }

  .register-form__row {
    flex-direction: column;
  }

  .countdown__unit { min-width: 52px; padding: 0.5rem 0.35rem; }
  .countdown__num { font-size: 1.25rem; }

  .cta-box { padding: 2.5rem 1.25rem; }

  .arch-layer {
    grid-template-columns: 56px 1fr;
    gap: 1rem;
  }

  .arch-layer__num { font-size: 1rem; }
  .arch-layer__body { padding: 1.25rem 1rem 1.25rem 0; }

  .hero__hud { font-size: 0.55rem; }
  .hero__hud--tl,
  .hero__hud--tr { top: calc(var(--header-h) + 0.75rem); }

  .data-viz__bars { height: 140px; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 1.5rem; }
  .stat__num { font-size: 1.35rem; }
  .btn { padding: 0.85rem 1.25rem; font-size: 0.7rem; }
  .countdown { gap: 0.25rem; }
  .countdown__sep { font-size: 1rem; }
}

/* Reduced motion */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow { display: none; }
}
