/* =========================================================
   Austenders Intel — landing page styles
   ========================================================= */
:root {
  --bg: #070b08;
  --bg-2: #0a0f0b;
  --panel: #0d130e;
  --panel-2: #10160f;
  --card: #0f150f;
  --line: #1c261d;
  --line-soft: #161f17;
  --text: #f2f6f1;
  --muted: #8a978c;
  --muted-2: #6b766d;
  --green: #4ade80;
  --green-bright: #5ef08a;
  --green-deep: #22c55e;
  --green-dim: #2e6b40;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(74, 222, 128, 0.10), transparent 60%),
    radial-gradient(700px 500px at -5% 30%, rgba(74, 222, 128, 0.05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--green); }
.emoji { font-size: 0.9em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; line-height: 1;
  padding: 11px 18px; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { opacity: .9; }
.btn--ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--green-dim); background: rgba(74,222,128,0.06); transform: translateY(-1px); }
.btn--primary { color: #04150a; background: var(--green); box-shadow: 0 10px 30px -10px rgba(74,222,128,0.6); }
.btn--primary:hover { background: var(--green-bright); transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(74,222,128,0.7); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 8, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7,11,8,0.9); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand__logo { display: inline-flex; filter: drop-shadow(0 0 10px rgba(74,222,128,0.25)); }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--green); transition: width .25s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.btn--pro { margin-left: 4px; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 18px; border-bottom: 1px solid var(--line); }
.nav__mobile a { color: var(--muted); text-decoration: none; padding: 11px 0; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.nav__mobile a:last-child { margin-top: 8px; border: 0; justify-content: center; }
.nav__mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 70px 24px 30px; }
.hero__title { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 22px; }
.hero__sub { color: var(--muted); font-size: 19px; max-width: 430px; margin: 0 0 30px; }

.livepill {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; font-size: 13.5px;
}
.livepill__status { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.livepill__sep { width: 1px; height: 16px; background: var(--line); }
.livepill__updated { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; }
.dot--pulse { position: relative; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); } 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.hero__visual { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.hero__map { width: 100%; height: 100%; position: absolute; inset: 0; }
.scrapedcard {
  position: absolute; right: 0; top: 8px; width: 230px;
  background: linear-gradient(180deg, rgba(16,22,15,0.96), rgba(11,16,11,0.96));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 12px;
  box-shadow: var(--shadow); backdrop-filter: blur(4px);
}
.scrapedcard__label { color: var(--muted); font-size: 13px; }
.scrapedcard__value { font-size: 30px; font-weight: 800; color: var(--green); letter-spacing: -0.02em; margin: 3px 0 2px; }
.scrapedcard__delta { color: var(--muted); font-size: 12px; }
.scrapedcard__spark { width: 100%; height: 42px; margin-top: 8px; display: block; }

/* ---------- Stats ---------- */
.stats { padding-top: 28px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 8px;
  box-shadow: var(--shadow);
}
.stat { padding: 26px 22px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line-soft); }
.stat__icon { color: var(--green); display: inline-flex; margin-bottom: 16px; }
.stat__label { color: var(--muted); font-size: 14px; }
.stat__value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.stat__delta { color: var(--green); font-size: 13px; font-weight: 500; }

