@import url("./tokens.css");

html, body {
  margin: 0;
  padding: 0;
  background: #EFE9F7;
  color: var(--fg-default);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Shared button system ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), box-shadow 180ms, background 180ms, opacity 180ms;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  padding: 18px 30px;
  border: 2px solid rgba(255,255,255,0.65);
  box-shadow: 0 14px 36px rgba(123,47,255,0.32), inset 0 0 0 1px rgba(255,255,255,0.12);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(123,47,255,0.42); }

.btn-secondary {
  background: #fff;
  color: var(--h2h-ink);
  padding: 17px 28px;
  border: 1px solid var(--h2h-line);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: var(--h2h-violet); color: var(--h2h-violet); }

.btn-ghost {
  background: transparent;
  color: var(--h2h-ink);
  padding: 14px 22px;
  border: 1px solid rgba(15,12,39,0.16);
}
.btn-ghost:hover { background: rgba(15,12,39,0.05); }

.btn-sm { padding: 12px 20px; font-size: 14px; }

/* ---------- Pills & chips ---------- */
.pill {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15,12,39,0.05);
  color: var(--h2h-ink);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.pill-violet { background: var(--h2h-violet-tint); color: var(--h2h-ink); }
.pill-dark   { background: var(--h2h-ink); color: #fff; }
.pill-light  { background: rgba(255,255,255,0.85); color: var(--h2h-ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--h2h-violet);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1.5px;
  background: var(--h2h-violet);
  border-radius: 2px;
}

/* ---------- Display type ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--h2h-ink);
  text-wrap: balance;
  margin: 0;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--h2h-ink);
  text-wrap: balance;
  margin: 0;
}
.lede-lg {
  font-size: 19px;
  line-height: 1.55;
  color: var(--h2h-slate);
  text-wrap: pretty;
  margin: 0;
}

/* Gradient text utility — only used on the big 1200+ */
.grad-text {
  background: linear-gradient(110deg, #4E2BDF 0%, #7B2FFF 35%, #D72ADF 70%, #FF3DC8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Card primitives ---------- */
.card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(15,12,39,0.06);
  box-shadow: var(--shadow-sm);
}

.img-card { border-radius: 28px; overflow: hidden; display: block; background: #eee; }
.img-card img, .img-card .ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms cubic-bezier(.2,.7,.2,1); }
.img-card:hover img { transform: scale(1.04); }

/* image-only placeholders / overlays */
.img-overlay-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,12,39,0) 35%, rgba(15,12,39,0.55) 100%);
  pointer-events: none;
}

/* ---------- Section rhythm ---------- */
.page { background: var(--h2h-paper); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ---------- Marquee ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee {
  display: flex; gap: 56px;
  animation: marquee 38s linear infinite;
  width: max-content;
}

/* ---------- Floating organic shapes ---------- */
.blob {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}

/* ---------- Nav link ---------- */
.nav-link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  color: var(--h2h-ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 160ms, color 160ms;
}
.nav-link:hover { background: rgba(255,255,255,0.55); }
.nav-link.is-active { color: var(--h2h-violet); }

/* ---------- Stat block divider ---------- */
.stat-divider {
  border: none;
  border-top: 1px solid var(--h2h-line);
  margin: 0;
}

/* ---------- Small utilities ---------- */
.dot-sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; margin: 0 4px; vertical-align: middle; }

.icon-tile {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--h2h-violet-tint);
  color: var(--h2h-violet);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-tile.is-brand {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 8px 22px rgba(123,47,255,0.32);
}
.icon-tile.is-circle { border-radius: 999px; }
.icon-tile.is-lg { width: 64px; height: 64px; }
