/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000;
  --bg-surface: #0a0e17;
  --bg-card: #111827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #00f2fe;
  --accent-glow: rgba(0, 242, 254, 0.15);
  --purple: #a855f7;
  --orange: #f59e0b;
  --radius: 12px;
  --max-w: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.brand-en { font-size: 18px; font-weight: 700; color: var(--text); }
.brand-zh { font-size: 13px; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent) !important; color: #000 !important;
  padding: 6px 16px; border-radius: 6px; font-weight: 600; font-size: 13px !important;
}
.nav-cta:hover { opacity: 0.9; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 80px 24px 60px;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 40%, rgba(0,242,254,0.08), transparent),
    radial-gradient(ellipse 500px 350px at 70% 60%, rgba(168,85,247,0.06), transparent),
    radial-gradient(ellipse 400px 300px at 50% 80%, rgba(245,158,11,0.04), transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-block; background: var(--accent-glow); border: 1px solid rgba(0,242,254,0.2);
  color: var(--accent); padding: 4px 14px; border-radius: 20px; font-size: 13px;
  font-weight: 500; margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero-line1 {
  display: block; font-size: 48px; font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.hero-line2 {
  display: block; font-size: 24px; font-weight: 400; color: var(--text-muted);
  margin-top: 8px; font-family: "IBM Plex Mono", monospace;
}
.hero-desc { color: var(--text-muted); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { box-shadow: 0 0 24px var(--accent-glow); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.hero-stats { display: flex; gap: 40px; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat span { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== Section Titles ===== */
.section-title {
  font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 12px;
}
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: 48px; }

/* ===== Features ===== */
.features { padding: 100px 0; background: var(--bg-surface); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 32px; transition: border-color 0.3s;
}
.feature-card:hover { border-color: rgba(0,242,254,0.2); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ===== How It Works ===== */
.how-it-works { padding: 100px 0; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 16px; }
.step {
  flex: 1; max-width: 280px; text-align: center;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 32px 24px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  color: #000; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }
.step-arrow { color: var(--text-muted); font-size: 28px; margin-top: 48px; }

/* ===== Code Example ===== */
.code-example { padding: 100px 0; background: var(--bg-surface); }
.code-block {
  max-width: 640px; margin: 0 auto; background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); overflow: hidden;
}
.code-header {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-filename { margin-left: 12px; font-size: 12px; color: var(--text-muted); font-family: monospace; }
.code-block pre {
  padding: 20px; overflow-x: auto;
  font-family: "IBM Plex Mono", "SF Mono", monospace; font-size: 13px; line-height: 1.7;
  color: #c9d1d9;
}
.ck { color: #7ee787; }
.cv { color: #a5d6ff; }
.cn { color: #f59e0b; }
.cvar { color: var(--accent); font-weight: 600; }

/* ===== Comparison ===== */
.comparison { padding: 100px 0; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td {
  padding: 12px 16px; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compare-table th { color: var(--text-muted); font-weight: 500; font-size: 13px; }
.compare-table td:first-child { text-align: left; color: var(--text-muted); }
.compare-table .highlight { color: var(--accent); font-weight: 600; background: rgba(0,242,254,0.04); }

/* ===== Use Cases ===== */
.use-cases { padding: 100px 0; background: var(--bg-surface); }
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 28px;
}
.case-icon { font-size: 28px; margin-bottom: 12px; }
.case-card h3 { font-size: 18px; margin-bottom: 8px; }
.case-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ===== Waitlist ===== */
.waitlist { padding: 100px 0; text-align: center; }
.waitlist-form {
  display: flex; gap: 8px; max-width: 420px; margin: 0 auto;
}
.waitlist-input {
  flex: 1; padding: 12px 16px; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  color: var(--text); font-size: 15px; outline: none;
}
.waitlist-input:focus { border-color: var(--accent); }
.waitlist-input::placeholder { color: #475569; }
.waitlist-note { margin-top: 12px; font-size: 13px; color: var(--accent); min-height: 20px; }

/* ===== Footer ===== */
.footer {
  padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: baseline; gap: 6px; }
.footer-tagline { font-size: 12px; color: var(--text-muted); margin-left: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: #475569; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta):not(.nav-github) { display: none; }
  .hero-line1 { font-size: 32px; }
  .hero-line2 { font-size: 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .cases-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 6px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .waitlist-form { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
