:root {
  --navy: #10243f;
  --ink: #17304f;
  --muted: #5b6b7f;
  --line: #d9e1ea;
  --surface: #f5f7fa;
  --blue: #2e6da4;
  --blue-dark: #24587f;
  --green: #2b7a58;
  --amber: #9f6b12;
  --white: #ffffff;
  --shadow: 0 16px 50px rgba(16, 36, 63, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-shell,
.footer-grid,
.hero,
.band,
.split-section,
.page-hero,
.product-layout,
.security-list,
.download-list,
.announcement-list,
.article-page,
.error-page {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-weight: 760;
}

.wordmark-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #b9c9d8;
  border-radius: 6px;
  background: #eef4f8;
  color: var(--navy);
  font-size: 0.78rem;
}

.wordmark-text {
  font-size: 1.08rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: #314762;
}

.nav-links .nav-download {
  color: var(--white);
  background: var(--navy);
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 7rem 0 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: 4rem;
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow,
.category,
.status-pill {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--navy);
  font-size: clamp(2.65rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 1.35rem;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 0.9rem;
}

h3 {
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 0.45rem;
}

.hero-lede,
.page-hero p,
.section-heading p,
.split-section p,
.release-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 720;
  line-height: 1.2;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.product-visual {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-visual.large {
  min-height: 520px;
  display: grid;
  grid-template-columns: 190px 1fr;
  grid-template-rows: 52px 1fr;
}

.visual-toolbar {
  grid-column: 1 / -1;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.visual-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7d2dd;
}

.visual-toolbar strong {
  margin-left: 0.4rem;
  color: var(--navy);
  font-size: 0.88rem;
}

.visual-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 1.2rem;
}

.visual-kpis div,
.mini-grid div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.visual-kpis b,
.mini-grid b {
  display: block;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1.1;
}

.visual-kpis span,
.mini-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.visual-table {
  padding: 0 1.2rem 1.2rem;
}

.row,
.release-row {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.row.head,
.release-row.head {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.status.good {
  color: var(--green);
  font-weight: 700;
}

.status.warn {
  color: var(--amber);
  font-weight: 700;
}

.band {
  padding: 5rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid article,
.announcement-panel,
.release-card,
.security-list article,
.announcement-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--white);
}

.feature-grid article {
  min-height: 166px;
}

.feature-grid p,
.security-list p,
.announcement-list p,
.download-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 2rem;
  padding: 4rem 0 5.5rem;
  align-items: start;
}

.announcement-panel h2 {
  font-size: 1.25rem;
}

.announcement-link {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.announcement-link span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.announcement-link strong {
  color: var(--navy);
}

.page-hero.compact {
  padding: 5rem 0 2rem;
  max-width: 920px;
}

.page-hero.compact h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 3rem;
}

.visual-sidebar {
  background: #eff4f8;
  border-right: 1px solid var(--line);
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.visual-sidebar span {
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.visual-sidebar .active {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  font-weight: 700;
}

.visual-main {
  padding: 1.6rem;
}

.visual-main h2 {
  font-size: 1.45rem;
}

.progress-line {
  height: 12px;
  border-radius: 999px;
  background: #e5ebf0;
  overflow: hidden;
  margin: 1.4rem 0;
}

.progress-line span {
  display: block;
  width: 78%;
  height: 100%;
  background: var(--green);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.release-card dl,
.metadata-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.55rem 0.9rem;
  margin: 1rem 0 1.5rem;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.security-list {
  display: grid;
  gap: 1rem;
  padding: 2rem 0 5rem;
}

.download-list {
  padding: 2rem 0 5rem;
}

.download-current {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  background: #f8fafc;
}

.release-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.release-row {
  grid-template-columns: 0.8fr 0.7fr 0.9fr minmax(160px, 1.8fr) 0.8fr;
  padding: 0.85rem 1rem;
  background: var(--white);
}

.release-row:hover {
  background: var(--surface);
}

.hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.announcement-list {
  display: grid;
  gap: 1rem;
  padding: 2rem 0 5rem;
}

.announcement-list h2 {
  font-size: 1.35rem;
}

.article-page {
  max-width: 780px;
  padding: 5rem 0;
}

.article-page h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.article-page time {
  color: var(--muted);
}

.summary {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 1.2rem 0 2rem;
}

.prose p {
  margin-bottom: 1rem;
}

.error-page {
  min-height: 55vh;
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 180px 220px;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-grid h2 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-grid a:not(.wordmark) {
  display: block;
  color: var(--muted);
  margin: 0.25rem 0;
}

.footer-grid p {
  color: var(--muted);
  max-width: 340px;
}

@media (max-width: 840px) {
  .nav-shell {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
  }

  .hero,
  .split-section,
  .product-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .feature-grid,
  .feature-grid.three,
  .mini-grid,
  .visual-kpis {
    grid-template-columns: 1fr;
  }

  .product-visual.large {
    grid-template-columns: 1fr;
    grid-template-rows: 52px auto auto;
  }

  .visual-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .download-current {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-row,
  .release-row.head {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .release-row.head {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    gap: 1rem;
  }

  .wordmark-text {
    font-size: 1rem;
  }

  .nav-links {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  .button {
    width: 100%;
  }
}
