/* THE WATER WELL - "The Ancient Ocean Well" */
:root {
  --abyss: #060913;
  --deep: #0d111d;
  --panel: rgba(16, 22, 38, 0.72);
  --panel-solid: #111728;
  --line: rgba(120, 160, 210, 0.13);
  --line-strong: rgba(0, 229, 255, 0.35);
  --stone: #5d6a85;
  --text: #e6f1ff;
  --text-2: #9fb0c8;
  --muted: #6f7f98;
  --cyan: #00e5ff;
  --cyan-soft: rgba(0, 229, 255, 0.14);
  --cyan-glow: 0 0 24px rgba(0, 229, 255, 0.35);
  --buy: #2ff5c1;
  --sell: #ff5d7a;
  --warn: #ffc457;
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
#app { outline: none; }

/* deep-ocean backdrop with slow drifting light */
.ocean {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(0, 229, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 30%, rgba(0, 120, 180, 0.10), transparent 60%),
    radial-gradient(800px 600px at -10% 80%, rgba(0, 90, 140, 0.12), transparent 60%),
    linear-gradient(180deg, #070b16 0%, var(--abyss) 45%, #04060c 100%);
}
.ocean::after {
  content: ""; position: absolute; inset: -50%;
  background: repeating-radial-gradient(circle at 30% 20%, rgba(0, 229, 255, 0.018) 0 2px, transparent 2px 60px);
  animation: drift 60s linear infinite;
}
@keyframes drift { to { transform: translate3d(6%, 4%, 0) rotate(3deg); } }

/* ---------------------------------------------------------------- header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(6, 9, 19, 0.92), rgba(6, 9, 19, 0.65));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand-name { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.12em; font-size: 17px; white-space: nowrap; }
.brand:hover svg { filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.7)); }
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--text-2); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.nav a.active { color: var(--cyan); background: var(--cyan-soft); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cluster-pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2);
}
.cluster-pill.devnet { color: var(--warn); border-color: rgba(255, 196, 87, 0.35); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s, border-color 0.25s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  color: #001318;
  background: linear-gradient(180deg, #5ff3ff 0%, var(--cyan) 45%, #00b4d1 100%);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.4), 0 8px 30px -8px rgba(0, 229, 255, 0.6);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.7), 0 10px 40px -6px rgba(0, 229, 255, 0.85); transform: translateY(-1px); }
.btn-primary.sell { background: linear-gradient(180deg, #ff8fa3, var(--sell) 50%, #d63d5b); color: #1a0007; box-shadow: 0 8px 30px -10px rgba(255, 93, 122, 0.7); }
.btn-secondary { background: var(--cyan-soft); color: var(--cyan); border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { background: rgba(0, 229, 255, 0.22); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-strong); color: var(--cyan); }
.btn-block { width: 100%; }
.btn-wallet {
  padding: 9px 16px; font-size: 14px; color: var(--cyan); background: rgba(0, 229, 255, 0.08); border-color: var(--line-strong);
}
.btn-wallet:hover { background: rgba(0, 229, 255, 0.16); box-shadow: var(--cyan-glow); }
.btn-wallet.connected { font-family: var(--font-mono); color: var(--text); }
.spin {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- typography */
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px; color: var(--cyan);
  margin: 0 0 12px;
}
.display {
  font-family: var(--font-display); font-weight: 900; line-height: 1.02; letter-spacing: 0.01em;
  font-size: clamp(38px, 5.4vw, 70px); margin: 0 0 18px;
}
.display-md { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 12px; }
.display-sm { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin: 0; letter-spacing: 0.04em; }
.glow { color: var(--cyan); text-shadow: 0 0 30px rgba(0, 229, 255, 0.55), 0 0 80px rgba(0, 229, 255, 0.25); }
.lede { color: var(--text-2); font-size: 17px; max-width: 560px; margin: 0 0 26px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cyan { color: var(--cyan); }
.warn { color: var(--warn); }
.center { text-align: center; }
.upper { text-transform: uppercase; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); align-items: center;
  gap: 12px; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 0;
  max-width: 1360px; margin: 0 auto;
}
.hero-copy { position: relative; z-index: 2; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stage { position: relative; height: clamp(420px, 52vw, 640px); }
.well-canvas { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.hero-canvas {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}
.hero-gauge, .stage-overlay {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  text-align: center; pointer-events: none; white-space: nowrap;
}
.gauge-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-2); }
.gauge-value {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1;
  color: #e9feff; text-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
}
.gauge-value small { font-size: 0.42em; color: var(--cyan); letter-spacing: 0.1em; }
.gauge-sub { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- launches grid */
.launches { max-width: 1360px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 60px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.tab { background: none; border: 0; padding: 7px 14px; border-radius: 999px; color: var(--text-2); cursor: pointer; font-weight: 600; font-size: 13.5px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--cyan-soft); color: var(--cyan); }
.search {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; min-width: 240px;
  outline: none; transition: border-color 0.2s;
}
.search:focus { border-color: var(--line-strong); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 16px; border-radius: var(--radius); color: var(--text); text-decoration: none !important;
  background:
    linear-gradient(180deg, rgba(20, 28, 48, 0.78), rgba(10, 14, 26, 0.82)) padding-box,
    linear-gradient(160deg, rgba(0, 229, 255, 0.32), rgba(120, 160, 210, 0.08) 35%, rgba(0, 229, 255, 0.16)) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px 200px at 50% 0%, rgba(0, 229, 255, 0.12), transparent 70%);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -20px rgba(0, 229, 255, 0.55), 0 0 0 1px rgba(0, 229, 255, 0.35); }
.card:hover::before { opacity: 1; }
.card.skeleton { min-height: 230px; background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05), rgba(255,255,255,0.02)); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-top { display: flex; gap: 12px; align-items: center; }
.card-img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); background: var(--deep); flex: none; }
.card-title { min-width: 0; flex: 1; }
.card-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sym { font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan); }
.fee-badge {
  font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; border-radius: 999px; white-space: nowrap;
  color: var(--text-2); border: 1px solid var(--line);
}
.fee-badge.hot { color: #1b1000; background: var(--warn); border-color: var(--warn); box-shadow: 0 0 18px rgba(255, 196, 87, 0.5); animation: throb 1.2s ease-in-out infinite; }
@keyframes throb { 50% { box-shadow: 0 0 4px rgba(255, 196, 87, 0.2); } }
.card-well { display: flex; gap: 12px; align-items: center; }
.mini-well {
  position: relative; width: 38px; height: 46px; border-radius: 8px 8px 14px 14px; overflow: hidden; flex: none;
  background: linear-gradient(180deg, #1a2133, #090c15); border: 2px solid #3a4560;
}
.mini-water {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #5ff3ff, #006e86); box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
  transition: height 1.2s cubic-bezier(.2,.8,.2,1);
}
.mini-water::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 4px; background: rgba(220,255,255,.7); border-radius: 50%; }
.k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }
.v { font-size: 15px; font-weight: 600; }
.card-stats { display: grid; grid-template-columns: 1.3fr 1fr 0.6fr; gap: 8px; }
.card-stats .v { font-size: 13.5px; white-space: nowrap; }
.card-foot { font-size: 12px; }
.progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.progress.big { height: 10px; margin: 6px 0; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #006e86, var(--cyan)); box-shadow: 0 0 12px rgba(0, 229, 255, 0.6); transition: width 0.8s ease; }
.empty { grid-column: 1 / -1; padding: 50px 20px; text-align: center; color: var(--text-2); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------------------------------------------------------------- panels & forms */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20, 28, 48, 0.72), rgba(10, 14, 26, 0.78)) padding-box,
    linear-gradient(160deg, rgba(0, 229, 255, 0.38), rgba(120, 160, 210, 0.1) 30%, rgba(120, 160, 210, 0.06) 70%, rgba(0, 229, 255, 0.22)) border-box;
  border: 1px solid transparent; border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 20px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9), 0 0 40px -28px rgba(0, 229, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12px; }
