/* ============ RAMCOIN — ultra-modern tech theme ============ */
:root {
  --bg: #05060c;
  --bg-2: #0a0e1a;
  --panel: rgba(18, 24, 42, 0.55);
  --border: rgba(120, 160, 255, 0.16);
  --text: #e7ecff;
  --muted: #8a96bd;
  --accent: #00e5ff;       /* cyan */
  --accent-2: #7a5cff;     /* violet */
  --accent-3: #ff3df0;     /* magenta */
  --green: #2bff9b;
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

a { color: inherit; text-decoration: none; }
code { font-family: "JetBrains Mono", monospace; }

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(120,160,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  animation: gridmove 22s linear infinite;
}
@keyframes gridmove { to { background-position: 0 460px; } }

/* Motherboard circuit traces with flowing light */
.circuit-bg {
  position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.5;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 95%);
}
.circuit-bg .traces path {
  fill: none; stroke: rgba(0,229,255,0.22); stroke-width: 1.5;
}
.circuit-bg .traces path:nth-child(even) { stroke: rgba(122,92,255,0.20); }
/* flowing pulse overlay */
.circuit-bg::after { content: none; }
.circuit-bg .traces { filter: drop-shadow(0 0 3px rgba(0,229,255,0.25)); }
.circuit-bg .nodes circle { fill: var(--accent); opacity: 0.5; animation: nodeBlink 3s ease-in-out infinite; }
.circuit-bg .nodes circle:nth-child(3n) { fill: var(--accent-2); animation-delay: .8s; }
.circuit-bg .nodes circle:nth-child(3n+1) { animation-delay: 1.6s; }
@keyframes nodeBlink { 0%,100% { opacity: .25; } 50% { opacity: .9; filter: drop-shadow(0 0 6px var(--accent)); } }

/* animated light dashes travelling along the traces */
.circuit-bg .traces path {
  stroke-dasharray: 14 220; animation: dashFlow 6s linear infinite;
}
.circuit-bg .traces path:nth-child(1) { animation-duration: 7s; }
.circuit-bg .traces path:nth-child(2) { animation-duration: 9s; animation-delay: -2s; }
.circuit-bg .traces path:nth-child(3) { animation-duration: 8s; animation-delay: -4s; }
.circuit-bg .traces path:nth-child(4) { animation-duration: 10s; animation-delay: -1s; }
.circuit-bg .traces path:nth-child(5) { animation-duration: 7.5s; animation-delay: -3s; }
.circuit-bg .traces path:nth-child(6) { animation-duration: 8.5s; animation-delay: -5s; }
.circuit-bg .traces path:nth-child(7) { animation-duration: 9.5s; animation-delay: -2.5s; }
@keyframes dashFlow { to { stroke-dashoffset: -1200; } }

.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 12%, rgba(122,92,255,0.25), transparent 60%),
    radial-gradient(50% 50% at 15% 25%, rgba(0,229,255,0.18), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(255,61,240,0.10), transparent 60%);
}
.scanlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em;
  padding: 12px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-primary {
  color: #04111a; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(0,229,255,.4), 0 10px 30px rgba(0,229,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,229,255,.6), 0 14px 40px rgba(122,92,255,.45); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  backdrop-filter: blur(14px);
  background: rgba(5,6,12,0.55);
  border-bottom: 1px solid var(--border);
}
.nav.scrolled { background: rgba(5,6,12,0.85); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 50%;
  padding: 2px; background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: grid; place-items: center; flex: none;
  box-shadow: 0 0 18px rgba(0,229,255,.45);
}
.brand-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.brand-logo.small { width: 34px; height: 34px; }
.brand-text { font-family: "Orbitron", sans-serif; font-size: 1.25rem; letter-spacing: 0.04em; }
.accent { color: var(--accent); }
.nav-links { display: flex; gap: 26px; font-size: 0.95rem; color: var(--muted); }
.nav-links a { position: relative; transition: color .15s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-3)); transition: width .25s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta { padding: 10px 18px; }
.icon-link {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  color: var(--text); border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  transition: transform .15s, border-color .2s, color .2s, box-shadow .2s;
}
.icon-link:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 18px rgba(0,229,255,.35); }
.btn .ic { flex: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px) 0; }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "JetBrains Mono", monospace; font-size: 0.8rem;
  color: var(--accent); padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(0,229,255,0.05);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-title {
  font-family: "Orbitron", sans-serif; font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.02; margin: 20px 0 18px;
  letter-spacing: -0.01em;
}
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(122,92,255,.35));
}
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 540px; }
.hero-sub strong { color: var(--text); }
.ticker-inline {
  font-family: "JetBrains Mono", monospace; font-weight: 800; color: var(--accent);
  background: rgba(0,229,255,0.08); padding: 1px 8px; border-radius: 6px; white-space: nowrap;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 22px; }

