/* =====================================================
   ALIENCOIN — styles.css
   Dark space, alien transmission, terminal panels.
   ===================================================== */

/* ---------- CSS variables ---------- */
:root {
  --bg-0: #04000a;
  --bg-1: #08001a;
  --bg-2: #110030;
  --ink: #e6f7ff;
  --ink-dim: #98a8b8;
  --ink-mute: #5b6478;

  --green: #39ff14;
  --green-soft: #6cff52;
  --green-deep: #0e8a05;
  --blue: #00d4ff;
  --blue-soft: #7be8ff;
  --purple: #b026ff;
  --purple-soft: #d077ff;
  --magenta: #ff2bd6;
  --red: #ff3355;

  --panel-bg: rgba(10, 5, 30, 0.55);
  --panel-bg-strong: rgba(8, 4, 24, 0.78);
  --panel-border: rgba(57, 255, 20, 0.35);
  --panel-border-soft: rgba(176, 38, 255, 0.35);

  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', 'VT323', ui-monospace, monospace;
  --font-glyph: 'VT323', 'Share Tech Mono', ui-monospace, monospace;

  --container: 1200px;
  --gap: clamp(16px, 2vw, 28px);
  --radius: 14px;

  --glow-green: 0 0 12px rgba(57, 255, 20, 0.45), 0 0 28px rgba(57, 255, 20, 0.18);
  --glow-blue: 0 0 12px rgba(0, 212, 255, 0.45), 0 0 28px rgba(0, 212, 255, 0.18);
  --glow-purple: 0 0 12px rgba(176, 38, 255, 0.45), 0 0 28px rgba(176, 38, 255, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-mono);
  color: var(--ink);
  background: var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
::selection { background: rgba(57, 255, 20, 0.35); color: #fff; }

/* ---------- Background layers ---------- */
.bg-layer {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: -1;
}
/* nebula gradients */
.nebula {
  background:
    radial-gradient(1000px 700px at 15% 10%, rgba(176, 38, 255, 0.28), transparent 60%),
    radial-gradient(900px 700px at 85% 25%, rgba(0, 212, 255, 0.22), transparent 60%),
    radial-gradient(900px 800px at 50% 90%, rgba(57, 255, 20, 0.18), transparent 65%),
    linear-gradient(180deg, #04000a 0%, #08001a 40%, #02000a 100%);
}
/* faint perspective grid */
.grid {
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
  opacity: 0.6;
}
/* starfield canvas */
.stars { width: 100%; height: 100%; }
/* scanlines */
.scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.6;
  animation: scan-shift 8s linear infinite;
}
@keyframes scan-shift {
  0% { background-position: 0 0; }
  100% { background-position: 0 6px; }
}
/* noise */
.noise {
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- Glyph rain ---------- */
.glyph-rain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.glyph-rain span {
  position: absolute;
  font-family: var(--font-glyph);
  color: rgba(57, 255, 20, 0.35);
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.6);
  user-select: none;
  will-change: transform, opacity;
  animation: glyph-fall linear infinite;
}
@keyframes glyph-fall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(20deg); opacity: 0; }
}

