:root {
  color-scheme: dark;
  --bg: #121920;
  --bg-alt: #17212a;
  --panel: #1b242d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eef3f7;
  --muted: #a8b6c2;
  --accent: #fc693e;
  --accent-2: #ffdf0e;
  --cyan: #4bb7cf;
  --green: #9ad9bd;
  --radius: 16px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 25, 32, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand strong { color: var(--accent-2); font-weight: 700; }

.nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 14px;
  color: var(--muted);
}

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

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  max-width: 150px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #1b242d;
}
.btn-primary:hover { border-color: transparent; filter: brightness(1.06); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; transform: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(75, 183, 207, 0.12), transparent 42%),
    radial-gradient(circle at 12% 82%, rgba(252, 105, 62, 0.1), transparent 40%);
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 223, 14, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 820px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; margin-bottom: 14px; }
h3 { font-size: 17px; margin-bottom: 8px; }

.lead { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 720px; margin: 0; }
.hero .lead { font-size: clamp(16px, 1.9vw, 20px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }

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

.video-card {
  margin: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.video-frame {
  aspect-ratio: 4 / 3;
  background: #0b1116;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.video-frame video { width: 100%; height: 100%; object-fit: contain; display: block; }
.video-card figcaption { padding-top: 12px; }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.tag-muted { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.tag-accent { background: rgba(252, 105, 62, 0.16); color: var(--accent); }

.demo-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hint { color: var(--muted); font-size: 13px; }

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

.card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.steps li {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.steps li p { margin: 0; color: var(--muted); font-size: 14px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: rgba(252, 105, 62, 0.16);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.formats {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.formats .lead { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.chips span {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  font-size: 13px;
  font-weight: 600;
}

.cta { padding: 0 0 88px; }
.cta-inner {
  padding: 56px 40px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(252, 105, 62, 0.16), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(255, 223, 14, 0.12), transparent 45%),
    var(--panel);
}
.cta-inner p { color: var(--muted); margin: 0 0 26px; }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

[dir="rtl"] .nav { margin-inline-start: 0; margin-inline-end: auto; }
[dir="rtl"] .chips { justify-content: flex-start; }

@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .card-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formats { grid-template-columns: 1fr; gap: 24px; }
  .chips { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .header-inner { gap: 10px; }
  .brand span { display: none; }
  .hero { padding: 68px 0 72px; }
  .section { padding: 64px 0; }
  .comparison, .card-grid, .steps { grid-template-columns: 1fr; }
  .cta { padding-bottom: 64px; }
  .cta-inner { padding: 40px 22px; }
  .lang select { max-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
