/* GhostLaunch Launchpad — single-page token launcher.
   Veil theme v2: matches the Framer marketing sites exactly.
   Tokens: bg #050508, surface #0b0c12, border #24242e, text #f3f3f7,
   muted #9595a3, cyan #00e5ff, purple #7c3aed.
   Brand gradient: 145deg #00e5ff 15% -> #7c3aed 100%.
   Type: Clash Grotesk (Fontshare), 600 headlines / 500 body. Mobile-first. */

:root {
  --bg: #050508;
  --surface: #0b0c12;
  --border: #24242e;
  --text: #f3f3f7;
  --muted: #9595a3;
  --cyan: #00e5ff;
  --purple: #7c3aed;
  --grad: linear-gradient(145deg, #00e5ff 15%, #7c3aed 100%);
  --grad-h: linear-gradient(90deg, #00e5ff, #7c3aed);
  --danger: #ff6b81;
  --ok: #34d399;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 15% -5%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(900px 480px at 90% 10%, rgba(0, 229, 255, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Clash Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

/* ------------------------------- header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); letter-spacing: -0.5px; }
.brand:hover { text-decoration: none; }
.logo-ghost { filter: drop-shadow(0 0 8px rgba(0,229,255,.35)); vertical-align: middle; flex: none; }
.header-right { display: flex; align-items: center; gap: 10px; }
.net-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  color: var(--cyan); border: 1px solid rgba(0,229,255,.4);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

/* ------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease;
  color: var(--text); background: var(--surface);
  min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary {
  background: var(--grad);
  color: #050508;
  font-weight: 600;
  box-shadow: 0 4px 28px rgba(0, 229, 255, .22), 0 4px 28px rgba(124, 58, 237, .22);
}
.btn-primary:hover { box-shadow: 0 4px 36px rgba(0, 229, 255, .32), 0 4px 36px rgba(124, 58, 237, .32); }
.btn-ghost { border-color: var(--border); background: transparent; color: var(--text); }
.btn-xl { padding: 16px 28px; font-size: 18px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-wallet.connected { border-color: rgba(0,229,255,.5); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* -------------------------------- layout -------------------------------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; }
.section { margin-top: 48px; }
.section.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
h1, h2, .section-title {
  font-family: "Clash Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h1 { font-size: clamp(38px, 9vw, 68px); line-height: 1.04; margin: 16px 0; }
h2 { font-size: 22px; margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  text-transform: uppercase; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; color: var(--cyan); margin: 0 0 12px;
}
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; line-height: 1.5; }
.center { text-align: center; }
.required { color: var(--danger); }
code { background: rgba(0,229,255,.08); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

/* --------------------------------- hero ---------------------------------- */
.hero { position: relative; text-align: center; padding: 56px 8px 24px; overflow: hidden; }
.hero-veil {
  position: absolute; inset: -40px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(0,229,255,.10), transparent 70%),
    radial-gradient(400px 200px at 30% 60%, rgba(124,58,237,.10), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 640px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan);
}
.hero-sub { margin: 0 auto 26px; font-size: 16px; color: var(--muted); line-height: 1.6; font-weight: 500; }
.hero-sub strong { color: var(--text); }
.hero-form { display: flex; flex-direction: column; gap: 12px; }
.hero-form input {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 18px; color: var(--text);
  font: inherit; font-size: 16px; width: 100%;
}
.hero-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.15); }
.hero-form input::placeholder { color: #5b5b68; }
.hero-note { margin-top: 14px; }

/* --------------------------------- trust ---------------------------------- */
.trust { max-width: 680px; margin: 36px auto 0; padding: 0 4px; }
.badges {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 500;
}
.badge-icon { font-size: 18px; }
.pricing-line { text-align: center; color: var(--muted); margin: 20px 0 14px; font-size: 15px; }
.pricing-line strong { color: var(--text); }
.dot-sep { margin: 0 6px; opacity: .5; }
.stealth-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid rgba(0,229,255,.3); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 18px;
}
.stealth-banner p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1; }
.banner-ghost { font-size: 24px; display: inline-flex; }
.trust-wallet { display: flex; justify-content: center; }

