/* Landing — glassy dark, aurora background. Accent vars injected by brand.js. */

:root {
  --bg: #050607;
  --ink: #f5f7f6;
  --dim: rgba(235, 240, 238, 0.55);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hi: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.09);
  --accent: #00e5a8;
  --accent-ink: #04110c;
  --accent-soft: rgba(0, 229, 168, 0.14);
  --accent-line: rgba(0, 229, 168, 0.3);
  --long: #0ecb81;
  --short: #f6465d;
  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono-font: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--mono-font); font-variant-numeric: tabular-nums; }
.up { color: var(--long); }
.dn { color: var(--short); }
.dim { color: var(--dim); }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- aurora background ---------- */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; width: 55vw; height: 55vw; border-radius: 50%; filter: blur(90px); }
.b1 {
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  top: -22%; left: -12%; opacity: 0.9;
  animation: drift1 26s ease-in-out infinite alternate;
}
.b2 {
  background: radial-gradient(circle, rgba(76, 111, 255, 0.12) 0%, transparent 62%);
  top: -10%; right: -18%;
  animation: drift2 32s ease-in-out infinite alternate;
}
.b3 {
  background: radial-gradient(circle, rgba(0, 229, 168, 0.08) 0%, transparent 60%);
  bottom: -30%; left: 25%; width: 70vw; height: 70vw;
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-6vw, 10vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-8vw, -6vh) scale(1.1); } }

.bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, black 20%, transparent 75%);
}

@media (prefers-reduced-motion: reduce) {
  .blob, .ticker-track { animation: none !important; }
}

/* ---------- glass + buttons ---------- */

.glassy, .preview-card, .tbl-wrap, .feat, .net {
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--glass-line);
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  backdrop-filter: blur(12px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0)) , var(--accent);
  color: var(--accent-ink); border: none;
  box-shadow: 0 8px 28px rgba(0, 229, 168, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn.primary:hover { box-shadow: 0 10px 34px rgba(0, 229, 168, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn.lg { padding: 13px 28px; font-size: 15px; }
.btn.sm { padding: 6px 14px; font-size: 13px; }

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 0 max(24px, calc((100vw - 1140px) / 2));
  height: 60px;
  background: rgba(5, 6, 7, 0.55);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.logo svg { width: 20px; height: 20px; fill: var(--accent); filter: drop-shadow(0 0 8px rgba(0, 229, 168, 0.6)); }

.nav nav { display: flex; gap: 26px; flex: 1; }
.nav nav a { color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav nav a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.net {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--dim);
  padding: 5px 12px; border-radius: 999px;
}
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.8s infinite; }
.net b { color: var(--ink); font-weight: 600; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- hero ---------- */

.hero {
  max-width: 1140px; margin: 0 auto;
  padding: 150px 24px 80px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(48px, 6.5vw, 82px);
  line-height: 1.02; font-weight: 700; letter-spacing: -0.045em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--accent) 10%, #7dd8ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { color: var(--dim); font-size: 17.5px; max-width: 460px; margin-bottom: 30px; }
.cta-row { display: flex; gap: 12px; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-size: 22px; font-weight: 700; font-family: var(--mono-font); letter-spacing: -0.01em; }
.hero-stats dd { font-size: 12.5px; color: var(--dim); }

/* ---------- hero preview card ---------- */

.preview-card {
  display: block; border-radius: 22px; padding: 20px 20px 16px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.preview-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 229, 168, 0.08);
}
.pc-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.pc-sym { font-weight: 700; font-size: 15px; }
.pc-px { font-size: 22px; font-weight: 600; }
.pc-chg { font-size: 13.5px; }
#pv-chart { height: 220px; margin: 0 -6px; }
.pc-foot {
  display: flex; gap: 22px; font-size: 12px; color: var(--dim);
  padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pc-foot b { color: var(--ink); font-weight: 500; margin-left: 4px; }

/* ---------- ticker strip ---------- */

.ticker-strip {
  overflow: hidden; padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.ticker-track { display: inline-flex; gap: 38px; white-space: nowrap; animation: scroll 70s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.tick { font-size: 13px; color: var(--dim); font-family: var(--mono-font); }
.tick b { color: var(--ink); font-weight: 600; margin-right: 5px; }
.tick i { font-style: normal; margin-left: 5px; }

/* ---------- markets ---------- */

.markets { max-width: 1140px; margin: 0 auto; padding: 88px 24px 8px; }
.sect-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }

.tbl-wrap { border-radius: 20px; overflow-x: auto; }
#mkt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
#mkt-table th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--dim); padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
#mkt-table td { padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
#mkt-table tr:last-child td { border-bottom: none; }
#mkt-table tbody tr { transition: background 0.15s; }
#mkt-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
#mkt-table td.mono { font-family: var(--mono-font); font-size: 13.5px; }
a.mini {
  padding: 6px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--glass-line); text-decoration: none; color: var(--dim);
  transition: all 0.15s;
}
a.mini:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- features ---------- */

.features {
  max-width: 1140px; margin: 0 auto; padding: 80px 24px 96px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feat { border-radius: 20px; padding: 26px; transition: transform 0.2s ease; }
.feat:hover { transform: translateY(-2px); }
.feat svg {
  width: 26px; height: 26px; stroke: var(--accent); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(0, 229, 168, 0.35));
}
.feat h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--dim); line-height: 1.65; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(10px);
}
.foot-grid {
  max-width: 1140px; margin: 0 auto; padding: 48px 24px 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.foot-brand .logo { margin-bottom: 10px; }
.foot-brand p { font-size: 13.5px; max-width: 260px; }
.foot-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.foot-col a { display: block; font-size: 14px; color: var(--dim); text-decoration: none; margin-bottom: 9px; transition: color 0.15s; }
.foot-col a:hover { color: var(--ink); }
.legal {
  max-width: 1140px; margin: 0 auto; padding: 0 24px 36px;
  font-size: 12px; color: rgba(235, 240, 238, 0.35); max-width: 1140px;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 40px; }
  .hero .sub { max-width: none; }
  .features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav nav { display: none; }
}