/* CA box */
.ca-box {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--panel); backdrop-filter: blur(10px);
  padding: 14px 16px; max-width: 560px;
}
.ca-label { font-family: "JetBrains Mono", monospace; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.ca-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ca-row code { flex: 1; font-size: 0.82rem; color: var(--text); word-break: break-all; }
.copy-btn {
  flex: none; font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 0.78rem;
  color: #04111a; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: transform .15s;
}
.copy-btn:hover { transform: translateY(-1px); }
.copy-btn.copied { background: var(--green); }

/* 3D RAM — free floating, no frame */
.hero-3d { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.canvas-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 540px;
}
/* soft radial aura behind the floating RAM */
.canvas-stage::before {
  content: ""; position: absolute; inset: 8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(90,110,200,0.22), rgba(0,180,229,0.08) 45%, transparent 70%);
  filter: blur(30px); animation: auraPulse 6s ease-in-out infinite;
}
@keyframes auraPulse { 0%,100% { transform: scale(.92); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
#ram-canvas { position: relative; z-index: 1; width: 100%; height: 100%; display: block; cursor: grab; }
#ram-canvas:active { cursor: grabbing; }
.canvas-fallback { position: absolute; inset: 0; z-index: 1; display: none; place-items: center; }
.canvas-fallback img { width: 50%; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 40px rgba(0,229,255,.5); }
.canvas-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.pulse-ring { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0,229,255,.6); animation: ringPulse 1.8s infinite; }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(0,229,255,.55); } 70% { box-shadow: 0 0 0 10px rgba(0,229,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); } }

/* Marquee */
.marquee {
  margin-top: clamp(40px, 6vw, 70px); overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(0,229,255,0.03); padding: 14px 0;
}
.marquee-track { display: inline-flex; gap: 28px; white-space: nowrap; animation: marquee 26s linear infinite; font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; color: var(--text); }
.marquee-track .sep { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 9vw, 120px) clamp(16px, 4vw, 40px); }
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.kicker { font-family: "JetBrains Mono", monospace; font-size: 0.82rem; color: var(--accent); letter-spacing: 0.1em; }
.section-head h2 { font-family: "Orbitron", sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); margin: 12px 0; letter-spacing: -0.01em; }
.section-intro { color: var(--muted); max-width: 620px; margin: 0 auto; }

.glass {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(12px);
}

