:root {
  color-scheme: dark;

  font-family:
    Inter,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    -apple-system,
    sans-serif;

  font-size: 14px;
  line-height: 1.5;

  --page-background: #06101b;
  --page-background-soft: #091726;
  --panel-background: rgba(13, 27, 43, 0.82);
  --panel-background-raised: rgba(16, 34, 53, 0.92);

  --border: rgba(133, 175, 211, 0.15);
  --border-strong: rgba(133, 175, 211, 0.27);

  --text: #eef6fd;
  --text-secondary: #9db0c3;
  --text-muted: #6e8398;

  --accent: #55d5eb;
  --accent-strong: #39bcd8;
  --accent-soft: rgba(85, 213, 235, 0.12);

  --purple: #a98af3;
  --success: #65d99b;
  --warning: #efbd69;

  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--page-background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  background:
    radial-gradient(
      900px 560px at 75% -10%,
      rgba(52, 167, 218, 0.17),
      transparent 67%
    ),
    radial-gradient(
      760px 560px at 5% 35%,
      rgba(76, 89, 194, 0.1),
      transparent 72%
    ),
    linear-gradient(
      150deg,
      #06101b 0%,
      #081522 45%,
      #06101b 100%
    );

  color: var(--text);
}

a {
  color: inherit;
}

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

.page-light {
  position: fixed;
  z-index: -3;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
}

.page-light-primary {
  top: -300px;
  left: 56%;
  width: 760px;
  height: 760px;

  background:
    radial-gradient(
      circle,
      rgba(64, 192, 226, 0.13),
      transparent 68%
    );
}

.page-light-secondary {
  top: 36%;
  left: -340px;
  width: 700px;
  height: 700px;

  background:
    radial-gradient(
      circle,
      rgba(109, 87, 218, 0.08),
      transparent 70%
    );
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(137, 182, 219, 0.027) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(137, 182, 219, 0.027) 1px,
      transparent 1px
    );

  background-size: 52px 52px;

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8),
      transparent 76%
    );
}

.site-header {
  display: flex;
  width: min(var(--content-width), calc(100% - 48px));
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;

  border: 1px solid rgba(133, 231, 247, 0.24);
  border-radius: 10px;

  background:
    linear-gradient(
      145deg,
      #62d9eb,
      #367fd6
    );

  box-shadow:
    0 10px 32px rgba(56, 157, 205, 0.22);

  color: #06101b;
  font-size: 17px;
  font-weight: 700;
}

.brand-content strong,
.brand-content small {
  display: block;
}

.brand-content strong {
  font-size: 15px;
  font-weight: 600;
}

.brand-content small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.header-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-navigation a {
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
}

.header-navigation a:hover {
  color: var(--text);
}

main {
  display: block;
}

.hero {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 104px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;

  border: 1px solid rgba(85, 213, 235, 0.2);
  border-radius: 999px;

  background: rgba(85, 213, 235, 0.07);
  color: #a9dfeb;
  font-size: 12px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(85, 213, 235, 0.8);
}

.hero h1 {
  max-width: 900px;
  margin: 28px auto 0;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
  margin-top: 7px;

  background:
    linear-gradient(
      90deg,
      #eef8ff 0%,
      #8ddceb 48%,
      #8eacec 100%
    );

  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 730px;
  margin: 26px auto 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 9px;
  font-weight: 500;
  text-decoration: none;
}

.primary-button {
  border: 1px solid rgba(99, 223, 243, 0.5);

  background:
    linear-gradient(
      145deg,
      #58d5e9,
      #3c9fd6
    );

  box-shadow:
    0 13px 34px rgba(48, 154, 204, 0.23);

  color: #06111c;
}

.primary-button:hover {
  filter: brightness(1.06);
}

.secondary-button {
  border: 1px solid var(--border-strong);
  background: rgba(12, 26, 41, 0.64);
  color: var(--text-secondary);
}

.secondary-button:hover {
  border-color: rgba(85, 213, 235, 0.38);
  color: var(--text);
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 42px;
  color: var(--text-muted);
  font-size: 12px;
}

.hero-capabilities span {
  position: relative;
}

.hero-capabilities span:not(:last-child)::after {
  position: absolute;
  top: 7px;
  right: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #52687d;
  content: "";
}

.download-section,
.value-section,
.security-section {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

.download-section {
  padding: 42px 0 82px;
  scroll-margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: right;
}

.section-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.download-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 25px;

  border: 1px solid var(--border);
  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(16, 34, 53, 0.93),
      rgba(10, 23, 37, 0.91)
    );

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.17);
}

.download-card.is-recommended {
  border-color: rgba(85, 213, 235, 0.38);

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(85, 213, 235, 0.05);
}

.card-light {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
}

.card-light-windows {
  background:
    radial-gradient(
      circle,
      rgba(63, 180, 221, 0.11),
      transparent 68%
    );
}

.card-light-macos {
  background:
    radial-gradient(
      circle,
      rgba(156, 117, 231, 0.1),
      transparent 68%
    );
}