/* ---------- Floating space objects ---------- */
.space-objects {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.space-objects .obj {
  position: absolute;
  will-change: transform;
  filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.35));
}
.space-objects .obj.asteroid {
  width: 60px; height: 60px;
  background: radial-gradient(circle at 30% 30%, #6e5e7a, #1a0d2a 70%, #060010);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  box-shadow: inset -8px -10px 20px rgba(0,0,0,0.7), 0 0 18px rgba(176, 38, 255, 0.3);
  animation: drift 28s linear infinite, rotate-slow 40s linear infinite;
}
.space-objects .obj.asteroid::after {
  content: ""; position: absolute; inset: 24% 30% 50% 22%;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.space-objects .obj.planet {
  width: 110px; height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #d077ff, #5a1a8a 60%, #1a0033 100%);
  box-shadow:
    inset -16px -14px 30px rgba(0,0,0,0.6),
    inset 16px 12px 30px rgba(255,255,255,0.06),
    0 0 30px rgba(176, 38, 255, 0.45);
  animation: drift 60s linear infinite, rotate-slow 90s linear infinite;
}
.space-objects .obj.planet::before {
  content: ""; position: absolute; inset: 40% -20% 40% -20%;
  border-top: 2px solid rgba(57, 255, 20, 0.55);
  border-bottom: 2px solid rgba(0, 212, 255, 0.4);
  transform: rotate(-12deg);
  border-radius: 50%;
  pointer-events: none;
}
.space-objects .obj.ufo {
  width: 80px; height: 30px;
  position: absolute;
  animation: ufo-fly 35s linear infinite;
}
.space-objects .obj.ufo::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 14px;
  background: linear-gradient(180deg, #1a1a2e, #060010);
  border: 1px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.7);
}
.space-objects .obj.ufo::after {
  content: ""; position: absolute; left: 25%; right: 25%; top: 0; height: 14px;
  background: radial-gradient(ellipse at center, rgba(57,255,20,0.9), rgba(57,255,20,0.1) 70%);
  border-radius: 50%;
  filter: blur(0.5px);
}
.space-objects .obj.skull {
  width: 56px; height: 64px;
  background: radial-gradient(circle at 50% 35%, #cfd9d6, #6e7570 70%, #2a2e2c);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.4);
  animation: drift 50s linear infinite;
}
.space-objects .obj.skull::before,
.space-objects .obj.skull::after {
  content: ""; position: absolute; top: 36%; width: 10px; height: 14px;
  background: #050008;
  border-radius: 50%;
}
.space-objects .obj.skull::before { left: 22%; }
.space-objects .obj.skull::after { right: 22%; }

@keyframes drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(40px, -30px); }
  100% { transform: translate(0, 0); }
}
@keyframes rotate-slow {
  0%   { rotate: 0deg; }
  100% { rotate: 360deg; }
}
@keyframes ufo-fly {
  0%   { transform: translateX(-15vw) translateY(0); }
  50%  { transform: translateX(60vw) translateY(-30px); }
  100% { transform: translateX(120vw) translateY(0); }
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(57,255,20,0.18), rgba(57,255,20,0) 60%);
  mix-blend-mode: screen;
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 0.9;
}
@media (hover: none), (max-width: 720px) { .cursor-glow { display: none; } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  background: linear-gradient(180deg, rgba(4,0,10,0.85), rgba(4,0,10,0.45));
  border-bottom: 1px solid rgba(57, 255, 20, 0.18);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--ink);
  font-size: 16px;
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, #1a0033, #04000a);
  border: 1px solid var(--green);
  color: var(--green);
  text-shadow: var(--glow-green);
  font-family: var(--font-glyph); font-size: 18px;
}
.nav-links {
  display: flex; gap: 18px;
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink-dim);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.2em; text-transform: uppercase;
  font-size: 12px;
  background: rgba(57,255,20,0.05);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(57,255,20,0.12);
  box-shadow: var(--glow-green);
}
.nav-cta-arrow { transition: transform 0.2s ease; }
.nav-cta:hover .nav-cta-arrow { transform: translateX(3px); }

/* marquee strip */
.nav-strip {
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  border-bottom: 1px solid rgba(176, 38, 255, 0.15);
  background: rgba(0,0,0,0.4);
  overflow: hidden;
}
.nav-strip-track {
  display: flex; gap: 40px;
  white-space: nowrap;
  font-family: var(--font-glyph);
  font-size: 18px;
  color: rgba(0, 212, 255, 0.7);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  padding: 6px 0;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- Sections base ---------- */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.section-head {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 48px;
}
.section-head.center { align-items: center; text-align: center; }
.section-tag {
  font-family: var(--font-mono);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--green);
  text-shadow: var(--glow-green);
  font-size: 12px;
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 4px;
  background: rgba(57, 255, 20, 0.06);
  align-self: flex-start;
}
.section-head.center .section-tag { align-self: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 6.5vw, 84px);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.02;
  color: var(--ink);
  text-shadow:
    0 0 18px rgba(0, 212, 255, 0.25),
    0 0 30px rgba(176, 38, 255, 0.18);
}
.muted { color: var(--ink-dim); }