/* Story */
.story-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 24px; }
.story-card { padding: clamp(24px, 3vw, 40px); }
.story-card .lead { font-size: 1.22rem; color: var(--text); margin-bottom: 18px; border-left: 3px solid var(--accent); padding-left: 16px; }
.story-card p { color: var(--muted); margin-bottom: 14px; }
.story-card .signoff { color: var(--text); }
.story-card .signoff strong { color: var(--accent); }
.story-side { display: flex; flex-direction: column; gap: 18px; }
.mini-stat { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; transition: transform .2s, border-color .2s; }
.mini-stat:hover { transform: translateY(-4px); border-color: var(--accent); }
.mini-num { font-family: "Orbitron", sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.mini-label { color: var(--muted); font-size: 0.92rem; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 50px rgba(0,229,255,0.12); }
.news-tag { align-self: flex-start; font-family: "JetBrains Mono", monospace; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; background: rgba(0,229,255,0.05); }
.news-card h3 { font-size: 1.15rem; }
.news-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.news-card a { display: inline-flex; align-items: center; gap: 6px; font-family: "JetBrains Mono", monospace; font-size: 0.82rem; color: var(--accent); font-weight: 700; }
.news-card a:hover { text-decoration: underline; }
.ic-arrow { transition: transform .2s; }
.news-card a:hover .ic-arrow { transform: translate(2px, -2px); }

/* Tokenomics */
.tok-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tok-card { padding: 32px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .2s, border-color .2s; }
.tok-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--accent-2); }
.tok-icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px;
  color: var(--accent);
  background: radial-gradient(circle at 50% 35%, rgba(0,229,255,0.16), rgba(122,92,255,0.06));
  border: 1px solid var(--border);
  filter: drop-shadow(0 0 10px rgba(0,229,255,.35));
  transition: transform .25s, color .25s;
}
.tok-card:hover .tok-icon { transform: translateY(-2px) rotate(-3deg); color: var(--accent-3); }
.tok-value { font-family: "Orbitron", sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text); }
.tok-key { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 28px 24px; position: relative; transition: transform .2s, border-color .2s; }
.step:hover { transform: translateY(-6px); border-color: var(--accent); }
.step-num { font-family: "Orbitron", sans-serif; font-size: 2rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1.5px var(--accent); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }
.cta-final { text-align: center; margin-top: 44px; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: rgba(5,6,12,0.6); padding: clamp(40px, 6vw, 70px) clamp(16px, 4vw, 40px); margin-top: 40px; }
.footer-inner { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 0.85rem;
  padding: 10px 18px; border-radius: 11px; color: var(--text);
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  transition: transform .15s, border-color .2s, color .2s, box-shadow .2s;
}
.social-btn:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent); box-shadow: 0 0 22px rgba(0,229,255,.3); }
.footer-ca { font-family: "JetBrains Mono", monospace; font-size: 0.82rem; color: var(--muted); word-break: break-all; }
.footer-ca span { color: var(--accent); }
.disclaimer { color: var(--muted); font-size: 0.82rem; max-width: 640px; }
.copyright { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: var(--muted); }

/* ---------- High-tech FX ---------- */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* animated conic gradient border on interactive cards */
.news-card, .tok-card, .step, .mini-stat { position: relative; }
.news-card::before, .tok-card::before, .step::before, .mini-stat::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--angle), transparent 0%, var(--accent) 18%, var(--accent-2) 30%, transparent 45%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.news-card:hover::before, .tok-card:hover::before, .step:hover::before, .mini-stat:hover::before {
  opacity: 1; animation: spinBorder 3s linear infinite;
}
@keyframes spinBorder { to { --angle: 360deg; } }

/* flowing gradient on the hero word */
.gradient-text {
  background-size: 220% 100%;
  animation: flowGrad 6s ease-in-out infinite;
}
@keyframes flowGrad { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* glitch flicker on hero title */
.hero-title { position: relative; }
.hero-title .gradient-text { position: relative; display: inline-block; }
.hero-title .gradient-text::after {
  content: "Supercycle"; position: absolute; left: 0; top: 0; width: 100%;
  background: inherit; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  clip-path: inset(0 0 0 0); mix-blend-mode: screen; opacity: 0;
  animation: glitch 7s steps(1) infinite;
}
@keyframes glitch {
  0%, 92%, 100% { opacity: 0; transform: none; }
  93% { opacity: .9; transform: translate(-3px, 1px); clip-path: inset(20% 0 50% 0); }
  95% { opacity: .9; transform: translate(3px, -1px); clip-path: inset(60% 0 10% 0); }
  97% { opacity: .9; transform: translate(-2px, 0); clip-path: inset(35% 0 35% 0); }
}

/* tech corner brackets on the story card */
.story-card { position: relative; }
.story-card::before, .story-card::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent); opacity: .5;
}
.story-card::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.story-card::after { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* shimmer sweep on primary buttons */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: sweep 3.5s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -120%; } 55%, 100% { left: 160%; } }