.download-card-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.platform-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;

  border: 1px solid var(--border-strong);
  border-radius: 13px;

  background: rgba(7, 17, 29, 0.58);
}

.platform-icon-windows {
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
}

.platform-icon-windows span {
  display: block;
  width: 9px;
  height: 9px;
  background: #64d7ec;
}

.platform-icon-windows span:nth-child(2),
.platform-icon-windows span:nth-child(4) {
  background: #479edb;
}

.platform-icon-macos {
  color: #c3aaf4;
}

.macos-symbol {
  position: relative;
  font-size: 24px;
}

.macos-symbol::before {
  position: absolute;
  top: -7px;
  left: 8px;
  width: 6px;
  height: 10px;
  border-radius: 8px 2px 8px 2px;
  background: #c3aaf4;
  content: "";
  transform: rotate(28deg);
}

.platform-heading {
  min-width: 0;
}

.platform-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.platform-heading h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.platform-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.recommendation-badge {
  padding: 3px 7px;
  border: 1px solid rgba(101, 217, 155, 0.21);
  border-radius: 999px;
  background: rgba(101, 217, 155, 0.08);
  color: var(--success);
  font-size: 10px;
}

.release-information {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 25px;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.release-information > div {
  padding: 15px 0;
}

.release-information > div + div {
  padding-left: 19px;
  border-left: 1px solid var(--border);
}

.release-information span,
.release-information strong {
  display: block;
}

.release-information span {
  color: var(--text-muted);
  font-size: 11px;
}

.release-information strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}

.platform-description {
  position: relative;
  min-height: 66px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.download-actions {
  position: relative;
  display: grid;
  gap: 9px;
  margin-top: 21px;
}

.download-action {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 14px;

  border: 1px solid var(--border-strong);
  border-radius: 9px;

  background: rgba(8, 19, 31, 0.68);
  color: var(--text-secondary);
  text-decoration: none;
}

.download-action span,
.download-action small {
  display: block;
}

.download-action span {
  font-weight: 500;
}

.download-action small {
  color: var(--text-muted);
  font-size: 10px;
  text-align: right;
}

.download-action-primary {
  border-color: rgba(85, 213, 235, 0.38);
  background: rgba(85, 213, 235, 0.1);
  color: #dff9fd;
}

.download-action-primary:hover {
  border-color: rgba(85, 213, 235, 0.65);
  background: rgba(85, 213, 235, 0.15);
}

.download-action-macos {
  border-color: rgba(169, 138, 243, 0.22);
  background: rgba(169, 138, 243, 0.06);
}

.download-action[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

.platform-note {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  color: var(--text-muted);
  font-size: 11px;
}

.platform-note > span {
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-family: serif;
  font-size: 10px;
}

.platform-note p {
  margin: 0;
  line-height: 1.6;
}

.noscript-message {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(239, 189, 105, 0.22);
  border-radius: 9px;
  background: rgba(239, 189, 105, 0.06);
  color: #d9bc87;
}

.value-section {
  padding: 76px 0 82px;
  border-top: 1px solid var(--border);
}

.section-heading-centered {
  justify-content: center;
  text-align: center;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.value-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(11, 25, 40, 0.58);
}

.value-index {
  color: var(--accent);
  font-family: Consolas, monospace;
  font-size: 11px;
}

.value-card h3 {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.value-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.security-section {
  padding: 0 0 94px;
}

.security-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 28px;

  border: 1px solid rgba(85, 213, 235, 0.17);
  border-radius: 15px;

  background:
    radial-gradient(
      540px 250px at 0% 50%,
      rgba(85, 213, 235, 0.07),
      transparent 70%
    ),
    rgba(11, 25, 40, 0.62);
}

.security-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;

  border: 1px solid rgba(101, 217, 155, 0.25);
  border-radius: 15px;

  background: rgba(101, 217, 155, 0.08);
  color: var(--success);
  font-size: 22px;
}

.security-panel h2 {
  margin: 7px 0 0;
  font-size: 21px;
  font-weight: 600;
}

.security-panel p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.site-footer {
  display: grid;
  width: min(var(--content-width), calc(100% - 48px));
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 0 auto;
  padding: 28px 0 34px;
  border-top: 1px solid var(--border);
}

.site-footer strong {
  font-weight: 600;
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 17px;
}

.site-footer nav a {
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
}

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

.site-footer .copyright {
  grid-column: 1 / -1;
  margin-top: 3px;
}

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

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

  .platform-description {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .download-section,
  .value-section,
  .security-section,
  .site-footer {
    width: min(100% - 30px, var(--content-width));
  }

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

  .brand-content small {
    display: none;
  }

  .header-navigation {
    gap: 13px;
  }

  .header-navigation a:last-child {
    display: none;
  }

  .hero {
    padding: 78px 0 76px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-capabilities {
    display: grid;
    grid-template-columns: repeat(2, auto);
  }

  .hero-capabilities span::after {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 12px;
    text-align: left;
  }

  .download-card {
    padding: 19px;
  }

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

  .release-information > div + div {
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

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

  .download-action small {
    text-align: left;
  }

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

  .security-panel {
    grid-template-columns: 1fr;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