/* ---------- Glitch effect ---------- */
[data-glitch], [data-glitch-strong] {
  position: relative;
  display: inline-block;
}
[data-glitch].glitching, [data-glitch-strong].glitching {
  text-shadow:
    1px 0 var(--green),
    -1px 0 var(--blue),
    0 0 14px rgba(176, 38, 255, 0.5);
  animation: glitch-shake 0.2s steps(2) infinite;
}
@keyframes glitch-shake {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1px, 1px); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(60px, 8vw, 110px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1100px);
}
.transmission-tag {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.06);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
  text-shadow: var(--glow-green);
}
.transmission-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 1.2s ease infinite;
}
.tag-time { color: var(--ink-dim); letter-spacing: 0.15em; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.hero-title-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 146px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #b9f0ff 30%, #6cff52 70%, #4adfff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow:
    0 0 30px rgba(0, 212, 255, 0.2),
    0 0 50px rgba(57, 255, 20, 0.15);
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.35));
}
.hero-title-sub {
  font-family: var(--font-glyph);
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.4em;
  color: var(--purple-soft);
  text-shadow: var(--glow-purple);
  opacity: 0.85;
}
.hero-subtitle {
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--ink);
  max-width: 520px;
  margin: 0 0 32px;
}

/* hero coin */
.hero-coin {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: clamp(280px, 36vw, 540px);
  height: clamp(280px, 36vw, 540px);
  pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(176, 38, 255, 0.45));
  animation: coin-float 8s ease-in-out infinite;
}
.hero-coin-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(57, 255, 20, 0.45)) drop-shadow(0 0 48px rgba(176, 38, 255, 0.28));
}
@keyframes coin-float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(calc(-50% - 18px)) translateX(-8px); }
}
.coin {
  position: relative;
  width: 100%; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  animation: coin-spin 22s linear infinite;
}
.coin-face {
  position: relative;
  width: 86%; aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #4a4658 0%, #1a1530 50%, #06010f 100%);
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.85),
    inset 0 0 60px rgba(176, 38, 255, 0.35),
    0 0 40px rgba(57, 255, 20, 0.25);
  display: grid; place-items: center;
  overflow: hidden;
}
.coin-rim {
  position: absolute; inset: 4%;
  border-radius: 50%;
  border: 2px solid rgba(57, 255, 20, 0.55);
  box-shadow:
    inset 0 0 18px rgba(57, 255, 20, 0.25),
    0 0 18px rgba(57, 255, 20, 0.45);
}
.coin-rim::before {
  content: ""; position: absolute; inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 255, 0.4);
}
.coin-glyph {
  font-family: var(--font-glyph);
  font-size: clamp(80px, 14vw, 200px);
  color: var(--green);
  text-shadow:
    0 0 16px rgba(57, 255, 20, 0.85),
    0 0 32px rgba(57, 255, 20, 0.5);
  animation: glyph-pulse 2.4s ease-in-out infinite;
}
@keyframes glyph-pulse {
  0%, 100% { text-shadow: 0 0 16px rgba(57, 255, 20, 0.8), 0 0 32px rgba(57, 255, 20, 0.45); }
  50%      { text-shadow: 0 0 26px rgba(57, 255, 20, 1),    0 0 60px rgba(57, 255, 20, 0.7); }
}
.coin-orbit {
  position: absolute; inset: -8%;
  pointer-events: none;
}
.coin-orbit span {
  position: absolute; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  top: 50%; left: 50%;
  margin: -3px 0 0 -3px;
}
.coin-orbit span:nth-child(1) { transform: rotate(0deg) translateX(50%); }
.coin-orbit span:nth-child(2) { transform: rotate(90deg) translateX(50%); background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.coin-orbit span:nth-child(3) { transform: rotate(180deg) translateX(50%); background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.coin-orbit span:nth-child(4) { transform: rotate(270deg) translateX(50%); }

.coin-scratch { position: absolute; background: rgba(255,255,255,0.06); border-radius: 4px; }
.coin-scratch-1 { top: 30%; left: 18%; width: 28%; height: 2px; transform: rotate(-12deg); }
.coin-scratch-2 { top: 62%; right: 22%; width: 22%; height: 2px; transform: rotate(8deg); }
.coin-scratch-3 { top: 50%; left: 42%; width: 14%; height: 2px; transform: rotate(-32deg); }

.coin-shadow {
  position: absolute;
  bottom: -6%; left: 10%; right: 10%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(57,255,20,0.35), transparent 60%);
  filter: blur(12px);
}
@keyframes coin-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* UFO beam */
.ufo-beam {
  position: absolute;
  top: -50px; right: 8%;
  width: 240px; height: 120vh;
  background: linear-gradient(180deg, rgba(57,255,20,0.18), rgba(57,255,20,0));
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: beam-flicker 4s ease-in-out infinite;
}
@keyframes beam-flicker {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.3; }
}

