/* ============================================================
   Solana Token Creator Tool - "Ledger" design system
   File: css/style.css

   Light, financial-infrastructure UI. Ink on near-white, one
   blurple accent, hairline borders, soft Stripe-like elevation.
   Tailwind (CDN) handles layout utilities; visual opinion
   lives here.
   ============================================================ */

:root {
  /* Canvas */
  --bg: #fafafb;
  --surface: #ffffff;
  --surface-muted: #f6f8fa;

  /* Ink */
  --ink: #0a2540;
  --body: #425466;
  --muted: #697386;
  --faint: #8b95a5;

  /* Accent */
  --accent: #635bff;
  --accent-hover: #5851ec;
  --accent-soft: #f0efff;
  --accent-border: #d6d3ff;

  /* States */
  --ok: #09825d;
  --ok-soft: #effaf4;
  --ok-border: #c8e8d8;
  --warn: #b45309;
  --warn-soft: #fdf6ec;
  --warn-border: #f3dcb6;
  --danger: #df1b41;
  --danger-soft: #fdf2f5;
  --danger-border: #f5c1cd;

  /* Lines + elevation */
  --line: #e3e8ee;
  --line-strong: #d2d9e0;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 1px 3px rgba(16, 24, 40, 0.07), 0 4px 12px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 6px 24px rgba(16, 24, 40, 0.09);

  --radius: 12px;
  --radius-lg: 16px;
}

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 {
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(99, 91, 255, 0.18); }

/* The wallet buttons carry component display classes (.btn-ink, .inline-flex)
   that can out-order Tailwind's .hidden when the CDN injects its sheet at
   runtime, leaving both the connect and connected states visible at once.
   Scope the override to these IDs only - a global `.hidden !important` would
   also clobber responsive `hidden md:flex` utilities (and hide the whole
   desktop nav). */
#wallet-connect.hidden,
#wallet-connected.hidden,
#wallet-connect-mobile.hidden,
#wallet-connected-mobile.hidden,
#wallet-dropdown.hidden,
#wallet-dropdown-mobile.hidden { display: none !important; }

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

h1, h2, h3, h4 { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }

/* ── Typography helpers ───────────────────────────────────── */
.display {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.eyebrow i { color: var(--accent); font-size: 0.7rem; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.card-hover:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.panel-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 10px;
  padding: 0.78rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--faint); box-shadow: var(--shadow-md); }

.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-ink:hover { background: #16365a; }

/* ── Forms ────────────────────────────────────────────────── */
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field-input {
  width: 100%;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font-size: 16px; /* prevents iOS zoom-on-focus */
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .field-input { font-size: 0.92rem; } }
.field-input::placeholder { color: var(--faint); }
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.18);
}
.field-input.invalid { border-color: var(--danger); }
.field-input.invalid:focus { box-shadow: 0 0 0 3px rgba(223, 27, 65, 0.14); }
.field-hint { font-size: 0.76rem; color: var(--muted); margin-top: 0.32rem; }
.field-error { font-size: 0.76rem; color: var(--danger); margin-top: 0.32rem; }

/* Segmented preset chips (supply presets etc.) */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ── Toggle switch ────────────────────────────────────────── */
.switch { position: relative; display: inline-flex; flex-shrink: 0; width: 40px; height: 22px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d2d9e0;
  transition: background 0.18s ease;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
  transition: transform 0.18s ease;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Setting row (launch settings) */
.setting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child { border-bottom: none; }
.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-soft.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-border); }
.badge-soft.accent { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }

/* ── Readiness checklist ──────────────────────────────────── */
.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.check-item .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  font-size: 0.6rem;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s;
}
.check-item.done { color: var(--ink); }
.check-item.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ── Fee + review rows ────────────────────────────────────── */
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.42rem 0;
  font-size: 0.85rem;
}
.fee-row .label { color: var(--muted); }
.fee-row .value { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Sticky rail ──────────────────────────────────────────── */
@media (min-width: 1024px) {
  .rail-sticky { position: sticky; top: 84px; }
}

/* ── Tables (pricing) ─────────────────────────────────────── */
.price-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.price-table th, .price-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.price-table td { color: var(--body); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.price-table td strong { color: var(--ink); }
.price-table tr:last-child td { border-bottom: none; }

/* ── FAQ accordion ────────────────────────────────────────── */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.faq-item + .faq-item { margin-top: 0.7rem; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--faint);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item .faq-body { padding: 0 1.25rem 1.1rem; font-size: 0.88rem; line-height: 1.65; color: var(--body); }
.faq-body a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-border); }

