:root {
  --bg: #f3f5f7;
  --surface: #fbfcfd;
  --surface-2: #e8edf2;
  --text: #15191f;
  --muted: #59636e;
  --line: #cfd7df;
  --accent: #2c67d8;
  --accent-dark: #194ba9;
  --accent-soft: #dce8ff;
  --ink: #15191f;
  --ink-soft: #242a32;
  --on-ink: #f5f7fa;
  --success: #226448;
  --warning: #875d12;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(28, 43, 61, .12);
  --shell: min(1180px, calc(100% - 40px));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151a;
    --surface: #181d23;
    --surface-2: #222932;
    --text: #eef2f6;
    --muted: #a9b3bd;
    --line: #35404b;
    --accent: #6d9cff;
    --accent-dark: #8ab0ff;
    --accent-soft: #1d3158;
    --ink: #0f1318;
    --ink-soft: #181e25;
    --on-ink: #f2f5f8;
    --success: #72c59d;
    --warning: #e2bd70;
    --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  }

  .site-header .brand img {
    content: url("assets/website-logo-dark-background.svg");
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(91, 111, 135, .14) 1px, transparent 0);
  background-size: 28px 28px;
  content: "";
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--on-ink);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(28, 43, 61, .07);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 760;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 36px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}

.main-nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav .nav-download {
  padding: 10px 16px;
  color: #f8fbff;
  background: #245bc0;
  border-radius: 10px;
}

.main-nav .nav-download:hover {
  color: #f8fbff;
  background: #194ba9;
}

.language-bar {
  position: relative;
  z-index: 21;
  color: #f8fbff;
  background: #194ba9;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.language-bar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  gap: 20px;
}

.language-bar-label {
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}

.language-options {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 5px;
}

.language-option {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px;
  gap: 6px;
  color: #f8fbff;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.language-option:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .32);
}

.language-option:active {
  transform: translateY(1px);
}

.language-option[aria-current="true"] {
  color: #15191f;
  background: #f8fbff;
  border-color: #f8fbff;
}

.language-flag {
  display: inline-block;
  flex: 0 0 28px;
  width: 28px;
  height: 21px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(21, 25, 31, .18);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(12, 24, 42, .2);
  font-size: 0;
  line-height: 0;
}

.language-option[lang="de"] .language-flag {
  background-image: url("assets/flags/de.svg");
}

.language-option[lang="en"] .language-flag {
  background-image: url("assets/flags/gb.svg");
}

.language-option[lang="fr"] .language-flag {
  background-image: url("assets/flags/fr.svg");
}

.language-option[lang="es"] .language-flag {
  background-image: url("assets/flags/es.svg");
}

.language-option[lang="it"] .language-flag {
  background-image: url("assets/flags/it.svg");
}

.language-option[lang="nl"] .language-flag {
  background-image: url("assets/flags/nl.svg");
}

.language-option[lang="pl"] .language-flag {
  background-image: url("assets/flags/pl.svg");
}

.language-option[lang="pt-PT"] .language-flag {
  background-image: url("assets/flags/pt.svg");
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  display: grid;
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding: clamp(40px, 6vw, 84px) 0;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent-dark);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -.045em;
  line-height: 1.04;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 5.5vw, 5.35rem);
  font-weight: 780;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4vw, 4.5rem);
  font-weight: 760;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 1.8vw, 1.62rem);
  font-weight: 740;
  line-height: 1.18;
}

.hero-lead {
  max-width: 53ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: #f8fbff;
  background: #245bc0;
}

.button-primary:hover {
  background: #194ba9;
}

.button-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.hero-visual {
  position: relative;
  margin: 0 -3vw 0 -2vw;
}

.hero-visual::before {
  position: absolute;
  inset: 10% 14% 6% 15%;
  z-index: -1;
  background: var(--accent-soft);
  border-radius: 50%;
  filter: blur(55px);
  opacity: .55;
  content: "";
}

