:root {
  color-scheme: dark;
  --bg: #08090b;
  --ink: #f5f7fb;
  --muted: #a2adbd;
  --dim: #677386;
  --panel: rgba(17, 21, 28, .88);
  --panel-2: rgba(24, 29, 39, .92);
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .2);
  --green: #32f29b;
  --cyan: #42d7ff;
  --red: #ff3f62;
  --amber: #f7c948;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(50, 242, 155, .12), transparent 28rem),
    linear-gradient(245deg, rgba(255, 63, 98, .12), transparent 34rem),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 52px 52px, 52px 52px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,9,11,0), rgba(8,9,11,.84));
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, .78);
  backdrop-filter: blur(18px);
}

.brand, nav, .brand span { display: flex; align-items: center; }
.brand { gap: 12px; min-width: 0; font-weight: 850; }
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.brand span { min-width: 0; overflow-wrap: anywhere; }
nav { gap: 8px; }
nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
}
nav a:hover, .ctftime-link {
  border-color: var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
}

main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  padding: 54px 0 34px;
}

.kicker {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid rgba(50, 242, 155, .28);
  background: rgba(50, 242, 155, .08);
  color: var(--green);
  padding: 8px 10px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(48px, 9vw, 104px);
  line-height: .9;
  letter-spacing: 0;
}

.hero p:not(.kicker), .summary {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.primary-action, .secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  padding: 12px 16px;
  font-weight: 800;
}
.primary-action {
  background: var(--green);
  border-color: var(--green);
  color: #03100a;
}
.secondary-action {
  background: rgba(255,255,255,.05);
  color: var(--ink);
}
.secondary-action strong { color: var(--amber); }

.team-card {
  justify-self: end;
  width: 100%;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24,29,39,.92), rgba(10,12,16,.92));
  padding: 24px;
  box-shadow: 0 20px 70px rgba(0,0,0,.32);
}
.team-card img {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  object-fit: cover;
}
.team-card strong {
  display: block;
  margin-top: 18px;
  font-size: 25px;
}
.team-card span {
  display: block;
  margin: 8px 0 20px;
  color: var(--muted);
}
.team-card a {
  display: flex;
  justify-content: center;
  border: 1px solid rgba(66, 215, 255, .35);
  background: rgba(66, 215, 255, .08);
  color: var(--cyan);
  padding: 11px 12px;
  font-weight: 800;
}

.stats-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.stats-bar div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}
.stats-bar div:last-child { border-right: 0; }
.stats-bar strong {
  display: block;
  color: var(--amber);
  font-size: 34px;
}
.stats-bar span { color: var(--muted); text-transform: uppercase; font-size: 12px; font-weight: 800; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 38px 0 24px;
}
button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding: 9px 14px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
button.active, button:hover {
  border-color: rgba(50, 242, 155, .55);
  background: rgba(50, 242, 155, .09);
  color: var(--green);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 16px;
  padding-bottom: 78px;
}

.card {
  min-height: 320px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden;
}
.card a {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--red));
  opacity: .8;
}
.card:hover {
  border-color: rgba(50, 242, 155, .52);
  transform: translateY(-3px);
  transition: .18s ease;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  background: rgba(255,255,255,.035);
  padding: clamp(24px, 5vw, 42px);
}
.empty-state h2 {
  margin: 0 0 10px;
  font-size: 30px;
}
.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.empty-state code {
  color: var(--green);
  background: rgba(50, 242, 155, .1);
  padding: 2px 6px;
}

.meta, .foot, .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.meta span, .meta time, .tags span {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.16);
  padding: 5px 8px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}
.card h2 {
  margin: 26px 0 10px;
  font-size: 30px;
  line-height: 1.05;
}
.card p { color: var(--muted); line-height: 1.6; }
.author {
  margin-top: 8px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}
.foot {
  margin-top: auto;
  justify-content: space-between;
  color: var(--amber);
  font-size: 14px;
}
.tags { margin-top: 18px; }

.about-band {
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(50, 242, 155, .1), rgba(66, 215, 255, .06), rgba(255, 63, 98, .08)),
    rgba(255,255,255,.035);
  padding: clamp(24px, 5vw, 42px);
}
.about-band h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}
.about-band p:not(.kicker) {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}
.about-band a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-weight: 850;
}

.article-wrap {
  max-width: 920px;
  padding: 42px 0 86px;
}
.back {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--green);
  font-weight: 800;
}
.article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24,29,39,.94), rgba(12,15,20,.94));
  padding: clamp(22px, 5vw, 56px);
}
.article h1 {
  margin: 24px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
}
.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
}
.article-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.article-author strong { color: var(--ink); }
.prose {
  margin-top: 42px;
  color: #dce3eb;
  line-height: 1.8;
}
.prose h2 {
  margin-top: 38px;
  color: var(--ink);
  font-size: 30px;
}
.prose h3 { margin-top: 30px; color: var(--ink); }
.prose a { color: var(--cyan); text-decoration: underline; }
.prose code {
  color: var(--green);
  background: rgba(50, 242, 155, .1);
  padding: 2px 6px;
}
.prose pre {
  overflow: auto;
  border: 1px solid var(--line);
  background: #050609;
  padding: 18px;
}

.about-page {
  max-width: 980px;
  padding: 52px 0 86px;
}
.about-hero {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24,29,39,.94), rgba(12,15,20,.94));
  padding: clamp(24px, 6vw, 58px);
}
.about-hero img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
}
.about-hero p:not(.kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 50px;
  }
  .team-card { justify-self: stretch; }
  .stats-bar { grid-template-columns: 1fr; }
  .stats-bar div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-bar div:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    padding-inline: 14px;
  }
  main { width: min(100% - 28px, 1180px); }
  h1 { font-size: clamp(42px, 16vw, 64px); }
  .hero-actions a { width: 100%; justify-content: center; }
  .brand img { width: 36px; height: 36px; }
  nav a { padding-inline: 9px; }
}
