:root {
  --bg: #0c0a12;
  --bg-2: #14111d;
  --line: rgba(255, 255, 255, .09);
  --text: #fff;
  --muted: rgba(255, 255, 255, .62);
  --dim: rgba(255, 255, 255, .38);
  --accent: #AB9FF2; /* Phantom purple */
  --accent-ink: #1b1530;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(171, 159, 242, .13), transparent 60%),
    radial-gradient(700px 500px at 0% 60%, rgba(171, 159, 242, .05), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* room for the Launch Tech CA bar */
.top-room { height: 48px; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-tile {
  width: 36px; height: 36px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; padding: 4px;
}
.brand-name { font: 800 21px/1 var(--display); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links .nav-cta { color: var(--accent-ink); background: var(--accent); }
.nav-links .nav-cta:hover { color: var(--accent-ink); background: #c3baf7; }

/* ---------- shared ---------- */
section { max-width: 1160px; margin: 0 auto; padding: 110px 24px; }
.label, .kicker {
  font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin: 0 0 18px;
}
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1; }
.sub { color: var(--muted); max-width: 560px; margin: 18px 0 0; }
.section-head { margin-bottom: 52px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  background: rgba(255,255,255,.08); color: #fff;
  transition: transform .2s ease, background .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 10px 34px -8px rgba(171,159,242,.7); }
.btn-ghost { background: transparent; border: 1px dashed rgba(255,255,255,.3); }
.btn-ghost:hover { border-style: solid; border-color: var(--accent); }
.btn-ghost small { color: var(--dim); font-weight: 500; }
.btn-small { padding: 10px 16px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding-top: 60px; min-height: calc(100vh - 120px);
}
.hero h1 { font-size: clamp(58px, 9.5vw, 128px); line-height: .9; }
.strike { position: relative; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.35); }
.strike::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: .09em;
  background: var(--accent); border-radius: 99px; transform: rotate(-4deg) scaleX(0);
  transform-origin: left; animation: strike .7s .9s cubic-bezier(.6,0,.2,1) forwards;
}
@keyframes strike { to { transform: rotate(-4deg) scaleX(1); } }
.hook { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 500px; margin: 28px 0 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.logo-tile {
  position: absolute; inset: 12%; background: #fff; border-radius: 30%;
  display: grid; place-items: center;
  box-shadow: 0 40px 90px -30px rgba(171,159,242,.55), 0 0 0 1px rgba(255,255,255,.4);
  animation: bob 5s ease-in-out infinite;
}
.logo-ghost { width: 62%; height: 62%; }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.tile-url {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font: 400 13px/1 var(--mono); white-space: nowrap; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px;
}
.tile-url b { color: var(--accent); font-weight: 600; }

.drift { position: absolute; width: 22%; fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.6; stroke-dasharray: 4 5; }
.drift svg { overflow: visible; }
.d1 { top: -2%; left: -6%; animation: drift 9s ease-in-out infinite; }
.d2 { top: 8%; right: -8%; width: 15%; animation: drift 11s -3s ease-in-out infinite; }
.d3 { bottom: 4%; left: -2%; width: 13%; animation: drift 10s -6s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); opacity: .9; }
  50% { transform: translate(10px, -18px); opacity: .25; }
}

/* ---------- lore ---------- */
.lore-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.lore-text p { font-size: 19px; color: var(--muted); margin: 0 0 20px; max-width: 560px; }
.lore-text em { color: #fff; font-style: normal; border-bottom: 1px dashed var(--accent); }
.lore-text .lore-punch { color: #fff; font: 800 clamp(24px, 3vw, 32px)/1.15 var(--display); letter-spacing: -.02em; margin-top: 30px; }

.tally {
  margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.tally-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; margin-bottom: 22px; }
.tally-bar {
  grid-column: 1 / -1; height: 14px; border-radius: 99px; width: var(--w);
  transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in .tally-bar { transform: scaleX(1); }
.tally-bar.ghosted { background: transparent; border: 1.5px dashed rgba(255,255,255,.35); }
.tally-bar.alive { background: var(--accent); }
.tally-num { font: 800 34px/1 var(--display); }
.tally-cap { color: var(--muted); font-size: 15px; grid-row: 2; grid-column: 1; }
.tally-row .tally-num { grid-row: 2; grid-column: 2; }
.tally figcaption { color: var(--dim); font-size: 14px; line-height: 1.55; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- builder ---------- */
.builder { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.form {
  padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  display: grid; gap: 16px;
}
.steps { list-style: none; margin: 0 0 8px; padding: 0 0 18px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; }
.steps span {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 600 12px/1 var(--mono); color: var(--accent-ink); background: var(--accent);
}
.field { display: grid; gap: 7px; }
.field > span { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.field input[type="text"], .field textarea, .check-form input {
  width: 100%; font: 400 16px/1.4 var(--body); color: #fff; background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.2); border-radius: 12px; padding: 12px 14px; resize: none;
  transition: border-color .2s, background .2s;
}
.field input[type="text"]:focus, .field textarea:focus, .check-form input:focus {
  outline: none; border-style: solid; border-color: var(--accent); background: rgba(171,159,242,.06);
}
.field input::placeholder, .field textarea::placeholder, .check-form input::placeholder { color: var(--dim); }
.file { position: relative; display: block; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file span {
  display: block; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.2);
  color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file:hover span, .file input:focus-visible + span { border-color: var(--accent); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  font: 500 14px/1 var(--body); color: var(--muted); cursor: pointer;
  padding: 10px 14px 10px 32px; border-radius: 999px; background: transparent;
  border: 1px solid var(--line); position: relative; transition: border-color .2s, color .2s;
}
.swatch::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
}
.swatch[data-tpl="phantom"]::before { background: #AB9FF2; }
.swatch[data-tpl="slime"]::before { background: #8be3a0; }
.swatch[data-tpl="pumpkin"]::before { background: #ffa65c; }
.swatch:hover { color: #fff; }
.swatch.is-on { color: #fff; border-color: rgba(255,255,255,.55); }
#f-reset { justify-self: start; }

.preview-wrap { position: sticky; top: 24px; }
.meter { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 600 13px/1 var(--mono); color: var(--muted); }
#meter-label { min-width: 92px; text-transform: uppercase; letter-spacing: .1em; }
.meter-track { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .4s ease; }
#meter-pct { min-width: 38px; text-align: right; }

.browser {
  --tpl: #AB9FF2;
  border-radius: var(--radius); overflow: hidden; background: #0f0d16;
  border: 1.5px dashed rgba(255,255,255, calc(.25 - var(--solid) * .2));
  box-shadow: 0 30px 80px -40px rgba(171,159,242, calc(var(--solid) * .8));
  transition: border-color .4s, box-shadow .4s;
}
.browser[data-tpl="slime"] { --tpl: #8be3a0; }
.browser[data-tpl="pumpkin"] { --tpl: #ffa65c; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.browser-url {
  margin-left: 10px; flex: 1; min-width: 0; font: 400 13px/1 var(--mono); color: var(--muted);
  background: rgba(0,0,0,.3); padding: 8px 12px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-url b { color: var(--tpl); font-weight: 600; }
.p-cabar {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 16px;
  font: 400 12px/1.3 var(--mono); color: var(--accent-ink); background: var(--tpl);
}
.p-cabar span { font-weight: 600; text-decoration: underline; }
.p-body {
  padding: 34px 26px 30px; text-align: center;
  opacity: calc(.28 + var(--solid) * .72); filter: blur(calc((1 - var(--solid)) * 1.2px));
  transition: opacity .4s, filter .4s;
}
.p-logo {
  width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 26px; background: #fff;
  display: grid; place-items: center; overflow: hidden; fill: var(--tpl);
}
.p-logo svg { width: 64%; height: 64%; }
.p-logo img { width: 100%; height: 100%; object-fit: cover; }
.p-name { font: 800 clamp(28px, 4vw, 40px)/1 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.p-ticker { font: 600 14px/1 var(--mono); color: var(--tpl); margin-top: 10px; overflow-wrap: anywhere; }
.p-story { color: var(--muted); max-width: 380px; margin: 16px auto 22px; font-size: 15px; overflow-wrap: anywhere; }
.p-chart {
  position: relative; height: 96px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02); overflow: hidden; margin-bottom: 18px;
}
.p-chart svg { width: 100%; height: 100%; }
.p-chart polyline { fill: none; stroke: var(--tpl); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .55; }
.p-chart span { position: absolute; left: 12px; bottom: 10px; font: 400 11px/1 var(--mono); color: var(--dim); }
.p-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.p-btn { font: 600 14px/1 var(--body); padding: 11px 18px; border-radius: 999px; background: var(--tpl); color: var(--accent-ink); }
.p-btn-x { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.preview-note { color: var(--dim); font-size: 13px; margin: 14px 0 0; text-align: center; }

/* ---------- ghost check ---------- */
.check-form { display: flex; gap: 10px; max-width: 720px; }
.check-form input { font-family: var(--mono); font-size: 15px; padding: 15px 18px; border-radius: 999px; flex: 1; min-width: 0; }
.check-result { max-width: 720px; margin-top: 22px; }
.result {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  animation: pop .35s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.result.is-ghost { border-style: dashed; border-color: rgba(255,255,255,.3); }
.result.is-alive { border-color: rgba(171,159,242,.6); }
.r-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; }
.is-ghost .r-icon { border: 1.5px dashed rgba(255,255,255,.35); fill: none; stroke: rgba(255,255,255,.5); stroke-width: 3; }
.is-alive .r-icon { background: #fff; }
.r-icon svg { width: 66%; }
.r-icon img { width: 100%; height: 100%; object-fit: cover; }
.r-title { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 4px; overflow-wrap: anywhere; }
.r-sub { color: var(--muted); margin: 0 0 12px; font-size: 15px; overflow-wrap: anywhere; }
.r-links { display: flex; flex-wrap: wrap; gap: 8px; }
.r-links a, .r-links span {
  font: 400 13px/1 var(--mono); padding: 8px 12px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line);
}
.r-links a { border-color: rgba(171,159,242,.5); color: var(--accent); }
.r-links a:hover { background: rgba(171,159,242,.1); }
.r-links span { color: var(--dim); text-decoration: line-through; }
.r-msg { color: var(--muted); padding: 18px 4px; }

/* ---------- board ---------- */
.board-list { display: grid; gap: 10px; max-width: 760px; }
.board-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 14px 20px 14px 14px; border-radius: 18px; border: 1px solid var(--line); transition: transform .25s, border-color .25s;
}
.board-row:hover { transform: translateX(6px); }
.b-logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.b-logo svg { width: 70%; }
.is-live .b-logo { background: #fff; }
.is-live { background: var(--bg-2); }
.is-empty { border-style: dashed; }
.is-empty .b-logo { border: 1.5px dashed rgba(255,255,255,.25); fill: none; stroke: rgba(255,255,255,.35); stroke-width: 3; }
.is-empty .b-name, .is-empty .b-site { color: var(--dim); }
.b-name { font: 800 20px/1.1 var(--display); letter-spacing: -.01em; }
.b-name em { font: 400 13px/1 var(--mono); font-style: normal; color: var(--accent); margin-left: 6px; }
.b-site { font: 400 13px/1 var(--mono); color: var(--muted); }

/* ---------- buy ---------- */
.buy-card {
  max-width: 820px; margin: 0 auto; text-align: center; padding: 64px 40px;
  border-radius: 34px; background: linear-gradient(180deg, rgba(171,159,242,.12), rgba(171,159,242,.02));
  border: 1px solid rgba(171,159,242,.28);
}
.buy-logo { width: 96px; height: 96px; margin: 0 auto 22px; background: #fff; border-radius: 28px; display: grid; place-items: center; }
.buy-logo svg { width: 64%; }
.buy-card h2 { font-size: clamp(42px, 7vw, 76px); }
.buy-card .sub { margin: 14px auto 34px; }
.ca-box {
  display: flex; align-items: center; gap: 12px; max-width: 600px; margin: 0 auto 22px;
  padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line);
}
.ca-label { font: 600 13px/1 var(--mono); color: var(--accent); }
#ca { flex: 1; min-width: 0; text-align: left; font: 400 14px/1.3 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.chart { margin-top: 34px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.chart iframe { width: 100%; height: 460px; border: 0; }
.chart-soon { color: var(--dim); font-size: 14px; margin: 26px 0 0; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 30px 24px 70px; color: var(--dim); font-size: 14px; }
.foot p { margin: 6px 0; }
.foot-ghost { display: block; width: 34px; margin: 0 auto 14px; fill: none; stroke: rgba(255,255,255,.3); stroke-width: 3; stroke-dasharray: 4 5; }
.foot-small { font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--accent); color: var(--accent-ink); font: 600 14px/1 var(--body); padding: 12px 20px; border-radius: 999px;
  transition: opacity .25s, transform .25s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- entrance ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .tally-bar { transform: none; }
  .strike::after { transform: rotate(-4deg); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  section { padding: 80px 20px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 30px; gap: 56px; }
  .hero-art { max-width: 340px; order: -1; }
  .lore-grid, .builder { grid-template-columns: 1fr; gap: 36px; }
  .preview-wrap { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding: 12px 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 64px 16px; }
  .hero-art { max-width: 260px; }
  .hero-actions .btn, .buy-actions .btn { flex: 1 1 100%; }
  .form { padding: 20px; }
  .check-form { flex-direction: column; }
  .check-form input { border-radius: 14px; }
  .result { grid-template-columns: 1fr; text-align: left; }
  .buy-card { padding: 44px 18px; border-radius: 26px; }
  .ca-box { padding-left: 16px; }
  .chart iframe { height: 380px; }
  .lore-text p { font-size: 17px; }
}
