/* ============================================================
   GOLD QUANTUM AI — design tokens
   Palette: void black, warm ember cards, bright gold + deep
   bronze, brushed silver. Display face Space Grotesk (technical,
   geometric — echoes the circuit/candlestick mark). Body: IBM
   Plex Sans. Data/utility: IBM Plex Mono for anything numeric.
   ============================================================ */

:root {
  --bg-void: #0a0908;
  --bg-ember: #15110d;
  --bg-ember-2: #1d1712;
  --line: #2c241a;
  --line-bright: #4a3a22;

  --gold: #e8b339;
  --gold-bright: #f7cf6a;
  --gold-deep: #a8761f;

  --silver: #d7dade;
  --silver-dim: #9aa0a8;

  --text-primary: #f3efe6;
  --text-muted: #9c9382;
  --text-faint: #6b6457;

  --radius: 2px;
  --max-w: 1180px;

  --ff-display: "Space Grotesk", sans-serif;
  --ff-body: "IBM Plex Sans", sans-serif;
  --ff-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
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 {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--ff-mono); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

p.lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 540px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  font-weight: 600;
}
.btn-primary:hover { background: linear-gradient(180deg, #fbe08a, var(--gold-bright)); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line-bright);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 9, 8, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 34px; width: 34px; }
.brand .name {
  font-family: var(--ff-display);
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand .name .ai { color: var(--silver); }

.navlinks {
  display: flex;
  gap: 30px;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.navlinks a { color: var(--text-muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--gold); border-color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.navtoggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; }

@media (max-width: 820px) {
  .navlinks { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-ember); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); display: none; }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 14px 28px; width: 100%; border-bottom: 1px solid var(--line); }
  .navtoggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- pulse divider (signature element) ----------
   A small candlestick ladder + trendline, echoing the mark.
   Used between sections instead of a plain rule. */
.pulse-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 0 28px;
}
.pulse-divider svg { width: 100%; max-width: 260px; height: 28px; opacity: 0.8; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-head { margin-bottom: 48px; max-width: 640px; }
.section-head h2 { font-size: 34px; margin-top: 10px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.06;
  margin-top: 14px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead { margin-top: 20px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 46px;
  display: flex;
  gap: 36px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-meta strong { display: block; color: var(--text-primary); font-size: 18px; font-family: var(--ff-mono); letter-spacing: 0; text-transform: none; margin-bottom: 4px; }

.hero-visual {
  position: relative;
  height: 360px;
}
.circuit-bg {
  position: absolute;
  inset: -40px -20px auto auto;
  width: 480px;
  opacity: 0.35;
  pointer-events: none;
}
.candles {
  position: relative;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-visual { height: 260px; order: -1; }
}

/* ---------- page hero (non-home) ---------- */
.page-hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: 40px; margin-top: 12px; }
.page-hero p.lead { margin-top: 16px; }

/* ---------- feature grid ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid3, .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3, .grid4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-ember);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card .num {
  font-family: var(--ff-mono);
  color: var(--gold-deep);
  font-size: 13px;
  margin-bottom: 14px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 34px 28px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: none; }
.step .tag { font-family: var(--ff-mono); font-size: 12px; color: var(--gold); letter-spacing: 0.1em; }
.step h3 { margin: 12px 0 10px; font-size: 19px; }
.step p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step { border-right: none; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: none; } }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 880px; margin: 0 auto; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--bg-ember);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--gold-deep); background: linear-gradient(180deg, var(--bg-ember-2), var(--bg-ember)); position: relative; }
.plan.featured::before {
  content: "MOST LICENSED";
  position: absolute; top: -1px; right: -1px;
  background: var(--gold); color: #1a1408;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 0 var(--radius) 0 var(--radius);
}
.plan .plan-name { font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; color: var(--text-muted); }
.plan .plan-price { font-family: var(--ff-mono); font-size: 46px; color: var(--gold); margin: 14px 0 2px; }
.plan .plan-price sup { font-size: 16px; top: -1.1em; color: var(--text-muted); }
.plan .plan-sub { color: var(--text-faint); font-size: 13px; margin-bottom: 26px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; flex-grow: 1; }
.plan li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-muted); display: flex; gap: 10px; }
.plan li:first-child { border-top: none; }
.plan li::before { content: "—"; color: var(--gold-deep); }

/* ---------- payment modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(8,7,6,0.82);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-ember-2);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  max-width: 420px; width: 100%;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--gold); }
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal .modal-plan { font-family: var(--ff-mono); color: var(--gold); font-size: 13px; margin-bottom: 22px; }
.qr-box {
  background: #fff; padding: 14px; border-radius: var(--radius);
  width: 196px; height: 196px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.qr-box img, .qr-box canvas { width: 100%; height: 100%; }
.wallet-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-void); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px;
  font-family: var(--ff-mono); font-size: 12.5px; color: var(--text-muted);
  word-break: break-all;
}
.wallet-row button { background: none; border: none; color: var(--gold); cursor: pointer; font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; flex-shrink: 0; }
.modal .network { font-family: var(--ff-mono); font-size: 12px; color: var(--text-faint); margin-top: 8px; }
.modal .placeholder-note {
  margin-top: 18px; padding: 12px 14px; font-size: 12.5px; color: var(--gold-deep);
  background: rgba(168,118,31,0.08); border: 1px solid var(--line); border-radius: var(--radius);
}
.modal .amount { font-family: var(--ff-mono); font-size: 22px; color: var(--text-primary); margin: 16px 0 4px; }

/* ---------- contact / about forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--ff-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-ember); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text-primary); padding: 12px 14px;
  font-family: var(--ff-body); font-size: 14.5px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: var(--gold-deep); }
.field textarea { resize: vertical; min-height: 120px; }

.info-list { list-style: none; padding: 0; margin: 24px 0; }
.info-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.info-list li:first-child { border-top: none; }
.info-list .label { font-family: var(--ff-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-deep); display: block; margin-bottom: 4px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 50px 0 30px;
  background: var(--bg-ember);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--ff-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; width: 30px; }
.footer-brand span { font-family: var(--ff-display); font-size: 16px; }
.footer-tag { color: var(--text-faint); font-size: 13.5px; max-width: 320px; }

.risk-disclosure {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.7;
}
.risk-disclosure strong { color: var(--text-muted); }
.copyright { margin-top: 18px; font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- hero candle animation ---------- */
.candles .bar {
  transform-origin: bottom;
  animation: rise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.candles .bar:nth-of-type(1) { animation-delay: 0.05s; }
.candles .bar:nth-of-type(2) { animation-delay: 0.16s; }
.candles .bar:nth-of-type(3) { animation-delay: 0.27s; }
.candles .bar:nth-of-type(4) { animation-delay: 0.38s; }
.candles .bar:nth-of-type(5) { animation-delay: 0.49s; }
.candles .bar:nth-of-type(6) { animation-delay: 0.6s; }
.candles .wick { opacity: 0; animation: fadein 0.4s ease 1s both; }
@keyframes rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 0.9; } }

.circuit-bg .node { animation: blink 3.6s ease-in-out infinite; }
.circuit-bg .node:nth-of-type(odd) { animation-delay: 1.1s; }
@keyframes blink { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------- misc ---------- */
.center { text-align: center; }
.section-head.center { margin-left: auto; margin-right: auto; }
