:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --red: #e50914;
  --red-hover: #f40612;
  --red-glow: rgba(229, 9, 20, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;
  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.1rem;
}

.nav-main a {
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-main a:hover,
.nav-main a.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 4px 24px var(--red-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-elevated);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  background: radial-gradient(
      ellipse 80% 60% at 70% 20%,
      rgba(229, 9, 20, 0.12),
      transparent 60%
    ),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.2;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.hero-card {
  padding: 1.75rem;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 40px var(--red-glow);
}

.hero-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-card);
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Product cards */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.plan-card:hover {
  border-color: rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
}

.plan-card.is-featured {
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 0 30px var(--red-glow);
}

.plan-tag {
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
}

.plan-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.plan-price {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.plan-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-features {
  flex: 1;
  margin-bottom: 1.25rem;
}

.plan-features li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.75rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
}

.step-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.steps-panel {
  padding: 1.75rem;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps-panel h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.steps-panel ul {
  margin-bottom: 1.5rem;
}

.steps-panel li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.steps-panel li:last-child {
  border-bottom: none;
}

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.intro-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.intro-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(229, 9, 20, 0.15);
  border-radius: var(--radius-sm);
  color: var(--red);
}

.intro-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.intro-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--red);
  transition: transform 0.2s;
}

.faq-item.is-open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-more {
  text-align: center;
  margin-top: 2rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0;
  text-align: center;
  background: radial-gradient(
      ellipse 60% 80% at 50% 0%,
      rgba(229, 9, 20, 0.1),
      transparent
    ),
    var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.page-hero p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--text-muted);
}

/* About */
.about-content {
  max-width: 42rem;
  margin: 0 auto;
}

.about-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p,
.about-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-content ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.about-content li {
  margin-bottom: 0.35rem;
}

.about-content a {
  color: var(--red);
}

.about-content a:hover {
  color: var(--red-hover);
}

.about-card a {
  color: var(--red);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.about-card {
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 1.5rem;
  background: #050505;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 20rem;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-col a {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main,
  .header-actions .btn-outline {
    display: none;
  }

  .site-header.is-nav-open .nav-main {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .site-header.is-nav-open .header-actions {
    position: absolute;
    top: calc(var(--header-h) + 14rem);
    left: 1rem;
    right: 1rem;
  }

  .site-header.is-nav-open .header-actions .btn-outline {
    display: inline-flex;
  }

  .hero-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}
