/* SBT site styles, shared by index.html and draws.html */
:root {
  --bg: #0d0e11;
  --bg-2: #15171c;
  --card: #1b1e24;
  --card-hover: #22262e;
  --line: #2a2e37;
  --text: #f2f3f5;
  --muted: #9aa0ab;
  --accent: #f3ba2f;
  --accent-2: #ffd666;
  --accent-ink: #14120a;
  --good: #3ddc97;
  --bad: #ff6b6b;
  --radius: 16px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
.mono { font-family: "JetBrains Mono", monospace; }
.text-muted-2 { color: var(--muted) !important; }
.text-accent { color: var(--accent) !important; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }

/* ── Navbar ── */
.navbar { background: rgba(13,14,17,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.navbar .nav-link { color: var(--muted); font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--text); }
.brand-mark { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.brand-mark-sm { width: 24px; height: 24px; }

/* Logo on the right of the inner pages' header (large screens only; text keeps clear of it) */
.hero-logo {
  position: absolute; right: calc(var(--bs-gutter-x, 1.5rem) * .5); top: 50%; transform: translateY(-50%);
  width: 170px; height: 170px; object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(243,186,47,.4));
}
@media (min-width: 992px) { .hero-sm .container { padding-right: 230px; } }

/* ── Buttons ── */
.btn-accent { background: var(--accent); color: var(--accent-ink); font-weight: 700; border: none; border-radius: 10px; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); border-radius: 10px; font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ── */
.hero { position: relative; padding: 9rem 0 5rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(243,186,47,.22), transparent 60%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero .lead { color: var(--muted); font-size: 1.2rem; max-width: 620px; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: .85rem; font-weight: 500;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.hero-orb {
  width: 100%; max-width: 420px; aspect-ratio: 1; margin-inline: auto; position: relative;
}
.hero-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(243,186,47,.35); animation: spin 30s linear infinite; }
.hero-orb .ring:nth-child(2) { inset: 12%; border-style: dashed; animation-duration: 20s; animation-direction: reverse; }
.hero-orb .ring:nth-child(3) { inset: 24%; border-color: rgba(243,186,47,.6); animation-duration: 14s; }
.hero-orb .core { position: absolute; inset: 27%; display: grid; place-items: center; }
.hero-orb .core img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(243,186,47,.45));
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Stats strip ── */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stat { padding: 2rem 1rem; }
.stat .value { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.stat .label { color: var(--muted); font-size: .9rem; }
.stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 767.98px) {
  .stat + .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── Sections ── */
section { padding: 6rem 0; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.card-x {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; height: 100%; transition: background .2s, border-color .2s, transform .2s;
}
.card-x:hover { background: var(--card-hover); border-color: rgba(243,186,47,.4); transform: translateY(-3px); }
.icon-tile {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(243,186,47,.12); color: var(--accent); font-size: 1.4rem; margin-bottom: 1.1rem;
}
.card-x h5 { font-weight: 700; }
.card-x p { color: var(--muted); margin-bottom: 0; }

/* ── Flow ── */
.flow-step { display: flex; gap: 1rem; }
.flow-num {
  flex: 0 0 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font-weight: 700;
}

/* ── Tokenomics ── */
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #e08a00); }

/* ── Trade widget ── */
.trade-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; }
.trade-tabs .nav-link { color: var(--muted); font-weight: 700; border-radius: 10px; }
.trade-tabs .nav-link.active { background: var(--accent); color: var(--accent-ink); }
.token-input { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.token-input input { background: transparent; border: none; color: var(--text); font-size: 1.6rem; font-weight: 700; width: 100%; outline: none; min-width: 0; }
.token-pill { background: var(--card-hover); border-radius: 999px; padding: .3rem .8rem; font-weight: 700; white-space: nowrap; }
.kv { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; padding: .2rem 0; }
.kv b { color: var(--text); font-weight: 600; }
.form-control, .form-select { background: var(--bg-2); border-color: var(--line); color: var(--text); }

/* ── Tables ── */
.table-x { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); margin: 0; }
.table-x th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.addr { font-family: "JetBrains Mono", monospace; font-size: .85rem; word-break: break-all; }
.copy-btn { background: none; border: none; color: var(--muted); padding: 0 .3rem; }
.copy-btn:hover { color: var(--accent); }

/* ── FAQ ── */
.accordion { --bs-accordion-bg: var(--card); --bs-accordion-border-color: var(--line); --bs-accordion-active-bg: var(--card-hover); --bs-accordion-active-color: var(--accent); --bs-accordion-btn-focus-box-shadow: none; }
.accordion-button { font-weight: 600; }

/* ── CTA / footer ── */
.cta {
  border-radius: 24px; padding: 3.5rem 2rem; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(243,186,47,.25), transparent 65%), var(--card);
  border: 1px solid rgba(243,186,47,.3);
}
footer { border-top: 1px solid var(--line); background: var(--bg-2); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

.toast-container { z-index: 1100; }
.spinner-border-sm { width: .9rem; height: .9rem; }

