:root {
  --bg: #070b14;
  --bg-elevated: #0c1424;
  --bg-panel: rgba(14, 24, 44, 0.88);
  --line: rgba(56, 132, 255, 0.22);
  --line-strong: rgba(80, 160, 255, 0.45);
  --text: #e8eefc;
  --muted: #93a4c7;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-deep: #1d4ed8;
  --cyan: #38bdf8;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "Sarasa Mono SC", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(37, 99, 235, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(180deg, #070b14 0%, #0a1220 45%, #070b14 100%);
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.35), rgba(14, 24, 44, 0.9)),
    repeating-linear-gradient(0deg, transparent, transparent 6px, rgba(96, 165, 250, 0.25) 6px, rgba(96, 165, 250, 0.25) 7px),
    repeating-linear-gradient(90deg, transparent, transparent 6px, rgba(96, 165, 250, 0.25) 6px, rgba(96, 165, 250, 0.25) 7px);
  border: 1px solid var(--line-strong);
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 13px;
}

.logo-text span {
  color: var(--blue-bright);
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(59, 130, 246, 0.12);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(12, 20, 36, 0.8);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.lang-switch button.active {
  background: rgba(59, 130, 246, 0.25);
  color: var(--text);
}

.hero {
  padding: 72px 0 56px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue-bright);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-bright);
  text-shadow: 0 0 28px rgba(59, 130, 246, 0.35);
}

.hero-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 15px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #4f8cff, #2563eb);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(12, 20, 36, 0.7);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.12);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--blue-bright);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 20, 36, 0.55);
  color: var(--muted);
  font-size: 13px;
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  margin-bottom: 2px;
}

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--bg-panel);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.18), transparent 40%),
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.92;
}

.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.82);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
}

.section {
  padding: 72px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(12, 20, 36, 0.35), transparent);
}

.section-head {
  margin-bottom: 32px;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.platform-card,
.feature-card,
.reco-card,
.scene-card,
.compat-item,
.step-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(22, 38, 70, 0.35), rgba(12, 20, 36, 0.75)),
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(59, 130, 246, 0.04) 22px, rgba(59, 130, 246, 0.04) 23px);
  box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.06);
}

.platform-card {
  padding: 18px 16px;
  transition: 0.2s ease;
}

.platform-card:hover,
.feature-card:hover,
.reco-card:hover,
.scene-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.platform-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.platform-card p,
.feature-card p,
.scene-card p,
.compat-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.status {
  color: var(--ok);
}

.status.warn {
  color: var(--warn);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 13px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.how-copy,
.how-visual {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.how-copy ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.how-copy li {
  margin-bottom: 12px;
}

.how-copy li strong {
  color: var(--text);
}

.how-visual {
  overflow: hidden;
  padding: 0;
  position: relative;
}

.how-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.code-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: #9ec1ff;
  line-height: 1.55;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.capability-list li {
  list-style: none;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 20, 36, 0.7);
  color: var(--muted);
  font-size: 14px;
}

.capability-list {
  padding: 0;
  margin-left: 0;
}

.capability-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.compat-item {
  padding: 18px;
}

.compat-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.reco-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reco-card h3 {
  margin: 0;
  font-size: 20px;
}

.reco-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.reco-meta span strong {
  color: var(--text);
  font-weight: 600;
}

.reco-card .btn {
  margin-top: auto;
  width: 100%;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 22px;
}

.step-num {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 13px;
}

.step-card h3 {
  margin: 0 0 8px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.error-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 14px;
}

.error-box strong {
  color: #fff;
}

.scene-card {
  padding: 20px;
}

.scene-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item details {
  padding: 16px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--blue-bright);
  font-family: var(--mono);
}

.faq-item details[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cta {
  padding: 28px 0 80px;
}

.cta-panel {
  padding: 40px 32px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(18, 32, 58, 0.95), rgba(10, 16, 30, 0.95));
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
}

.cta-panel p {
  margin: 0 0 22px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 14, 0.9);
  padding: 48px 0 28px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--blue-bright);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding: 56px 0 28px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.08);
  font-weight: 650;
}

td {
  color: var(--muted);
}

td strong {
  color: var(--text);
}

.media-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.doc-block {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  margin-bottom: 16px;
}

.doc-block h3 {
  margin: 0 0 8px;
}

.doc-block p,
.doc-block li {
  color: var(--muted);
  font-size: 14px;
}

.doc-block ol,
.doc-block ul {
  margin: 0;
  padding-left: 18px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual,
.section-head {
  animation: rise 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

@media (max-width: 980px) {
  .hero-grid,
  .how-grid,
  .media-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-5,
  .grid-3,
  .steps,
  .compat-grid,
  .capability-list {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, calc(100% - 28px));
  }

  .grid-5,
  .grid-3,
  .steps,
  .compat-grid,
  .capability-list,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }
}
