/* ==========================================================
   qpuchips.com — Accelerator Succession Design System
   Palette: Void / Lattice / Quantum Violet / Pulse Cyan / Mandate Amber / Briefing
   Type: Syne (display) · Inter (body) · JetBrains Mono (data)
   ========================================================== */

:root {
  --void: #050709;
  --lattice: #0D1117;
  --lattice-2: #131920;
  --violet: #8B5CF6;
  --violet-dim: rgba(139, 92, 246, 0.35);
  --violet-glow: rgba(139, 92, 246, 0.18);
  --cyan: #22D3EE;
  --cyan-dim: rgba(34, 211, 238, 0.38);
  --amber: #F59E0B;
  --amber-dim: rgba(245, 158, 11, 0.22);
  --briefing: #EEF2F7;
  --briefing-ink: #111827;
  --graphite: #6B7280;
  --wire: rgba(255,255,255,0.08);
  --wire-strong: rgba(255,255,255,0.15);
  --white: #FFFFFF;

  --ff-display: "Syne", "Arial Narrow", sans-serif;
  --ff-body: "Inter", -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  --max: 1180px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: rgba(255,255,255,0.88);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.55em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 800; color: var(--white); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); color: var(--white); }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.4em; }

p { margin: 0 0 1em; color: rgba(255,255,255,0.75); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--ff-mono); letter-spacing: 0.01em; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--amber);
  color: #000;
  padding: 0.5em 1em;
  z-index: 999;
  border-radius: 4px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-intro {
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75em 1.45em;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--violet);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--violet-dim);
}
.btn-primary:hover {
  background: #9d6ffa;
  box-shadow: 0 4px 18px var(--violet-dim);
}
.btn-ghost {
  background: transparent;
  border-color: var(--wire-strong);
  color: rgba(255,255,255,0.88);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-full { width: 100%; justify-content: center; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,7,9,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wire);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
}
.wordmark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
}
.wordmark-qubit {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-glow);
  display: inline-block;
  flex-shrink: 0;
}
.wordmark-tld { color: var(--graphite); }

/* ── Ticker ── */
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  position: relative;
  height: 1.6em;
  display: flex;
  align-items: center;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, rgba(5,7,9,0.9), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(-90deg, rgba(5,7,9,0.9), transparent); }
.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  font-size: 0.75rem;
  font-family: var(--ff-mono);
  color: var(--amber);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-inner span { padding-right: 2em; }
.header-cta { flex-shrink: 0; padding: 0.5em 1.1em; font-size: 0.88rem; }

