:root {
  --bg: #0b1220;
  --bg-soft: #111a2b;
  --surface: #141f33;
  --surface-2: #1b2942;
  --border: #253652;
  --text: #e6edf7;
  --muted: #93a3bd;
  --primary: #14b8a6;
  --primary-strong: #0d9488;
  --accent: #f59e0b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* background-attachment: fixed anchors both gradients to the viewport, not
     the document, so they don't run out partway down a long page and leave
     a visible seam where the background falls back to flat var(--bg). */
  background-image: radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 166, 0.18), transparent),
                     radial-gradient(900px 500px at 110% 10%, rgba(245, 158, 11, 0.12), transparent);
  background-attachment: fixed, fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, 92vw); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #04121a; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a.active, .nav a:hover { color: var(--text); text-decoration: none; }

main { padding: 2.2rem 0 4rem; }
.hero { display: grid; gap: 1.5rem; grid-template-columns: 1.1fr 0.9fr; align-items: start; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6rem; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p.lead { color: var(--muted); font-size: 1.05rem; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 1.1rem; }

.grid { display: grid; gap: 1.1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.stat { padding: 1.1rem 1.2rem; }
.stat .label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat .value { font-size: 1.7rem; font-weight: 700; margin-top: 0.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #04121a; border: none; border-radius: 10px;
  padding: 0.7rem 1.15rem; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; text-decoration: none; transition: transform 0.06s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.sm { padding: 0.35rem 0.7rem; font-size: 0.82rem; border-radius: 8px; }

form .field { margin-bottom: 1rem; }
label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.35rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(20, 184, 166, 0.35); border-color: var(--primary); }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 0.3rem; }
.error-text { color: #fca5a5; font-size: 0.85rem; margin-top: 0.3rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; }
.right { text-align: right; }
.stack { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
thead th { text-align: left; padding: 0.8rem 0.9rem; background: var(--surface-2); color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody td { padding: 0.8rem 0.9rem; border-top: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.badge.ok { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.badge.warn { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.badge.err { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.badge.info { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }

.flash { border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 1rem; border: 1px solid var(--border); }
.flash.success { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.4); }
.flash.error, .flash.danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); }
.flash.warning { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.4); }

.coin-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.coin-row + .coin-row { margin-top: 0.6rem; }
.coin-symbol { font-weight: 800; letter-spacing: 0.04em; }

.sidebar-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .sidebar-layout { grid-template-columns: 1fr; } }
.sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem; position: sticky; top: 80px; }
.sidebar a { display: block; padding: 0.55rem 0.7rem; border-radius: 9px; color: var(--muted); font-size: 0.93rem; }
.sidebar a.active, .sidebar a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.sidebar .group { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0.8rem 0.7rem 0.3rem; }

.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.site-footer { border-top: 1px solid var(--border); padding: 1.4rem 0; color: var(--muted); font-size: 0.85rem; }
.site-footer .inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.toast { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; }

/* Ad placements */
.ad-slot { margin: 0.9rem 0; display: flex; justify-content: center; }
.ad-slot.placeholder { border: 1px dashed var(--border); border-radius: var(--radius); padding: 1rem; color: var(--muted); font-size: 0.85rem; }

/* Ad-block overlay */
.adblock-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 8, 16, 0.94);
  display: grid; place-items: center; padding: 1.5rem;
}
.adblock-overlay[hidden] { display: none; }
.adblock-card {
  max-width: 520px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; text-align: center; box-shadow: var(--shadow);
}
html.adblock-active, body.adblock-active { overflow: hidden; }

/* Marketing / portal helpers */
.marketing-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .marketing-hero { grid-template-columns: 1fr; } }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.price-card { display: flex; flex-direction: column; gap: 0.6rem; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.price { font-size: 2rem; font-weight: 800; }
.price small { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.feature-list { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.92rem; }
.feature-list li { padding: 0.22rem 0; }
.feature-list li::before { content: "✓ "; color: var(--primary); font-weight: 700; }
.portal-layout { display: grid; grid-template-columns: 230px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .portal-layout { grid-template-columns: 1fr; } }
.code-block { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem; font-family: ui-monospace, monospace; font-size: 0.85rem; white-space: pre-wrap; word-break: break-all; }
.kpi { display: grid; gap: 0.2rem; }
.kpi .value { font-size: 1.5rem; font-weight: 700; }
.kpi .label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------------------------------------------------------------------- */
/* Marketing system: hero chips, numbered sections, live stats, coin feed  */
/* ---------------------------------------------------------------------- */

.hero-title-gradient {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-quickstart {
  display: flex; gap: 0.6rem; margin-top: 1.3rem; max-width: 460px;
}
.hero-quickstart input {
  flex: 1; padding: 0.7rem 0.85rem; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.95rem;
}
.hero-quickstart input:focus { outline: 2px solid rgba(20, 184, 166, 0.35); border-color: var(--primary); }
.hero-quickstart .btn { white-space: nowrap; }
@media (max-width: 520px) { .hero-quickstart { flex-direction: column; } }

.activity-ticker .coin-chip { gap: 0.5rem; }
.activity-ticker .live-dot { flex-shrink: 0; }
.activity-ticker .when { color: var(--muted); font-size: 0.8rem; }

.wallet-showcase { align-items: center; }
@media (max-width: 900px) { .wallet-showcase { grid-template-columns: 1fr; } }
.wallet-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.wallet-preview-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.wallet-preview-tag {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.6rem;
}
.wallet-balance { font-size: 2.4rem; font-weight: 800; transition: color 0.4s ease; }
.wallet-balance.wallet-flash { color: #86efac; }
.wallet-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; transition: color 0.4s ease; }
.wallet-sub.wallet-flash { color: #86efac; }
.wallet-tx-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.wallet-tx-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.55rem 0; border-top: 1px solid var(--border); font-size: 0.86rem;
}
.wallet-tx-list li:first-child { border-top: none; }
.wallet-tx-list .who { color: var(--text); font-weight: 600; }
.wallet-tx-list .when { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.7rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18); }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.trust-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.4rem 0.8rem; font-size: 0.82rem; color: var(--muted);
}
.trust-chip strong { color: var(--text); font-weight: 600; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.1rem; }
.hero-stats .hero-stat .value { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.hero-stats .hero-stat .label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.coin-marquee {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-soft); padding: 0.7rem 0;
}
.coin-marquee .track {
  display: flex; gap: 2.4rem; width: max-content; white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.coin-marquee:hover .track { animation-play-state: paused; }
.coin-marquee .coin-chip { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.coin-marquee .coin-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .coin-marquee .track { animation: none; }
  .live-dot { animation: none; }
}

.section-head { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 1.1rem; }
.section-head .num { font-size: 0.85rem; font-weight: 800; color: var(--primary); letter-spacing: 0.08em; }
.section-head .rule { flex: 1; height: 1px; background: var(--border); }

.feed-card { padding: 0; overflow: hidden; }
.feed-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.feed-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.65rem 1.1rem; border-top: 1px solid var(--border); font-size: 0.88rem;
}
.feed-list li:first-child { border-top: none; }
.feed-list .who { color: var(--text); font-weight: 600; }
.feed-list .what { color: var(--muted); }
.feed-list .when { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }

.accordion summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; font-weight: 400; }
.accordion[open] summary::after { content: "–"; }
.accordion p { margin: 0.6rem 0 0; }

.security-grid .card { display: flex; flex-direction: column; gap: 0.4rem; }
.security-grid .icon { font-size: 1.4rem; }

.cta-band { text-align: center; background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(245, 158, 11, 0.08)); border-color: var(--primary); }