.field input, .field textarea, .input-unit {
  background: rgba(3, 6, 14, 0.7); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field input:focus, .field textarea:focus, .input-unit:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1); }
.field textarea { resize: vertical; min-height: 80px; }
.input-unit { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 13px; }
.input-unit input { border: 0 !important; background: none !important; box-shadow: none !important; padding: 11px 0; flex: 1; min-width: 0; outline: none; }
.input-unit b { font-family: var(--font-mono); color: var(--text-2); font-size: 13px; padding-right: 8px; }
.input-unit.big input { font-size: 22px; font-family: var(--font-mono); padding: 12px 0; }
.input-unit.small { width: 120px; }
.max { background: var(--cyan-soft); color: var(--cyan); border: 0; border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; cursor: pointer; }
.field-row { display: grid; grid-template-columns: 1fr 160px; gap: 12px; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  font-size: 12.5px; cursor: pointer; color: var(--text-2); transition: all 0.2s; font-family: var(--font-mono);
}
.chip:hover { color: var(--cyan); border-color: var(--line-strong); }
.chip.active { color: var(--abyss); background: var(--cyan); border-color: var(--cyan); }

.drop {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 120px;
  border: 1.5px dashed rgba(0, 229, 255, 0.3); border-radius: var(--radius-sm); cursor: pointer; padding: 14px;
  background: radial-gradient(300px 120px at 50% 50%, rgba(0, 229, 255, 0.06), transparent); transition: all 0.2s;
}
.drop:hover, .drop.over { border-color: var(--cyan); background-color: rgba(0, 229, 255, 0.06); }
.drop img { width: 92px; height: 92px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.drop-hint { color: var(--text-2); font-size: 14px; text-align: center; }
.drop-hint u { color: var(--cyan); }

.quote { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.quote:empty { display: none; }
.quote-big { font-size: 22px; font-weight: 700; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(0, 229, 255, 0.06); border: 1px solid rgba(0, 229, 255, 0.18); }
.quote-big em { font-style: normal; font-size: 13px; color: var(--text-2); font-weight: 500; margin-left: 6px; }
.quote-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.quote-row.sub { padding-left: 12px; font-size: 12.5px; }
.quote-row.err { color: var(--sell); }
.quote-row.warn { color: var(--warn); }
.notice {
  font-size: 13.5px; color: var(--text-2); border-left: 3px solid var(--cyan); padding: 10px 14px; margin: 0 0 16px;
  background: rgba(0, 229, 255, 0.05); border-radius: 0 10px 10px 0;
}
.notice b { color: var(--text); }

/* ---------------------------------------------------------------- create */
.create { max-width: 1180px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 60px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.create-intro { position: sticky; top: 100px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.facts li { display: flex; gap: 12px; color: var(--text-2); }
.facts b { color: var(--text); }
.fact-ico {
  flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 14px;
  background: var(--cyan-soft); color: var(--cyan); border: 1px solid var(--line-strong);
}

/* ---------------------------------------------------------------- token page */
.token-page { max-width: 1360px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 60px; }
.token-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.token-img { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; border: 1px solid var(--line-strong); box-shadow: var(--cyan-glow); flex: none; background: var(--deep); }
.token-id { min-width: 0; }
.token-id h1 { margin-bottom: 6px; word-break: break-word; }
.token-id .sym { font-family: var(--font-mono); font-size: 0.5em; color: var(--cyan); vertical-align: middle; }
.token-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.copy { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; cursor: pointer; font-size: 12.5px; color: var(--text-2); }
.copy:hover { color: var(--cyan); border-color: var(--line-strong); }
.links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.link-pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.link-pill:hover { color: var(--cyan); border-color: var(--line-strong); text-decoration: none; }
.token-desc { color: var(--text-2); margin: 8px 0 0; max-width: 760px; white-space: pre-line; overflow-wrap: anywhere; }
.token-desc:empty { display: none; }

.token-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.col-stage, .col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stage { position: relative; padding: 0; overflow: hidden; height: clamp(380px, 46vw, 560px);
  background: radial-gradient(120% 90% at 50% 20%, rgba(13, 30, 50, 0.6), rgba(6, 9, 19, 0.85)); }
.stage-hint { position: absolute; top: 14px; right: 16px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 10.5px; }
.fee-meter { padding: 16px 20px; }
.fee-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.fee-title { font-weight: 700; letter-spacing: 0.04em; }
.fee-now { font-size: 24px; font-weight: 600; }
.fee-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.fee-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--warn)); transition: width 0.25s linear; }
.fee-meter.hot { border-color: rgba(255, 196, 87, 0.45); box-shadow: 0 0 40px -16px rgba(255, 196, 87, 0.6); }
.fee-meter.hot .fee-now { color: var(--warn); }
.fee-sub { margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats .span2 { grid-column: 1 / -1; }
.stats .v { font-size: 18px; }

.seg { display: flex; gap: 6px; margin-bottom: 14px; align-items: center; }
.seg-btn { flex: 1; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); cursor: pointer; font-weight: 700; color: var(--text-2); transition: all 0.2s; }
.seg-btn.buy.active { color: #00140f; background: var(--buy); border-color: var(--buy); box-shadow: 0 0 22px -6px var(--buy); }
.seg-btn.sell.active { color: #1a0007; background: var(--sell); border-color: var(--sell); box-shadow: 0 0 22px -6px var(--sell); }
.icon-btn { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.icon-btn:hover { color: var(--cyan); border-color: var(--line-strong); }
.slip-pop { padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(3, 6, 14, 0.8); margin-bottom: 14px; }
.slip-pop .chips { margin: 8px 0; }
.trade #bal-line { margin-top: 10px; text-align: center; }

.wellbox-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.wellbox h3, .feed h3 { margin: 0; font-family: var(--font-display); letter-spacing: 0.06em; font-size: 18px; }
.wb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 10px; }
.wb-stats .wide { grid-column: 1 / -1; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(0, 229, 255, 0.05); border: 1px solid rgba(0, 229, 255, 0.18); }
.v.big { font-size: 24px; text-shadow: 0 0 18px rgba(0, 229, 255, 0.45); }
#b-idle { margin-bottom: 12px; }
#b-idle:empty { display: none; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

.feed { margin-top: 20px; }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.live-dot { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--buy); display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: throb 1.4s infinite; }
.live-dot.off { color: var(--muted); }
.feed-row {
  display: grid; grid-template-columns: 70px 1.2fr 1fr 1.1fr 0.7fr 1fr 0.6fr; gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: 10px; color: var(--text); font-size: 13px; text-decoration: none !important;
  transition: background 0.2s;
}
.feed-row:not(.feed-th):hover { background: rgba(255, 255, 255, 0.04); }
.feed-th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.side-tag { font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: 6px; }
.is-buy .side-tag { color: var(--buy); background: rgba(47, 245, 193, 0.1); }
.is-sell .side-tag { color: var(--sell); background: rgba(255, 93, 122, 0.1); }
.feed-row.flash { animation: rowflash 1.4s ease-out; }
@keyframes rowflash { 0% { background: rgba(0, 229, 255, 0.25); } 100% { background: transparent; } }
.feed-empty { padding: 26px; text-align: center; }

.center-msg { max-width: 640px; margin: 80px auto; text-align: center; padding: 0 16px; }

/* ---------------------------------------------------------------- how */
.how { max-width: 1100px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 60px; }
.how-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 26px 0; }
.how-card h3 { font-family: var(--font-display); font-size: 22px; margin: 6px 0 8px; letter-spacing: 0.06em; }
.how-card p { color: var(--text-2); margin: 0 0 10px; }
.how-num { font-family: var(--font-display); font-weight: 900; font-size: 34px; color: var(--cyan); text-shadow: var(--cyan-glow); }
.how-risk { margin-bottom: 26px; border-color: rgba(255, 196, 87, 0.3); }
.how-risk h3 { margin: 0 0 6px; color: var(--warn); }
.how-risk p { margin: 0; color: var(--text-2); }

/* ---------------------------------------------------------------- toasts & footer */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px; border-radius: 14px;
  background: rgba(13, 17, 29, 0.96); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  animation: toastIn 0.3s cubic-bezier(.2,.9,.3,1.2); backdrop-filter: blur(10px);
}
.toast.out { opacity: 0; transform: translateY(8px); transition: all 0.25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.toast-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.toast-success .toast-dot { background: var(--buy); box-shadow: 0 0 10px var(--buy); }
.toast-error { border-color: rgba(255, 93, 122, 0.4); }
.toast-error .toast-dot { background: var(--sell); box-shadow: 0 0 10px var(--sell); }
.toast-text { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.toast-text span { color: var(--text-2); }
.toast-x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.toast-x:hover { color: var(--text); }
.footer {
  position: relative; margin-top: 40px; padding: 44px clamp(16px, 4vw, 40px) 28px; font-size: 13.5px; color: var(--text-2);
  background: linear-gradient(180deg, rgba(6, 9, 19, 0), rgba(4, 6, 12, 0.9) 40%);
}
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.45), transparent);
}
.footer-inner { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-brand p { margin: 12px 0 0; max-width: 360px; color: var(--muted); }
.footer-brand .brand-name { font-size: 15px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; min-width: 0; }
.footer-links h4 {
  margin: 0 0 4px; font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text);
}
.footer-links a { color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); text-decoration: none; }
.footer-links a.mono { font-size: 12.5px; overflow-wrap: anywhere; }
.x-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-risk {
  max-width: 1360px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-align: center;
}

