:root {
  --bg: #020305;
  --surface: #070a0f;
  --surface-2: #0b1018;
  --line: rgba(255, 255, 255, 0.09);
  --line-acid: rgba(0, 255, 157, 0.38);
  --text: #f1f5f9;
  --muted: #7c8da6;
  --acid: #00ff9d;
  --lime: #b8ff00;
  --ice: #38e8ff;
  --crit: #ff2e55;
  --display: "Chakra Petch", "Space Grotesk", sans-serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.acid { color: var(--acid); text-shadow: 0 0 32px rgba(0, 255, 157, 0.35); }
.acid-sm { color: var(--acid); }
.ice-txt { color: var(--ice); }
.crit { color: var(--crit); }
.hidden { display: none !important; }

/* HUD Box with sharp corner brackets */
.hud-box {
  position: relative;
  background: rgba(7, 10, 15, 0.88);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.hud-box::before,
.hud-box::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.hud-box::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--acid);
  border-left: 2px solid var(--acid);
}
.hud-box::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--ice);
  border-right: 2px solid var(--ice);
}

/* Fixed HUD Topbar */
.hud-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(2, 3, 5, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.hud-nav-inner {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}
.logo-hex { width: 30px; height: 30px; display: block; filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.35)); }
.logo-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.1em;
}
.logo-word .zero { color: var(--acid); }
.logo-chip {
  font-size: 10px;
  font-weight: 700;
  color: var(--ice);
  border: 1px solid rgba(56, 232, 255, 0.35);
  background: rgba(56, 232, 255, 0.08);
  padding: 2px 6px;
  border-radius: 2px;
}

.nav-links { display: flex; gap: 22px; font-size: 11px; letter-spacing: 0.12em; }
.nav-links a { color: var(--muted); text-decoration: none; transition: 0.15s; }
.nav-links a:hover { color: var(--acid); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  margin-right: 6px;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.28; } }

.ca-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 255, 157, 0.07);
  border: 1px solid var(--line-acid);
  color: var(--acid);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 3px;
  cursor: pointer;
}
.ca-pill:hover { background: rgba(0, 255, 157, 0.16); }

.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.x-btn:hover { border-color: var(--acid); color: var(--acid); }

.launch-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--acid);
  color: #02120b;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.25);
  transition: 0.15s;
}
.launch-btn:hover { background: var(--lime); transform: translateY(-1px); }

/* ===================================================
   SECTION 1: FULLSCREEN 100VH 3D HERO STAGE
=================================================== */
.hero-stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 86px 20px 66px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-aurora {
  position: absolute;
  inset: -15%;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 46% 36% at 50% 44%, rgba(0, 255, 157, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 35% 32% at 24% 62%, rgba(56, 232, 255, 0.12) 0%, transparent 62%),
    radial-gradient(ellipse 36% 28% at 78% 36%, rgba(255, 46, 85, 0.1) 0%, transparent 62%);
  animation: auroraDrift 11s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  100% { transform: translate3d(1.5%, 1.2%, 0) scale(1.06); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(2, 3, 5, 0.12) 0%, rgba(2, 3, 5, 0.84) 80%);
  pointer-events: none;
  z-index: 1;
}

.scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.014) 0px,
    rgba(255, 255, 255, 0.014) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Crisp Glass Telemetry Cards (zero 3D text-blur transforms) */
