:root {
  --bg: #05070a;
  --panel: #0a0e13;
  --panel-2: #0d1219;
  --line: #202833;
  --line-soft: rgba(255,255,255,.07);

  --text: #f7f7f3;
  --muted: #9aa4af;
  --muted-2: #697582;

  --gold: #d5ad63;
  --gold-light: #f4d895;

  --green: #66d697;
  --blue: #74aef9;
  --orange: #e5a460;
  --red: #ef8181;
  --violet: #a98cf4;

  --radius: 22px;
  --shadow:
    0 24px 60px rgba(0,0,0,.35);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 70% -20%,
      rgba(58,89,140,.17),
      transparent 40%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(5,7,10,.82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1220px, calc(100% - 36px));
  height: 76px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 39px;
  height: 39px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(213,173,99,.48);
  border-radius: 50%;

  color: var(--gold-light);
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255,255,255,.12),
      rgba(213,173,99,.05)
    );

  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;

  letter-spacing: .13em;
}

.brand-copy strong {
  font-family: Georgia, serif;
  font-size: 19px;
  color: #fff;
}

.brand-copy span {
  font-size: 9px;
  font-weight: 800;
  color: var(--gold);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.system-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px rgba(102,214,151,.65);
}

.hero {
  position: relative;
  overflow: hidden;

  border-bottom: 1px solid var(--line-soft);
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 55%;

  width: 620px;
  height: 480px;

  background:
    radial-gradient(
      circle,
      rgba(78,115,178,.20),
      transparent 66%
    );

  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(1220px, calc(100% - 36px));
  margin: auto;
  padding: 90px 0 78px;
}