@media (max-width: 800px) {
  .ticker-wrap { display: none; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
}

/* ── Hero ── */
.hero {
  padding: 4.5rem 0 0;
  border-bottom: 1px solid var(--wire);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 3.5rem;
}
.epoch-bar {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.epoch {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3em 0.75em;
  border-radius: 4px;
  border: 1px solid var(--wire-strong);
  color: var(--graphite);
}
.epoch-past { opacity: 0.5; }
.epoch-recent { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.15); }
.epoch-now {
  color: var(--violet);
  border-color: var(--violet-dim);
  background: var(--violet-glow);
}
.epoch-arrow { color: var(--graphite); font-size: 0.9rem; }
.epoch-live {
  display: inline-block;
  background: var(--violet);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.4em;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-sub { font-size: 1.06rem; margin-top: 1rem; }
.hero-sub strong { color: var(--cyan); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

.hero-lattice { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
#lattice-canvas {
  width: 100%; max-width: 460px; height: auto;
  border-radius: 12px;
  background: var(--lattice);
  border: 1px solid var(--wire-strong);
}
.lattice-label {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  color: var(--graphite);
  margin: 0;
  text-transform: uppercase;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--wire);
}
.hstrip-item {
  padding: 1.3rem 1.5rem;
  border-right: 1px solid var(--wire);
}
.hstrip-item:last-child { border-right: none; }
.hstrip-val { font-size: 1.1rem; color: var(--amber); font-weight: 600; margin: 0 0 0.3em; }
.hstrip-label { font-size: 0.78rem; color: var(--graphite); margin: 0; line-height: 1.5; }

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-lattice { align-items: flex-start; }
  #lattice-canvas { max-width: 400px; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hstrip-item:nth-child(2) { border-right: none; }
  .hstrip-item:nth-child(3) { border-right: 1px solid var(--wire); border-top: 1px solid var(--wire); }
  .hstrip-item:last-child { border-top: 1px solid var(--wire); }
}
@media (max-width: 560px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hstrip-item { border-right: none !important; border-top: 1px solid var(--wire); }
}

/* ── Section base ── */
.section { padding: 5rem 0; border-top: 1px solid var(--wire); }
.section-alt { background: var(--lattice); }

/* ── Presidential Mandate ── */
.mandate-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.mandate-headline {
  max-width: 820px;
  margin-bottom: 2.5rem;
}
.mandate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.mandate-card {
  background: var(--lattice-2);
  border: 1px solid var(--wire-strong);
  border-radius: 10px;
  padding: 1.8rem;
}
.mandate-eo {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.6rem;
}
.mandate-card h3 { color: var(--white); margin-bottom: 0.75rem; }
.mandate-card p { font-size: 0.9rem; }
.mandate-quote {
  font-style: italic;
  border-left: 2px solid var(--violet);
  padding-left: 1em;
  margin-top: 1.2rem;
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.85rem !important;
}
.mandate-source { font-style: normal; font-family: var(--ff-mono); font-size: 0.72rem; color: var(--graphite); }
.mandate-bottom { max-width: 780px; font-size: 0.95rem; border-top: 1px solid var(--wire); padding-top: 1.5rem; }

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

/* ── Stack Diagram ── */
.stack-diagram {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--wire);
  border: 1px solid var(--wire-strong);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.stack-layer {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 1.8rem;
  background: var(--lattice);
}
.stack-active { background: var(--lattice-2); position: relative; }
.stack-active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--violet);
}
.stack-icon {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  padding: 0.7em;
  border-radius: 8px;
  border: 1px solid var(--wire-strong);
}
.stack-cpu .stack-icon { color: var(--graphite); }
.stack-gpu .stack-icon { color: var(--cyan); border-color: var(--cyan-dim); }
.stack-qpu .stack-icon {
  color: var(--violet);
  border-color: var(--violet-dim);
  background: var(--violet-glow);
  box-shadow: 0 0 12px var(--violet-glow);
}
.stack-content h3 { color: var(--white); font-size: 1rem; }
.stack-content p { font-size: 0.88rem; margin: 0; }
.stack-era {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--graphite);
  text-align: right;
}
.live-badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  background: var(--violet);
  color: #fff;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.5em;
  font-weight: 600;
}
.stack-note {
  font-size: 0.78rem;
  color: var(--graphite);
  border-left: 2px solid var(--violet);
  padding: 0.5em 1em;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .stack-layer {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
  }
  .stack-era { display: none; }
}

/* ── Builders ── */
.builders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.builder-card {
  background: var(--lattice);
  border: 1px solid var(--wire);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.15s ease;
}
.builder-card:hover { border-color: var(--violet-dim); }
.builder-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  margin: 0 0 0.25em;
}
.builder-tag {
  font-size: 0.72rem;
  color: var(--violet);
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}
.builder-card p { font-size: 0.87rem; margin: 0; }

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

/* ── Neocloud ── */
.neocloud-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.neocloud-copy p strong { color: var(--cyan); }
.neocloud-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--wire);
  border: 1px solid var(--wire-strong);
  border-radius: 8px;
  overflow: hidden;
}
.nstat {
  background: var(--lattice-2);
  padding: 1.3rem;
}
.nstat-val { font-size: 1.25rem; color: var(--cyan); font-weight: 600; margin: 0 0 0.3em; }
.nstat-label { font-size: 0.8rem; color: var(--graphite); margin: 0; line-height: 1.5; }

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

/* ── Briefing Card ── */
.briefing-card {
  background: var(--briefing);
  color: var(--briefing-ink);
  border-radius: 4px;
  margin-top: 2rem;
  box-shadow: 0 28px 56px -16px rgba(0,0,0,0.65);
  overflow: hidden;
  transform: rotate(-0.25deg);
}
.briefing-header {
  background: var(--briefing-ink);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.briefing-stamp {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.4);
  padding: 0.3em 0.75em;
  border-radius: 3px;
}
.briefing-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin: 0;
}
.briefing-body { padding: 2rem 2.2rem 2.4rem; }

.valuation-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
  margin-bottom: 2rem;
}
.vtier {}
.vtier-label { font-size: 0.7rem; letter-spacing: 0.05em; color: rgba(17,24,39,0.5); margin-bottom: 0.5em; }
.vtier-num {
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--briefing-ink);
  margin: 0 0 0.35em;
  line-height: 1;
}
.vtier-note { font-size: 0.84rem; color: rgba(17,24,39,0.62); margin: 0; }

