/* ============================================================
   Hermes Exchange — Base: reset, typography, layout, buttons
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--fg-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient brand glows in the page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(219,168,51,0.10), transparent 60%),
    radial-gradient(700px 500px at 8% 18%, rgba(219,168,51,0.045), transparent 55%);
}

#root { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }

::selection { background: var(--gold); color: var(--gold-ink); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); letter-spacing: -0.025em; }
h3 { font-size: var(--h3); letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--mint);
  display: inline-block;
}

.lede { color: var(--fg-2); font-size: 18px; line-height: 1.6; }
.muted { color: var(--fg-2); }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--font-mono); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--pad-section) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin: 14px 0 16px; }
@media (max-width: 768px) {
  .section-head { margin-bottom: 36px; }
  .container { padding: 0 18px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  transition: transform 160ms var(--ease), background 200ms, box-shadow 240ms, border-color 200ms, color 160ms;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 0 0 rgba(219,168,51,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-mint);
  background: var(--gold-300);
}
.btn-primary:active { transform: translateY(0); background: var(--gold-600); }

.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--mint);
  color: var(--mint);
  background: var(--mint-soft);
}
.btn-ghost:active { transform: translateY(0); }

.btn-block { width: 100%; padding: 17px 22px; font-size: 16px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ---- Cards ---- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
}

/* ---- Chips / pills ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-1);
  border: 1px solid var(--line);
  font-size: var(--small);
  font-weight: 500;
  color: var(--fg-2);
  white-space: nowrap;
}
.chip .fi { border-radius: 3px; width: 1.25em; line-height: 0.9em; }

/* ---- pulsing live dot ---- */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 var(--mint-glow);
  animation: pulse 2.2s infinite var(--ease);
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--mint-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(219,168,51,0); }
  100% { box-shadow: 0 0 0 0 rgba(219,168,51,0); }
}

/* ---- Flags ---- */
.fi { border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* gold accent text */
.gold { color: var(--gold); }
.mint { color: var(--mint); }