/* ------------------------------ launch form ------------------------------ */
.step-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 18px; margin-bottom: 16px;
}
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-n {
  width: 34px; height: 34px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #050508;
  font-weight: 600; font-size: 16px;
}
.step-sub { margin: -8px 0 18px; font-size: 14px; line-height: 1.55; }
.cloak-panel { border-color: rgba(0,229,255,.35); background: linear-gradient(180deg, rgba(0,229,255,.06), var(--surface)); }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; min-width: 0; }
.field-row .short { max-width: 130px; flex-shrink: 0; }
.identity-grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .identity-grid { grid-template-columns: 1fr 220px; align-items: start; }
  .identity-grid .identity-main { display: contents; }
  .identity-grid .identity-main .field-row { grid-column: 1; grid-row: 1; }
  .identity-grid .identity-main .field { grid-column: 1; }
  .identity-grid > .field { grid-column: 2; grid-row: 1 / span 2; }
}
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.field input[type="text"], .field input[type="url"], .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 14px; color: var(--text);
  font: inherit; font-size: 15px;
}
/* keep Chrome autofill from painting fields white on the dark theme */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 5000s ease-in-out 0s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.15); }
.field input[type="range"] { width: 100%; accent-color: var(--cyan); height: 32px; }

.stealth-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; margin-bottom: 16px; cursor: pointer;
}
.stealth-row input[type="checkbox"] {
  width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--cyan);
}
.stealth-body { display: flex; flex-direction: column; gap: 6px; }
.stealth-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stealth-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.img-upload { cursor: pointer; }
.img-preview {
  width: 120px; height: 120px; border-radius: 16px;
  border: 2px dashed rgba(0,229,255,.4); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: var(--muted); overflow: hidden; background: var(--bg);
}
.img-ghost { font-size: 34px; display: inline-flex; }
.img-hint { font-size: 11px; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-upload:hover .img-preview, .img-upload:focus .img-preview { border-color: var(--cyan); }

.total-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0 14px; font-size: 16px; color: var(--muted);
}
.total-amount {
  font-size: 34px; font-weight: 600; letter-spacing: -0.5px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.pill {
  font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  background: rgba(0,229,255,.10); color: var(--cyan);
  border: 1px solid rgba(0,229,255,.35); padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}
.pill.ok { background: rgba(52,211,153,.12); color: var(--ok); border-color: rgba(52,211,153,.35); }
.pulse-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok); margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; } }
.demo-tag {
  font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--cyan); border: 1px dashed rgba(0,229,255,.4);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

/* -------------------------------- ticker -------------------------------- */
.ticker-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ticker {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.ticker-chip {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px 8px 8px;
}
.ticker-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; flex-shrink: 0; color: #050508;
  background: var(--grad);
}
.ticker-name { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ticker-time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* --------------------------------- modal ---------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 4, 8, 0.72); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  max-height: 85vh; overflow-y: auto;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.icon-btn { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 8px; }
.icon-btn:hover { color: var(--text); }
.modal p { line-height: 1.6; font-size: 14.5px; }
.wallet-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.wallet-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font: inherit; cursor: pointer; width: 100%;
  min-height: 56px;
}
.wallet-row:hover:not(:disabled) { border-color: var(--cyan); }
.wallet-row:disabled { opacity: .6; cursor: wait; }
.wallet-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.wallet-state { color: var(--muted); font-size: 13px; }

/* --------------------------------- toasts ---------------------------------- */
#toasts { position: fixed; bottom: 20px; left: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 18px; max-width: 420px; width: 100%; font-size: 14px; text-align: center;
  opacity: 0; transform: translateY(8px); transition: all .3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: none; }
.toast-success { border-color: rgba(52,211,153,.5); }
.toast-error { border-color: rgba(255,107,129,.5); }

/* --------------------------------- footer ---------------------------------- */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 56px; padding: 26px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; text-align: center;
}
.legal-footer {
  max-width: 660px; margin-top: 10px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11.5px; line-height: 1.65; color: var(--muted); opacity: .85;
}
.legal-footer p { margin: 7px 0; }