.float-shard {
  position: absolute;
  z-index: 4;
  width: 248px;
  padding: 13px 14px;
  background: rgba(7, 11, 18, 0.88);
  border: 1px solid rgba(0, 255, 157, 0.28);
  border-radius: 5px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 10px;
}
.shard-left {
  left: 28px;
  bottom: 72px;
}
.shard-right {
  right: 28px;
  top: 86px;
  border-color: rgba(56, 232, 255, 0.32);
}
.shard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.shard-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.shard-metric strong { font-size: 13px; color: #fff; }
.shard-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  margin-bottom: 10px;
}
.shard-bars i {
  flex: 1;
  display: block;
  background: linear-gradient(to top, rgba(0, 255, 157, 0.22), #00ff9d);
  border-radius: 1px;
  animation: eqPulse 1.4s ease-in-out infinite alternate;
}
.shard-bars i:nth-child(odd) { animation-duration: 1.1s; }
.shard-bars i:nth-child(3n) { animation-duration: 1.7s; background: linear-gradient(to top, rgba(56, 232, 255, 0.22), #38e8ff); }
@keyframes eqPulse {
  0% { height: 22%; opacity: 0.55; }
  100% { height: 95%; opacity: 1; }
}
.shard-addr {
  padding: 7px 8px;
  background: rgba(0, 255, 157, 0.07);
  border: 1px solid rgba(0, 255, 157, 0.25);
  border-radius: 3px;
  color: var(--acid);
  font-size: 10px;
  word-break: break-all;
  margin-bottom: 7px;
}
.shard-eq { color: var(--ice); font-size: 9.5px; margin-bottom: 9px; opacity: 0.9; }
.shard-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 7px;
  color: var(--muted);
}

/* Rock-solid crisp center hero container (pixel-sharp text) */
.hero-3d-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 860px;
}
.hero-center {
  text-align: center;
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ice);
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(6, 12, 20, 0.78);
  border: 1px solid rgba(56, 232, 255, 0.34);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(42px, 7.6vw, 88px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.title-line {
  display: block;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
}
.acid-3d {
  color: var(--acid);
  background: linear-gradient(95deg, #00ff9d 0%, #b8ff00 45%, #38e8ff 90%, #00ff9d 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGrad 5s linear infinite;
}
@keyframes shimmerGrad {
  to { background-position: 220% center; }
}

.hero-sub {
  margin: 0 auto 26px;
  max-width: 600px;
  font-size: clamp(14px, 1.8vw, 17px);
  color: #cbd5e1;
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* Rotating Neon Light-Beam Border around Quick Scan */
.beam-frame {
  position: relative;
  max-width: 680px;
  margin: 0 auto 22px;
  padding: 1.5px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.72),
    0 0 42px rgba(0, 255, 157, 0.16);
}
.beam-frame::before {
  content: "";
  position: absolute;
  inset: -120%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 240deg,
    #00ff9d 290deg,
    #38e8ff 330deg,
    transparent 360deg
  );
  animation: rotateBeam 3.6s linear infinite;
}
@keyframes rotateBeam {
  to { transform: rotate(360deg); }
}

.quick-scan {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  background: rgba(4, 7, 12, 0.95);
  border-radius: 5px;
  padding: 5px 5px 5px 15px;
}
.qs-tag { color: var(--acid); font-size: 12px; font-weight: 700; margin-right: 8px; }
.quick-scan input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  padding: 11px 6px;
}
.quick-scan input::placeholder { color: #5b6d87; }
.qs-go {
  background: linear-gradient(135deg, #00ff9d, #b8ff00);
  color: #02120b;
  border: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.15s;
}
.qs-go:hover { filter: brightness(1.08); transform: scale(1.02); }

/* 3D Tactile Buttons */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex-wrap: wrap;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00ff9d, #00d684);
  color: #02120b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 14px 24px;
  border-radius: 4px;
  box-shadow:
    0 4px 0 #008a54,
    0 14px 34px rgba(0, 255, 157, 0.3);
  transition: 0.14s;
}
.cta-primary:hover {
  background: linear-gradient(135deg, #b8ff00, #00ff9d);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #008a54, 0 20px 40px rgba(0, 255, 157, 0.42);
}
.cta-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #008a54; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  background: rgba(7, 11, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 14px 19px;
  border-radius: 4px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
  transition: 0.14s;
}
.cta-ghost:hover { border-color: var(--ice); color: var(--ice); transform: translateY(-2px); }

.cta-pulse {
  background: rgba(255, 46, 85, 0.14);
  border: 1px solid rgba(255, 46, 85, 0.55);
  backdrop-filter: blur(10px);
  color: #ff7a93;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 14px 19px;
  border-radius: 4px;
  box-shadow: 0 4px 0 rgba(120, 12, 34, 0.7), 0 0 24px rgba(255, 46, 85, 0.18);
  cursor: pointer;
  transition: 0.14s;
}
.cta-pulse:hover { background: rgba(255, 46, 85, 0.28); color: #fff; transform: translateY(-2px); }

.mobile-pulse-strip {
  display: none;
  margin-top: 18px;
  justify-content: center;
  gap: 14px;
  font-size: 10.5px;
  color: var(--muted);
  padding: 8px 12px;
  background: rgba(6, 10, 16, 0.78);
  border: 1px solid var(--line);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

/* Marquee */
.marquee-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: rgba(0, 255, 157, 0.06);
  border-top: 1px solid rgba(0, 255, 157, 0.24);
  backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 9px 0;
  font-size: 11px;
  color: var(--acid);
  letter-spacing: 0.12em;
}
.marquee-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  width: max-content;
  animation: scrollMarquee 26s linear infinite;
}
@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS */
.section { padding: 84px 20px; border-bottom: 1px solid var(--line); }
.wrap { max-width: 1320px; margin: 0 auto; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.sec-tag { font-size: 11px; font-weight: 700; color: var(--ice); letter-spacing: 0.16em; margin-bottom: 6px; }
.sec-head h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.8vw, 42px);
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sec-link { color: var(--acid); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.sec-link:hover { text-decoration: underline; }

/* DEMO SECTION */
.demo-controls { display: flex; gap: 6px; }
.toggle-btn {
  background: rgba(10, 15, 23, 0.9);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.15s;
}
.toggle-btn.active {
  background: rgba(0, 255, 157, 0.14);
  border-color: var(--acid);
  color: var(--acid);
}
#modeExposedBtn.active {
  background: rgba(255, 46, 85, 0.16);
  border-color: var(--crit);
  color: #ff6b86;
}

.demo-frame { overflow: hidden; }
.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  flex-wrap: wrap;
}
.status-crit { color: #ff6b86; font-weight: 700; }
.status-ok { color: var(--acid); font-weight: 700; }

.demo-canvas-box { height: 390px; background: #030508; position: relative; cursor: pointer; }
#demoCanvas { width: 100%; height: 100%; display: block; }

.demo-bottombar {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.demo-metric span { display: block; font-size: 9.5px; letter-spacing: 0.1em; margin-bottom: 3px; }
.demo-metric strong { font-size: 12.5px; word-break: break-all; }
.mini-launch {
  background: var(--acid);
  color: #02120b;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 3px;
  white-space: nowrap;
}
.mini-launch:hover { background: var(--lime); }

/* BENTO MODULES */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-acid);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 255, 157, 0.12);
}
.bento-visual {
  height: 220px;
  background: #030508;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.bento-visual canvas { width: 100%; height: 100%; display: block; }
.matrix-vis { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.matrix-head { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.matrix-stream { display: flex; flex-direction: column; gap: 7px; font-size: 10.5px; overflow: hidden; }
.m-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid rgba(0, 255, 157, 0.16);
  border-radius: 2px;
  animation: fadeInRow 0.35s ease;
}
@keyframes fadeInRow { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.bento-body { padding: 18px; }
.bento-kicker { font-size: 10px; color: var(--ice); letter-spacing: 0.14em; margin-bottom: 7px; }
.bento-body h3 { font-family: var(--display); font-size: 20px; margin: 0 0 8px; text-transform: uppercase; }
.bento-body p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ABOUT PIPELINE */
.pipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.pipe-step { padding: 22px; }
.pipe-num { font-size: 28px; font-weight: 700; color: var(--acid); margin-bottom: 10px; }
.pipe-step h3 { font-family: var(--display); font-size: 20px; margin: 0 0 8px; letter-spacing: 0.04em; }
.pipe-step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.pipe-step code, .token-left code {
  font-family: var(--mono);
  color: var(--acid);
  background: rgba(0, 255, 157, 0.09);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 12px;
}

.token-strip {
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.token-left { max-width: 680px; }
.token-left h3 { font-family: var(--display); font-size: 24px; margin: 4px 0 8px; text-transform: uppercase; }
.token-left p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.token-right { display: flex; gap: 10px; flex-wrap: wrap; }

.site-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  background: #04150e;
  border: 1px solid var(--acid);
  color: var(--acid);
  font-size: 12px;
  padding: 10px 15px;
  border-radius: 3px;
}

/* MOBILE PERFECTION */
@media (max-width: 1140px) {
  .float-shard { display: none; }
  .mobile-pulse-strip { display: inline-flex; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .bento-grid, .pipe-grid { grid-template-columns: 1fr; }
  .demo-bottombar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hud-nav-inner { padding: 9px 12px; }
  .ca-pill { display: none; }
  .hero-stage { padding: 78px 14px 58px; }
  .kicker-pill { font-size: 9.5px; letter-spacing: 0.1em; padding: 5px 10px; }
  .quick-scan { padding: 4px 4px 4px 10px; }
  .qs-tag { display: none; }
  .qs-go { padding: 10px 12px; font-size: 11px; }
  .hero-cta-row { flex-direction: column; width: 100%; }
  .cta-primary, .cta-ghost, .cta-pulse { width: 100%; justify-content: center; }
  .section { padding: 54px 14px; }
  .demo-canvas-box { height: 290px; }
  .demo-bottombar { grid-template-columns: 1fr; }
  .mini-launch { text-align: center; }
}
