:root {
  --bg: #000000;
  --bg-soft: #121214;
  --surface: rgba(28, 28, 30, 0.84);
  --surface-strong: rgba(44, 44, 46, 0.94);
  --text: #f2f2f7;
  --muted: #aeaeb2;
  --line: rgba(84, 84, 88, 0.62);
  --brand: #0a84ff;
  --brand-strong: #0066d6;
  --accent: #5e5ce6;
  --focus: rgba(10, 132, 255, 0.46);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-lg: 0 28px 74px rgba(0, 0, 0, 0.52);
  --shadow-md: 0 14px 44px rgba(0, 0, 0, 0.4);
  --mono:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    "Avenir Next",
    "SF Pro Text",
    "PingFang SC",
    "Hiragino Sans GB",
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(10, 132, 255, 0.14), transparent 40%),
    radial-gradient(circle at 84% 18%, rgba(94, 92, 230, 0.12), transparent 42%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  overflow-x: hidden;
}

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

.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--mono);
}

.muted {
  color: var(--muted);
}

.container {
  width: min(1160px, calc(100vw - 44px));
  margin: 0 auto;
}

.container-wide {
  width: calc(100vw - 44px);
  max-width: none;
}

.bg-grid,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.16;
}

.bg-glow {
  inset: -16%;
  background:
    radial-gradient(circle at 74% 24%, rgba(10, 132, 255, 0.16), transparent 44%),
    radial-gradient(circle at 26% 80%, rgba(94, 92, 230, 0.1), transparent 38%);
  filter: blur(34px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  backdrop-filter: blur(12px) saturate(120%);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.16px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #f7fffe;
  background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 54%, var(--accent)));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 38%, transparent);
}

.brand-text {
  font-size: 15px;
}

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

.nav a {
  min-height: 44px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 86%, var(--brand) 14%);
}

.hero {
  padding: 60px 0 30px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.88fr);
  gap: 20px;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface) 88%);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24px;
  color: color-mix(in srgb, var(--brand) 82%, var(--text));
}

.hero-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 36%, transparent);
  background: color-mix(in srgb, var(--brand) 16%, var(--surface) 84%);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18px;
  color: color-mix(in srgb, var(--brand) 90%, var(--text));
}

.hero-top-link:hover {
  background: color-mix(in srgb, var(--brand) 24%, var(--surface) 76%);
  border-color: color-mix(in srgb, var(--brand) 48%, transparent);
}

.hero-top-link + .hero-title {
  margin-top: 18px;
}

.crumb {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08px;
}

.crumb a {
  color: color-mix(in srgb, var(--brand) 86%, var(--text));
}

.hero-title {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.72px;
}

.hero-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 68ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.1px;
  background: var(--surface);
  color: var(--text);
}

.btn.primary {
  color: #f7fbff;
  border-color: color-mix(in srgb, var(--brand) 46%, transparent);
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
}

.btn.ghost {
  background: color-mix(in srgb, var(--surface) 78%, var(--accent) 22%);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.22px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.summary-card {
  display: grid;
  gap: 10px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.78;
}

.list li + li {
  margin-top: 2px;
}

.list.plain {
  list-style: none;
  padding-left: 0;
}

.list a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--brand) 58%, transparent);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.mini-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg-soft) 12%);
}

.mini-stat-num {
  font-weight: 800;
  font-size: 16px;
}

.mini-stat-label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 44px 0;
}

.section[id] {
  scroll-margin-top: 84px;
}

.section-head {
  margin-bottom: 16px;
  display: grid;
  gap: 8px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 32px);
  letter-spacing: -0.24px;
}

.section-head p {
  margin: 0;
}

.grid.about-cards {
  margin-top: 10px;
  gap: 18px;
}

.grid.about-cards + .grid.about-cards {
  margin-top: 18px;
}

.about-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
}

.about-card .list {
  margin-top: 2px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card-head h3 {
  margin: 0;
  font-size: 22px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.status-chip.is-live {
  color: #bff7ff;
  border: 1px solid rgba(100, 210, 255, 0.42);
  background: rgba(10, 132, 255, 0.22);
}

.status-chip.is-beta {
  color: #ddd8ff;
  border: 1px solid rgba(94, 92, 230, 0.48);
  background: rgba(94, 92, 230, 0.2);
}

.status-chip.is-plan {
  color: #d8d8de;
  border: 1px solid rgba(142, 142, 147, 0.44);
  background: rgba(72, 72, 74, 0.44);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg-soft) 12%);
}

.card-actions,
.back-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.back-row {
  margin-top: 16px;
}

.site-footer {
  margin-top: 22px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .summary-card,
  .section {
    animation: rise-up 560ms ease both;
  }

  .summary-card {
    animation-delay: 70ms;
  }

  .section:nth-of-type(2) {
    animation-delay: 120ms;
  }

  .section:nth-of-type(3) {
    animation-delay: 180ms;
  }

  .btn,
  .nav a,
  .card {
    transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
  }

  .btn:hover,
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .nav a:hover {
    transform: translateY(-1px);
  }
}

@keyframes rise-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .container,
  .container-wide {
    width: calc(100vw - 28px);
  }

  .header-inner {
    min-height: 62px;
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-direction: column;
    justify-content: center;
  }

  .nav {
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-title {
    font-size: clamp(30px, 11vw, 42px);
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 36px 0;
  }

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