/* ------------------------------ add-on cards ------------------------------ */
.addon-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; margin-bottom: 12px; cursor: pointer;
  transition: border-color .15s ease;
}
.addon-card:hover { border-color: rgba(0,229,255,.45); }
.addon-card input[type="checkbox"] {
  width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--cyan);
}
/* Stealth tier picker — one simple choice instead of a wall of sliders. */
.tier-cards { display: grid; gap: 10px; }
@media (min-width: 720px) { .tier-cards { grid-template-columns: repeat(3, 1fr); } }
.tier-card { display: block; cursor: pointer; }
.tier-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tier-body {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; height: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tier-card:hover .tier-body { border-color: rgba(0,229,255,.45); }
.tier-card input:checked + .tier-body {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 24px rgba(0,229,255,.15);
}
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier-name { font-weight: 600; font-size: 15px; }
.tier-price { color: var(--cyan); font-weight: 600; font-size: 13px; white-space: nowrap; }
.tier-desc { color: var(--muted); font-size: 13px; line-height: 1.5; }
.addon-card:has(input:checked) { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0,229,255,.15); }
.addon-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.addon-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addon-title { font-weight: 600; font-size: 15px; }
.addon-price { color: var(--cyan); font-weight: 600; font-size: 14px; white-space: nowrap; }
.addon-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.stepper { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.stepper-btn {
  width: 40px; height: 40px; border-radius: 12px; font-size: 20px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.stepper-btn:hover:not(:disabled) { border-color: var(--cyan); }
.stepper-btn:disabled { opacity: .35; cursor: default; }
.stepper-val { font-size: 18px; font-weight: 600; min-width: 24px; text-align: center; }
.addons-summary { margin-bottom: 10px; line-height: 1.7; }
.addons-summary div { display: flex; justify-content: space-between; }

/* --------------------------- authority guarantee --------------------------- */
.authority-banner {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; margin-bottom: 18px;
}
.authority-banner strong { font-size: 16px; letter-spacing: -0.5px; }
.authority-banner p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.banner-shield { font-size: 30px; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(0,229,255,.5)); }

/* ------------------------------- liquidity -------------------------------- */
.section-title { font-size: 24px; margin: 0 0 12px; }
.liq-explainer { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 20px; }
.liq-explainer strong { color: var(--text); }
.curve-checker .field input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.liq-result { margin-top: 16px; min-height: 8px; }
.curve-bar {
  position: relative; height: 16px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border);
  overflow: hidden; margin: 12px 0 8px;
}
.curve-fill {
  height: 100%; border-radius: 999px;
  background: var(--grad-h);
  box-shadow: 0 0 12px rgba(0,229,255,.4);
  transition: width .6s ease;
}
.curve-labels {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.curve-labels strong { color: var(--text); }
.liq-grad-banner {
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.4);
  border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.55;
}

/* ------------------------- ticker liquidity rows -------------------------- */
.ticker-chip {
  flex-direction: column; align-items: stretch; gap: 8px;
  border-radius: 18px; padding: 10px 14px; min-width: 172px;
}
.ticker-top { display: flex; align-items: center; gap: 10px; }
.chip-liq { display: flex; flex-direction: column; gap: 6px; }
.mini-bar {
  height: 8px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--border); overflow: hidden;
}
.mini-fill {
  height: 100%; border-radius: 999px;
  background: var(--grad-h);
}
.liq-grad { color: var(--ok); font-weight: 600; }

/* ---------------------------- launch progress ---------------------------- */
.lp-modal { max-height: 92vh; overflow-y: auto; }
.lp-steps { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-steps li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.lp-steps li.active { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0,229,255,.12); }
.lp-steps li.done { border-color: rgba(52,211,153,.4); }
.lp-steps li.error { border-color: var(--danger); }
.lp-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
}
.lp-steps li.active .lp-dot { color: var(--cyan); animation: lp-pulse 1.1s ease-in-out infinite; }
.lp-steps li.done .lp-dot { color: var(--ok); }
.lp-steps li.error .lp-dot { color: var(--danger); }
@keyframes lp-pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.lp-step-body { min-width: 0; }
.lp-step-body strong { font-size: 14.5px; }
.lp-note { margin: 2px 0 0; }
.secret-box {
  border: 1px solid rgba(255,193,7,.5); background: rgba(255,193,7,.06);
  border-radius: 12px; padding: 12px; margin: 12px 0; font-size: 14px;
}
.secret-row { display: flex; gap: 8px; margin: 8px 0; }
.secret-row code {
  flex: 1; min-width: 0; word-break: break-all; font-size: 11.5px;
  background: rgba(0,0,0,.35); padding: 8px; border-radius: 8px;
}
.lp-done { margin-top: 6px; }
.lp-mint code { display: block; word-break: break-all; font-size: 12.5px; margin-top: 4px; }
.lp-result-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.lp-error-box {
  border: 1px solid var(--danger); background: rgba(255,107,129,.07);
  border-radius: 12px; padding: 12px; margin: 12px 0;
}
.lp-error-box p { margin: 6px 0 0; }

/* -------------------------------- desktop -------------------------------- */
@media (min-width: 640px) {
  main { padding: 0 24px 80px; }
  .site-header { padding: 14px 28px; }
  .hero { padding: 84px 20px 40px; }
  .hero-sub { font-size: 18px; }
  .badges { grid-template-columns: repeat(4, 1fr); }
  .step-block { padding: 28px; }
  .site-footer { flex-direction: row; justify-content: space-between; text-align: left; }
  #toasts { left: auto; right: 24px; align-items: flex-end; }
}
