:root {
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1240px;

  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --border: #E4EAF0;
  --border-strong: #CBD5E0;
  --text: #0E1A28;
  --text-2: #425468;
  --muted: #7A8899;
  --brand: #246CA8;
  --brand-2: #3398DC;
  --brand-wash: #E3EFF9;
  --navy: #0F2F4D;
  --shadow: 0 1px 2px rgba(16, 32, 56, .04), 0 10px 30px -16px rgba(16, 32, 56, .18);
  --shadow-hover: 0 2px 4px rgba(16, 32, 56, .05), 0 26px 50px -22px rgba(16, 32, 56, .32);
  --live: #15803D; --live-wash: #E3F5EA;
  --beta: #1D6FB8; --beta-wash: #E2EFFA;
  --review: #6D4AD6; --review-wash: #EEE9FC;
  --dev: #B45309; --dev-wash: #FDF0DC;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A111C; --surface: #111A29; --surface-2: #17233500; --surface-2: #16223A;
    --border: rgba(255,255,255,.08); --border-strong: rgba(255,255,255,.16);
    --text: #E9EFF6; --text-2: #A7B4C6; --muted: #74839A;
    --brand: #5FB2EE; --brand-2: #3398DC; --brand-wash: rgba(51,152,220,.14); --navy: #E9EFF6;
    --shadow: 0 10px 30px -16px rgba(0,0,0,.7); --shadow-hover: 0 26px 50px -22px rgba(0,0,0,.9);
    --live: #4ADE80; --live-wash: rgba(74,222,128,.12);
    --beta: #60B3F0; --beta-wash: rgba(96,179,240,.13);
    --review: #A78BFA; --review-wash: rgba(167,139,250,.14);
    --dev: #FBBF24; --dev-wash: rgba(251,191,36,.12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A111C; --surface: #111A29; --surface-2: #16223A;
  --border: rgba(255,255,255,.08); --border-strong: rgba(255,255,255,.16);
  --text: #E9EFF6; --text-2: #A7B4C6; --muted: #74839A;
  --brand: #5FB2EE; --brand-2: #3398DC; --brand-wash: rgba(51,152,220,.14); --navy: #E9EFF6;
  --shadow: 0 10px 30px -16px rgba(0,0,0,.7); --shadow-hover: 0 26px 50px -22px rgba(0,0,0,.9);
  --live: #4ADE80; --live-wash: rgba(74,222,128,.12);
  --beta: #60B3F0; --beta-wash: rgba(96,179,240,.13);
  --review: #A78BFA; --review-wash: rgba(167,139,250,.14);
  --dev: #FBBF24; --dev-wash: rgba(251,191,36,.12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 34px; width: auto; display: block; }
:root[data-theme="dark"] .logo img, .logo img.dark { }
.logo .divider { width: 1px; height: 22px; background: var(--border-strong); }
.logo span { font-weight: 600; letter-spacing: -.01em; color: var(--text-2); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top nav a, .top nav button {
  padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--text-2); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.top nav a:hover, .top nav button:hover { background: var(--surface-2); color: var(--text); }
.top nav a.primary { background: var(--brand); color: #fff; }
.top nav a.primary:hover { background: #1F5D91; color: #fff; }
.top nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#theme .moon { display: none; }
:root[data-theme="dark"] #theme .sun { display: none; }
:root[data-theme="dark"] #theme .moon { display: block; }
@media (max-width: 720px) { .top nav .hide-sm { display: none; } .logo span { display: none; } .logo .divider { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 48px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 10% -10%, color-mix(in srgb, var(--brand-2) 22%, transparent) 0%, transparent 60%),
    radial-gradient(700px 360px at 95% 0%, color-mix(in srgb, #8B7CF6 16%, transparent) 0%, transparent 55%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 20px; max-width: 14ch; font-weight: 700; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 18px; color: var(--text-2); max-width: 60ch; margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.stat b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.stat span { font-size: 13px; color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .hero { padding: 48px 0 32px; } .stats { gap: 18px 28px; } .stat b { font-size: 24px; } }

/* ---------- filters ---------- */
.filters { position: sticky; top: 64px; z-index: 15; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 12px 0; border-bottom: 1px solid var(--border); }
.filters .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips .label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); align-self: center; margin-right: 4px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 500;
  color: var(--text-2); cursor: pointer; transition: all .15s var(--ease); display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .chip.on { background: #E9EFF6; color: #0A111C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { background: #E9EFF6; color: #0A111C; } }
.chip small { opacity: .6; font-weight: 500; }
.sep { width: 1px; height: 22px; background: var(--border-strong); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 12px; height: 36px; min-width: 220px; }
.search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-wash); }
.search svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.search input { border: 0; outline: 0; background: none; font: inherit; color: var(--text); width: 100%; }
.search input::placeholder { color: var(--muted); }
@media (max-width: 860px) { .search { margin-left: 0; width: 100%; } .sep { display: none; } .filters { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.chip:focus, .btn:focus, .top nav a:focus, .top nav button:focus { outline: none; }
.chip:focus-visible, .btn:focus-visible, .top nav a:focus-visible, .top nav button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ---------- sections ---------- */
main { padding: 36px 0 80px; }
.domain { margin-top: 44px; }
.domain:first-child { margin-top: 8px; }
.domain-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.domain-head h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.domain-head h2 small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.domain-head p { margin: 6px 0 0; color: var(--text-2); max-width: 70ch; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; gap: 16px; } }
.domain[hidden], .card[hidden] { display: none; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--border); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s var(--ease); }
.card:hover .media img { transform: scale(1.025); }
.media a { position: absolute; inset: 0; }
.tile {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 100% 0%, hsl(var(--h) 70% 60% / .35), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, hsl(calc(var(--h) + 40) 70% 55% / .25), transparent 60%),
    linear-gradient(135deg, hsl(var(--h) 45% 22%), hsl(var(--h) 55% 14%));
}
.tile::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.tile b { position: relative; font-size: 44px; font-weight: 700; letter-spacing: -.04em; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.tile span { position: absolute; left: 18px; bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--live); background: var(--live-wash); }
.pill.beta { color: var(--beta); background: var(--beta-wash); }
.pill.review { color: var(--review); background: var(--review-wash); }
.pill.development { color: var(--dev); background: var(--dev-wash); }
.summary { margin: 0; font-weight: 500; color: var(--text); }
.desc { margin: 0; color: var(--text-2); font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 3px 8px; }
.tag.pf { color: var(--brand); background: var(--brand-wash); border-color: transparent; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); transition: all .15s var(--ease);
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #1F5D91; color: #fff; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 12px; }

.empty { text-align: center; color: var(--muted); padding: 80px 0; }
.empty[hidden] { display: none; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer a { color: var(--text-2); font-weight: 500; }
footer a:hover { color: var(--brand); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
