:root {
  /* Palette pulled from the $xSTOCK logo: deep teal disc + cyan neon edge. */
  --bg: #04181a;
  --bg-2: #062023;
  --panel: #0a2b2e;
  --panel-2: #0e3539;
  --border: #114247;
  --border-2: #185158;
  --text: #e8fbfb;
  --muted: #7fb0b3;
  --accent: #2ee6e0;
  --accent-2: #16c2bd;
  --accent-glow: #6df5f0;
  --accent-soft: rgba(46, 230, 224, 0.14);
  --danger: #ff5577;
  --good: #2ee6e0;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --max: 1180px;
}

* { box-sizing: border-box; }

/* ─── Access gate ──────────────────────────────────────────────────────
   Hide the real page until the gate is cleared. The .ungated class is
   added on <html> by an inline pre-paint script so already-unlocked
   sessions never flash the overlay.
*/
body.gated > header,
body.gated > main,
body.gated > footer { display: none !important; }

html.ungated body.gated > header,
html.ungated body.gated > main,
html.ungated body.gated > footer { display: revert !important; }

html.ungated #gate { display: none !important; }

.gate {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(46, 230, 224, 0.16), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, rgba(46, 230, 224, 0.10), transparent 60%),
    var(--bg);
}
.gate-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.gate-brand { justify-content: center; margin-bottom: 18px; font-size: 20px; }
.gate-brand .brand-mark { width: 56px; height: 56px; }
.gate-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(46, 230, 224, 0.5), transparent 50%, rgba(46, 230, 224, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.gate-card { position: relative; }
.gate-title {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.gate-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.gate-form {
  display: flex; flex-direction: column; gap: 10px;
}
.gate-input {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gate-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gate-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 13px;
}
.gate.shake .gate-card {
  animation: gate-shake 0.35s ease;
}
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 230, 224, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(46, 230, 224, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.5px; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 0 14px rgba(46, 230, 224, 0.55));
}
.brand-text { font-size: 18px; }
.brand-text .dollar { color: var(--accent); margin-right: 2px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav .cta {
  background: var(--accent); color: #00282a;
  padding: 8px 14px; border-radius: 10px; font-weight: 700;
  box-shadow: 0 0 18px rgba(46, 230, 224, 0.35);
}
.nav .cta:hover { background: var(--accent-glow); color: #00282a; }

.hero { padding: 56px 24px 40px; text-align: center; }
.hero-logo {
  width: 132px; height: 132px;
  margin: 0 auto 26px;
  display: block;
  filter:
    drop-shadow(0 0 40px rgba(46, 230, 224, 0.55))
    drop-shadow(0 0 80px rgba(46, 230, 224, 0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero .lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 28px;
}
.hero-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.btn-x { display: inline-flex; align-items: center; gap: 8px; }
.btn-x svg { width: 16px; height: 16px; }
.gate-x { margin-top: 14px; width: 100%; justify-content: center; }
.hero-meta { color: var(--muted); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 10px;
  font-weight: 700; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--accent); color: #00282a;
  box-shadow: 0 0 20px rgba(46, 230, 224, 0.30);
}
.btn.primary:hover { background: var(--accent-glow); color: #00282a; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.hub { padding: 30px 24px 20px; }
.hub-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow), 0 0 60px rgba(46, 230, 224, 0.08) inset;
}
.hub-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(46, 230, 224, 0.45), transparent 40%, rgba(46, 230, 224, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hub-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(46, 230, 224, 0.55));
}
.hub-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.hub-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hub-symbol { font-size: 28px; font-weight: 800; }
.hub-tag {
  display: inline-block; padding: 4px 10px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.hub-tag.live { background: var(--accent-soft); color: var(--accent); }
.hub-tag.pending { background: rgba(255, 200, 80, 0.12); color: #ffcb55; }
.hub-blurb { margin: 0; color: var(--muted); max-width: 720px; }
.hub-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0;
}
.stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.stat .v { color: var(--text); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hub-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.products { padding: 40px 24px 20px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.section-head h2 { font-size: 28px; margin: 0; letter-spacing: -0.01em; }
.head-actions { display: inline-flex; align-items: center; gap: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.15s ease, transform 0.05s ease, background 0.15s ease;
  cursor: pointer;
}
.card:hover { border-color: var(--accent); background: var(--panel-2); }
.card:active { transform: translateY(1px); }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-logo {
  width: 38px; height: 38px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(46, 230, 224, 0.35), transparent 60%),
    var(--bg-2);
  display: grid; place-items: center;
  font-weight: 800; color: var(--accent);
  border: 1px solid var(--accent-soft);
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 14px rgba(46, 230, 224, 0.18);
  flex-shrink: 0;
}
.card-logo-img {
  object-fit: cover;
  padding: 0;
  background: var(--bg-2);
}
.card-title { display: flex; flex-direction: column; min-width: 0; }
.card-ticker { font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.card-name {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px;
}
.card-row { display: flex; justify-content: space-between; font-size: 13px; }
.card-row .k { color: var(--muted); }
.card-row .v { color: var(--text); font-variant-numeric: tabular-nums; }
.chg-up { color: var(--good); }
.chg-down { color: var(--danger); }
.card-empty { color: var(--muted); font-size: 12px; font-style: italic; }
.card-state {
  margin-left: auto;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 200, 80, 0.12); color: #ffcb55;
}
.card-state:empty { display: none; }
.card-pending {
  opacity: 0.78;
  border-style: dashed;
  cursor: default;
}
.card-pending:hover {
  border-color: var(--border-2);
  background: var(--panel);
}
.card-pending .card-row .v { color: var(--muted); }
.card-foot { display: flex; gap: 8px; margin-top: 4px; }
.card-foot a {
  flex: 1; text-align: center; font-size: 12px;
  padding: 6px 8px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  color: var(--text);
}
.card-foot a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.cap-note {
  margin: 28px auto 0;
  padding: 14px 18px;
  max-width: 720px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid var(--border-2);
  border-radius: 12px;
}
.cap-note strong { color: var(--accent); }
.cap-note .muted { display: inline; }

.how { padding: 60px 24px; }
.how h2 { font-size: 28px; margin: 0 0 16px; }
.steps { padding-left: 18px; color: var(--muted); }
.steps li { margin: 8px 0; }
.steps strong { color: var(--text); }

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 36px 0 24px;
  background: var(--bg-2);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 32px; padding-bottom: 20px;
}
.foot-grid h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.foot-grid .links { list-style: none; padding: 0; margin: 0; }
.foot-grid .links li { padding: 4px 0; }
.foot-bottom { padding-top: 18px; border-top: 1px solid var(--border); }

@media (max-width: 760px) {
  .hero { padding-top: 60px; }
  .hub-stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .nav a:not(.cta) { display: none; }
}