@media (max-width: 980px) {
  .hero-coin { right: -10vw; top: auto; bottom: -10vw; transform: none; opacity: 0.6; }
  @keyframes coin-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
  }
  .ufo-beam { display: none; }
}

/* ---------- Panels (terminal/UFO glass) ---------- */
.panel {
  background: var(--panel-bg);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 0 1px rgba(57, 255, 20, 0.08),
    0 18px 50px rgba(0,0,0,0.6),
    0 0 30px rgba(57, 255, 20, 0.15);
  overflow: hidden;
  position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}
.panel-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(57,255,20,0.18);
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.15));
  font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
}
.panel-dot { width: 8px; height: 8px; border-radius: 50%; }
.panel-dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.panel-dot.yellow { background: #ffd23a; box-shadow: 0 0 8px #ffd23a; }
.panel-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.panel-title { margin-left: 6px; color: var(--green); text-shadow: var(--glow-green); }
.panel-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); text-shadow: var(--glow-blue);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 8px var(--blue);
  animation: blink 1s infinite;
}
.panel-body { padding: 18px; position: relative; }

/* transmission panel rows */
.transmission-panel { margin-bottom: 28px; max-width: 560px; }
.panel-row {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(57,255,20,0.12);
  font-size: 14px;
}
.panel-row:last-of-type { border-bottom: 0; }
.row-label {
  font-family: var(--font-mono);
  letter-spacing: 0.25em;
  color: var(--blue);
  text-shadow: var(--glow-blue);
  font-size: 11px;
  width: 40px;
}
.row-value {
  flex: 1;
  color: var(--ink);
  font-family: var(--font-mono);
}
.glyph-stream {
  font-family: var(--font-glyph);
  font-size: 22px;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.15em;
  white-space: nowrap;
  overflow: hidden;
}
.panel-bars {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 4px;
  height: 36px;
  margin-top: 14px;
}
.panel-bars div {
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  border-radius: 1px;
  animation: bar-bounce 0.8s ease-in-out infinite;
  align-self: end;
  height: 30%;
  box-shadow: 0 0 4px rgba(57,255,20,0.5);
}
.panel-bars div:nth-child(2)  { animation-delay: 0.05s; height: 70%; }
.panel-bars div:nth-child(3)  { animation-delay: 0.1s;  height: 50%; }
.panel-bars div:nth-child(4)  { animation-delay: 0.15s; height: 90%; }
.panel-bars div:nth-child(5)  { animation-delay: 0.2s;  height: 60%; }
.panel-bars div:nth-child(6)  { animation-delay: 0.25s; height: 40%; }
.panel-bars div:nth-child(7)  { animation-delay: 0.3s;  height: 80%; }
.panel-bars div:nth-child(8)  { animation-delay: 0.35s; height: 100%; }
.panel-bars div:nth-child(9)  { animation-delay: 0.4s;  height: 55%; }
.panel-bars div:nth-child(10) { animation-delay: 0.45s; height: 65%; }
.panel-bars div:nth-child(11) { animation-delay: 0.5s;  height: 35%; }
.panel-bars div:nth-child(12) { animation-delay: 0.55s; height: 75%; }
.panel-bars div:nth-child(13) { animation-delay: 0.6s;  height: 45%; }
.panel-bars div:nth-child(14) { animation-delay: 0.65s; height: 60%; }
.panel-bars div:nth-child(15) { animation-delay: 0.7s;  height: 30%; }
@keyframes bar-bounce {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.4); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
  border: 1px solid var(--green);
  color: var(--green);
  background: linear-gradient(180deg, rgba(57,255,20,0.08), rgba(57,255,20,0.02));
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-shadow: var(--glow-green);
  cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0 40%, rgba(57,255,20,0.15) 50%, transparent 60% 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
  background: linear-gradient(180deg, rgba(57,255,20,0.16), rgba(57,255,20,0.06));
}
.btn-glyph {
  font-family: var(--font-glyph);
  font-size: 18px;
  line-height: 1;
}
.btn-primary {
  border-color: var(--green);
  color: var(--green);
}
.btn-ghost {
  border-color: var(--blue);
  color: var(--blue);
  text-shadow: var(--glow-blue);
  background: linear-gradient(180deg, rgba(0,212,255,0.06), rgba(0,212,255,0.02));
}
.btn-ghost:hover {
  box-shadow: var(--glow-blue);
  background: linear-gradient(180deg, rgba(0,212,255,0.14), rgba(0,212,255,0.06));
}
.btn-lg { padding: 18px 30px; font-size: 14px; }
.btn-copied {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
  color: #04000a;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-shadow: none;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.btn.is-copied .btn-copied { transform: translateY(0); }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 24px;
}