.hero-eyebrow,
.section-eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.hero h1 {
  max-width: 760px;
  margin: 17px 0 20px;

  font-family: Georgia, serif;
  font-size: clamp(44px, 7vw, 83px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.045em;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero > .hero-inner > p {
  max-width: 680px;
  margin: 0;

  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;

  margin-top: 53px;
  padding-top: 30px;

  border-top: 1px solid var(--line-soft);
}

.hero-meta div {
  min-width: 140px;
}

.hero-meta strong {
  display: block;
  margin-bottom: 5px;

  color: var(--text);
  font-size: 23px;
  font-weight: 800;
}

.hero-meta span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

.content-shell {
  width: min(1220px, calc(100% - 36px));
  margin: auto;
  padding: 70px 0 100px;
}

.toolbar,
.history-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;

  margin-bottom: 26px;
}

.toolbar h2,
.history-heading h2 {
  margin: 8px 0 0;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 500;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter {
  padding: 8px 13px;

  border: 1px solid var(--line);
  border-radius: 100px;

  background: #090d12;
  color: var(--muted);

  font-size: 11px;
  font-weight: 800;

  cursor: pointer;
  transition: .2s ease;
}

.filter:hover {
  color: #fff;
  border-color: #3d4653;
}

.filter.active {
  background: rgba(213,173,99,.13);
  border-color: rgba(213,173,99,.5);
  color: var(--gold-light);
}

.latest-card {
  position: relative;
  overflow: hidden;

  padding: 34px;

  border: 1px solid rgba(213,173,99,.26);
  border-radius: var(--radius);

  background:
    linear-gradient(
      135deg,
      rgba(213,173,99,.06),
      transparent 42%
    ),
    var(--panel);

  box-shadow: var(--shadow);
}

.latest-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;

  width: 3px;
  background: linear-gradient(
    var(--gold-light),
    var(--gold)
  );
}

.release-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.release-labels {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 9px;

  border-radius: 7px;
  border: 1px solid var(--line);

  color: var(--muted);
  background: rgba(255,255,255,.02);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge.latest {
  color: #161005;
  border-color: var(--gold);
  background: var(--gold-light);
}

.badge.production {
  color: var(--green);
  border-color: rgba(102,214,151,.25);
  background: rgba(102,214,151,.07);
}

.release-version {
  margin: 22px 0 5px;

  font-family: Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
}

.release-title {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.release-date {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 11px;
  text-align: right;
}

.release-groups {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0,1fr));
  gap: 18px;

  margin-top: 31px;
}

.change-group {
  min-height: 100%;
  padding: 20px;

  border: 1px solid var(--line-soft);
  border-radius: 15px;

  background: rgba(0,0,0,.16);
}

.change-group-header {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 14px;
}

.change-group-icon {
  width: 27px;
  height: 27px;

  display: grid;
  place-items: center;

  border-radius: 8px;
  background: rgba(255,255,255,.04);

  font-size: 12px;
}

.change-group h4 {
  margin: 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.change-group ul {
  margin: 0;
  padding-left: 18px;

  color: #c8cdd4;
  font-size: 13px;
  line-height: 1.7;
}

.change-group li + li {
  margin-top: 6px;
}

.group-new .change-group-icon,
.group-new h4 {
  color: var(--green);
}

.group-improved .change-group-icon,
.group-improved h4 {
  color: var(--blue);
}

.group-fixed .change-group-icon,
.group-fixed h4 {
  color: var(--orange);
}

.group-security .change-group-icon,
.group-security h4 {
  color: var(--red);
}

.group-infrastructure .change-group-icon,
.group-infrastructure h4 {
  color: var(--violet);
}

.release-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;

  margin-top: 26px;
  padding-top: 20px;

  border-top: 1px solid var(--line-soft);
}

.release-products {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.product-pill {
  padding: 5px 8px;

  border-radius: 6px;
  background: rgba(255,255,255,.04);

  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.release-id {
  color: var(--muted-2);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 10px;
}

.history-heading {
  margin-top: 72px;
}

.release-history {
  display: grid;
  gap: 12px;
}

.history-card {
  padding: 22px 24px;

  border: 1px solid var(--line-soft);
  border-radius: 15px;

  background: var(--panel);

  cursor: pointer;
  transition: .2s ease;
}

.history-card:hover {
  border-color: #323c48;
  background: var(--panel-2);
}

.history-summary {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
}

.history-version {
  font-family: Georgia, serif;
  font-size: 21px;
}

.history-title strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.history-title span {
  color: var(--muted-2);
  font-size: 11px;
}

.history-arrow {
  color: var(--muted-2);
}

.history-details {
  display: none;
  margin-top: 20px;
  padding-top: 20px;

  border-top: 1px solid var(--line-soft);
}

.history-card.open .history-details {
  display: block;
}

.history-card.open .history-arrow {
  transform: rotate(180deg);
}

.empty-state {
  padding: 70px 25px;
  text-align: center;

  border: 1px dashed var(--line);
  border-radius: var(--radius);

  color: var(--muted);
}

.empty-icon {
  width: 42px;
  height: 42px;
  margin: auto;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: rgba(102,214,151,.08);
  color: var(--green);
}

.empty-state h3 {
  color: #fff;
}

footer {
  width: min(1220px, calc(100% - 36px));
  margin: auto;

  padding: 28px 0 45px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  border-top: 1px solid var(--line-soft);

  color: var(--muted-2);
  font-size: 10px;
}

footer div {
  display: flex;
  gap: 8px;
  align-items: center;
}

footer strong {
  color: var(--gold);
  letter-spacing: .12em;
}

footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .header-right {
    display: none;
  }

  .hero-inner {
    padding-top: 65px;
  }

  .toolbar,
  .history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }

  .release-groups {
    grid-template-columns: 1fr;
  }

  .release-top {
    flex-direction: column;
  }

  .release-date {
    text-align: left;
  }

  .history-summary {
    grid-template-columns: 90px 1fr auto;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .header-inner,
  .hero-inner,
  .content-shell,
  footer {
    width: min(100% - 24px, 1220px);
  }

  .latest-card {
    padding: 24px 20px;
  }

  .hero-meta {
    gap: 26px;
  }

  .history-summary {
    grid-template-columns: 1fr auto;
  }

  .history-version {
    grid-column: 1;
  }

  .history-title {
    grid-column: 1;
  }

  .history-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}
