:root {
  --bg: #0b0e14;
  --bg-2: #10141e;
  --bg-3: #12121a;
  --line: #1d2a33;
  --line-strong: #2c424c;
  --fg: #eaf6f2;
  --fg-2: #9fb6bf;
  --fg-3: #5c7a86;
  --accent: #00d9a5;
  --accent-ink: #06231c;
  --warn: #fc6;
  --danger: #f66;
  --sans: system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --container: 1120px;
  --radius: 4px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(0, 217, 165, 0.28); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 217, 165, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 165, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(0, 217, 165, 0.35), 0 10px 30px -12px rgba(0, 217, 165, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 217, 165, 0.55), 0 14px 34px -12px rgba(0, 217, 165, 0.7);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.015);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.5;
  background: repeating-linear-gradient(90deg,
    #c79c6e 0 10px, transparent 10px 16px,
    #f58cba 16px 26px, transparent 26px 32px,
    #abd473 32px 42px, transparent 42px 48px,
    #fff569 48px 58px, transparent 58px 64px,
    #ffffff 64px 74px, transparent 74px 80px,
    #0070de 80px 90px, transparent 90px 96px,
    #69ccf0 96px 106px, transparent 106px 112px,
    #9482c9 112px 122px, transparent 122px 128px,
    #00ff96 128px 138px, transparent 138px 144px,
    #ff7d0a 144px 154px, transparent 154px 160px,
    #a330c9 160px 170px, transparent 170px 176px,
    #33937f 176px 186px, transparent 186px 192px,
    #c41f3b 192px 202px, transparent 202px 208px);
}

.site-header.scrolled {
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark { width: 22px; height: 22px; display: block; }

.brand-name {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--fg);
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

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

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 9px 10px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  margin: 3px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 88px);
}

.hero .grid-bg { position: absolute; inset: 0; }

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(620px 340px at 50% 0%, rgba(0, 217, 165, 0.13), transparent 70%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-term {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 26px;
}

.cursor { animation: blink 1.1s steps(2) infinite; }

@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.hl { color: var(--accent); text-shadow: 0 0 32px rgba(0, 217, 165, 0.35); }

.hero-sub {
  color: var(--fg-2);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-status {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  color: var(--fg-3);
  margin: 0;
}

.hero-status span { margin: 0 8px; white-space: nowrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 64px;
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.7), rgba(11, 14, 20, 0));
}

.stat {
  padding: 26px 16px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: 0; }

.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
}

.stat span { font-size: 0.78rem; letter-spacing: 1px; color: var(--fg-3); }

.section-alt {
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.55), rgba(16, 20, 30, 0));
  border-top: 1px solid rgba(29, 42, 51, 0.6);
  border-bottom: 1px solid rgba(29, 42, 51, 0.6);
}

.section-head { max-width: 720px; margin-bottom: 56px; }

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-sub { color: var(--fg-2); margin: 0; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.how-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.how-card::after {
  content: "";
  position: absolute;
  top: 47px;
  right: -24px;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.how-card:last-child::after { display: none; }

.how-num {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.how-card h3 { font-size: 1.08rem; margin: 0 0 10px; }

.how-card p { color: var(--fg-2); font-size: 0.92rem; margin: 0; }

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

.feature {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -24px rgba(0, 217, 165, 0.25);
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 217, 165, 0.25);
  background: rgba(0, 217, 165, 0.07);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 { font-size: 1.05rem; margin: 0 0 8px; }

.feature p { color: var(--fg-2); font-size: 0.92rem; margin: 0; }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal]:nth-child(2) { transition-delay: 60ms; }
[data-reveal]:nth-child(3) { transition-delay: 120ms; }
[data-reveal]:nth-child(4) { transition-delay: 180ms; }
[data-reveal]:nth-child(5) { transition-delay: 240ms; }
[data-reveal]:nth-child(6) { transition-delay: 300ms; }

.spec-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.class-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 1 160px;
  max-width: 200px;
  padding: 16px 18px 16px 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.class-chip:hover { border-color: var(--class-color); transform: translateY(-2px); }

.class-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--class-color);
}

.class-name { color: var(--class-color); font-weight: 700; font-size: 0.95rem; }

.class-note { font-family: var(--mono); font-size: 0.7rem; color: var(--fg-3); letter-spacing: 1px; }

