/* Benchlist v3 polish layer — adds depth, color, motion, personality.
   Loaded after base/components/polish so it can override visual tokens. */

:root {
  /* deeper, richer palette */
  --bg-warm: #fbfaf6;     /* warm off-white for hero accent regions */
  --bg-cool: #f4f7f5;     /* cool tint for tables/lists */
  --ink: #08110d;         /* deeper near-black */
  --ink-soft: #2c3935;
  --accent-2: #ea580c;    /* warm accent — orange */
  --accent-2-soft: #fed7aa;
  --accent-3: #6366f1;    /* indigo — secondary trust signal */
  --accent-3-soft: #c7d2fe;
  --gold: #d4af37;
  --silver: #c0c0c0;
  --bronze: #cd7f32;

  /* shadows — soft, layered */
  --sh-1: 0 1px 2px rgba(8,17,13,0.04), 0 1px 1px rgba(8,17,13,0.02);
  --sh-2: 0 4px 12px rgba(8,17,13,0.06), 0 1px 3px rgba(8,17,13,0.03);
  --sh-3: 0 14px 40px -16px rgba(8,17,13,0.18), 0 4px 12px rgba(8,17,13,0.05);
  --sh-glow: 0 18px 48px -20px color-mix(in srgb, var(--accent) 32%, transparent);
}

[data-theme="dark"] {
  --bg-warm: #0a1411;
  --bg-cool: #08110d;
  --sh-2: 0 4px 14px rgba(0,0,0,0.4);
  --sh-3: 0 18px 50px -16px rgba(0,0,0,0.6);
}

/* ============== Body texture + gradient ============== */
html { scroll-behavior: smooth; }
body { background: var(--bg); position: relative; }
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--accent) 4%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 110% 30%, color-mix(in srgb, var(--accent-3) 3%, transparent) 0%, transparent 60%);
}

/* ============== Typography upgrade ============== */
h1 { letter-spacing: -0.025em !important; }
h1 em, h2 em { font-style: italic; font-variation-settings: 'SOFT' 50, 'opsz' 144; color: var(--accent); }

.lede {
  font-size: 1.12rem !important;
  line-height: 1.7 !important;
  color: var(--ink-soft) !important;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem) !important;
  line-height: 1.02 !important;
  font-variation-settings: 'SOFT' 30, 'opsz' 144 !important;
}
.hero .hero-proof {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--accent-3) 8%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-h);
  font-weight: 600;
}
.hero .hero-proof-b { color: var(--ink-soft); }

/* ============== Card depth ============== */
.card { box-shadow: var(--sh-1); transition: box-shadow 0.3s var(--t), transform 0.3s var(--t), border-color 0.2s; }
.card.hover:hover, .card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.card[data-emphasize], .card[data-recommended] { box-shadow: var(--sh-3); }

/* ============== Pills — slightly chunkier, with subtle gradient ============== */
.pill {
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}
.pill.verified { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--accent) 4%, var(--surface))) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.pill.attested { background: linear-gradient(135deg, color-mix(in srgb, #6366f1 13%, var(--surface)), color-mix(in srgb, #6366f1 5%, var(--surface))) !important; }
.pill.local { background: linear-gradient(135deg, color-mix(in srgb, #10b981 13%, var(--surface)), color-mix(in srgb, #10b981 5%, var(--surface))) !important; box-shadow: 0 0 0 1px color-mix(in srgb, #10b981 22%, transparent); }

/* ============== Buttons — sharper hierarchy ============== */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-h)) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: all 0.2s var(--t);
  font-weight: 600 !important;
}
.btn-accent:hover {
  box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
.btn-accent:active { transform: translateY(0); }

.btn-ghost { transition: all 0.2s var(--t); }
.btn-ghost:hover { background: var(--bg2); border-color: var(--accent-border); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-h)) !important;
  color: white !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: all 0.2s var(--t);
}
.nav-cta:hover {
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-1px);
}

/* ============== Live ticker — more alive ============== */
.live-dot {
  background: var(--accent) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 0 8px color-mix(in srgb, var(--accent) 8%, transparent);
  animation: liveDotPulse 1.8s ease-out infinite;
}
@keyframes liveDotPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 32%, transparent), 0 0 0 0 color-mix(in srgb, var(--accent) 12%, transparent); }
  60% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent), 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 32%, transparent), 0 0 0 0 color-mix(in srgb, var(--accent) 12%, transparent); }
}

/* ============== Subtle reveal animations ============== */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--t), transform 0.6s var(--t);
}
.reveal.in, .reveal-now { opacity: 1; transform: translateY(0); }

/* ============== Footer ============== */
.footer {
  background: linear-gradient(180deg, transparent, var(--bg2));
  border-top: 1px solid var(--rule);
}
.footer-h { color: var(--ink-soft); font-weight: 600; }
.footer a { color: var(--text2); transition: color 0.15s; }
.footer a:hover { color: var(--accent); }

/* ============== Nav — slightly more prominent ============== */
.nav { backdrop-filter: blur(14px) saturate(1.5); background: color-mix(in srgb, var(--surface) 88%, transparent); border-bottom: 1px solid var(--rule); transition: box-shadow 0.2s; }
.nav-link { transition: color 0.15s; font-weight: 500; }
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] {
  color: var(--accent);
  position: relative;
}
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ============== Hero specimen — slightly pop ============== */
#hero-specimen {
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent) 4%, var(--surface)) 100%) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border)) !important;
  border-radius: 22px !important;
  box-shadow: var(--sh-3) !important;
}

/* ============== Stats — make numbers sing ============== */
.lc-stat-v, .article-stat-value, .lb-stats span strong {
  background: linear-gradient(180deg, var(--ink) 0%, var(--accent-h) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============== Form inputs ============== */
input[type="email"], input[type="text"], input[type="search"], textarea, select {
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="email"]:focus, input[type="text"]:focus, input[type="search"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ============== Table polish ============== */
.table th { color: var(--text3); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.table tr:hover { background: var(--bg2); }

/* ============== Section breathing room ============== */
.sec-head { margin: 56px 0 18px; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2rem); font-variation-settings: 'SOFT' 30, 'opsz' 96; letter-spacing: -0.01em; }

/* ============== Reveal animation observer (vanilla JS hook) ============== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .live-dot { animation: none; }
  body::before { display: none; }
}
