:root {
  color-scheme: light;
  --shell-width: 1500px;
  --sidebar-width: 168px;
  --ink: #102338;
  --ink-soft: #30495f;
  --muted: #667d91;
  --sky: #71d5ff;
  --sky-strong: #39b7f2;
  --sky-deep: #127fc3;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(244, 249, 255, 0.92);
  --line: rgba(103, 154, 193, 0.18);
  --line-strong: rgba(57, 183, 242, 0.32);
  --shadow-lg: 0 24px 64px rgba(72, 113, 145, 0.08);
  --shadow-md: 0 16px 36px rgba(72, 113, 145, 0.06);
  --radius-2xl: 32px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --font-ui:
    "Aptos", "Segoe UI Variable Text", "Segoe UI", "PingFang SC",
    "Microsoft YaHei UI", sans-serif;
  --font-display:
    "Aptos Display", "Segoe UI Variable Display", "Segoe UI",
    "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 0%, rgba(133, 214, 255, 0.18), transparent 24%),
    radial-gradient(circle at 100% 12%, rgba(186, 232, 255, 0.2), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #edf5ff 55%, #f8fbff 100%);
  color: var(--ink);
  font-family: var(--font-ui);
}

body {
  padding: 24px 18px 40px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.88), transparent 26%),
    radial-gradient(circle at 82% 30%, rgba(224, 243, 255, 0.82), transparent 24%);
  filter: blur(10px);
}

body::after {
  opacity: 0.26;
  background:
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 88%);
}

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

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

code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(229, 245, 255, 0.96);
  border: 1px solid rgba(103, 154, 193, 0.16);
  color: var(--sky-deep);
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  font-size: 0.92em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 28px;
  width: min(var(--shell-width), calc(100vw - 36px));
  margin: 0 auto;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.language-rail {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.language-switch,
.top-link,
.hero-action,
.demo-shortcut,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(80, 121, 153, 0.06);
  backdrop-filter: blur(12px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
  font-size: 14px;
  font-weight: 600;
}

.language-switch:hover,
.top-link:hover,
.hero-action:hover,
.demo-shortcut:hover,
.footer-links a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(80, 121, 153, 0.1);
}

.language-switch.is-active,
.hero-action-primary {
  border-color: rgba(57, 183, 242, 0.18);
  background: linear-gradient(135deg, #9ae5ff 0%, #62cdf9 100%);
  color: #0b2235;
  box-shadow: 0 16px 34px rgba(57, 183, 242, 0.16);
}

.topbar,
.hero-section,
.content-section,
.page-footer {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.topbar::before,
.hero-section::before,
.content-section::before,
.page-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.topbar > *,
.hero-section > *,
.content-section > *,
.page-footer > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.76);
}

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

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-kicker,
.eyebrow,
.stack-label,
.demo-kicker,
.card-kicker,
.hero-metric-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
}

[lang="zh-CN"] .brand-kicker,
[lang="zh-CN"] .eyebrow,
[lang="zh-CN"] .stack-label,
[lang="zh-CN"] .demo-kicker,
[lang="zh-CN"] .card-kicker,
[lang="zh-CN"] .hero-metric-label {
  text-transform: none;
  letter-spacing: 0.08em;
}

.brand-kicker {
  color: rgba(16, 35, 56, 0.5);
}

