:root {
  color-scheme: light;
  --ink: #1d2433;
  --muted: #667085;
  --line: #dfe3ea;
  --paper: #ffffff;
  --soft: #f7f8fa;
  --primary: #6c8cff;
  --primary-strong: #496de6;
  --secondary: #ffb86c;
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --shadow: 0 18px 45px rgba(29, 36, 51, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body.legal-page {
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 227, 234, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(108, 140, 255, 0.22);
}

.main-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 14px;
  color: #344054;
}

.hero {
  position: relative;
  min-height: 70svh;
  overflow: hidden;
  background: #101114;
}

.hero-background,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 13, 24, 0.84) 0%, rgba(9, 13, 24, 0.58) 48%, rgba(9, 13, 24, 0.2) 100%),
    linear-gradient(0deg, rgba(9, 13, 24, 0.82) 0%, rgba(9, 13, 24, 0) 45%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  min-height: 70svh;
  margin: 0 auto;
  padding: 72px 0 86px;
}

.hero-copy {
  max-width: 640px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #dbe4ff;
  font-size: 15px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.08;
  font-weight: 900;
}

.hero-lede {
  margin: 22px 0 0;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.button.primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(108, 140, 255, 0.3);
}

.button.primary:hover {
  color: #ffffff;
  background: var(--primary-strong);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
}

.button.light {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.button.disabled {
  cursor: default;
  user-select: none;
}

.section {
  padding: 82px 0;
}

.section.white {
  background: #ffffff;
}

.section.tint {
  background: #f0f4ff;
}

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

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

.section-heading h2,
.legal-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
}

.section-heading p,
.legal-hero p {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--muted);
}

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

.feature-card,
.download-panel,
.support-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(29, 36, 51, 0.06);
}

.feature-card {
  padding: 18px;
  min-height: 224px;
}

.feature-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}

.feature-card h3,
.download-panel h3,
.support-card h2,
.contact-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.feature-card p,
.download-panel p,
.support-card p,
.contact-card p,
.support-card li,
.contact-card li {
  color: var(--muted);
}

.feature-card p {
  margin: 10px 0 0;
  font-size: 14px;
}

.showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 44px;
}

.showcase-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.showcase-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.showcase-list {
  display: grid;
  gap: 18px;
}

.showcase-item {
  padding-left: 18px;
  border-left: 4px solid var(--primary);
}

.showcase-item:nth-child(2) {
  border-left-color: var(--secondary);
}

.showcase-item:nth-child(3) {
  border-left-color: var(--success);
}

.showcase-item h3 {
  margin: 0;
  font-size: 21px;
}

.showcase-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.download-panel,
.support-card,
.contact-card {
  padding: 24px;
}

.download-panel.featured {
  border-color: rgba(108, 140, 255, 0.46);
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 800;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  color: #7a8494;
  font-size: 12px;
}

.footer-links {
  gap: 14px;
}

.footer-links a {
  color: #7a8494;
}

.footer-links a:hover {
  color: var(--primary-strong);
}

.legal-hero {
  padding: 72px 0 42px;
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 82px;
}

.legal-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
}

.legal-toc strong {
  margin-bottom: 6px;
}

.legal-toc a {
  color: #667085;
}

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

.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.legal-section p,
.support-card p,
.contact-card p {
  margin: 0;
}

.support-card ul,
.contact-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.support-card li,
.contact-card li {
  margin: 6px 0;
}

.callout {
  padding: 18px;
  border: 1px solid rgba(255, 184, 108, 0.48);
  border-radius: 8px;
  background: #fff8ee;
  color: #694100;
}

.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 52px;
  }

  .hero-lede {
    font-size: 20px;
  }

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

  .showcase,
  .download-grid,
  .support-grid,
  .contact-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .main-nav {
    gap: 14px;
  }

  .hero-inner {
    align-items: flex-start;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .legal-hero h1 {
    font-size: 29px;
  }

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

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

  .legal-hero {
    padding-top: 52px;
  }
}