/* ── Nav ──────────────────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
#site-nav.scrolled { box-shadow: 0 1px 12px rgba(16, 24, 40, 0.06); }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--surface-muted); }
.nav-link.active { color: var(--accent); font-weight: 600; }
.brand-link { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; line-height: 1; }
.brand-mark { display: inline-flex; width: 30px; height: 30px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-wordmark { font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.brand-wordmark .tld { color: var(--faint); font-weight: 500; }

@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
#mobile-menu:not(.hidden) { animation: slide-down 0.2s ease; }

/* ── Footer ───────────────────────────────────────────────── */
.footer-link { color: var(--muted); font-size: 0.86rem; transition: color 0.15s; text-decoration: none; }
.footer-link:hover { color: var(--ink); }

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Fullscreen processing overlay (launch page) ──────────── */
.sct-spinner-overlay.hidden { display: none; }
.sct-spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(250, 250, 251, 0.96);
  backdrop-filter: blur(6px);
  text-align: center;
}
.sct-spinner-ring {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: sct-spin 0.9s linear infinite;
  margin-bottom: 1.3rem;
}
@keyframes sct-spin { to { transform: rotate(360deg); } }
.sct-spinner-overlay__text { font-size: 1.02rem; font-weight: 600; color: var(--ink); max-width: 26rem; }
.sct-spinner-overlay__hint { margin-top: 1.5rem; font-size: 0.78rem; color: var(--muted); }

/* ── Toast ────────────────────────────────────────────────── */
.sct-toast {
  position: fixed;
  top: 4.6rem;
  right: 1rem;
  z-index: 99999;
  max-width: 22rem;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.3s ease;
}
.sct-toast.show { transform: none; }
.sct-toast.info { background: #1d4ed8; }
.sct-toast.success { background: var(--ok); }
.sct-toast.warning { background: #b45309; }
.sct-toast.error { background: var(--danger); }

/* ── Article / guide prose ────────────────────────────────── */
.prose { max-width: 46rem; }
.prose > p:first-of-type { font-size: 1.08rem; color: var(--body); }
.prose h2 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.6rem 0 1rem;
  scroll-margin-top: 5rem;
}
.prose h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.9rem 0 0.6rem;
  scroll-margin-top: 5rem;
}
.prose p { color: var(--body); line-height: 1.78; margin: 0 0 1.15rem; }
.prose ul, .prose ol { color: var(--body); line-height: 1.75; margin: 0 0 1.2rem; padding-left: 1.35rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-border); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--accent); }
/* Button-classed links inside prose must keep their button look, not the
   underlined accent-link treatment above (there is no Tailwind typography
   plugin here, so `.not-prose` does nothing - this is the real guard). */
.prose a.btn-glow, .prose a.btn-primary, .prose a.btn-ink,
.prose a.btn-secondary, .prose a.sc-expl { text-decoration: none; }
.prose a.btn-glow, .prose a.btn-primary, .prose a.btn-ink { color: #fff; }
.prose a.btn-secondary { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: var(--ink);
}

/* Key-takeaway / answer callout (answer-first blocks for AI + readers) */
.answer-box {
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.6rem;
}
.answer-box p { margin: 0; color: var(--ink); line-height: 1.7; }
.answer-box .answer-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--faint); }

/* Table of contents card */
.toc-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.toc-card p { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.7rem; }
.toc-card a { display: block; font-size: 0.86rem; color: var(--body); text-decoration: none; padding: 0.28rem 0; }
.toc-card a:hover { color: var(--accent); }

