* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1a1a2e;
  --accent: #00d26a;
  --accent2: #1677ff;
  --text: #e0e0e0;
  --dim: #666;
  --border: #2a2a3e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  margin-left: 32px;
  font-size: 14px;
  transition: color 0.3s;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 210, 106, 0.08) 0%, transparent 60%);
}

.hero-grid {
  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: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 40px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 18px;
  color: var(--dim);
  margin-bottom: 40px;
  line-height: 1.8;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 210, 106, 0.3);
  transform: translateY(-2px);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
}

.services {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 210, 106, 0.08);
}

.card-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.8;
}

.about {
  padding: 120px 40px;
  background: var(--bg2);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--dim);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.8;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--dim);
  margin-top: 4px;
}

.terminal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg3);
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-bar span:first-child { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:last-child { background: #28c840; }

.terminal-body {
  padding: 24px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 14px;
  line-height: 2;
}

.terminal-body .dim { color: var(--dim); }
.terminal-body .green { color: var(--accent); }

.contact {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-desc {
  color: var(--dim);
  margin-top: -40px;
  margin-bottom: 60px;
  font-size: 16px;
}

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

.price-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  transition: all 0.3s;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0, 210, 106, 0.1);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.price-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.price {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 32px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 36px;
}

.price-card li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--dim);
  border-bottom: 1px solid var(--border);
}

.price-card li:last-child {
  border-bottom: none;
}

.btn-pay {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn-pay:hover {
  background: var(--accent);
  color: var(--bg);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  min-width: 380px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--dim);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--text);
}

.modal-title {
  font-size: 20px;
  margin-bottom: 24px;
}

.pay-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pay-tab {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--dim);
  cursor: pointer;
  transition: all 0.3s;
}

.pay-tab.active[data-method="wechat"] {
  background: #00d26a;
  color: var(--bg);
}

.pay-tab.active[data-method="alipay"] {
  background: #1677ff;
  color: #fff;
}

.qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-placeholder p {
  font-size: 13px;
  color: var(--dim);
}

.qr-placeholder.hidden {
  display: none;
}

.modal-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 13px;
  color: var(--dim);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .service-grid, .pricing, .about-content { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 20px; }
  .nav-inner { padding: 16px 20px; }
  .nav-links a { margin-left: 16px; }
}