:root {
  color-scheme: dark;
  --bg: #07111d;
  --panel: rgba(10, 22, 36, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(184, 203, 224, 0.24);
  --text: #f5f8fc;
  --muted: #b8c7d8;
  --gold: #f4bd4a;
  --green: #79c79b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--text); }

.whatsnew-main {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 42px 22px 64px;
}

.release-hero {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--panel-soft), transparent),
    var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.03;
}

.lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.release-meta,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.product-switch {
  display: inline-flex;
  margin: 0 0 28px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(7, 17, 29, 0.5);
}

.product-switch + .eyebrow { margin-top: 0; }

.product-switch__item {
  min-width: 132px;
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.product-switch__item.is-active {
  background: rgba(244, 189, 74, 0.18);
  color: var(--text);
}

.product-switch__item:hover,
.product-switch__item:focus-visible {
  color: var(--text);
  outline: 2px solid rgba(244, 189, 74, 0.36);
  outline-offset: 1px;
}

.release-meta li {
  color: var(--muted);
  font-size: 0.95rem;
}

.release-meta li + li::before {
  content: "·";
  margin-right: 12px;
  color: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(244, 189, 74, 0.48);
  background: rgba(244, 189, 74, 0.14);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(7, 17, 29, 0.46);
}

.button:hover,
.button:focus-visible {
  outline: 2px solid rgba(244, 189, 74, 0.36);
  outline-offset: 3px;
}

.release-list,
.release-notes {
  margin-top: 28px;
}

.history-heading {
  margin-top: 42px;
  padding: 0 4px 4px;
}

.history-heading h2,
.history-heading p { margin: 0; }

.history-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.history-heading > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.platform-break { margin-top: 64px; }

.release {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  background: rgba(10, 22, 36, 0.66);
}

.release h2,
.release h3,
.release h4 { margin: 0; }

.release h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.release h2::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(121, 199, 155, 0.72);
}

.release h3 {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.release h4 {
  margin-top: 20px;
  color: var(--gold);
  font-size: 1.02rem;
}

.release p,
.release li {
  color: var(--muted);
  line-height: 1.62;
}

.release p { margin: 10px 0 0; }

.release ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

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

.release .actions { margin-top: 22px; }

.release-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.technical-note {
  width: 100%;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .whatsnew-main { padding: 28px 14px 48px; }
  .release-hero { padding: 26px 22px; }
  .release-footer .button { width: 100%; }
  .product-switch { display: flex; width: 100%; }
  .product-switch__item { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
