:root {
  color-scheme: light;
  --ink: #102c35;
  --muted: #536b73;
  --navy: #0c3b4a;
  --teal: #0f6c74;
  --gold: #f6bd4b;
  --paper: #f4f8f9;
  --white: #ffffff;
  --line: #ccdade;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(160deg, rgba(15,108,116,.09), transparent 34rem),
    var(--paper);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; }

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(12,59,74,.12);
  background: rgba(255,255,255,.82);
}

.site-header,
main,
footer {
  padding-inline: max(1.25rem, calc((100% - 1080px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  color: var(--navy);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 56px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-copy small {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

main {
  min-width: 0;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}

.product-page { padding-top: 2rem; }

.page-heading {
  max-width: 700px;
  margin-bottom: 2.25rem;
}

.eyebrow {
  margin: 0 0 .25rem;
  color: var(--teal);
  font-weight: 800;
}

h1, h2 { margin-block: 0; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.page-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(12,59,74,.10);
}

.product-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 8px;
  background: linear-gradient(var(--gold), #e57f38);
}

.product-copy > p { color: var(--muted); }
.status { color: var(--teal) !important; font-weight: 800; }
.status span { display: inline-block; width: .65rem; height: .65rem; margin-inline-end: .35rem; border-radius: 50%; background: #14865f; }

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.quick-facts div {
  min-width: 145px;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfb;
}

dt { color: var(--muted); font-size: .875rem; }
dd { margin: 0; font-size: 1.12rem; font-weight: 700; }

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .8rem 1.25rem;
  border-radius: 14px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.primary-action:hover { background: var(--teal); }
.primary-action:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.breadcrumbs {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: .95rem;
}

.breadcrumbs a { color: var(--teal); font-weight: 700; }

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  border-radius: 30px;
  background: var(--navy);
  color: white;
  box-shadow: 0 24px 80px rgba(12,59,74,.18);
}

.download-hero > *,
.download-panel,
.detail-grid,
.content-card,
.previous-versions {
  min-width: 0;
  max-width: 100%;
}

.download-hero .eyebrow { color: var(--gold); }
.download-hero h1 {
  max-width: 650px;
  overflow-wrap: anywhere;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
}
.lede { max-width: 650px; color: #dce9ec; font-size: 1.12rem; }

.download-panel {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
}

.version-label,
.platform,
.download-size { margin: 0; color: #dce9ec; }

.version-number {
  margin: -.2rem 0;
  color: var(--gold);
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 900;
  line-height: 1.1;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  min-height: 56px;
  margin: 1.25rem 0 .65rem;
  padding: .8rem 1.2rem;
  border-radius: 14px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
}

.download-button:hover { background: #ffd274; }
.download-button:focus-visible { outline: 3px solid white; outline-offset: 3px; }

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

.content-card,
.previous-versions {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.content-card h2,
.previous-versions h2 { margin-bottom: 1rem; font-size: clamp(1.45rem, 3vw, 2rem); }

.content-card h3 { margin-bottom: .55rem; }
.content-card p { color: var(--muted); }

.release-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.release-details div {
  padding: .75rem;
  border-radius: 12px;
  background: #f3f8f8;
}

.release-notes { margin: 0; padding-inline-start: 1.25rem; }
.release-notes li { margin-bottom: .8rem; }

.previous-versions { margin-top: 1rem; }
.previous-versions p { margin-bottom: 0; color: var(--muted); }

footer {
  padding-block: 2rem;
  border-top: 1px solid rgba(12,59,74,.12);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 680px) {
  .site-header { min-height: 68px; }
  .brand-logo { height: 48px; }
  .brand-copy strong { font-size: .95rem; }
  .product-card { grid-template-columns: 1fr; align-items: stretch; border-radius: 20px; }
  .primary-action { width: 100%; }
  .quick-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .download-hero,
  .detail-grid { grid-template-columns: 1fr; }
  .download-hero { border-radius: 22px; }
  .download-panel { width: 100%; }
  .release-details { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .brand { gap: .6rem; }
  .brand-logo { height: 42px; }
  .brand-copy strong { font-size: .88rem; }
  .brand-copy small { font-size: .72rem; }
  .quick-facts { grid-template-columns: 1fr; }
  h1 { font-size: 2.65rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-action,
  .download-button { transition: background-color .18s ease, transform .18s ease; }
  .primary-action:hover,
  .download-button:hover { transform: translateY(-2px); }
}
