:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0d1118;
  --surface: rgba(18, 23, 32, 0.76);
  --surface-solid: #121720;
  --surface-light: #171d28;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f5f7;
  --text-soft: #b6becb;
  --text-dim: #7d8796;
  --accent: #ff5b4d;
  --accent-bright: #ff786d;
  --accent-soft: rgba(255, 91, 77, 0.13);
  --cool: #80bfff;
  --cool-soft: rgba(128, 191, 255, 0.12);
  --max-width: 1180px;
  --header-height: 78px;
  --radius-large: 30px;
  --radius-medium: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 84% 4%, rgba(255, 91, 77, 0.09), transparent 28rem),
    radial-gradient(circle at 12% 40%, rgba(128, 191, 255, 0.06), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 76px 76px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-180%);
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  height: var(--header-height);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 32%, #ffd4cf 0 2px, transparent 3px),
    radial-gradient(circle at 48% 52%, var(--accent-bright), #bd2e28 56%, #631b1c 100%);
  box-shadow: 0 0 32px rgba(255, 91, 77, 0.27);
}

.brand-mark::before {
  position: absolute;
  top: 14px;
  left: -5px;
  width: 42px;
  height: 8px;
  transform: rotate(-16deg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  content: "";
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  outline: none;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease;
}

.menu-button span {
  margin: 4px 0;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-5px) rotate(-45deg);
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 7.8vw, 102px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.page-hero h1 .accent-word {
  color: var(--accent);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.section {
  padding: 116px 0;
}

.section-bordered {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  margin-bottom: 56px;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
}

.section-heading h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(35px, 4.8vw, 64px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-heading p {
  max-width: 660px;
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

.status-pill {
  display: inline-flex;
  padding: 7px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(128, 191, 255, 0.25);
  border-radius: 999px;
  background: var(--cool-soft);
  color: #b8d9ff;
  font-size: 12px;
  font-weight: 700;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cool);
  box-shadow: 0 0 12px var(--cool);
  content: "";
}

.contact-panel {
  display: grid;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(255, 91, 77, 0.24);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 91, 77, 0.15), transparent 35%),
    var(--surface);
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.contact-panel h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 1;
}

.contact-panel p {
  margin: 22px 0 0;
  color: var(--text-soft);
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.footer-shell {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.footer-name {
  display: grid;
}

.footer-name strong {
  font-size: 14px;
}

.footer-name span,
.footer-meta {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 12px;
}

.footer-meta {
  text-align: right;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
}

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

.page-main {
  min-height: calc(100svh - var(--header-height));
}

.page-hero {
  padding: 105px 0 90px;
}

.page-hero h1 {
  font-size: clamp(54px, 8vw, 108px);
}

.page-hero-copy {
  display: grid;
  margin-top: 38px;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.page-hero-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 23px);
}

.product-hero {
  overflow: hidden;
}

.product-hero .page-hero-copy {
  align-items: start;
}

.platform-list {
  display: flex;
  margin: 24px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.platform-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
}

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

.feature-card {
  min-height: 260px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.feature-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 56px 0 10px;
  font-size: 25px;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
}

.principle-panel {
  display: grid;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 85% 15%, rgba(128, 191, 255, 0.13), transparent 30%),
    var(--surface);
  grid-template-columns: 0.65fr 1.35fr;
  gap: 60px;
}

.principle-panel h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.principle-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 20px;
  list-style: none;
}

.principle-list li {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.principle-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

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

.principle-list span {
  color: var(--text-soft);
  font-size: 14px;
}

.legal-layout {
  display: grid;
  padding: 86px 0 120px;
  grid-template-columns: minmax(200px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(50px, 9vw, 130px);
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-height) + 36px);
}

.legal-aside p {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 13px;
}

.legal-aside a {
  display: inline-flex;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 13px;
}

.legal-content h1 {
  margin: 0 0 26px;
  font-size: clamp(42px, 6vw, 74px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.legal-lead {
  margin: 0 0 54px;
  color: var(--text-soft);
  font-size: 19px;
}

.legal-content section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 14px;
  font-size: 23px;
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
}

.legal-content ul {
  padding-left: 22px;
}

.notice {
  padding: 20px 22px;
  border: 1px solid rgba(255, 91, 77, 0.24);
  border-radius: 16px;
  background: var(--accent-soft);
  color: #ffd2cd;
}

.support-grid {
  display: grid;
  margin-top: 44px;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.support-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.support-card span {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-card strong {
  display: block;
  margin-top: 14px;
  font-size: 18px;
}

.support-card p {
  margin: 8px 0 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  :root {
      --header-height: 70px;
    }

  .menu-button {
      display: grid;
    }

  .nav-links {
      position: absolute;
      top: calc(var(--header-height) - 1px);
      right: 20px;
      left: 20px;
      display: none;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(13, 17, 24, 0.97);
      box-shadow: var(--shadow);
    }

  .nav-links.is-open {
      display: grid;
    }

  .nav-links a {
      padding: 12px 14px;
    }

  .section-heading,
  .page-hero-copy,
  .contact-panel,
  .principle-panel {
      grid-template-columns: 1fr;
      gap: 28px;
    }

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

  .legal-aside {
      position: static;
    }
}

@media (max-width: 680px) {
  .nav-shell,
  .shell,
  .footer-shell {
      width: min(calc(100% - 28px), var(--max-width));
    }

  .brand-copy span {
      display: none;
    }

  .section {
      padding: 82px 0;
    }

  .section-heading {
      margin-bottom: 38px;
    }

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

  .contact-panel {
      padding: 30px 24px;
    }

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

  .footer-meta {
      text-align: left;
    }

  .page-hero {
      padding: 74px 0 64px;
    }

  .legal-layout {
      padding: 64px 0 86px;
      gap: 42px;
    }
}

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

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