:root {
  --bg: #ffffff;
  --ink: #171717;
  --muted: #666666;
  --line: rgba(0, 0, 0, 0.08);
  --soft: #fafafa;
  --blue: #0a72ef;
  --pink: #de1d8d;
  --red: #ff5b4f;
  --shadow: rgba(0,0,0,.08) 0 0 0 1px, rgba(0,0,0,.04) 0 2px 2px, rgba(0,0,0,.04) 0 8px 8px -8px, #fafafa 0 0 0 1px inset;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(10,114,239,.13), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(222,29,141,.10), transparent 32rem),
    linear-gradient(#fff, #fff);
  font-feature-settings: "liga" 1;
}

a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  min-height: 64px; padding: 0 22px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(18px);
  box-shadow: rgba(0,0,0,.08) 0 1px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.32px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  color: #fff; background: #171717; font: 600 12px/1 'Geist Mono', monospace;
}
nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
nav a, .refresh, .primary {
  border: 0; border-radius: 999px; padding: 9px 13px; font: 500 14px/1 'Geist', sans-serif; cursor: pointer;
}
nav a { color: #4d4d4d; }
nav a:hover { background: #f2f2f2; color: var(--ink); }
.refresh { background: #171717; color: #fff; }
.refresh:disabled { opacity: .6; cursor: wait; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 36px; align-items: center;
  min-height: 560px; padding: 84px 0 56px;
}
.eyebrow, .section-kicker, .meta-row, .updated, .source-pill, .source-badge {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .04em;
}
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 600; margin: 0 0 14px; }
h1 { margin: 0; font-size: clamp(42px, 8vw, 76px); line-height: .95; letter-spacing: -4px; font-weight: 700; max-width: 850px; }
.lede { color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.65; max-width: 700px; margin: 24px 0 0; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.primary { background: var(--ink); color: #fff; display: inline-flex; }
.updated { color: #666; font-size: 12px; }

.hero-panel {
  position: relative; min-height: 410px; border-radius: 22px; padding: 24px; overflow: hidden;
  background: #050505; box-shadow: var(--shadow);
}
.hero-panel::before {
  content: ''; position: absolute; inset: -20%;
  background: radial-gradient(circle at 25% 20%, rgba(10,114,239,.85), transparent 24%), radial-gradient(circle at 75% 28%, rgba(222,29,141,.68), transparent 22%), radial-gradient(circle at 55% 82%, rgba(255,91,79,.72), transparent 28%);
  filter: blur(12px); opacity: .9;
}
.hero-panel::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 95%);
}
.signal-card {
  position: absolute; z-index: 1; width: 46%; min-height: 142px; padding: 18px; border-radius: 18px;
  background: rgba(255,255,255,.13); color: #fff; backdrop-filter: blur(12px);
  box-shadow: rgba(255,255,255,.18) 0 0 0 1px inset;
}
.signal-card span { display:block; font: 600 12px/1 'Geist Mono', monospace; opacity:.72; text-transform: uppercase; margin-bottom: 44px; }
.signal-card strong { font-size: 27px; letter-spacing: -1px; }
.signal-card.ai { left: 24px; top: 26px; }
.signal-card.cyber { right: 24px; top: 82px; }
.signal-card.fullstack { left: 46px; bottom: 36px; }
.signal-card.gaming { right: 34px; bottom: 78px; }

.status-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 42px; overflow: hidden; border-radius: 14px;
  background: #e8e8e8; box-shadow: var(--shadow);
}
.status-strip div { background: #fff; padding: 22px; }
.status-strip strong { display:block; font-size: 34px; letter-spacing: -1.5px; }
.status-strip span { color: var(--muted); font-size: 14px; }

.news-grid { display: grid; gap: 58px; padding-bottom: 80px; }
.category-section { scroll-margin-top: 82px; }
.category-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 600; }
h2 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1; letter-spacing: -2.3px; }
.category-description { color: var(--muted); max-width: 760px; line-height: 1.55; margin: 12px 0 0; }
.source-pill { padding: 9px 12px; white-space: nowrap; border-radius: 999px; background: #f4f4f4; color: #5b5b5b; font-size: 11px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-card {
  min-width: 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: rgba(0,0,0,.10) 0 0 0 1px, rgba(0,0,0,.08) 0 12px 24px -12px; }
.image-link { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.image-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.article-card:hover img { transform: scale(1.04); }
.source-badge {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 7px 9px; border-radius: 999px; background: rgba(255,255,255,.88); color: #171717; font-size: 10px; font-weight: 700; backdrop-filter: blur(10px);
}
.article-body { padding: 16px; }
.meta-row { display: flex; align-items: center; gap: 7px; color: #777; font-size: 11px; font-weight: 500; margin-bottom: 10px; }
.article-body h3 { margin: 0; font-size: 20px; line-height: 1.18; letter-spacing: -.7px; }
.article-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.summary { color: var(--muted); line-height: 1.5; margin: 10px 0 0; font-size: 14px; }
.loading, .empty {
  padding: 28px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); color: var(--muted);
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  nav { grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 10px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 50px; }
  .hero-panel { min-height: 320px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  main { width: min(100% - 20px, 1180px); }
  .topbar { padding: 0 12px; gap: 10px; }
  .brand span:last-child { display: none; }
  nav { overflow-x: auto; flex-wrap: nowrap; }
  h1 { letter-spacing: -2.6px; }
  .status-strip { grid-template-columns: 1fr; }
  .category-heading { display: block; }
  .source-pill { display: inline-flex; margin-top: 14px; }
  .article-grid { grid-template-columns: 1fr; }
  .signal-card { min-height: 120px; }
  .signal-card span { margin-bottom: 30px; }
}