.hero-visual img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-strip {
  background: var(--ink);
  color: var(--on-ink);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.proof-grid p {
  margin: 0;
  padding: 28px clamp(18px, 3vw, 36px);
  border-left: 1px solid rgba(255, 255, 255, .13);
}

.proof-grid p:last-child {
  border-right: 1px solid rgba(255, 255, 255, .13);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  margin-bottom: 3px;
  font-size: 1.05rem;
}

.proof-grid span {
  color: #aeb9c5;
  font-size: .82rem;
}

.section {
  padding: clamp(88px, 11vw, 148px) 0;
}

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

.section-heading.compact {
  max-width: 700px;
}

.section-heading > p,
.engineering-head > p,
.install-copy > p,
.faq-head > p {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  grid-column: span 4;
  min-height: 250px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-main {
  grid-column: span 7;
  min-height: 330px;
  padding-right: 18%;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 65%, var(--surface)), var(--surface));
}

.feature-accent {
  grid-column: span 5;
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.feature-dark {
  grid-column: span 5;
  color: var(--on-ink);
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

.feature-small {
  grid-column: span 3;
}

.feature-wide {
  grid-column: span 4;
}

.feature-index {
  display: block;
  margin-bottom: 42px;
  color: var(--accent-dark);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: .78rem;
  font-weight: 800;
}

.feature-dark .feature-index {
  color: #8eb3ff;
}

.feature p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
}

.feature-dark p {
  color: #bdc7d2;
}

.product-shot {
  background: color-mix(in srgb, var(--surface-2) 65%, var(--bg));
}

.screenshot-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}

.shot-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.shot-copy h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
}

.shot-copy > p {
  color: var(--muted);
}

.plain-checks {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.plain-checks li {
  position: relative;
  padding-left: 24px;
}

.plain-checks li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.browser-frame {
  margin: 0;
}

.browser-frame img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.browser-frame figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: .82rem;
}

.migration {
  overflow: clip;
}

.migration-grid {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(48px, 9vw, 130px);
}

.migration-copy {
  position: sticky;
  top: 120px;
}

.migration-copy h2 {
  font-size: clamp(2.35rem, 4.2vw, 4.25rem);
}

.migration-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.migration-note {
  margin-top: 30px;
  padding: 20px 22px;
  color: var(--text);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.migration-note strong {
  display: block;
  margin-bottom: 3px;
}

.migration-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: migration;
}

.migration-flow li {
  position: relative;
  min-height: 175px;
  padding: 0 0 52px 64px;
  counter-increment: migration;
}

.migration-flow li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #f8fbff;
  background: #245bc0;
  border-radius: 10px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: .85rem;
  font-weight: 800;
  content: counter(migration, decimal-leading-zero);
}

.migration-flow li:not(:last-child)::after {
  position: absolute;
  top: 50px;
  bottom: 10px;
  left: 20px;
  width: 1px;
  background: var(--line);
  content: "";
}

.migration-flow p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

.migration-shot {
  max-width: 980px;
  margin-top: 74px;
}

.browser-frame-tall {
  position: relative;
  max-height: 680px;
  padding: 14px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.browser-frame-tall::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  height: 90px;
  background: linear-gradient(transparent, var(--surface-2));
  content: "";
  pointer-events: none;
}

.browser-frame-tall img {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.browser-frame-tall figcaption {
  position: absolute;
  right: 30px;
  bottom: 24px;
  left: 30px;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-weight: 650;
}

.boundaries {
  background: var(--ink);
  color: var(--on-ink);
}

.boundaries .section-heading > p {
  color: #aeb9c5;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.catalog-group {
  padding: 22px 24px;
  border: 1px solid var(--line, rgba(21, 25, 31, .12));
  border-radius: 14px;
  background: var(--surface, #fff);
}

.catalog-group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.catalog-group h3 span {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(21, 25, 31, .07);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.catalog-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.catalog-group li {
  font-size: .95rem;
  line-height: 1.45;
}

.catalog-note {
  margin: 22px 0 0;
  max-width: 70ch;
  font-size: .95rem;
  line-height: 1.6;
  opacity: .82;
}

@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

.boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 18px;
}

.boundary {
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
}

.boundary-yes {
  background: #1c3c34;
}

.boundary-no {
  background: #252b33;
}

.boundary ul {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
  padding-left: 1.2em;
  color: #cbd3dc;
}

.boundary li::marker {
  color: #8eb3ff;
}

.engineering-head {
  max-width: 760px;
  margin-bottom: 70px;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr .82fr .82fr 1.15fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 170px;
  padding: 34px 28px;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  border-left: 0;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.metric span {
  color: var(--muted);
  font-size: .9rem;
}

.test-scope {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(36px, 7vw, 90px);
  margin-top: 72px;
  padding: clamp(34px, 5vw, 58px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.test-scope h3 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
}

.test-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.test-columns ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.15em;
}

.test-columns li::marker {
  color: var(--accent);
}

.install {
  background: color-mix(in srgb, var(--accent-soft) 62%, var(--bg));
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 9vw, 120px);
}

.install-copy h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent-dark);
  font-weight: 800;
  text-underline-offset: 5px;
}

