/* ============================================================
   Components: CTA pill, nav, live dot, cards, panels
   ============================================================ */

/* ---------- CTA pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--fill-surface);
  color: var(--fill-on-brand);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-cta);
  letter-spacing: 0;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.pill:hover {
  background: var(--color-red-deep);
  transform: translateY(-1px);
}
.pill.lg {
  font-size: var(--fs-cta-lg);
  padding: 18px 28px;
}
.pill.ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}
.pill.ghost:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
}

/* Arrow inside pills */
.arrow-svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* ---------- Live dot (pulse) ---------- */
.live {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fill-brand);
  box-shadow: 0 0 0 0 rgba(249, 32, 45, 0.55);
  animation: pulse var(--dur-pulse) ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(249, 32, 45, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(249, 32, 45, 0); }
  100% { box-shadow: 0 0 0 0   rgba(249, 32, 45, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live::before { animation: none; }
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--surface-primary) 90%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--surface-border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: var(--sp-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.brand .mark {
  width: 30px;
  height: 30px;
  display: block;
}
img.mark {
  object-fit: contain;
  flex: none;
}
.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: var(--ls-word);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.theme-toggle svg { width: 16px; height: 16px; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .live { display: none; }
}

/* ---------- Section frame ---------- */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--surface-border);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: var(--sp-5); margin-bottom: 48px; }
}
.section-head p {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0;
}

/* ---------- Tag chip ---------- */
.tag {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--surface-border);
  border-radius: var(--r-pill);
  color: var(--text-secondary);
}

/* ---------- Stat block ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat .num {
  font-family: var(--font-serif);
  font-size: var(--fs-stat);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--text-primary);
}
.stat .num .accent { color: var(--fill-brand); }
.stat .lab {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---------- Card on secondary surface ---------- */
.card {
  background: var(--surface-secondary);
  border: 1px solid var(--surface-border);
  padding: var(--sp-7);
  border-radius: var(--r-none);
}
