:root {
  --bg: #08090d;
  --surface: #0f1017;
  --surface2: #161820;
  --border: rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.12);
  --text: #e8eaf0;
  --muted: #6b7280;
  --accent: #6c63ff;
  --accent2: #00d4aa;
  --accent3: #ff6b6b;
  --accent-glow: rgba(108,99,255,0.15);
  --gold: #f5c842;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; line-height: 1.15; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,9,13,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-ghost {
  padding: 8px 20px;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-ghost:hover { background: var(--surface2); border-color: var(--accent); }

.btn-primary {
  padding: 8px 20px;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.12), transparent 70%);
  top: -100px; left: -150px;
}
.hero::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,170,0.08), transparent 70%);
  bottom: -50px; right: -100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 100px;
  background: rgba(108,99,255,0.08);
  font-size: 12px;
  color: #a89ef5;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero-badge span { width: 6px; height: 6px; background: var(--accent2); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.4); }
}

.hero h1 {
  font-size: clamp(44px, 7vw, 90px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 900px;
}

.gradient-text {
  background: linear-gradient(135deg, #c0bcff 0%, var(--accent2) 60%, #a0f4e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

.btn-hero {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), #9b94ff);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  box-shadow: 0 0 40px rgba(108,99,255,0.25);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(108,99,255,0.4); }

.btn-hero-outline {
  padding: 14px 32px;
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.btn-hero-outline:hover { border-color: var(--accent); background: var(--accent-glow); }

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }

.stat-divider { width: 1px; background: var(--border); align-self: stretch; }

/* ── SECTION BASE ── */
section { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub { font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.7; }

/* ── MODELS GRID ── */
.models-section { padding: 100px 0; }
.models-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.models-header { margin-bottom: 56px; }

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.model-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.model-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.model-card:hover::before { opacity: 1; }

.model-card.deepseek::before { background: linear-gradient(90deg, #4db8ff, #0080ff); }
.model-card.kimi::before { background: linear-gradient(90deg, #7c3aed, #c084fc); }
.model-card.minimax::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.model-card.qwen::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.model-card.glm::before { background: linear-gradient(90deg, #f43f5e, #ec4899); }
.model-card.doubao::before { background: linear-gradient(90deg, #f97316, #facc15); }
.model-card.groq::before { background: linear-gradient(90deg, #22d3ee, #818cf8); }
.model-card.guji::before { background: linear-gradient(90deg, #a3e635, #86efac); }

.model-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.model-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--surface2);
}

.model-tags { display: flex; gap: 6px; }

.tag {
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tag-domestic { background: rgba(0,212,170,0.12); color: var(--accent2); border: 1px solid rgba(0,212,170,0.2); }
.tag-free { background: rgba(245,200,66,0.1); color: var(--gold); border: 1px solid rgba(245,200,66,0.2); }
.tag-fast { background: rgba(108,99,255,0.12); color: #a89ef5; border: 1px solid rgba(108,99,255,0.2); }
.tag-cheap { background: rgba(52,211,153,0.1); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.tag-strong { background: rgba(251,146,60,0.1); color: #fb923c; border: 1px solid rgba(251,146,60,0.2); }

.model-name { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.model-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }

.model-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.model-token-info { font-size: 12px; color: var(--muted); }
.model-token-info strong { color: var(--accent2); font-size: 14px; }

.model-btn {
  padding: 6px 14px;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: all 0.2s;
}
.model-btn:hover { opacity: 0.85; transform: scale(1.05); }

/* ── PRICING ── */
.pricing-section { position: relative; }

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

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}

.price-card:hover { transform: translateY(-4px); }

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(108,99,255,0.08), var(--surface));
  box-shadow: 0 0 60px rgba(108,99,255,0.15);
}

.popular-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #9b94ff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.price-tier { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.price-amount { font-family: 'Syne', sans-serif; font-size: 52px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.price-amount span { font-size: 22px; vertical-align: super; color: var(--muted); }
.price-tokens { font-size: 13px; color: var(--accent2); font-weight: 500; margin-bottom: 4px; }
.price-note { font-size: 12px; color: var(--muted); margin-bottom: 28px; }

.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before { content: '✓'; color: var(--accent2); font-weight: 700; flex-shrink: 0; }

.price-btn {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  border: none;
}
.price-btn-outline { background: transparent; border: 1px solid var(--border-bright); color: var(--text); }
.price-btn-outline:hover { border-color: var(--accent); background: var(--accent-glow); }
.price-btn-fill { background: linear-gradient(135deg, var(--accent), #9b94ff); color: #fff; box-shadow: 0 0 30px rgba(108,99,255,0.3); }
.price-btn-fill:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── HOW IT WORKS ── */
.how-section { position: relative; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── CONSOLE DEMO ── */
.console-section { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.console-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.console-code {
  background: #0c0e14;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

.code-header {
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.code-label { font-size: 12px; color: var(--muted); margin-left: auto; font-family: 'DM Sans', sans-serif; }

.code-body { padding: 24px; font-size: 13px; line-height: 1.8; }

.c-comment { color: #4d5566; }
.c-key { color: #c792ea; }
.c-str { color: #c3e88d; }
.c-num { color: #f78c6c; }
.c-kw { color: #89ddff; }
.c-fn { color: #82aaff; }
.c-url { color: var(--accent2); }

.console-right h2 { margin-bottom: 16px; }
.console-features { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }

.console-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(108,99,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feat-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feat-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── DASHBOARD PREVIEW ── */
.dashboard-section { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }

.dash-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 56px;
}

.dash-topbar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-dots { display: flex; gap: 6px; }

.dash-title { font-size: 13px; color: var(--muted); margin-left: auto; font-family: 'Syne', sans-serif; font-weight: 600; }

.dash-body { padding: 32px; display: grid; grid-template-columns: repeat(4,1fr) 2fr; gap: 16px; }

.dash-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.dash-stat-label { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.dash-stat-val { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; }
.dash-stat-val.green { color: var(--accent2); }
.dash-stat-val.purple { color: var(--accent); }
.dash-stat-val.orange { color: #f97316; }
.dash-stat-delta { font-size: 12px; color: #34d399; margin-top: 4px; }

.dash-chart {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.dash-chart-title { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; margin-bottom: 20px; }

.bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  flex: 1;
  min-height: 100px;
}

.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }

.bar-col {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(108,99,255,0.6), rgba(108,99,255,0.2));
  transition: all 0.3s;
  cursor: pointer;
}

.bar-col:hover { background: linear-gradient(180deg, var(--accent), rgba(108,99,255,0.4)); }

.bar-day { font-size: 10px; color: var(--muted); }

.dash-log {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  grid-column: span 4;
}

.log-title { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.log-more { font-size: 12px; color: var(--accent); cursor: pointer; }

.log-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}

.log-row:last-child { border-bottom: none; }
.log-model { color: var(--text); font-weight: 500; font-family: 'DM Sans', sans-serif; }
.log-tokens { color: var(--accent2); }
.log-cost { color: var(--muted); }
.log-status { padding: 3px 9px; border-radius: 100px; font-size: 11px; background: rgba(52,211,153,0.1); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }

/* ── CTA ── */
.cta-section {
  padding: 120px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(108,99,255,0.1), transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title { font-size: clamp(36px,5vw,68px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; }
.cta-sub { font-size: 18px; color: var(--muted); margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim { animation: fadeUp 0.7s ease both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; }
.anim-d4 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  section { padding: 60px 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .console-inner { grid-template-columns: 1fr; }
  .dash-body { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
}