.brand-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.page-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 48px;
  min-height: 560px;
  padding: 64px 68px;
  background:
    radial-gradient(circle at 84% 12%, rgba(129, 216, 255, 0.22), transparent 24%),
    linear-gradient(145deg, rgba(242, 248, 255, 0.94) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(238, 247, 255, 0.94) 100%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.demo-kicker,
.card-kicker,
.hero-metric-label {
  color: var(--sky-deep);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
}

.hero-title,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-title {
  font-size: clamp(44px, 4.8vw, 70px);
  line-height: 0.94;
}

.hero-subtitle {
  margin: 22px 0 0;
  max-width: 24ch;
  font-size: clamp(24px, 2.25vw, 36px);
  line-height: 1.26;
  color: var(--ink-soft);
}

[lang="zh-CN"] .hero-subtitle {
  max-width: 22ch;
}

.hero-text,
.section-text,
.section-intro,
.feature-card p,
.stack-card p,
.status-placeholder p,
.roadmap-item,
.example-list li,
.demo-highlight p,
.demo-media-head p,
.flow-step-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 60ch;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.hero-metric,
.hero-fact-card,
.flow-step-card,
.feature-card,
.stack-card,
.video-panel,
.side-panel,
.roadmap-item,
.status-placeholder {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
  box-shadow: var(--shadow-md);
}

.hero-metric,
.hero-fact-card {
  padding: 18px 18px 16px;
}

.hero-metric strong,
.hero-fact-card strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

.hero-actions,
.action-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-visual {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-image-frame {
  padding: 18px;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 245, 255, 0.92) 100%);
  box-shadow: 0 24px 54px rgba(75, 116, 146, 0.1);
}

.hero-image {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(76, 117, 147, 0.12);
}

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

.hero-facts-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 330px;
}

.hero-fact-link {
  display: block;
}

.hero-fact-link code,
.access-link code {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 160ms ease;
}

.hero-fact-link:hover code,
.hero-fact-link:focus-visible code,
.access-link:hover code,
.access-link:focus-visible code {
  text-decoration-color: currentColor;
}

.hero-fact-card span {
  display: block;
  color: var(--sky-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

[lang="zh-CN"] .hero-fact-card span {
  letter-spacing: 0.04em;
}

.content-section {
  padding: 44px 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.88));
}

.content-section::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 220, 255, 0.18), transparent 72%);
  pointer-events: none;
}

.section-heading {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(103, 154, 193, 0.14);
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(57, 183, 242, 0.92), rgba(144, 223, 255, 0.78));
}

.section-heading h2 {
  max-width: 16ch;
  font-size: clamp(34px, 3.1vw, 50px);
  line-height: 1.04;
}

[lang="zh-CN"] .section-heading h2 {
  max-width: none;
}

.section-intro {
  margin: 0 0 26px;
  max-width: 70ch;
}

.background-grid,
.review-layout {
  display: grid;
  gap: 24px;
}

.background-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: start;
}

.section-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.95;
}

.pain-grid,
.example-list,
.roadmap-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pain-grid {
  display: grid;
  gap: 12px;
}

.pain-grid li {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.94));
  box-shadow: var(--shadow-md);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.78;
}

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

.feature-card,
.stack-card,
.video-panel,
.side-panel,
.roadmap-item,
.status-placeholder {
  overflow: hidden;
}

.feature-card::before,
.stack-card::before,
.video-panel::before,
.side-panel::before,
.status-placeholder::before,
.roadmap-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(57, 183, 242, 0.8), rgba(151, 227, 255, 0.2));
  pointer-events: none;
}

.feature-card {
  min-height: 238px;
  padding: 24px 24px 22px;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 14px;
}

.feature-card h3,
.side-block h3 {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.32;
}

.feature-card h3 {
  font-size: 28px;
}

[lang="zh-CN"] .feature-card h3 {
  font-size: 26px;
}

.feature-card p {
  margin: 0;
}

.status-grid .feature-card {
  min-height: 214px;
}

.flow-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(234, 246, 255, 0.96) 0%, rgba(251, 253, 255, 0.98) 100%);
  box-shadow: var(--shadow-md);
}

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

.flow-step-card {
  min-height: 188px;
  padding: 20px;
}

.flow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(229, 245, 255, 0.96);
  border: 1px solid rgba(103, 154, 193, 0.18);
  color: var(--sky-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.flow-step-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
}

.flow-step-card p {
  margin: 12px 0 0;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stack-card {
  padding: 20px 18px 18px;
}

.stack-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.stack-card p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.72;
}

