/* ============ AI REPORT RADAR — light premium design system ============ */

:root {
  --bg: #fdfdfe;
  --bg-soft: #f6f7fa;
  --ink: #0b0e1a;
  --ink-2: #555b6e;
  --ink-3: #9197a8;
  --line: rgba(11, 14, 26, 0.07);
  --line-2: rgba(11, 14, 26, 0.12);

  --blue: #2563eb;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --emerald: #10b981;

  --grad: linear-gradient(110deg, var(--blue), var(--violet) 50%, var(--cyan));
  --grad-warm: linear-gradient(110deg, var(--violet), #db2777);

  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(11,14,26,.04), 0 2px 8px rgba(11,14,26,.04);
  --shadow-md: 0 2px 6px rgba(11,14,26,.05), 0 12px 32px rgba(11,14,26,.08);
  --shadow-lg: 0 4px 12px rgba(11,14,26,.06), 0 24px 64px rgba(37,99,235,.12);

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(37,99,235,.16); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------------- NAV ---------------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; pointer-events: none; }
.nav-pill {
  pointer-events: auto; max-width: calc(var(--maxw) - 0px); margin: 0 auto;
  display: flex; align-items: center; gap: 6px; padding: 10px 12px 10px 20px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(11,14,26,.08); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); margin-right: 10px; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); position: relative; box-shadow: 0 2px 8px rgba(124,58,237,.35); }
.logo-mark::after { content: ''; position: absolute; inset: 7px; border: 2px solid #fff; border-radius: 50%; border-right-color: transparent; transform: rotate(-40deg); }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-link { font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 8px 13px; border-radius: 999px; transition: all .15s; }
.nav-link:hover { color: var(--ink); background: rgba(11,14,26,.05); }
.btn {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 0; border-radius: 999px; padding: 10px 18px; letter-spacing: -0.01em;
  background: var(--ink); color: #fff; transition: transform .15s, box-shadow .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(11,14,26,.18); }
.btn.primary { background: var(--grad); box-shadow: 0 4px 16px rgba(99,72,237,.3); }
.btn.primary:hover { box-shadow: 0 10px 32px rgba(99,72,237,.4); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: rgba(11,14,26,.04); box-shadow: none; }
.btn.lg { padding: 14px 26px; font-size: 15px; }

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.aurora .b1 { width: 720px; height: 720px; left: -180px; top: -260px; background: radial-gradient(circle, rgba(37,99,235,.5), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora .b2 { width: 640px; height: 640px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(124,58,237,.42), transparent 65%); animation: drift2 30s ease-in-out infinite alternate; }
.aurora .b3 { width: 560px; height: 560px; left: 32%; bottom: -300px; background: radial-gradient(circle, rgba(6,182,212,.38), transparent 65%); animation: drift3 24s ease-in-out infinite alternate; }
.aurora .b4 { width: 420px; height: 420px; right: 22%; bottom: -160px; background: radial-gradient(circle, rgba(16,185,129,.3), transparent 65%); animation: drift1 34s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-100px, 110px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-90px, -70px) scale(1.15); } }

.hero-particles { position: absolute; inset: 0; z-index: 1; }
.hero-fade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(253,253,254,.4) 0%, transparent 26%, transparent 62%, var(--bg) 96%); }