/* ---------- Generic section ---------- */
.section { padding-top: 60px; }
.section__head, .card__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section__title, .card__title { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.section__sub, .card__sub { color: var(--muted); margin: 6px 0 0; font-size: 14.5px; }
.viewall { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s, gap .2s; display: inline-flex; gap: 6px; white-space: nowrap; }
.viewall:hover { color: var(--green); }
.viewall span { transition: transform .2s var(--ease); }
.viewall:hover span { transform: translateX(4px); }

/* ---------- Weirdest purchases ---------- */
.weird {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(165px, 1fr);
  gap: 14px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--green-dim) transparent;
}
.weird::-webkit-scrollbar { height: 8px; }
.weird::-webkit-scrollbar-track { background: var(--panel); border-radius: 8px; }
.weird::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 8px; }
.wcard {
  scroll-snap-align: start;
  background: radial-gradient(120% 80% at 50% 0%, rgba(74,222,128,0.05), transparent 60%), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px 18px;
  text-align: center; position: relative; transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.wcard:hover { transform: translateY(-6px); border-color: var(--green-dim); box-shadow: 0 18px 40px -22px rgba(74,222,128,0.45); }
.wcard__rank {
  position: absolute; top: 10px; left: 10px; width: 22px; height: 22px;
  border-radius: 7px; background: rgba(74,222,128,0.12); color: var(--green);
  border: 1px solid var(--green-dim); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.wcard__emoji { font-size: 50px; line-height: 1; margin: 14px 0 14px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.wcard__name { font-weight: 700; font-size: 14.5px; min-height: 38px; display: flex; align-items: center; justify-content: center; }
.wcard__dept { color: var(--muted); font-size: 12.5px; margin-top: 4px; min-height: 16px; }
.wcard__price { color: var(--green); font-weight: 700; font-size: 16px; margin-top: 12px; }

/* ---------- Two-column ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 60px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 24px 24px 26px;
  box-shadow: var(--shadow);
}

/* Winners list */
.winners { list-style: none; margin: 0; padding: 0; }
.winner { display: grid; grid-template-columns: 26px 38px 1fr auto auto; align-items: center; gap: 14px; padding: 13px 8px; border-radius: 12px; transition: background .2s; }
.winner:hover { background: rgba(74,222,128,0.05); }
.winner + .winner { border-top: 1px solid var(--line-soft); }
.winner__rank { color: var(--muted); font-weight: 700; text-align: center; font-size: 14px; }
.winner__logo { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #04150a; }
.winner__name { font-weight: 600; font-size: 15px; }
.winner__contracts { color: var(--muted); font-size: 13px; text-align: right; }
.winner__value { color: var(--green); font-weight: 700; font-size: 15px; text-align: right; min-width: 54px; }

/* Donut */
.donutwrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { position: relative; width: 200px; height: 200px; flex: 0 0 auto; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__total { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.donut__caption { color: var(--muted); font-size: 12.5px; }
.donut__seg { transition: opacity .2s; cursor: pointer; }
.donut__seg.dim { opacity: 0.35; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; min-width: 200px; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; cursor: default; }
.legend__dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.legend__name { color: var(--text); }
.legend__pct { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend li.active .legend__name { color: var(--green); }

/* ---------- CTA ---------- */
.cta {
  margin-top: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(120% 160% at 0% 0%, rgba(74,222,128,0.10), transparent 55%), linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 28px 30px;
  box-shadow: var(--shadow);
}
.cta__left { display: flex; align-items: center; gap: 20px; }
.cta__icon { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; color: var(--green); background: rgba(74,222,128,0.10); border: 1px solid var(--green-dim); box-shadow: 0 0 30px -8px rgba(74,222,128,0.5) inset; }
.cta__text { font-size: 18px; font-weight: 600; max-width: 440px; margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 34px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer__muted { color: var(--muted-2); margin: 4px 0 0; }
.footer__col p { margin: 0; }
.footer__col--right { text-align: right; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .stat:nth-child(4)::before, .stat:nth-child(1)::before { display: none; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .btn--pro { display: none; }
  .nav__toggle { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__visual { min-height: 320px; order: -1; }
  .scrapedcard { right: 0; top: 0; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat::before { display: none !important; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .hero__title { font-size: 44px; }
  .footer__inner { flex-direction: column; gap: 18px; }
  .footer__col--right { text-align: left; }
  .cta { padding: 24px; }
  .cta__text { font-size: 16px; }
}
@media (max-width: 440px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat:nth-child(n+2) { border-top: 1px solid var(--line-soft); }
  .scrapedcard { width: 200px; }
}