.install-flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-flow li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
}

.install-flow li:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
}

.install-flow strong {
  font-size: 1.15rem;
}

.install-flow span {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(220px, .58fr) minmax(0, 1.42fr);
  align-items: start;
  gap: clamp(44px, 8vw, 110px);
}

.faq-head {
  position: sticky;
  top: 120px;
}

.faq-head h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 26px 50px 26px 0;
  font-size: 1.08rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 24px;
  height: 24px;
  color: var(--accent-dark);
  font-size: 1.35rem;
  line-height: 22px;
  text-align: center;
  content: "+";
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 65ch;
  margin: -4px 0 28px;
  color: var(--muted);
}

.final-download {
  padding-top: 32px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 50px;
  padding: clamp(38px, 7vw, 80px);
  color: var(--on-ink);
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download-panel .eyebrow {
  color: #8eb3ff;
}

.download-panel h2 {
  margin-bottom: 16px;
}

.download-panel p:not(.eyebrow) {
  max-width: 56ch;
  margin: 0;
  color: #b9c4cf;
}

.download-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.button-light {
  color: #12203b;
  background: #f2f6ff;
}

.button-light:hover {
  background: #dce8ff;
}

.download-action span {
  color: #aeb9c5;
  font-size: .8rem;
}

.integrity {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .74rem;
}

.integrity code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.site-footer {
  padding: 54px 0;
  color: #bac4cf;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr;
  align-items: start;
  gap: 50px;
}

.footer-brand {
  color: var(--on-ink);
}

.footer-brand img {
  width: auto;
  height: 32px;
}

.footer-grid p {
  margin: 14px 0 0;
  font-size: .82rem;
}

.footer-grid nav {
  display: grid;
  gap: 10px;
}

.footer-grid nav a {
  color: var(--on-ink);
  font-size: .86rem;
  text-underline-offset: 4px;
}

.trademark {
  max-width: 48ch;
  justify-self: end;
}

.legal-main {
  min-height: calc(100dvh - 72px);
  padding: clamp(60px, 9vw, 110px) 0;
}

.legal-shell {
  max-width: 820px;
}

.legal-shell h1 {
  max-width: none;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-shell h2 {
  margin-top: 54px;
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-shell h3 {
  margin-top: 34px;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
}

.legal-shell a {
  color: var(--accent-dark);
  text-underline-offset: 4px;
}

.legal-card {
  margin-top: 40px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-card p {
  margin: 0;
}

.translation-notice {
  margin: 28px 0 34px;
  padding: 18px 20px;
  color: var(--text);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-size: .94rem;
}

.legal-list ul {
  display: grid;
  gap: 10px;
  padding-left: 1.2em;
}

.updates-main {
  min-height: calc(100dvh - 72px);
}

.updates-hero {
  padding: clamp(56px, 8vw, 112px) 0;
}

.updates-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(38px, 7vw, 96px);
}

.updates-hero-copy h1 {
  max-width: 11ch;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
}

.updates-hero-copy > p:last-child {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.updates-visual {
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.updates-visual img {
  width: 100%;
  min-height: 400px;
  object-fit: cover;
}

.updates-history {
  padding: clamp(76px, 10vw, 132px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.updates-layout {
  display: grid;
  grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(44px, 8vw, 112px);
}

.updates-intro {
  position: sticky;
  top: 116px;
}

.updates-intro h2 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 3.5vw, 3.5rem);
}

.updates-intro p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
}

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

.release-entry {
  min-height: 220px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.release-entry.release-current {
  grid-column: 1 / -1;
  min-height: 0;
  background: color-mix(in srgb, var(--accent-soft) 68%, var(--bg));
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
}

.release-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 24px;
}

.release-meta strong {
  color: var(--text);
  font-size: 1.12rem;
}

.release-meta time,
.release-meta span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
}

.release-current .release-meta span {
  color: var(--accent-dark);
}

.release-entry p {
  margin: 0;
  color: var(--muted);
}

.updates-download {
  padding: clamp(72px, 10vw, 124px) 0;
}

.updates-download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
  padding: clamp(34px, 6vw, 68px);
  color: var(--on-ink);
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.updates-download-panel h2 {
  margin-bottom: 14px;
}

.updates-download-panel p {
  max-width: 58ch;
  margin: 0;
  color: #b9c4cf;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.16, 1, .3, 1), transform .65s cubic-bezier(.16, 1, .3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-late {
  transition-delay: .12s;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: .84rem;
  }

  .updates-layout {
    grid-template-columns: 1fr;
  }

  .updates-intro {
    position: static;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  }

  .hero-visual {
    margin-right: -5vw;
  }

  .feature-main {
    grid-column: 1 / -1;
  }

  .feature-accent,
  .feature-dark,
  .feature-small,
  .feature-wide {
    grid-column: span 6;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .metric:nth-child(3) {
    border-left: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

  .trademark {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  .site-header {
    height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 12px;
    font-size: .95rem;
  }

  .main-nav .nav-download {
    margin-top: 4px;
    text-align: center;
  }

  .language-bar-inner {
    display: block;
    width: 100%;
    padding: 10px 16px 11px;
  }

  .language-bar-label {
    display: block;
    margin-bottom: 7px;
    font-size: .82rem;
  }

  .language-options {
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .language-options::-webkit-scrollbar {
    display: none;
  }

  .language-option {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 10px;
    scroll-snap-align: start;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 70px;
  }

  .hero-grid,
  .screenshot-layout,
  .migration-grid,
  .install-layout,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .updates-hero-grid,
  .updates-layout,
  .updates-download-panel {
    grid-template-columns: 1fr;
  }

  .updates-intro {
    position: static;
  }

  .updates-hero-copy h1 {
    max-width: 12ch;
  }

  .updates-visual img {
    min-height: 320px;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .hero-visual {
    margin: 0 -12vw 0 0;
  }

  .hero-visual img {
    min-height: 340px;
  }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-grid p,
  .proof-grid p:last-child {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
  }

  .proof-grid p:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .13);
  }

  .feature-mosaic {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature-main,
  .feature-accent,
  .feature-dark,
  .feature-wide {
    grid-column: 1;
    min-height: auto;
    padding-right: 30px;
  }

  .feature-index {
    margin-bottom: 28px;
  }

  .shot-copy,
  .migration-copy,
  .faq-head {
    position: static;
  }

  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .test-scope {
    grid-template-columns: 1fr;
  }

  .test-scope h3 {
    max-width: 18ch;
  }

  .download-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 82px 0;
  }

  .legal-shell h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    letter-spacing: -.035em;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    margin-right: -26vw;
  }

  .hero-visual img {
    min-height: 290px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid p:nth-child(odd),
  .proof-grid p:last-child {
    border-right: 0;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

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

  .release-entry.release-current {
    grid-column: auto;
  }

  .metric,
  .metric:nth-child(3) {
    min-height: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .test-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .install-flow li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .migration-flow li {
    padding-left: 54px;
  }

  .migration-flow li::before {
    width: 36px;
    height: 36px;
  }

  .migration-flow li:not(:last-child)::after {
    top: 43px;
    left: 17px;
  }

  .browser-frame-tall {
    max-height: 470px;
  }

  .integrity {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .trademark {
    grid-column: auto;
  }

  .updates-hero {
    padding: 48px 0 64px;
  }

  .updates-hero-copy h1 {
    font-size: clamp(3rem, 14vw, 4.3rem);
  }

  .updates-visual img {
    min-height: 250px;
  }

  .release-entry {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
  }
}