@media (max-width: 700px) {
  .valuation-tiers { grid-template-columns: 1fr; }
}

.briefing-rationale {
  border-top: 1px solid rgba(17,24,39,0.12);
  padding-top: 1.5rem;
  margin-bottom: 1.8rem;
}
.briefing-rl { font-size: 0.7rem; letter-spacing: 0.06em; color: rgba(17,24,39,0.45); margin-bottom: 0.6em; }
.briefing-rationale p { font-size: 0.9rem; color: rgba(17,24,39,0.75); margin: 0; }

.score-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  border-top: 1px solid rgba(17,24,39,0.12);
  padding-top: 1.5rem;
}
.score-vis { position: relative; flex-shrink: 0; }
.score-track { fill: none; stroke: rgba(17,24,39,0.1); stroke-width: 10; }
.score-fill {
  fill: none;
  stroke: #8B5CF6;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: calc(314 - (314 * var(--pct)));
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}
.score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--briefing-ink);
}
.score-num span { font-size: 0.68rem; color: rgba(17,24,39,0.45); margin-left: 1px; }
.score-copy { font-size: 0.9rem; color: rgba(17,24,39,0.7); margin: 0; }

@media (max-width: 600px) {
  .score-row { flex-direction: column; align-items: flex-start; }
  .briefing-header { flex-direction: column; align-items: flex-start; }
}

/* ── Comps ── */
.comps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.comps-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(17,24,39,0.45);
  padding: 0 0 0.7rem;
  border-bottom: 1px solid rgba(17,24,39,0.2);
}
.comps-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(17,24,39,0.08);
  color: rgba(17,24,39,0.82);
}
.comp-price { font-weight: 600; color: var(--briefing-ink) !important; }
.comp-highlight td { color: var(--briefing-ink); font-weight: 500; }
.comp-footnote { font-size: 0.76rem; color: rgba(17,24,39,0.45); margin: 1.2rem 0 0; }

/* ── Buyers ── */
.buyers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.buyer {
  border: 1px solid var(--wire);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.15s ease;
}
.buyer:hover { border-color: var(--violet-dim); }
.buyer-cat {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.4em;
}
.buyer h3 { color: var(--white); font-size: 1.05rem; }
.buyer p { font-size: 0.87rem; margin: 0; }

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

/* ── Acquire ── */
.section-acquire {
  background: var(--lattice);
}
.acquire-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.acquire-sub { font-size: 1.05rem; max-width: 480px; }
.acquire-steps { margin-top: 2rem; }
.astep {
  display: flex;
  align-items: flex-start;
  gap: 1.1em;
  padding: 0.9rem 0;
  border-top: 1px solid var(--wire);
}
.astep:first-child { border-top: none; }
.astep-n { color: var(--violet); font-weight: 600; font-size: 0.85rem; flex-shrink: 0; padding-top: 0.1em; }
.astep p { font-size: 0.92rem; margin: 0; }

.acquire-form {
  background: var(--lattice-2);
  border: 1px solid var(--wire-strong);
  border-radius: 10px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}
.form-head {
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 1.2rem;
}
.acquire-form label {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.35rem;
  margin-top: 0.85rem;
}
.acquire-form input,
.acquire-form select,
.acquire-form textarea {
  background: var(--void);
  border: 1px solid var(--wire-strong);
  color: var(--white);
  border-radius: 6px;
  padding: 0.6em 0.8em;
  font-family: var(--ff-body);
  font-size: 0.93rem;
  width: 100%;
}
.acquire-form input:focus,
.acquire-form select:focus,
.acquire-form textarea:focus {
  border-color: var(--violet);
  outline: none;
  box-shadow: 0 0 0 2px var(--violet-glow);
}
.acquire-form button { margin-top: 1.3rem; }
.form-note { font-size: 0.74rem; color: var(--graphite); margin: 0.8rem 0 0; }

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

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--wire);
  padding: 2.5rem 0 3rem;
}
.footer-row {}
.footer-id { color: var(--graphite); font-size: 0.8rem; margin-bottom: 0.8rem; }
.footer-disc { font-size: 0.76rem; color: rgba(255,255,255,0.32); max-width: 820px; line-height: 1.6; }
.footer-copy { font-size: 0.76rem; color: rgba(255,255,255,0.28); margin: 1rem 0 0; }
