:root {
  --line: rgba(129, 196, 230, 0.26);
  --line-strong: rgba(129, 196, 230, 0.42);
  --text: #e8f6ff;
  --muted: #9ebccc;
  --accent: #76efc7;
  --accent2: #6fd2ff;
  --bg-1: #05101b;
  --bg-2: #061827;
  --bg-3: #071d2d;
  --surface: linear-gradient(160deg, rgba(8, 33, 49, 0.9), rgba(6, 25, 37, 0.88));
  --shadow: 0 20px 48px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(900px 420px at 90% -5%, rgba(111, 210, 255, 0.18), transparent 68%),
    radial-gradient(720px 420px at -10% 8%, rgba(118, 239, 199, 0.14), transparent 68%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 42%, var(--bg-3) 100%);
  color: var(--text);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(165, 217, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 217, 245, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, #000 26%, transparent 84%);
}
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background: rgba(8, 27, 39, 0.8);
}
.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 16px rgba(98, 232, 188, 0.7);
}
.bg-glow {
  position: fixed;
  pointer-events: none;
  width: 42vw;
  height: 42vw;
  filter: blur(56px);
  border-radius: 50%;
  opacity: 0.22;
  z-index: -1;
}
.bg-glow-a { left: -10vw; top: -6vw; background: radial-gradient(circle, #76efc7 0%, transparent 72%); }
.bg-glow-b { right: -10vw; bottom: -10vw; background: radial-gradient(circle, #6fd2ff 0%, transparent 72%); }
.wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 44px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 0;
}
.brand { color: #f2fbff; text-decoration: none; font-family: "Unbounded", sans-serif; font-size: 28px; position: relative; }
.brand::after { content: ""; position: absolute; right: -14px; top: 50%; width: 8px; height: 8px; transform: translateY(-50%); border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.back {
  position: relative;
  overflow: hidden;
  color: #d8edf8;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 15px;
  background: rgba(8, 31, 45, 0.72);
  font-weight: 800;
  isolation: isolate;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease;
}
.back::before,
.back::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.back::before {
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(111, 210, 255, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(7, 31, 45, 0.82), rgba(5, 21, 33, 0.92));
}
.back::after {
  inset: -1px auto -1px -64%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
}
.back:hover {
  transform: translateY(-2px);
  border-color: rgba(118,239,199,.62);
  box-shadow: 0 16px 30px rgba(0,0,0,.28), 0 0 24px rgba(118,239,199,.12);
}
.back:hover::after { left: 120%; }
.back:focus-visible,
.chip:focus-visible,
.card:focus-visible {
  outline: 2px solid rgba(118, 239, 199, 0.85);
  outline-offset: 2px;
}
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}
.hero::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--accent), rgba(111, 210, 255, 0.45), transparent);
  opacity: .74;
}
.eyebrow { margin: 0 0 10px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; font-size: 12px; }
h1 { margin: 0; font-family: "Unbounded", sans-serif; font-size: clamp(30px, 4.5vw, 58px); line-height: 1.04; }
.sub { margin: 14px 0 0; color: var(--muted); max-width: 840px; }
.filters {
  position: relative;
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(129, 196, 230, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(420px 140px at 8% 0%, rgba(118, 239, 199, 0.09), transparent 70%),
    rgba(5, 24, 37, 0.34);
}
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(9,33,48,.82);
  color: #c6e6f6;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(118,239,199,.5);
  box-shadow: 0 10px 22px rgba(0,0,0,.18), 0 0 18px rgba(118,239,199,.08);
}
.chip.active { color: #06211d; background: linear-gradient(135deg, var(--accent), #a6f4df); border-color: rgba(120,239,199,.9); font-weight: 800; box-shadow: 0 0 24px rgba(118,239,199,.16); }
.feed { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 336px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(118, 239, 199, 0.14), transparent 38%),
    linear-gradient(170deg, rgba(8,30,43,.96), rgba(6,23,35,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  isolation: isolate;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(118,239,199,.14), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(111,210,255,.13), transparent 34%);
  opacity: .75;
  transition: opacity .28s ease;
}
.card > * { position: relative; z-index: 1; }
.card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  z-index: 2;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--accent), rgba(111, 210, 255, 0.45), transparent);
  opacity: .72;
  transition: opacity .28s ease, box-shadow .28s ease, right .28s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(118,239,199,.46);
  box-shadow: 0 18px 34px rgba(0,0,0,.28), 0 0 20px rgba(118,239,199,.08);
}
.card:hover::before { opacity: 1; }
.card:hover::after {
  right: 34%;
  opacity: .96;
  box-shadow: 0 0 18px rgba(118,239,199,.18);
}
.card:hover .title {
  color: #f4fdff;
}
.card.is-featured {
  grid-column: span 2;
  min-height: 372px;
  padding: 22px;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.card-sphere,
.card-format,
.card-readtime {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  white-space: nowrap;
}
.card-sphere {
  color: #86f0cc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-format {
  padding: 5px 9px;
  border: 1px solid rgba(130,197,230,.28);
  background: rgba(9,31,45,.74);
  color: #cce8f7;
  font-size: 12px;
  font-weight: 700;
}
.card-readtime {
  flex: 0 0 auto;
  color: #8fb4c7;
  font-size: 12px;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.meta { display: flex; justify-content: space-between; gap: 12px; color: #8fb4c7; font-size: 12px; }
.source { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.title { margin: 12px 0 10px; font-size: 23px; line-height: 1.14; letter-spacing: -.02em; }
.card.is-featured .title { max-width: 760px; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; }
.excerpt {
  margin: 0;
  color: #b4d0dd;
  font-size: 15px;
  line-height: 1.48;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.card.is-featured .excerpt { max-width: 720px; font-size: 16px; -webkit-line-clamp: 3; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 18px; }
.card-chip { font-size: 11px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(130,197,230,.28); color: #c7e5f6; background: rgba(9,31,45,.72); }
.empty { grid-column: 1 / -1; border: 1px dashed rgba(136,200,232,.4); border-radius: 14px; padding: 16px; color: #a8c7d8; background: rgba(8,28,40,.6); }
@media (max-width: 1100px) {
  .feed { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card.is-featured { grid-column: span 2; }
}
@media (max-width: 900px) {
  .wrap { width: min(1240px, calc(100% - 20px)); }
  .brand { font-size: 24px; }
  .hero { padding: 18px; border-radius: 18px; }
  h1 { font-size: clamp(26px, 8vw, 42px); }
  .feed { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .card { min-height: 310px; padding: 16px; border-radius: 18px; }
  .card.is-featured { padding: 18px; }
  .card.is-featured .title { font-size: clamp(25px, 5vw, 34px); }
}
@media (max-width: 620px) {
  .feed { grid-template-columns: 1fr; }
  .card.is-featured { grid-column: span 1; }
  .card-head { display: block; margin-bottom: 18px; }
  .card-readtime { margin-top: 6px; }
  .chip { padding: 8px 11px; font-size: 12px; }
  .back { padding: 8px 12px; font-size: 13px; }
}

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