:root {
  --bg: #0a0a0c;
  --surface: #121217;
  --ink: #f5f5f7;
  --muted: #9a9aa6;
  --line: rgba(255, 255, 255, 0.1);
  --race: #ff2d2d;
  --race-2: #ff6a00;
  --race-3: #ffd400;
  --asphalt: #16161c;
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Bahnschrift", "Segoe UI Semibold", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "Consolas", monospace;
  --max: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 45% at 20% -10%, rgba(255, 45, 45, 0.2), transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(255, 106, 0, 0.12), transparent 30%),
    linear-gradient(180deg, #0a0a0c 0%, #101014 45%, #0a0a0c 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo-mark {
  width: 38px;
  height: 38px;
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--race), var(--race-2));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(255, 45, 45, 0.4);
}

.logo-text span { color: var(--race); }

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
}

.lang-switch button.active {
  background: rgba(255, 45, 45, 0.16);
  color: #ff8a7a;
  font-weight: 700;
}

.hero {
  position: relative;
  padding: 72px 0 56px;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.speed-lines span {
  position: absolute;
  height: 2px;
  right: -10%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 45, 0.85), transparent);
  animation: dash 1.1s linear infinite;
  opacity: 0.55;
}

.speed-lines span:nth-child(1) { top: 16%; width: 42%; animation-duration: 0.9s; }
.speed-lines span:nth-child(2) { top: 28%; background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.8), transparent); animation-duration: 1.2s; animation-delay: -0.2s; }
.speed-lines span:nth-child(3) { top: 44%; width: 28%; animation-duration: 0.8s; animation-delay: -0.4s; }
.speed-lines span:nth-child(4) { top: 62%; width: 48%; background: linear-gradient(90deg, transparent, rgba(255, 212, 0, 0.55), transparent); animation-duration: 1.05s; animation-delay: -0.1s; }
.speed-lines span:nth-child(5) { top: 78%; width: 32%; animation-duration: 0.95s; animation-delay: -0.35s; }

.hero-grid {
  position: relative;
  z-index: 1;
  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: 16px;
}

.tag {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 45, 45, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-transform: uppercase;
  animation: surge 0.7s ease both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--race), var(--race-2), var(--race-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 540px;
  animation: surge 0.8s ease 0.05s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  animation: surge 0.85s ease 0.1s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateX(3px) translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--race), var(--race-2));
  color: #fff;
  box-shadow: 0 0 28px rgba(255, 45, 45, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  animation: surge 0.95s ease 0.08s both;
}

.speed-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 45, 45, 0.35);
  box-shadow: var(--shadow), 0 0 40px rgba(255, 45, 45, 0.12);
  background: var(--surface);
  transform: skewX(-4deg);
}

.speed-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: skewX(4deg) scale(1.08);
  filter: contrast(1.08) saturate(1.1);
}

.speed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 48%, transparent 62%);
  transform: translateX(-80%);
  animation: gloss 2.2s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.speed-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.88);
  background: linear-gradient(90deg, rgba(255, 45, 45, 0.35), transparent);
}

.hud {
  position: absolute;
  left: -8px;
  top: 18px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid rgba(255, 106, 0, 0.45);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--race-3);
  letter-spacing: 0.08em;
  animation: pulse 1.4s ease-in-out infinite;
}

.section { padding: 76px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.7), transparent);
}

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--race);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.grid-5,
.grid-3,
.grid-2,
.compat-grid,
.scene-grid {
  display: grid;
  gap: 14px;
}

.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.compat-grid { grid-template-columns: repeat(4, 1fr); }
.scene-grid { grid-template-columns: repeat(3, 1fr); }

.platform-card,
.feature-card,
.plan-card,
.step-card,
.scene-card,
.compat-item,
.faq-item,
.panel,
.dl-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.platform-card:hover,
.feature-card:hover,
.plan-card:hover,
.scene-card:hover,
.dl-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 45, 45, 0.45);
  box-shadow: 0 0 24px rgba(255, 45, 45, 0.1);
}

.race-bar {
  width: 42px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--race), var(--race-2));
}

.race-bar.alt { background: linear-gradient(90deg, var(--race-2), var(--race-3)); }

.platform-card h3,
.feature-card h3,
.plan-card h3,
.step-card h3,
.scene-card h3,
.dl-card h3,
.compat-item h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 900;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-line span:last-child {
  color: var(--ink);
  text-align: right;
  font-weight: 700;
}

.status { color: var(--ok) !important; }

.feature-card p,
.scene-card p,
.compat-item p,
.step-card p,
.plan-card p,
.dl-card p,
.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.flow-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}

.flow-num {
  width: 44px;
  height: 44px;
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--race), var(--race-2));
  color: #fff;
  font-weight: 900;
}

.flow-list h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-media { padding: 0; overflow: hidden; }

.panel-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.code-block {
  margin: 0;
  padding: 16px 18px;
  background: #0c0c10;
  color: #dddde6;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.code-block .c { color: #7f7f8f; }
.code-block .k { color: #ff7a55; }
.code-block .v { color: #ffd400; }

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.capability-list span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 45, 45, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-card .btn,
.dl-card .btn {
  margin-top: 14px;
  width: 100%;
}

.step-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--race);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tips {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #f0d9a0;
}

.tips strong { color: var(--warn); }

.faq-list { display: grid; gap: 10px; }

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta { padding: 20px 0 10px; }

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 42px 28px;
  text-align: center;
  border: 1px solid rgba(255, 45, 45, 0.35);
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 45, 45, 0.22), transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(255, 106, 0, 0.16), transparent 35%),
    #121217;
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
}

.cta-panel p {
  margin: 10px auto 0;
  max-width: 520px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: #08080a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.95rem;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover { color: #ff8a7a; }

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-hero { padding: 56px 0 12px; }

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.page-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 640px;
}

.media-strip {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.media-strip img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.inline-shot {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.inline-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@keyframes dash {
  from { transform: translateX(0); }
  to { transform: translateX(-280%); }
}

@keyframes gloss {
  0%, 100% { transform: translateX(-80%); opacity: 0; }
  35% { opacity: 0.9; }
  70% { transform: translateX(90%); opacity: 0.2; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(255, 212, 0, 0); }
}

@keyframes surge {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid,
  .how-grid,
  .grid-3,
  .grid-2,
  .scene-grid,
  .media-strip,
  .footer-grid { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding: 48px 0; }
  .speed-card { transform: none; }
  .speed-card img { transform: none; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .grid-5,
  .compat-grid { grid-template-columns: 1fr; }
  .container { width: min(var(--max), calc(100% - 24px)); }
}
