:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #2f5cf6;
  --primary-dark: #173fd3;
  --primary-soft: #eef4ff;
  --accent: #0f766e;
  --warning: #b45309;
  --danger: #b91c1c;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(170%);
}

.announcement {
  border-bottom: 1px solid #dbeafe;
  background: #f4f7ff;
}

.announcement-inner {
  width: min(1180px, 100%);
  min-height: 42px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 680;
}

.announcement-pill {
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
}

.nav {
  width: min(1180px, 100%);
  min-height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.language-link,
.language-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  gap: 7px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.72;
}

.language-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 850;
}

.language-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: min(460px, calc(100vh - 130px));
  overflow: auto;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.language-search-wrap {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 4px 4px 8px;
}

.language-search-wrap span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.language-search {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.language-search:focus {
  outline: 2px solid rgba(47, 92, 246, 0.24);
  border-color: var(--primary);
}

.language-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.language-panel a {
  min-height: 40px;
  justify-content: space-between;
  gap: 12px;
}

.language-panel a span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.language-panel a[aria-current="page"] {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.language-panel a[hidden] {
  display: none;
}

.nav-links .nav-cta {
  margin-left: 8px;
  padding: 0 16px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(47, 92, 246, 0.18);
}

.nav-links .nav-cta:hover {
  color: #fff;
  background: var(--primary-dark);
}

.nav-links a:hover,
.language-link:hover,
.language-menu summary:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  text-decoration: none;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 8%, rgba(47, 92, 246, 0.13), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 72px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.hero-inner.nord {
  display: block;
  max-width: 1120px;
  text-align: center;
}

.hero-inner.nord h1,
.hero-inner.nord .lead {
  margin-left: auto;
  margin-right: auto;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(238, 244, 255, 0.86);
  font-size: 13px;
  font-weight: 760;
}

.hero-bullets {
  width: min(740px, 100%);
  margin: 28px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  list-style: none;
  text-align: left;
}

.hero-bullets li {
  position: relative;
  padding-left: 28px;
  color: #334155;
  font-weight: 650;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: inset 0 0 0 5px #dbeafe;
}

html[dir="rtl"] .hero-bullets li {
  padding-left: 0;
  padding-right: 28px;
}

html[dir="rtl"] .hero-bullets li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .language-panel {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-menu summary::after {
  margin-left: 0;
  margin-right: 2px;
}

html[dir="rtl"] .doc th,
html[dir="rtl"] .doc td {
  text-align: right;
}

.guarantee {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero-screenshots {
  width: min(900px, 100%);
  margin: 38px auto -8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.hero-screenshots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid rgba(191, 219, 254, 0.82);
  border-radius: 22px;
  background: #eef2ff;
  box-shadow: 0 24px 65px rgba(47, 92, 246, 0.18);
}

.hero-screenshots img:nth-child(2) {
  transform: translateY(-18px);
}

.status-strip {
  width: min(920px, calc(100% - 48px));
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.status-item {
  padding: 18px 22px;
  background: #fff;
}

.status-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-item strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
}

.logo-strip {
  width: min(1180px, 100%);
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.logo-pill {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 760;
}

.screenshots-section {
  padding-top: 48px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.screenshot-card {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2ff;
}

.screenshot-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  text-align: center;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.showcase-screenshot,
.advanced-screenshot-panel {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.showcase-screenshot img,
.advanced-screenshot-panel img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  background: #eef2ff;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.feature-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.feature-row p {
  margin: 0;
}

.feature-row.highlight {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #fff, #f4f7ff);
}

.section.alt {
  width: 100%;
  max-width: none;
  background: #fff;
  border-block: 1px solid var(--line);
}

.section.alt > .section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 36px;
  align-items: center;
}

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

.protocol-card {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.protocol-card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 800;
}

.doc-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid #bfdbfe;
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 10%, rgba(47,92,246,.12), transparent 24%),
    #fff;
  box-shadow: var(--shadow);
}

.doc-links {
  display: grid;
  gap: 10px;
}

.doc-link {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font-weight: 720;
}

.doc-link:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  text-decoration: none;
}

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

.faq-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.faq-item strong {
  display: block;
  margin-bottom: 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin: 18px 0 16px;
  max-width: 780px;
  font-size: clamp(38px, 5vw, 58px);
}

h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

p {
  color: #334155;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 720;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.20);
}

.button:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.button.secondary:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.hero-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 58px 24px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 24px;
}

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

.card {
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card p {
  margin-bottom: 0;
}

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

.step {
  padding: 18px;
  border-top: 3px solid var(--primary);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.step span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.doc-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 36px 24px 72px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
}

.doc-toc {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
}

.doc-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #334155;
  font-size: 14px;
}

.doc-toc a:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.doc {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.doc h1 {
  margin-top: 0;
  font-size: 40px;
}

.doc section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.doc section:first-of-type {
  border-top: 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.doc th,
.doc td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--surface-soft);
}

.callout {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: #1e3a8a;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.release-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.download-list {
  width: min(1180px, 100%);
  margin: 22px auto 0;
  display: grid;
  gap: 14px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.download-card h2 {
  margin-bottom: 8px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: flex-end;
}

.release-meta {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 0;
}

.release-meta div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
}

.release-meta dt {
  color: var(--muted);
  font-weight: 720;
}

.release-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.release-meta code {
  font-size: 13px;
}

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

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .announcement-inner,
  .nav {
    min-height: auto;
    padding: 14px 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .language-menu {
    position: static;
  }

  .language-panel {
    left: 20px;
    right: 20px;
    width: auto;
  }

  .hero-inner,
  .hero-inner.nord,
  .download-panel,
  .download-card,
  .split,
  .doc-cta {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: flex-start;
  }

  .hero-inner {
    padding-top: 44px;
  }

  .grid,
  .steps,
  .hero-bullets,
  .status-strip,
  .showcase,
  .screenshot-grid,
  .logo-strip,
  .protocol-grid,
  .faq-grid,
  .hero-screenshots {
    grid-template-columns: 1fr 1fr;
  }

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

  .doc-toc {
    position: static;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 38px;
  }

  .grid,
  .steps,
  .hero-bullets,
  .status-strip,
  .showcase,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .logo-strip,
  .protocol-grid,
  .faq-grid,
  .hero-screenshots {
    grid-template-columns: 1fr;
  }

  .hero-screenshots {
    margin-top: 28px;
  }

  .hero-screenshots img:nth-child(2) {
    transform: none;
  }

  .hero-screenshots img:nth-child(n+3) {
    display: none;
  }

  .doc {
    padding: 22px;
  }

  .language-panel {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 180px);
  }

  .language-options {
    grid-template-columns: 1fr;
  }

}