@media (prefers-reduced-motion: reduce) {
  .gradient-text, .hero-title .gradient-text::after, .btn-primary::after,
  .marquee-track, .bg-grid, .canvas-stage::before { animation: none !important; }
}

/* ---------- Reveal animation ---------- */
.section .glass, .section-head { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.section.in .glass, .section.in .section-head { opacity: 1; transform: none; }
.section.in .glass:nth-child(2) { transition-delay: .06s; }
.section.in .glass:nth-child(3) { transition-delay: .12s; }
.section.in .glass:nth-child(4) { transition-delay: .18s; }

/* ---------- Install the RAM (interactive) ---------- */
.install-wrap { max-width: 940px; margin: 0 auto; padding: clamp(18px, 3vw, 34px); }
.install-stage {
  position: relative; width: 100%; height: clamp(360px, 52vw, 470px);
  border-radius: 16px; overflow: hidden; touch-action: none;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(16,60,40,0.6), transparent 60%),
    linear-gradient(160deg, #06160f, #04100b 60%, #061a12);
  border: 1px solid rgba(43,255,155,0.18);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
}
/* motherboard surface tint shifts when powered */
.install-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 60% at 50% 45%, rgba(0,229,255,0.10), transparent 70%);
  opacity: 0; transition: opacity .6s ease;
}
.install-stage.powered::before { opacity: 1; }

