/* ═══════════════════════════════════════════════════════════════════════
   VramCat — circuit-board gamer.
   Charcoal #0d1117, PCB traces in CSS, RGB rainbow accents, Chakra Petch + Inter.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #0d1117;
  --bg-2: #11161e;
  --panel: #151b24;
  --line: #232c38;
  --trace: #1d2733;
  --trace-glow: #2ea8ff;
  --text: #e6edf3;
  --muted: #8b98a8;
  --green: #2eff9b;
  --blue: #2ea8ff;
  --pink: #ff3b6b;
  --amber: #ffb02e;
  --violet: #c33bff;
  --rgb: linear-gradient(90deg, #ff3b6b, #ffb02e, #2eff9b, #2ea8ff, #c33bff, #ff3b6b);
  --display: "Chakra Petch", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: "Chakra Petch", monospace; background: #0b0e13; border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; font-size: .92em; color: var(--green); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: .01em; margin: 0; }

/* ─── PCB background: traces + vias, pure CSS ─────────────────────────── */
.pcb-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    /* vias */
    radial-gradient(circle at 12px 12px, var(--trace) 2px, transparent 2.5px),
    /* horizontal + vertical traces */
    repeating-linear-gradient(0deg, transparent 0 79px, var(--trace) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, var(--trace) 79px 80px),
    /* diagonal traces */
    repeating-linear-gradient(45deg, transparent 0 158px, rgba(46,168,255,.06) 158px 159px),
    var(--bg);
  background-size: 80px 80px, 80px 80px, 80px 80px, 224px 224px, auto;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, rgba(0,0,0,.35) 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, rgba(0,0,0,.35) 100%);
}

/* ─── RGB helpers ─────────────────────────────────────────────────────── */
@keyframes rgbShift { to { background-position: 200% 0; } }
.rgb-text {
  background: var(--rgb); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rgbShift 6s linear infinite;
}
.rgb-border { position: relative; }
.rgb-border::before {
  content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit;
  background: var(--rgb); background-size: 200% 100%; animation: rgbShift 6s linear infinite;
}

