/* ============================================================
   VELOQUANTUM — design tokens
   ============================================================ */
:root {
  --bg: #0E1013;
  --bg-raise: #15181C;
  --panel: #191D22;
  --line: #2A2F37;
  --text: #EEF0F3;
  --text-dim: #9AA2AD;
  --text-faint: #5B626C;
  --ember: #FF6A3D;
  --ember-dim: #B04A29;
  --shard: #3FD6C6;
  --shard-dim: #2A9187;
  --gold: #E8B94E;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* corner-bracket panel: a HUD-style targeting frame, used on key panels */
.bracket {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
}
.bracket::before, .bracket::after,
.bracket .bl, .bracket .br {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--ember);
  border-style: solid;
  border-width: 0;
}
.bracket::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.bracket::after { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.bracket .bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.bracket .br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn-primary { background: var(--ember); color: #1A0A04; }
.btn-primary:hover { background: #ff835e; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--shard); color: var(--shard); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 16, 19, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled { background: rgba(14, 16, 19, 0.94); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 28px; height: 28px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { font-size: 14px; color: var(--text-dim); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 172px 0 96px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 5px 12px;
  margin-bottom: 24px;
}
.live-tag .dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 { font-size: 50px; max-width: 13ch; margin-bottom: 22px; }
.hero h1 .accent { color: var(--ember); }
.hero .lede { font-size: 17.5px; color: var(--text-dim); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats div { border-left: 2px solid var(--ember); padding-left: 12px; }
.hero-stats .num { display: block; font-family: var(--font-mono); font-size: 21px; }
.hero-stats .label { font-size: 12px; color: var(--text-dim); }

/* Arena radar hero graphic */
.arena { position: relative; aspect-ratio: 1 / 1; }
.arena svg { width: 100%; height: 100%; }
.ring { fill: none; stroke: var(--line); stroke-width: 1; }
.sweep {
  transform-origin: 200px 200px;
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.blip { fill: var(--shard); animation: blip-pulse 2.4s ease-in-out infinite; }
.blip.b2 { fill: var(--ember); animation-delay: .6s; }
.blip.b3 { fill: var(--gold); animation-delay: 1.2s; }
.blip.b4 { fill: var(--shard); animation-delay: 1.8s; }
@keyframes blip-pulse { 0%, 100% { opacity: .35; r: 3; } 50% { opacity: 1; r: 5; } }
.arena-label { font-family: var(--font-mono); font-size: 10px; fill: var(--text-faint); }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { padding: 100px 0; }
.section-head { max-width: 60ch; margin-bottom: 52px; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--shard);
  margin-bottom: 14px;
}
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 16px; }

/* ============================================================
   Platform feature rows
   ============================================================ */
.platform { border-bottom: 1px solid var(--line); background: var(--bg-raise); }
.feature-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: none; }
.feature-row .f-name {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-row .f-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
}
.feature-row .f-icon.ember-i { color: var(--ember); }
.feature-row .f-icon.shard-i { color: var(--shard); }
.feature-row h3 { font-size: 18px; font-weight: 700; }
.feature-row p { color: var(--text-dim); font-size: 14.5px; max-width: 56ch; margin-bottom: 10px; }
.feature-row .f-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  padding: 3px 9px;
}

/* ============================================================
   About / release cadence
   ============================================================ */
.about .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.about-visual { position: relative; }
.pipeline-box { padding: 26px; }
.pipeline-box .pb-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 18px; }
.pipeline-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pipeline-row:first-of-type { border-top: none; }
.pipeline-row .pr-dot { width: 8px; height: 8px; flex-shrink: 0; }
.pipeline-row .pr-dot.ember { background: var(--ember); }
.pipeline-row .pr-dot.shard { background: var(--shard); }
.pipeline-row span:last-child { font-size: 13.5px; color: var(--text-dim); }

.about-copy p { color: var(--text-dim); font-size: 16px; margin-bottom: 18px; max-width: 60ch; }
.about-copy p:first-child { color: var(--text); font-size: 18px; }
.about-copy .callout {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 3px solid var(--shard);
  background: var(--panel);
  font-size: 14.5px;
  color: var(--text-dim);
}
.about-copy .callout strong { color: var(--text); }

/* ============================================================
   Marketplace / ownership
   ============================================================ */
.marketplace { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raise); }
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.market-card { padding: 26px 24px; position: relative; }
.market-card .mc-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--gold); margin-bottom: 10px; }
.market-card h3 { font-size: 17px; margin-bottom: 8px; }
.market-card p { font-size: 13.5px; color: var(--text-dim); }

/* ============================================================
   Partners / CTA
   ============================================================ */
.partners-cta { text-align: left; }
.partners-cta .wrap {
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.partners-cta h2 { font-size: 30px; max-width: 16ch; }
.partners-cta p { color: var(--text-dim); margin-top: 12px; max-width: 42ch; }
.partners-cta .pc-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Contact / footer
   ============================================================ */
.contact .wrap { display: grid; grid-template-columns: 1fr 0.8fr; gap: 60px; }
.contact-info address {
  font-style: normal;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 22px;
}
.contact-meta { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-dim); }
.contact-meta a:hover { color: var(--ember); }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 13px; color: var(--text-dim); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 12.5px; color: var(--text-faint); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .arena { max-width: 380px; margin: 0 auto; order: -1; }
  .hero h1 { font-size: 36px; }
  .about .wrap { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 14px; }
  .contact .wrap { grid-template-columns: 1fr; }
  .partners-cta .wrap { padding: 44px 28px; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 24px 32px 32px;
    gap: 20px;
  }
  .hero { padding: 140px 0 72px; }
  .hero h1 { font-size: 30px; }
  .market-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
}