.hero-inner { position: relative; z-index: 5; text-align: center; padding: 150px 32px 40px; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: rgba(255,255,255,.7); backdrop-filter: blur(8px); border: 1px solid var(--line);
  padding: 7px 16px 7px 9px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.hero-badge .tag { font-size: 11px; font-weight: 700; color: #fff; background: var(--grad); padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero h1 {
  font-size: clamp(44px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -0.045em;
  font-weight: 700; margin: 30px auto 0; max-width: 13ch;
}
.hero-sub { font-size: clamp(16px, 1.6vw, 19.5px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin: 26px auto 0; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

.counters { position: relative; z-index: 5; margin: 72px auto 0; max-width: var(--maxw); padding: 0 32px 56px; }
.counters-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.counter {
  background: rgba(255,255,255,.66); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.9);
  outline: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; text-align: left;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.counter:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.counter .cv { font-family: var(--mono); font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.03em; }
.counter .ck { font-size: 12px; color: var(--ink-3); margin-top: 5px; font-weight: 500; }

/* ---------------- SECTIONS ---------------- */
.section { padding: 88px 0; position: relative; }
.section.alt { background: var(--bg-soft); }
body.no-bands .section.alt { background: transparent; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sec-eyebrow .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--grad); }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; line-height: 1.08; font-weight: 700; margin: 14px 0 0; }
.sec-head p { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); margin: 16px 0 0; text-wrap: pretty; }
.sec-head .more { font-weight: 600; font-size: 14.5px; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.sec-head .more:hover { gap: 10px; } .sec-head .more { transition: gap .2s; }

/* pill filter row */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.pill { font-family: var(--sans); font-size: 13.5px; font-weight: 550; color: var(--ink-2); cursor: pointer;
  background: #fff; border: 1px solid var(--line-2); padding: 8px 16px; border-radius: 999px; transition: all .15s; }
.pill:hover { border-color: var(--ink-3); color: var(--ink); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* search input */
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 0 18px; max-width: 360px; flex: 1; transition: box-shadow .2s, border-color .2s; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.search input { border: 0; outline: 0; background: transparent; font-family: var(--sans); font-size: 14px; padding: 11px 0; flex: 1; color: var(--ink); }
.search .ic { color: var(--ink-3); }

/* ---------------- NEWS ---------------- */
.news-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; }
.news-feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .25s; }
.news-feat::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.news-feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-feat h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; line-height: 1.15; margin: 16px 0 0; font-weight: 700; }
.news-feat .sum { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; margin: 14px 0 0; }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px;
  transition: transform .18s, box-shadow .2s; cursor: pointer; }
