:root {
  color-scheme: dark;
  --bg: #12141d;
  --bg-soft: #171a25;
  --surface: #1b1d2a;
  --surface-2: #2b2e3f;
  --text: #e6e9f5;
  --muted: #adb4ca;
  --quiet: #858da5;
  --line: #454b60;
  --accent: #6478dc;
  --accent-ink: #ffffff;
  --success: #2e7d32;
  --warm: #e7c978;
  --coral: #df7a68;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.4rem, 11vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.site-header,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a,
.site-footer a,
.privacy-points a,
.contact-band a,
.policy a,
.translations a {
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover,
.privacy-points a:hover,
.contact-band a:hover,
.policy a:hover,
.translations a:hover {
  color: var(--accent);
}

.hero {
  width: min(1160px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1.14fr);
  align-items: center;
  gap: 58px;
  padding: 42px 0 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.button.disabled {
  color: var(--quiet);
  background: rgba(255, 255, 255, 0.035);
  cursor: default;
}

.availability {
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 0.92rem;
}

.product-visual {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: grid;
  grid-template-columns: 12px 12px 12px 1fr;
  gap: 8px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #666a61;
}

.window-bar span:first-child {
  background: var(--coral);
}

.window-bar span:nth-child(2) {
  background: var(--warm);
}

.window-bar span:nth-child(3) {
  background: var(--accent);
}

.window-bar strong {
  justify-self: end;
  color: var(--muted);
  font-size: 0.9rem;
}

.diff-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 286px;
}

.diff-preview section {
  padding: 28px;
}

.diff-preview section + section {
  border-left: 1px solid var(--line);
  background: rgba(100, 120, 220, 0.12);
}

.label,
.platform {
  margin: 0 0 18px;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diff-preview section p:last-child {
  margin: 0;
  font-size: clamp(1.34rem, 2.3vw, 1.95rem);
  line-height: 1.18;
}

.style-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.style-strip span {
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 34px;
}

.feature-grid,
.download-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

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

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article,
.download-card {
  min-height: 194px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.feature-grid p,
.download-card p,
.policy p,
.translations p {
  color: var(--muted);
}

.download-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.download-card .button {
  justify-self: start;
  margin-top: 8px;
}

.featured-download {
  background: rgba(100, 120, 220, 0.12);
}

.privacy-band,
.contact-band {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.contact-band {
  margin-bottom: 86px;
}

.privacy-points {
  display: grid;
  gap: 14px;
}

.privacy-points p,
.contact-band p {
  margin: 0;
  color: var(--muted);
}

.privacy-points a,
.contact-band a,
.policy a,
.translations a {
  color: var(--accent);
  font-weight: 760;
}

.site-footer {
  min-height: 100px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
}

.policy-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 90px;
}

.policy {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.policy h1,
.not-found h1 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.policy h2 {
  margin-top: 34px;
  font-size: 1.38rem;
  line-height: 1.2;
}

.policy ul {
  color: var(--muted);
}

.translations {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 760;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.not-found {
  min-height: 100vh;
  width: min(520px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 16px;
}

.not-found p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .section-heading,
  .privacy-band,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .product-visual,
  .privacy-band,
  .contact-band,
  .policy {
    border-radius: 12px;
  }

  .feature-grid,
  .download-grid,
  .diff-preview {
    grid-template-columns: 1fr;
  }

  .diff-preview section + section {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .privacy-band,
  .contact-band,
  .policy {
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .hero,
  .section,
  .privacy-band,
  .contact-band,
  .policy-shell {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: clamp(3.6rem, 22vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