.spec-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--fg-2);
}

.lg { display: inline-flex; align-items: center; gap: 8px; }

.lg i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.panel-label {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  color: var(--fg-3);
  margin: 0 0 12px;
}

.mock-window {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }

.mock-title { font-family: var(--mono); font-size: 0.72rem; color: var(--fg-3); margin-left: 8px; }

.mock-body { padding: 10px 18px 14px; }

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(29, 42, 51, 0.9);
  font-size: 0.85rem;
}

.mock-label { color: var(--fg-3); font-size: 0.78rem; }

.mock-value { font-family: var(--mono); font-size: 0.84rem; color: var(--fg); }

.badge-on {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 2px;
}

.mock-steps { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }

.mock-step {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-3);
  padding: 7px 10px;
  border-radius: 3px;
  border: 1px solid transparent;
}

.mock-step.current {
  background: rgba(0, 217, 165, 0.1);
  color: var(--accent);
  border-color: rgba(0, 217, 165, 0.28);
}

.mock-gameview {
  position: relative;
  min-height: 340px;
  background: linear-gradient(160deg, #0d1219, #141b26 70%, #10161f);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.mock-gameview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
}

.mock-overlay {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(20, 20, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.8);
}

.mo-class { font-weight: 700; }

.mo-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.12); }

.mo-step { color: var(--fg-2); }

.mo-on { color: var(--accent); }

.mo-time { color: var(--fg-3); }

.mock-actionbar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.mock-actionbar span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-3);
}

.mock-actionbar .active {
  border-color: rgba(0, 217, 165, 0.5);
  color: var(--accent);
  background: rgba(0, 217, 165, 0.08);
  box-shadow: 0 0 12px -2px rgba(0, 217, 165, 0.5);
}

.price-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-step {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.price-step:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.price-step::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -24px;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.price-step:last-child::after { display: none; }

.step-idx {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(0, 217, 165, 0.35);
  background: rgba(0, 217, 165, 0.07);
  border-radius: 3px;
  margin-bottom: 16px;
}

.price-step h3 { font-size: 1.05rem; margin: 0 0 8px; }

.price-step p { color: var(--fg-2); font-size: 0.92rem; margin: 0; }

.price-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  text-align: center;
}

.price-note {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  color: var(--fg-3);
  margin: 0;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.faq-item:hover { border-color: var(--line-strong); }

.faq-item[open] { border-color: rgba(0, 217, 165, 0.3); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--fg-2);
  font-size: 0.92rem;
}

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }

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

.footer-brand p { color: var(--fg-3); font-size: 0.86rem; margin: 14px 0 0; }

.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }

.footer-nav a { color: var(--fg-3); text-decoration: none; font-size: 0.88rem; transition: color 0.2s ease; }

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(29, 42, 51, 0.6);
}

.footer-bottom p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  color: var(--fg-3);
}

@media (max-width: 1023px) {
  .preview-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .header-inner { gap: 12px; }
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: block; }

  .site-header.menu-open {
    background: rgba(11, 14, 20, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--line);
  }

  .site-header.menu-open .site-nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px 24px 12px;
    background: rgba(11, 14, 20, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .site-header.menu-open .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(29, 42, 51, 0.6);
    font-size: 0.98rem;
  }

  .site-header.menu-open .site-nav a:last-child { border-bottom: 0; }

  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-status { display: flex; flex-wrap: wrap; justify-content: center; }
  .hero-status span { margin: 0 6px; }

  .how-grid, .price-steps, .features-grid { grid-template-columns: 1fr; }
  .how-card::after, .price-step::after { display: none; }

  .mock-overlay {
    left: 12px;
    right: 12px;
    transform: none;
    justify-content: center;
    white-space: normal;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-bottom { margin-top: 32px; }
}

@media (max-width: 479px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.2rem); }
  .hero-sub { font-size: 0.95rem; }
  .stat b { font-size: 1.5rem; }
  .spec-grid { gap: 10px; }
  .class-chip { padding: 13px 12px 13px 17px; }
  .class-name { font-size: 0.9rem; }
  .spec-legend { gap: 14px 20px; font-size: 0.78rem; }
  .price-cta .btn, .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .btn { transition: none; }
  .how-card, .feature, .class-chip, .price-step, .faq-item { transition: none; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}