.status-placeholder {
  padding: 26px 28px;
  border-style: dashed;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(239, 247, 255, 0.95));
}

.status-placeholder p {
  margin: 0;
}

.demo-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(235, 247, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow-md);
}

.demo-highlight {
  max-width: 64ch;
}

.demo-kicker {
  display: inline-block;
  margin-bottom: 12px;
}

.demo-highlight strong {
  display: block;
  font-size: 28px;
  line-height: 1.24;
  color: var(--ink);
}

.demo-highlight p {
  margin: 12px 0 0;
}

.demo-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.review-layout {
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  align-items: stretch;
}

.video-panel {
  padding: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 247, 255, 0.94));
}

.demo-media-head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.demo-media-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(229, 245, 255, 0.96);
  border: 1px solid rgba(103, 154, 193, 0.16);
  color: var(--sky-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[lang="zh-CN"] .demo-media-label {
  letter-spacing: 0.08em;
}

.demo-media-head p {
  margin: 0;
  color: var(--ink-soft);
}

.demo-video {
  width: 100%;
  border-radius: 18px;
  background: #10161f;
  border: 1px solid rgba(103, 154, 193, 0.16);
  box-shadow: 0 20px 42px rgba(76, 117, 147, 0.12);
}

.side-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.side-block {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(103, 154, 193, 0.14);
  background: rgba(237, 247, 255, 0.7);
}

.side-block h3 {
  font-size: 22px;
}

.example-list {
  display: grid;
  gap: 12px;
}

.example-list li {
  position: relative;
  padding: 0 0 0 18px;
  color: var(--ink-soft);
}

.access-link {
  display: inline-block;
}

.example-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(57, 183, 242, 0.92), rgba(128, 217, 255, 0.9));
  box-shadow: 0 0 0 4px rgba(57, 183, 242, 0.08);
}

.action-row {
  margin-top: 4px;
}

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

.roadmap-item {
  padding: 58px 18px 22px;
}

.roadmap-item::before {
  counter-increment: roadmap;
  content: "0" counter(roadmap);
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(228, 245, 255, 0.96);
  border: 1px solid rgba(103, 154, 193, 0.14);
  color: var(--sky-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.76);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-copy strong {
  color: var(--ink);
  font-size: 17px;
}

.footer-links {
  justify-content: flex-end;
}

@media (max-width: 1380px) {
  .page-shell {
    grid-template-columns: 1fr;
    width: min(var(--shell-width), calc(100vw - 28px));
  }

  .language-rail {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (max-width: 1180px) {
  .background-grid,
  .review-layout,
  .demo-spotlight {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 48px 42px;
    gap: 36px;
  }

  .content-section {
    padding: 38px 40px;
  }

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

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

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

  .demo-shortcuts {
    justify-content: flex-start;
  }
}

@media (max-width: 880px) {
  body {
    padding: 12px;
  }

  .topbar,
  .hero-section,
  .content-section,
  .page-footer {
    border-radius: 22px;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .brand {
    justify-self: start;
  }

  .hero-section {
    padding: 32px 24px;
  }

  .content-section {
    padding: 30px 24px;
  }

  .hero-metrics,
  .hero-facts,
  .feature-grid,
  .flow-track,
  .stack-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .page-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0;
  }

  .page-shell {
    width: 100%;
  }

  .language-rail {
    padding: 14px 14px 0;
    gap: 8px;
  }

  .page-content {
    gap: 14px;
  }

  .topbar,
  .hero-section,
  .content-section,
  .page-footer {
    border-radius: 0;
  }

  .topbar {
    padding: 16px 14px 0;
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
  }

  .hero-section,
  .content-section,
  .page-footer {
    padding: 24px 16px;
  }

  .hero-actions,
  .action-row,
  .footer-links,
  .demo-shortcuts {
    flex-direction: column;
  }

  .language-switch,
  .top-link,
  .hero-action,
  .demo-shortcut,
  .footer-links a {
    width: 100%;
  }
}