/* ---------------------------------------------------------------- ambient, transitions, micro-interactions */
.ambient { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
#app.page-in { animation: pageIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translate3d(0, 14px, 0); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.7s ease;
}
.btn:hover:not(:disabled)::before { transform: translateX(120%); }
.btn-ghost::before, .btn-wallet::before { background: linear-gradient(105deg, transparent 35%, rgba(0, 229, 255, 0.18) 50%, transparent 65%); }
.btn::after, .chip::after, .tab::after, .seg-btn::after {
  content: ""; position: absolute; left: var(--rx, 50%); top: var(--ry, 50%); width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.45); opacity: 0; transform: scale(0); pointer-events: none;
}
.chip, .tab, .seg-btn { position: relative; overflow: hidden; }
.pressed::after { animation: press 0.6s ease-out; }
@keyframes press { 0% { opacity: 0.55; transform: scale(0); } 100% { opacity: 0; transform: scale(28); } }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-ghost { backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.02); }
.field input, .field textarea { transition: border-color 0.2s, box-shadow 0.25s, background 0.2s; }
.field input:hover, .field textarea:hover, .input-unit:hover { border-color: rgba(0, 229, 255, 0.22); }
.field input:focus, .field textarea:focus, .input-unit:focus-within { background: rgba(3, 8, 18, 0.9); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12), 0 0 24px -6px rgba(0, 229, 255, 0.45); }
.nav a { position: relative; }
.nav a.active::after {
  content: ""; position: absolute; left: 30%; right: 30%; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

/* ---------------------------------------------------------------- hero extras */
.eyebrow-lines { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-lines::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.hero .display { letter-spacing: 0.005em; text-wrap: balance; }
.hero-facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 0; flex-wrap: nowrap; }
.hero-facts li {
  display: flex; flex-direction: column; gap: 2px; padding: 2px 18px; border-left: 1px solid var(--line); min-width: 0;
}
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts b { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--text); letter-spacing: 0.02em; }
.hero-facts span { font-size: 12.5px; color: var(--muted); }
.hero-stage { will-change: transform; }