/* ---------- CA pill ---------- */
.ca-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px dashed rgba(176, 38, 255, 0.6);
  border-radius: 999px;
  background: rgba(176, 38, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 13px;
  max-width: 100%;
}
.ca-label {
  color: var(--purple); text-shadow: var(--glow-purple);
  letter-spacing: 0.25em; font-weight: 700;
}
.ca-value {
  color: var(--ink);
  word-break: break-all;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 320px;
  display: inline-block;
}
.ca-copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(176, 38, 255, 0.5);
  color: var(--purple);
  background: rgba(176, 38, 255, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}
.ca-copy:hover { background: rgba(176, 38, 255, 0.18); transform: translateY(-1px); }

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute; bottom: 24px; left: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.4em;
  color: var(--ink-dim); text-transform: uppercase;
}
.scroll-arrow {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--green), transparent);
  position: relative;
}
.scroll-arrow::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  transform: translateX(-50%) rotate(45deg);
}

/* ---------- Signal section ---------- */
.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}
.signal-panel .panel-body { font-size: 16px; }
.signal-panel p { margin: 0 0 14px; }
.glyph-row {
  margin-top: 18px;
  font-family: var(--font-glyph);
  font-size: 28px;
  letter-spacing: 0.2em;
  color: var(--green);
  text-shadow: var(--glow-green);
  white-space: nowrap;
  overflow: hidden;
}
.glyph-row-2 {
  color: var(--purple);
  text-shadow: var(--glow-purple);
  margin-top: 6px;
}
.waveform-panel .panel-body { padding: 0; }
.waveform {
  width: 100%;
  display: block;
  height: 220px;
  background:
    radial-gradient(ellipse at center, rgba(57,255,20,0.12), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  border-bottom: 1px solid rgba(57,255,20,0.18);
}
.scanner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(57,255,20,0.14);
}
.scanner-stats > div {
  background: rgba(4, 0, 10, 0.85);
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.scanner-stats span {
  font-size: 10px; letter-spacing: 0.3em; color: var(--ink-mute);
  text-transform: uppercase;
}
.scanner-stats b {
  color: var(--green); text-shadow: var(--glow-green);
  font-family: var(--font-mono); font-size: 18px;
}

@media (max-width: 900px) {
  .signal-grid { grid-template-columns: 1fr; }
  .scanner-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- About cards ---------- */
.about-text { max-width: 720px; margin-bottom: 40px; font-size: 17px; }
.about-text p { margin: 0 0 12px; }

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  padding: 28px 24px 22px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(57,255,20,0.4), transparent 40%, rgba(0,212,255,0.4));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: var(--glow-green);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 12px rgba(57,255,20,0.3));
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  color: var(--ink);
}
.card-text { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }
.card-index {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--font-glyph); font-size: 22px;
  color: var(--purple); text-shadow: var(--glow-purple);
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .about-cards { grid-template-columns: 1fr; }
}

