:root {
  --bg: #070b14;
  --elev: #0c1220;
  --line: rgba(142, 176, 255, .16);
  --text: #f2f5fb;
  --muted: #9aa8c0;
  --blue: #2f6bff;
  --blue-2: #4d8fff;
  --green: #00d68f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; }
.bg-orb {
  position: fixed; pointer-events: none; z-index: 0;
  width: 640px; height: 640px; border-radius: 50%; filter: blur(80px);
}
.orb-a { top: -180px; left: -120px; background: rgba(47, 107, 255, .22); }
.orb-b { top: 20%; right: -200px; background: rgba(0, 214, 143, .08); }

.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 24px;
  max-width: 1120px; margin: 0 auto; padding: 22px 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.04em;
}
.nav-brand img { border-radius: 9px; }
.nav-brand em { font-style: normal; color: #6ea0ff; }
.nav-links { display: flex; gap: 22px; margin-left: 18px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 800;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 10px 24px rgba(47, 107, 255, .32);
}
.btn.ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(12, 18, 32, .6);
}
.btn.lg { padding: 13px 22px; font-size: 15px; }
.btn.full { width: 100%; }
.btn:hover { filter: brightness(1.06); }

.hero, .panel, .foot {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 28px 24px;
}
.hero { padding-top: 56px; padding-bottom: 72px; }
.eyebrow {
  color: #8eb0ff; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); line-height: 1.05;
  letter-spacing: -.04em; font-weight: 800; max-width: 16ch;
}
.lede { margin-top: 18px; max-width: 54ch; color: var(--muted); font-size: 17px; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 48px; max-width: 720px;
}
.hero-stats div {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(12, 18, 32, .55);
}
.hero-stats b { display: block; font-size: 18px; }
.hero-stats span { color: var(--muted); font-size: 13px; font-weight: 600; }

.panel h2 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 22px; max-width: 60ch; }
.market-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.market-grid article, .steps li, details {
  background: var(--elev); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.market-grid h3 { margin-bottom: 6px; }
.market-grid p, .steps li, details p { color: var(--muted); font-size: 14px; }
.steps { list-style: none; display: grid; gap: 10px; }
.steps b { display: block; color: var(--text); margin-bottom: 4px; }
details { margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; }

.foot {
  display: flex; gap: 18px; color: var(--muted); font-size: 13px; font-weight: 600;
  border-top: 1px solid var(--line); margin-top: 40px;
}
.foot a { text-decoration: none; }

/* auth */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: var(--elev); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.auth-card h1 { font-size: 24px; letter-spacing: -.03em; margin: 12px 0 6px; }
.auth-card .hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #070b14; color: var(--text);
  font: inherit; outline: none;
}
.field input:focus { border-color: rgba(77, 143, 255, .7); }
.err {
  display: none; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 71, 87, .12); color: #ff8b96; font-size: 13px; font-weight: 600;
}
.err.show { display: block; }
.ok {
  display: none; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(0, 214, 143, .12); color: var(--green); font-size: 13px; font-weight: 600;
}
.ok.show { display: block; }
.auth-alt { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-alt a { color: #8eb0ff; font-weight: 700; text-decoration: none; }
.auth-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.auth-brand em { font-style: normal; color: #6ea0ff; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .market-grid, .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-stats, .market-grid { grid-template-columns: 1fr; }
  .nav-cta .btn.ghost { display: none; }
}