/* ─── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; max-width: var(--max); margin: 0 auto;
  background: rgba(13,17,23,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-chip {
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .12em;
  padding: 5px 9px; border-radius: 6px; background: #0b0e13; border: 1px solid var(--line);
  position: relative; color: var(--green);
  box-shadow: 0 0 0 1px rgba(46,255,155,.15), 0 0 14px rgba(46,255,155,.15);
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 18px; }
.nav-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { color: var(--text) !important; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--line); font-family: var(--display); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 18px; border-radius: 6px; padding: 4px 10px; }

/* ─── TICKER ──────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden; border-top: 1px solid transparent; border-bottom: 1px solid transparent;
  border-image: var(--rgb) 1; background: #0b0e13; font-family: var(--display);
  font-size: 12px; letter-spacing: .18em; color: var(--text);
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }
.ticker-track { display: inline-flex; gap: 28px; white-space: nowrap; padding: 8px 0; animation: tickerScroll 28s linear infinite; }
.ticker-track span:nth-child(even) { color: var(--amber); }

/* ─── HERO ────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 64px 24px 48px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.eyebrow { font-family: var(--display); color: var(--green); font-size: 13px; letter-spacing: .16em; margin: 0 0 14px; }
.hero-ticker {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.12em;
  color: var(--amber);
}

.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 700; }
.hook { font-size: 19px; color: var(--muted); max-width: 520px; margin: 18px 0 26px; }

.ca-box {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 560px; margin-bottom: 22px;
}
.ca-label { font-family: var(--display); font-size: 12px; letter-spacing: .14em; color: var(--amber); }
.ca-addr { flex: 1; font-family: var(--display); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.copy-btn {
  background: #0b0e13; color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 12px; font-family: var(--display); font-size: 12px; letter-spacing: .1em; cursor: pointer;
}
.copy-btn:hover { border-color: var(--blue); color: var(--blue); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; font-family: var(--display);
  font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border: none;
}
.btn:hover { text-decoration: none; }
.btn-rgb {
  color: #0b0e13; background: var(--rgb); background-size: 200% 100%;
  animation: rgbShift 6s linear infinite; box-shadow: 0 0 22px rgba(46,168,255,.25);
}
.btn-rgb:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-wide { width: 100%; text-align: center; margin-top: 10px; }
.btn.ready { animation: rgbShift 1.2s linear infinite, pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.02); box-shadow: 0 0 34px rgba(46,255,155,.45); } }

/* GPU card */
.hero-panel { display: flex; justify-content: center; }
.gpu-card {
  width: 100%; max-width: 460px; padding: 18px; border-radius: 14px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  position: relative; border: 1px solid transparent;
  background-clip: padding-box;
}
.gpu-card::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 15px; z-index: -1;
  background: var(--rgb); background-size: 200% 100%; animation: rgbShift 6s linear infinite;
  filter: blur(.2px);
}
.gpu-card::after {
  content: ""; position: absolute; inset: -14px; border-radius: 24px; z-index: -2;
  background: var(--rgb); background-size: 200% 100%; animation: rgbShift 6s linear infinite;
  filter: blur(28px); opacity: .18;
}
.gpu-card-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.gpu-led { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.mascot { width: 100%; height: auto; display: block; margin: 6px 0 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.fan { animation: spin 1.6s linear infinite; }
.fan-2 { animation-duration: 1.9s; }
.eye { animation: eyeGlow 3s ease-in-out infinite; }
@keyframes eyeGlow { 50% { fill: #2ea8ff; } }

.vram-meter { margin-top: 8px; }
.vram-meter-head, .vram-meter-foot { display: flex; justify-content: space-between; font-family: var(--display); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.vram-meter-head b, .vram-meter-foot b { color: var(--text); }
.vram-bar { height: 14px; margin: 8px 0; background: #0b0e13; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; position: relative; }
.vram-bar::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(13,17,23,.6) 8px 10px);
}
.vram-fill { height: 100%; background: var(--rgb); background-size: 200% 100%; animation: rgbShift 4s linear infinite; transition: width 1s ease; }

.countdown { margin-top: 16px; padding: 14px; background: #0b0e13; border: 1px solid var(--line); border-radius: 10px; }
.cd-label { font-family: var(--display); font-size: 11px; letter-spacing: .2em; color: var(--amber); }
.cd-digits { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1.1; margin: 4px 0 2px; }
.cd-digits i { font-style: normal; color: var(--muted); margin: 0 4px; }
.cd-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.cd-note b { color: var(--text); }

/* ─── SECTIONS ────────────────────────────────────────────────────────── */
.section { max-width: var(--max); margin: 0 auto; padding: 64px 24px; border-top: 1px solid var(--line); }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; display: flex; align-items: baseline; gap: 14px; }
.idx { font-size: 14px; color: var(--green); letter-spacing: .2em; }
.section-lead { color: var(--muted); max-width: 720px; margin: 12px 0 30px; font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  position: relative; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.step::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--rgb); background-size: 100% 400%; }
.step:nth-child(1)::before { background: var(--pink); }
.step:nth-child(2)::before { background: var(--amber); }
.step:nth-child(3)::before { background: var(--blue); }
.step:nth-child(4)::before { background: var(--green); }
.step-num { font-family: var(--display); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.step h3 { font-size: 20px; margin: 6px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step p b { color: var(--text); }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.spec { padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(11,14,19,.6); }
.spec h4 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.spec p { margin: 0; color: var(--muted); font-size: 14.5px; }
.spec p b, .spec p em { color: var(--text); font-style: normal; }

/* tokenomics */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tok-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.tok-table th, .tok-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.tok-table tr:last-child th, .tok-table tr:last-child td { border-bottom: none; }
.tok-table th { font-family: var(--display); font-weight: 600; color: var(--muted); width: 220px; letter-spacing: .04em; }
.tok-table td b { color: var(--green); }

/* how to buy */
.buy-steps { counter-reset: s; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; max-width: 820px; }
.buy-steps li {
  counter-increment: s; position: relative; padding: 16px 18px 16px 66px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 15px;
}
.buy-steps li b { color: var(--text); }
.buy-steps li::before {
  content: "0" counter(s); position: absolute; left: 16px; top: 14px;
  font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--amber);
}

/* roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.rm-item { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.rm-item.done { border-color: rgba(46,255,155,.4); box-shadow: inset 0 0 0 1px rgba(46,255,155,.15); }
.rm-tag { font-family: var(--display); font-size: 11px; letter-spacing: .18em; color: var(--violet); }
.rm-item h3 { font-size: 20px; margin: 6px 0 10px; }
.rm-item ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.rm-item li { margin-bottom: 4px; }

/* footer */
.footer { border-top: 1px solid transparent; border-image: var(--rgb) 1; padding: 40px 24px 30px; text-align: center; background: #0b0e13; }
.footer-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; font-family: var(--display); letter-spacing: .08em; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.disclaimer { max-width: 760px; margin: 0 auto 14px; color: var(--muted); font-size: 13px; }
.copy { color: #5b6473; font-size: 12px; margin: 0; font-family: var(--display); letter-spacing: .1em; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .steps, .roadmap { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-cta { border: none; border-radius: 0; }
  .steps, .roadmap { grid-template-columns: 1fr; }
  .cd-digits { font-size: 32px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 44px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rgb-text, .btn-rgb, .gpu-card::before, .gpu-card::after, .vram-fill, .ticker-track, .fan, .eye, .gpu-led { animation: none !important; }
}

/* ── Launch polish: TBA / disabled outbound links (pre-deploy) ── */
a.link-tba,
a[aria-disabled="true"] {
  opacity: 0.92;
  cursor: not-allowed;
  text-decoration: none;
  pointer-events: none;
  position: relative;
}
.link-tba.btn,
.link-tba.btn-orange,
.link-tba.btn-primary,
.link-tba.btn-nav,
.link-tba.nav-cta,
.link-tba.nav__cta,
a.link-tba.btn,
a.btn.link-tba {
  opacity: 1;
  box-shadow: none;
  filter: none;
}
.chain-tba-badge {
  display: inline-block;
  margin: 0.55rem 0 0.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: 1px dashed currentColor;
  border-radius: 999px;
  opacity: 0.9;
  max-width: 100%;
}
.kit-chain-note {
  font-size: 0.85rem;
  opacity: 0.82;
  margin: 0.4rem 0 1rem;
  max-width: 70ch;
}