/* ---------------------------------------------------------------- DEMO badge (every simulated element carries one) */
.demo-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #ffd27a; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 196, 87, 0.1); border: 1px dashed rgba(255, 196, 87, 0.55);
}
.demo-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.demo-badge-lg { font-size: 11.5px; padding: 6px 12px; }

/* ---------------------------------------------------------------- empty state: the first well */
.first-well {
  grid-column: 1 / -1; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 36px 20px 40px; border-radius: 24px;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(0, 229, 255, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(16, 22, 38, 0.6), rgba(8, 11, 20, 0.6)) padding-box,
    linear-gradient(180deg, rgba(0, 229, 255, 0.35), rgba(120, 160, 210, 0.06) 60%) border-box;
  border: 1px solid transparent;
}
.dry-well { width: 150px; height: 140px; margin-bottom: 6px; overflow: visible; }
.dw-drop { animation: hover 3.2s ease-in-out infinite; transform-origin: 80px 30px; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.9)); }
.dw-ring { animation: ringspin 18s linear infinite; transform-origin: 80px 132px; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes ringspin { to { stroke-dashoffset: -90; } }
.first-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 10px; letter-spacing: 0.03em; }
.first-copy { color: var(--text-2); max-width: 520px; margin: 0 0 22px; }
.first-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------------------------------------------------------------- simulation section */
.sim { max-width: 1360px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 40px) 40px; scroll-margin-top: 120px; }
.sim .section-head { align-items: flex-end; }
.sim-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: stretch; }
.sim-stage {
  padding: 0; overflow: hidden; min-height: 520px;
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(13, 30, 50, 0.65), rgba(6, 9, 19, 0.9)) padding-box,
    linear-gradient(160deg, rgba(255, 196, 87, 0.4), rgba(120, 160, 210, 0.08) 30%, rgba(0, 229, 255, 0.25)) border-box;
}
.sim-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.sim-corner { position: absolute; top: 14px; left: 14px; z-index: 2; }
.sim-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sim-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sim-fee { transition: box-shadow 0.4s; }
.sim-fee.hot { box-shadow: 0 0 46px -18px rgba(255, 196, 87, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.sim-fee-body { display: flex; align-items: center; gap: 14px; }
.fee-ring { width: 64px; height: 64px; flex: none; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(0, 229, 255, 0.14); stroke-width: 7; }
.ring-fill {
  fill: none; stroke: var(--warn); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px rgba(255, 196, 87, 0.8)); transition: stroke-dashoffset 0.15s linear;
}
.sim-fee-now { font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--cyan); transition: color 0.3s; }
.sim-fee.hot .sim-fee-now { color: var(--warn); text-shadow: 0 0 18px rgba(255, 196, 87, 0.45); }
.fee-curve { display: block; width: 100%; height: 56px; margin-top: 14px; overflow: visible; }
.fee-curve-line { fill: none; stroke: rgba(0, 229, 255, 0.55); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fee-curve-now { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fee-curve-dot { fill: #ffe2a6; filter: drop-shadow(0 0 5px rgba(255, 196, 87, 0.9)); }
.fee-curve-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; margin-top: 4px; }
.fee-curve-axis span:last-child { margin-right: 18%; }
.sim-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.sim-stat-grid .v { font-size: 17px; }
.sim-log { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-height: 108px; }
.sim-log li {
  display: grid; grid-template-columns: 62px 1fr 1fr 1fr; gap: 6px; align-items: center; font-size: 12px;
  animation: logIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sim-log li:nth-child(n + 2) { opacity: 0.75; }
.sim-log li:nth-child(n + 3) { opacity: 0.5; }
.sim-log li:nth-child(n + 4) { opacity: 0.3; }
.sim-log .mono { text-align: right; white-space: nowrap; }
.sim-log .side { font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.sim-log .side.b { color: var(--buy); background: rgba(47, 245, 193, 0.08); }
.sim-log .side.s { color: var(--sell); background: rgba(255, 93, 122, 0.08); }
.sim-log .restart { grid-column: 1 / -1; color: var(--warn); font-size: 12px; }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }
.sim-caption { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 13.5px; max-width: 980px; margin: 16px 0 0; }
.sim-caption .demo-badge { margin-top: 2px; }

/* ---------------------------------------------------------------- docs (security) */
.doc { max-width: 1100px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 60px; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.doc-card h3 { font-family: var(--font-display); font-size: 20px; margin: 2px 0 10px; letter-spacing: 0.05em; }
.doc-card p { color: var(--text-2); margin: 0 0 10px; }
.doc-card p:last-child { margin-bottom: 0; }
.doc-warn h3 { color: var(--warn); }
.doc-warn { box-shadow: 0 0 46px -22px rgba(255, 196, 87, 0.55); }
.addr-link { font-size: 13px; overflow-wrap: anywhere; }

/* how page polish */
.how-card { transition: transform 0.3s ease, box-shadow 0.3s; }
.how-card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(0, 229, 255, 0.5); }
.how-risk { box-shadow: 0 0 46px -22px rgba(255, 196, 87, 0.5); }
.how-sim-link { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 26px; }
.how-sim-link p { margin: 0; color: var(--text-2); flex: 1 1 380px; }
.how-risk h3 { font-family: var(--font-display); letter-spacing: 0.05em; }
.dry-well { width: 180px; height: 168px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .token-grid { grid-template-columns: 1fr; }
  .create { grid-template-columns: 1fr; }
  .create-intro { position: static; }
  .hero-facts { justify-content: center; }
  .eyebrow-lines::after { content: ""; width: 34px; height: 1px; background: linear-gradient(270deg, transparent, var(--cyan)); }
  .sim-wrap { grid-template-columns: 1fr; }
  .sim-side { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .topbar { gap: 10px; padding: 10px 16px; flex-wrap: wrap; }
  .brand-name { font-size: 13px; letter-spacing: 0.05em; }
  .brand svg { width: 28px; height: 28px; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .cluster-pill { display: none; }
  .btn-wallet { padding: 7px 12px; font-size: 12.5px; }
  .hero { padding: 24px 16px 0; }
  .hero-stage { height: 420px; margin: 0 -16px; }
  .launches, .create, .token-page, .how { padding-left: 16px; padding-right: 16px; }
  .search { min-width: 0; width: 100%; }
  .controls { width: 100%; }
  .tabs { width: 100%; justify-content: space-between; }
  .grid { grid-template-columns: 1fr; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .token-head { align-items: flex-start; }
  .token-img { width: 64px; height: 64px; border-radius: 16px; }
  .stage { height: 360px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { grid-column: 1 / -1; }
  .how-grid { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 54px 1fr 1fr 0.8fr; }
  .feed-row > span:nth-child(4), .feed-row > span:nth-child(5), .feed-row > span:nth-child(7) { display: none; }
  .panel { padding: 16px; }
  .sim, .doc { padding-left: 16px; padding-right: 16px; }
  .sim-side { grid-template-columns: 1fr; }
  .sim-stage { min-height: 500px; }
  .sim-caption { flex-direction: column; gap: 8px; font-size: 13px; }
  .hero-facts { margin-top: 26px; }
  .hero-facts li { padding: 2px 12px; }
  .hero-facts b { font-size: 18px; }
  .hero-facts span { font-size: 11px; max-width: 96px; }
  .doc-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-links div:last-child { grid-column: 1 / -1; }
  .first-cta { flex-direction: column; width: 100%; max-width: 300px; }
  .first-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