/* ---------- Language / decoder ---------- */
.lang-text { max-width: 600px; margin-bottom: 32px; font-size: 17px; }

.decoder {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 28px;
}
.decoder-panel { min-height: 260px; }
.decoder-arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-glyph);
  color: var(--green);
  text-shadow: var(--glow-green);
}
.decoder-arrow span { font-size: 36px; animation: arrow-pulse 1.6s ease-in-out infinite; }
.decoder-arrow small {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--ink-mute); text-shadow: none;
}
@keyframes arrow-pulse {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%      { transform: translateX(6px); opacity: 1; }
}

.glyph-block {
  font-family: var(--font-glyph);
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  color: var(--green);
  text-shadow: var(--glow-green);
  word-break: break-all;
  min-height: 200px;
}
.decoded-line {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.05em;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.4);
  margin-bottom: 18px;
  min-height: 60px;
}
.decoded-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.decoded-meta b {
  color: var(--green); text-shadow: var(--glow-green);
  font-size: 14px;
}
.decoder-cta { display: flex; justify-content: flex-start; }

@media (max-width: 900px) {
  .decoder { grid-template-columns: 1fr; }
  .decoder-arrow { transform: rotate(90deg); padding: 10px 0; }
}

/* ---------- Lore ---------- */
.lore-intro { max-width: 600px; font-size: 17px; margin-bottom: 36px; }
.lore-log {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.log-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: linear-gradient(180deg, rgba(0,212,255,0.05), rgba(0,0,0,0.4));
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.log-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--green), var(--blue), var(--purple));
  box-shadow: 0 0 10px rgba(57,255,20,0.6);
}
.log-item:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: var(--glow-green);
}
.log-side {
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px dashed rgba(0,212,255,0.2);
  padding-right: 18px;
}
.log-day {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.15em;
  color: var(--green);
  text-shadow: var(--glow-green);
}
.log-tick {
  font-family: var(--font-glyph);
  font-size: 32px;
  color: var(--purple); text-shadow: var(--glow-purple);
}
.log-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px; letter-spacing: 0.04em;
  margin: 0 0 8px;
  color: var(--ink);
}
.log-body p { margin: 0; color: var(--ink-dim); font-size: 14px; }

@media (max-width: 820px) {
  .lore-log { grid-template-columns: 1fr; }
}