/* Inline CTA band inside articles */
.cta-inline {
  border-radius: var(--radius-lg);
  background: var(--ink);
  padding: 1.6rem 1.8rem;
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta-inline p { margin: 0; color: #fff; font-weight: 600; }
.cta-inline span { color: rgba(255,255,255,0.6); font-weight: 400; font-size: 0.9rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 100%);
}

/* ============================================================
   Expressive layer - atmosphere, display type, product frames.
   The Ledger system stays the skeleton; this is the voltage.
   ============================================================ */

/* ── Aurora atmosphere (light canvas, Stripe-Sessions wash) ── */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 760px;
  background:
    radial-gradient(38% 42% at 30% 36%, rgba(99, 91, 255, 0.20) 0%, transparent 70%),
    radial-gradient(34% 38% at 62% 28%, rgba(14, 165, 233, 0.16) 0%, transparent 70%),
    radial-gradient(30% 34% at 78% 52%, rgba(244, 114, 182, 0.10) 0%, transparent 70%),
    radial-gradient(26% 30% at 45% 60%, rgba(20, 184, 166, 0.10) 0%, transparent 70%);
  filter: blur(40px);
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 72% 62% at 50% 8%, black 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 8%, black 25%, transparent 100%);
}

/* Dark band variant (product tour) */
.band-dark { position: relative; background: #081B33; overflow: hidden; }
.band-dark .aurora-dark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 50% at 18% 12%, rgba(99, 91, 255, 0.28) 0%, transparent 70%),
    radial-gradient(36% 44% at 85% 20%, rgba(14, 165, 233, 0.20) 0%, transparent 70%),
    radial-gradient(30% 40% at 60% 95%, rgba(244, 114, 182, 0.12) 0%, transparent 70%);
  filter: blur(36px);
}

/* ── Display type scale ───────────────────────────────────── */
.display-hero {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--ink);
  font-size: clamp(2.9rem, 7.2vw, 5.1rem);
}
.text-accent-gradient {
  background: linear-gradient(94deg, #635bff 5%, #2563eb 45%, #0ea5e9 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Glow CTA ─────────────────────────────────────────────── */
.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 12px;
  padding: 0.95rem 1.9rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #635bff 0%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.12),
    0 12px 32px -8px rgba(99, 91, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-glow:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 2px 4px rgba(16, 24, 40, 0.12),
    0 18px 44px -8px rgba(99, 91, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-glow:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Product console frame ────────────────────────────────── */
.console-shell { perspective: 1600px; }
.console-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.06),
    0 24px 60px -16px rgba(10, 37, 64, 0.25),
    0 64px 120px -40px rgba(99, 91, 255, 0.22);
  transform: rotateX(4.5deg);
  transform-origin: 50% 0%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}
.console-shell:hover .console-frame,
.console-frame.settled {
  transform: rotateX(0deg);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.06),
    0 20px 48px -16px rgba(10, 37, 64, 0.22),
    0 48px 100px -36px rgba(99, 91, 255, 0.20);
}
@media (prefers-reduced-motion: reduce) { .console-frame { transform: none; } }

.console-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: 18px 18px 0 0;
}
.console-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }

/* Floating accent chips around the frame */
.float-chip {
  position: absolute;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: chip-float 5.5s ease-in-out infinite;
}
.float-chip.delay { animation-delay: 2.2s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (max-width: 1023px) { .float-chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }

/* ── Compatibility marquee ────────────────────────────────── */
.marquee { overflow: hidden; position: relative; }
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.marquee-item i { color: var(--accent); font-size: 0.8rem; }

/* ── Live demo console bits ───────────────────────────────── */
.demo-input {
  width: 100%;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
@media (min-width: 768px) { .demo-input { font-size: 0.85rem; } }
.demo-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.16); }

.phantom-card {
  border-radius: 14px;
  background: #131217;
  padding: 1rem 1.1rem;
  color: #fff;
}
.phantom-card .ph-token-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #635bff, #0ea5e9);
  overflow: hidden;
}
.phantom-card .ph-token-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Stat tiles (dark band) ───────────────────────────────── */
.stat-dark {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}
.stat-dark .k { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.stat-dark .l { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); margin-top: 0.15rem; }