.news-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.news-item h4 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; margin: 9px 0 0; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.news-meta .src { font-weight: 600; color: var(--ink-2); }
.cat-chip { font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 999px; letter-spacing: .01em; }
.cat-Models { background: rgba(37,99,235,.1); color: var(--blue); }
.cat-Funding { background: rgba(16,185,129,.12); color: #0a8a60; }
.cat-Research { background: rgba(124,58,237,.1); color: var(--violet); }
.cat-Launches { background: rgba(219,39,119,.1); color: #db2777; }
.trend-score { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: #0a8a60; }

/* ---------------- TOOLS ---------------- */
.tools-bar { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  transition: transform .2s, box-shadow .25s, border-color .2s; position: relative; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(11,14,26,.12); }
.tool-top { display: flex; align-items: center; gap: 14px; }
.tool-logo { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 700; font-size: 19px; color: #fff; flex: none; }
.tool-name { font-size: 16.5px; font-weight: 650; letter-spacing: -0.02em; }
.tool-cat { font-size: 12px; color: var(--ink-3); margin-top: 2px; font-weight: 500; }
.tool-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 14px 0 0; min-height: 42px; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tool-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; }
.tool-rating .star { color: #f59e0b; }
.tool-price { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.tool-users { font-size: 12px; color: var(--ink-3); }

/* ---------------- MODELS TABLE ---------------- */
.model-table { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.mt-row { display: grid; grid-template-columns: 2.1fr 1fr 1.1fr 1.5fr 1fr; gap: 14px; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--line); }
.mt-row:last-child { border-bottom: 0; }
.mt-row.head { background: var(--bg-soft); padding: 12px 24px; border-bottom: 1px solid var(--line); }
.mt-row.head button { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); background: none; border: 0; cursor: pointer; text-align: left; padding: 0; display: flex; align-items: center; gap: 5px; }
.mt-row.head button:hover, .mt-row.head button.on { color: var(--ink); }
.mt-row:not(.head):hover { background: var(--bg-soft); }
.m-id { display: flex; align-items: center; gap: 13px; }
.m-dot { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.m-name { font-weight: 650; font-size: 15px; letter-spacing: -0.015em; }
.m-org { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.m-num { font-family: var(--mono); font-size: 13.5px; font-weight: 500; }
.m-num small { color: var(--ink-3); font-size: 11px; }
.score-bar { display: flex; align-items: center; gap: 10px; }
.score-track { flex: 1; height: 7px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--line); }
.score-fill { height: 100%; border-radius: 4px; background: var(--grad); }
.score-val { font-family: var(--mono); font-size: 13px; font-weight: 650; min-width: 42px; text-align: right; }

/* ---------------- REPOS ---------------- */
.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.repo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px;
  transition: transform .2s, box-shadow .25s; }
.repo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.repo-name { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.repo-name .owner { color: var(--ink-3); font-weight: 400; }
.repo-stats { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.repo-stars { font-family: var(--mono); font-size: 17px; font-weight: 700; }
.repo-delta { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: #0a8a60; }
.repo-spark { margin-top: 12px; }

/* ---------------- CREDITS ---------------- */
.credit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.credit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  transition: transform .2s, box-shadow .25s; }
.credit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.credit-top { display: flex; align-items: center; gap: 12px; }
.credit-amt { font-size: 26px; font-weight: 700; letter-spacing: -0.035em; margin-top: 16px; }
.credit-amt small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.credit-who { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.credit-exp { margin-top: 16px; }
.credit-exp .lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; }
.credit-exp .lbl b { font-family: var(--mono); color: var(--ink-2); font-weight: 600; }
.credit-exp .lbl b.urgent { color: #dc2626; }
.exp-track { height: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.exp-fill { height: 100%; border-radius: 4px; background: var(--emerald); }
.exp-fill.urgent { background: linear-gradient(90deg, #f59e0b, #dc2626); }

/* ---------------- FUNDING ---------------- */
.fund-table { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.fund-row { display: grid; grid-template-columns: 1.7fr 0.9fr 1fr 1fr 1.3fr 0.8fr; gap: 14px; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--line); }
.fund-row:last-child { border-bottom: 0; }
.fund-row:not(.head):hover { background: var(--bg-soft); }
.fund-row.head { background: var(--bg-soft); padding: 11px 24px; font-family: var(--mono); font-size: 11px;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fund-co { font-weight: 650; font-size: 14.5px; letter-spacing: -0.015em; }
.fund-cat { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.fund-amt { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.fund-cell { font-size: 13.5px; color: var(--ink-2); }
.round-chip { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px;
  background: rgba(124,58,237,.09); color: var(--violet); }

/* ---------------- CTA + FOOTER ---------------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 84px 40px; text-align: center;
  background: linear-gradient(135deg, #0b0e1a 0%, #131a36 60%, #1a1145 100%); color: #fff; }
.cta .aurora .blob { opacity: .42; }
.cta h2 { position: relative; font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -0.04em; margin: 0; line-height: 1.06; font-weight: 700; }
.cta p { position: relative; font-size: 17px; color: rgba(255,255,255,.72); max-width: 50ch; margin: 18px auto 0; line-height: 1.6; }
.cta .hero-ctas { position: relative; }
.cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.cta .btn.ghost:hover { background: rgba(255,255,255,.1); }

.footer { padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer p { font-size: 13.5px; color: var(--ink-3); max-width: 34ch; line-height: 1.6; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col .t { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.foot-col a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px;
  font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora .blob { animation: none; }
}

@media (max-width: 1020px) {
  .counters-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-grid, .repo-grid, .credit-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .counters-grid, .tool-grid, .repo-grid, .credit-grid { grid-template-columns: 1fr; }
  .mt-row { grid-template-columns: 2fr 1.5fr 1fr; }
  .mt-c-ctx, .mt-c-speed { display: none; }
  .fund-row { grid-template-columns: 1.6fr 1fr 1fr; }
  .fund-c-val, .fund-c-lead, .fund-c-when { display: none; }
}