/* ---------- Token ---------- */
.token-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
.token-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.token-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: 8px;
}
.token-list li span {
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--ink-mute); text-transform: uppercase;
}
.token-list li b {
  font-family: var(--font-mono); font-size: 16px;
  color: var(--green); text-shadow: var(--glow-green);
  word-break: break-all; text-align: right;
}
.token-list li.token-ca b { color: var(--blue); text-shadow: var(--glow-blue); font-size: 13px; }
.token-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.token-warning {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 51, 85, 0.5);
  background: rgba(255, 51, 85, 0.06);
  color: #ff96a8;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.token-coin-panel .panel-body.token-coin-body {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 30px 18px;
  background:
    radial-gradient(ellipse at center, rgba(176,38,255,0.18), transparent 70%);
}
.coin-small { width: 220px; height: 220px; animation: coin-spin 18s linear infinite; }
.coin-small .coin-glyph { font-size: 100px; }
.token-coin-meta {
  text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.token-coin-meta .glyph-row {
  margin: 0;
  font-size: 22px;
}

@media (max-width: 900px) {
  .token-grid { grid-template-columns: 1fr; }
}

/* ---------- Artifacts ---------- */
.artifacts-intro { max-width: 600px; font-size: 17px; margin-bottom: 36px; }
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.artifact-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(176, 38, 255, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at top, rgba(176,38,255,0.12), transparent 70%),
    rgba(8, 4, 24, 0.6);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.artifact-card::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}
.artifact-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  border-color: var(--green);
  box-shadow: var(--glow-green);
}
.art-svg {
  width: 130px; height: 130px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at center, rgba(57,255,20,0.16), transparent 70%);
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(57,255,20,0.35));
  transition: transform 0.4s ease;
}
.artifact-card:hover .art-svg { transform: rotate(8deg) scale(1.05); }
.art-svg svg { width: 100px; height: 100px; }
.artifact-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.art-tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--green); text-shadow: var(--glow-green);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .artifact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .artifact-grid { grid-template-columns: 1fr; }
}

/* ---------- Final / CTA ---------- */
.final {
  text-align: center;
  position: relative;
}
.final-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.final-text { font-size: clamp(18px, 2vw, 22px); margin: 0; }
.final-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.final-glyphs {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-family: var(--font-glyph);
  font-size: 28px;
  color: var(--purple);
  text-shadow: var(--glow-purple);
  justify-content: center;
  opacity: 0.6;
}
.final-glyphs span { animation: glyph-pulse 3.5s ease-in-out infinite; }
.final-glyphs span:nth-child(odd) { color: var(--green); text-shadow: var(--glow-green); }
.final-glyphs span:nth-child(3n) { color: var(--blue); text-shadow: var(--glow-blue); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(57,255,20,0.18);
  margin-top: 80px;
  background: linear-gradient(180deg, rgba(4,0,10,0.4), rgba(4,0,10,0.9));
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 24px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 900; letter-spacing: 0.18em;
  color: var(--green); text-shadow: var(--glow-green);
  font-size: 16px;
}
.footer-right {
  display: flex; gap: 18px; align-items: center;
  font-size: 13px;
}
.footer-right a {
  color: var(--ink);
  border-bottom: 1px dashed rgba(57,255,20,0.4);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.footer-right a:hover { color: var(--green); }
.footer-strip {
  font-family: var(--font-glyph);
  font-size: 16px;
  color: rgba(0, 212, 255, 0.4);
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
  text-align: center;
  padding: 12px 12px 24px;
  letter-spacing: 0.2em;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--green);
  background: rgba(4,0,10,0.95);
  color: var(--green); text-shadow: var(--glow-green);
  font-family: var(--font-mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  font-size: 13px;
  border-radius: 999px;
  box-shadow: var(--glow-green);
  transition: transform 0.35s cubic-bezier(.2,.9,.2,1), opacity 0.3s ease;
  opacity: 0;
  z-index: 60;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-glyph { font-family: var(--font-glyph); font-size: 18px; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .glyph-rain, .space-objects, .ufo-beam { display: none !important; }
}

/* ---------- Smaller screens cleanup ---------- */
@media (max-width: 540px) {
  .panel-row .row-label { width: 36px; }
  .ca-value { max-width: 180px; }
  .nav-cta span:first-child { display: none; }
  .scroll-cue { display: none; }
  .glyph-row { font-size: 22px; }
  .hero { padding-top: 60px; padding-bottom: 60px; }
  .hero-title-main { font-size: clamp(48px, 14vw, 80px); }
}
