/* ============================================================
   onetrillion.lol — shared design system
   Clean white page · mesh-gradient lives ONLY on the cards.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --ink: #14121c;
  --ink-dim: #5c6270;
  --line: #e9e9ef;
  --card: #ffffff;
  --primary: #14121c;
  --accent: #7c3aed;   /* violet — used sparingly on white surfaces */
  --accent2: #ec4899;  /* pink */

  /* mesh palette — ONLY for .mesh cards + the wealth card */
  --c1: #ff7eb3;
  --c2: #ff9a5a;
  --c3: #7afcff;
  --c4: #b388ff;
  --base: #241241;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 16px 44px -24px rgba(20, 18, 45, 0.28), 0 2px 8px -5px rgba(20, 18, 45, 0.10);
  --shadow-sm: 0 6px 18px -12px rgba(20, 18, 45, 0.20);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.wrap--tight { max-width: 600px; }
section { position: relative; }

/* ---------- clean white card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- MESH card — the colorful focal element ---------- */
.mesh {
  position: relative;
  color: #fff;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(at 18% 22%, var(--c1) 0, transparent 55%),
    radial-gradient(at 82% 20%, var(--c2) 0, transparent 50%),
    radial-gradient(at 80% 82%, var(--c3) 0, transparent 55%),
    radial-gradient(at 20% 85%, var(--c4) 0, transparent 50%),
    var(--base);
  box-shadow: var(--shadow);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.012em; color: var(--ink); }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mesh h1, .mesh h2, .mesh h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 100px;
}
.mesh .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.30); }

/* ---------- icons (Heroicons, inline) ---------- */
.ico { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; vertical-align: -0.125em; }
.eyebrow .ico { width: 14px; height: 14px; color: var(--accent); }
.mesh .eyebrow .ico { color: #fff; }
.btn .ico { width: 19px; height: 19px; stroke-width: 2; }
.panel h2 .ico, .vs h2 .ico { width: 20px; height: 20px; color: var(--accent); stroke-width: 2; }

/* live pulse dot */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; position: relative; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(34,197,94,.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);} }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: #fff; background: var(--primary); border: none; border-radius: 100px;
  padding: 15px 26px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  box-shadow: 0 10px 24px -14px rgba(20, 18, 45, 0.6);
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s, filter 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--accent { background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 12px 30px -12px rgba(124, 58, 237, 0.6); }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mesh .btn--ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.34); backdrop-filter: blur(8px); }

button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 54px 22px 64px; color: var(--ink-dim); font-size: 0.92rem; }
.site-footer a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.site-footer .fine { display: block; margin-top: 12px; font-size: 0.76rem; opacity: 0.75; max-width: 420px; margin-inline: auto; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