/* mobo traces */
.mobo-traces { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.mobo-traces .m-traces path { fill: none; stroke: rgba(43,255,155,0.30); stroke-width: 2; stroke-dasharray: 10 160; animation: dashFlow 7s linear infinite; }
.mobo-traces .m-traces path:nth-child(2) { stroke: rgba(0,229,255,0.30); animation-duration: 9s; }
.mobo-traces .m-traces path:nth-child(3) { stroke: rgba(122,92,255,0.28); animation-duration: 8s; }
.mobo-traces .m-nodes circle { fill: rgba(43,255,155,0.6); }
.install-stage.powered .mobo-traces .m-traces path { stroke-width: 2.6; filter: drop-shadow(0 0 6px rgba(0,229,255,0.6)); animation-duration: 2.4s; }
.install-stage.powered .mobo-traces .m-traces path:nth-child(1){ stroke: rgba(0,255,180,.8);}
.install-stage.powered .mobo-traces .m-nodes circle { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }

/* onboard chips + cpu socket */
.mobo-chip { position: absolute; z-index: 1; border-radius: 4px; background: linear-gradient(145deg, #1a1a1f, #0c0c10); border: 1px solid rgba(255,255,255,0.05); box-shadow: inset 0 0 8px rgba(0,0,0,.6); }
.mobo-chip.c1 { width: 64px; height: 64px; left: 7%; top: 60%; }
.mobo-chip.c2 { width: 50px; height: 50px; right: 8%; top: 24%; }
.cpu-socket { position: absolute; z-index: 1; right: 12%; top: 52%; width: 96px; height: 96px; border-radius: 6px; display: grid; place-items: center; background: repeating-linear-gradient(0deg,#15151a 0 4px,#0d0d12 4px 8px), repeating-linear-gradient(90deg,#15151a 0 4px,#0d0d12 4px 8px); border: 2px solid rgba(242,194,74,0.35); font-family: "JetBrains Mono", monospace; font-size: .7rem; color: rgba(242,194,74,.6); letter-spacing: .1em; }
.install-stage.powered .cpu-socket { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 22px rgba(0,229,255,.45); }

/* DIMM slot */
.dimm-slot {
  position: absolute; z-index: 2; left: 50%; top: 30%; transform: translateX(-50%);
  width: min(74%, 480px); height: 30px; border-radius: 7px;
  background: linear-gradient(180deg, #050608, #0e1014);
  border: 1px solid rgba(120,160,255,0.18);
  box-shadow: inset 0 4px 10px rgba(0,0,0,.7), inset 0 0 0 2px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .25s, border-color .25s;
}
.slot-notch { position: absolute; left: 38%; top: -2px; bottom: -2px; width: 8px; background: #04100b; border-radius: 3px; }
.slot-label { font-family: "JetBrains Mono", monospace; font-size: .64rem; color: var(--muted); letter-spacing: .14em; opacity: .6; }
.dimm-slot .clip { position: absolute; top: -14px; width: 14px; height: 26px; border-radius: 4px; background: linear-gradient(180deg,#2a3450,#141a2c); border: 1px solid rgba(120,160,255,0.2); transition: transform .25s; }
.dimm-slot .clip.left { left: -16px; transform: rotate(-16deg); }
.dimm-slot .clip.right { right: -16px; transform: rotate(16deg); }
.dimm-slot.armed { border-color: var(--green); box-shadow: 0 0 0 2px rgba(43,255,155,.4), 0 0 26px rgba(43,255,155,.45), inset 0 4px 10px rgba(0,0,0,.7); }
.dimm-slot.armed .slot-label { color: var(--green); opacity: 1; }
.dimm-slot.filled { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0,229,255,.45), 0 0 30px rgba(0,229,255,.5), inset 0 4px 10px rgba(0,0,0,.7); }
.dimm-slot.filled .clip.left { transform: rotate(0deg); }
.dimm-slot.filled .clip.right { transform: rotate(0deg); }

/* draggable RAM module — same width as the slot so it seats edge-to-edge */
.dimm {
  position: absolute; z-index: 5; width: min(74%, 480px); height: 96px;
  cursor: grab; user-select: none; touch-action: none;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.55));
}
.dimm.dragging { cursor: grabbing; z-index: 6; filter: drop-shadow(0 22px 30px rgba(0,229,255,.4)); }
.dimm-pcb {
  position: relative; width: 100%; height: 100%; border-radius: 8px 8px 5px 5px;
  background: linear-gradient(170deg, #0f8a47, #0a6e38 70%, #085c2f);
  border: 1px solid rgba(0,0,0,.4);
  box-shadow: inset 0 0 18px rgba(0,0,0,.35);
  display: flex; align-items: center; gap: 4%; padding: 12px 9% 22px;
}
.dimm-chip { flex: 1; height: 46px; border-radius: 3px; background: linear-gradient(160deg,#1c1c22,#0c0c10); border: 1px solid rgba(255,255,255,0.05); box-shadow: inset 0 0 6px rgba(0,0,0,.6); position: relative; }
.dimm-chip::before, .dimm-chip::after { content: ""; position: absolute; left: 16%; right: 16%; height: 4px; background: #050507; border-radius: 2px; }
.dimm-chip::before { top: 32%; } .dimm-chip::after { top: 60%; }
.dimm-label { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-family: "Orbitron", sans-serif; font-weight: 900; font-size: 1.5rem; letter-spacing: .04em; background: linear-gradient(120deg,var(--accent),#fff,var(--accent-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 8px rgba(0,229,255,.6)); pointer-events: none; }
.dimm-pins { position: absolute; left: 4%; right: 4%; bottom: 3px; height: 12px; border-radius: 0 0 4px 4px; background: repeating-linear-gradient(90deg, #f2c24a 0 5px, #0a6e38 5px 7px); box-shadow: 0 0 8px rgba(242,194,74,.4); }
.dimm-keynotch { position: absolute; bottom: -1px; left: 38%; width: 10px; height: 14px; background: #04100b; border-radius: 2px; }
.dimm.installed .dimm-pcb { box-shadow: inset 0 0 18px rgba(0,0,0,.35), 0 0 28px rgba(0,229,255,.5); animation: seatPulse .5s ease; }
.dimm.installed .dimm-label { animation: labelFlash 1.2s ease; }
/* pins + key notch sink into the slot, so they vanish from view = clean seated fit */
.dimm.installed .dimm-pins, .dimm.installed .dimm-keynotch { opacity: 0; transition: opacity .18s ease .1s; }
@keyframes seatPulse { 0% { transform: translateY(-6px); } 60% { transform: translateY(2px); } 100% { transform: translateY(0); } }
@keyframes labelFlash { 0%,100% { filter: drop-shadow(0 0 8px rgba(0,229,255,.6)); } 40% { filter: drop-shadow(0 0 22px rgba(0,229,255,1)); } }

/* success message */
.install-msg {
  position: absolute; z-index: 7; left: 50%; bottom: 16px; transform: translate(-50%, 14px);
  text-align: center; opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .4s ease;
  display: flex; flex-direction: column; gap: 2px;
}
.install-msg.show { opacity: 1; transform: translate(-50%, 0); }
.install-msg strong { font-family: "Orbitron", sans-serif; font-size: 1.1rem; letter-spacing: .08em; color: var(--green); text-shadow: 0 0 16px rgba(43,255,155,.7); }
.install-msg span { font-family: "JetBrains Mono", monospace; font-size: .76rem; color: var(--accent); }

/* spark particles + shockwave */
.spark { position: absolute; z-index: 8; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); animation: sparkFly .9s ease-out forwards; box-shadow: 0 0 8px currentColor; }
@keyframes sparkFly { 0% { transform: translate(-50%, -50%) translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(.2); opacity: 0; } }
.shockwave { position: absolute; z-index: 7; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent); transform: translate(-50%, -50%); pointer-events: none; animation: shock .8s ease-out forwards; }
@keyframes shock { 0% { width: 20px; height: 20px; opacity: .9; } 100% { width: 360px; height: 360px; opacity: 0; } }

/* control bar */
.install-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.install-hint { font-family: "JetBrains Mono", monospace; font-size: .8rem; color: var(--muted); letter-spacing: .05em; }
.eject-btn { opacity: .45; pointer-events: none; transition: opacity .3s; padding: 10px 18px; }
.eject-btn.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-3d { order: -1; }
  .canvas-stage { max-width: 420px; margin: 0 auto; }
  .nav-links { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .tok-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .news-grid, .tok-grid, .steps { grid-template-columns: 1fr; }
  .nav { gap: 12px; padding: 12px 16px; }
  .nav-cta { display: none; }

  /* hero text + buttons fully responsive */
  .hero { padding-top: 28px; }
  .hero-title { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 18px; font-size: 0.95rem; }
  .ca-box { max-width: 100%; }
  .ca-row code { font-size: 0.74rem; }

  .section { padding-left: 16px; padding-right: 16px; }
  .section-head h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .cta-final .btn { width: 100%; justify-content: center; }

  /* install game on small screens */
  .install-stage { height: clamp(320px, 80vw, 420px); }
  .dimm-slot, .dimm { width: 86%; }
  .dimm { height: 80px; }
  .dimm-label { font-size: 1.2rem; }
  .cpu-socket { width: 70px; height: 70px; right: 8%; }
  .install-bar { flex-direction: column; align-items: stretch; }
  .install-bar .eject-btn { width: 100%; justify-content: center; }
  .install-hint { text-align: center; }

  .footer-ca { font-size: 0.72rem; }
  .socials { width: 100%; }
  .social-btn { flex: 1; justify-content: center; }
}

@media (max-width: 380px) {
  .brand-text { font-size: 1.05rem; }
  .hero-title { font-size: clamp(2rem, 12vw, 2.6rem); }
}
