:root {
  color-scheme: light;
  --ink: #171826;
  --muted: #66697a;
  --line: rgba(38, 39, 57, 0.12);
  --paper: rgba(255, 255, 255, 0.88);
  --paper-solid: #ffffff;
  --blue: #3157dd;
  --blue-deep: #253da4;
  --violet: #8665e9;
  --peach: #ffb47d;
  --shadow: 0 28px 80px rgba(48, 43, 91, 0.13);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% -4%, rgba(57, 92, 224, 0.3), transparent 34rem),
    radial-gradient(circle at 95% 6%, rgba(251, 172, 124, 0.33), transparent 29rem),
    linear-gradient(180deg, #f2f2ff 0%, #f8f7fb 34%, #f7f7fa 100%);
  color: var(--ink);
  line-height: 1.72;
}

a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(49, 87, 221, 0.3);
  outline-offset: 3px;
}

.site-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 4px 24px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border-radius: 50%;
  background: #8f70e5 url("logo.png") center / cover no-repeat;
  box-shadow:
    0 12px 28px rgba(46, 58, 151, 0.22);
}

.brand-copy {
  min-width: 0;
}

.brand-name,
.brand-tagline {
  display: block;
}

.brand-name {
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.brand-tagline {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  border-radius: 999px;
  color: #4e5060;
  font-size: 14px;
  font-weight: 650;
  padding: 8px 12px;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-control label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.language-control select {
  min-width: 178px;
  max-width: 34vw;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 9px 34px 9px 11px;
}

html[dir="rtl"] .language-control select {
  padding: 9px 11px 9px 34px;
}

a[href^="mailto:"] {
  display: inline-block;
  direction: ltr;
  unicode-bidi: embed;
}

.locale-note {
  margin: 0 0 14px;
  border: 1px solid rgba(49, 87, 221, 0.15);
  border-radius: 14px;
  background: rgba(239, 242, 255, 0.82);
  color: #3f4770;
  font-size: 13px;
  padding: 10px 14px;
}

.document,
.home-hero {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 72px 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 5%, rgba(255, 181, 128, 0.26), transparent 23rem),
    radial-gradient(circle at 7% 0%, rgba(62, 92, 224, 0.2), transparent 28rem),
    rgba(255, 255, 255, 0.56);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 18px;
  border: 1px solid rgba(49, 87, 221, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  text-transform: uppercase;
}

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

.hero h1,
.home-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 6.2vw, 68px);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero-lead,
.home-lead {
  max-width: 770px;
  margin: 22px 0 0;
  color: #585b6e;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 52px;
  padding: 54px 72px 70px;
}

.document-content {
  min-width: 0;
}

.document-section {
  max-width: 760px;
  margin: 0 0 42px;
  scroll-margin-top: 24px;
}

.document-section:last-child {
  margin-bottom: 0;
}

.document-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.document-section h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.document-section p {
  margin: 0 0 14px;
  color: #404354;
}

.document-section ul,
.document-section ol {
  margin: 10px 0 16px;
  padding-inline-start: 24px;
  color: #404354;
}

.document-section li + li {
  margin-top: 8px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.toc-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  border-radius: 8px;
  color: #606274;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 8px;
  text-decoration: none;
}

.toc a:hover {
  background: rgba(49, 87, 221, 0.06);
  color: var(--blue-deep);
}

.callout {
  margin: 20px 0;
  border: 1px solid rgba(49, 87, 221, 0.16);
  border-radius: var(--radius-md);
  background: #f7f8ff;
  padding: 18px 20px;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.platform-grid,
.support-grid,
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.platform-card,
.support-card,
.home-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  padding: 20px;
}

.platform-card h3,
.support-card h3,
.home-card h2 {
  margin: 0 0 8px;
}

.platform-card p,
.support-card p,
.home-card p {
  margin: 0;
  color: #55586a;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(49, 87, 221, 0.13);
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 740;
  padding: 9px 15px;
  text-decoration: none;
}

.button-link:hover {
  background: var(--blue-deep);
  color: white;
}

.button-link.secondary {
  background: white;
  color: var(--blue-deep);
}

.button-link.secondary:hover {
  background: #f1f3ff;
}

.home-hero {
  padding: 74px 72px 68px;
}

.home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.home-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 24px;
}

.home-card h2 {
  font-size: 21px;
}

.home-card .button-link {
  align-self: flex-start;
  margin-top: auto;
}

.email-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 28px;
  border: 1px solid rgba(49, 87, 221, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 183, 132, 0.22), transparent 15rem),
    #f7f8ff;
  padding: 22px 24px;
}

.email-panel p {
  margin: 3px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 6px 0;
  color: var(--muted);
  font-size: 12px;
}

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

.footer-links a {
  color: inherit;
}

@media (max-width: 940px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 12px;
  }

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

  .toc {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 12px;
  }

  .topbar {
    flex-direction: column;
    padding-bottom: 16px;
  }

  .topbar-actions,
  .primary-nav,
  .language-control {
    width: 100%;
  }

  .topbar-actions {
    align-items: stretch;
  }

  .primary-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 2px;
    row-gap: 2px;
  }

  .primary-nav a {
    flex: 0 0 auto;
  }

  .language-control {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-control select {
    width: 100%;
    max-width: none;
  }

  .hero,
  .home-hero {
    padding: 42px 24px 36px;
  }

  .hero h1,
  .home-hero h1 {
    letter-spacing: -0.045em;
  }

  .document-layout {
    gap: 0;
    padding: 38px 24px 50px;
  }

  .platform-grid,
  .support-grid,
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-card {
    min-height: 190px;
  }

  .email-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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