﻿/* ═══════════════════════════════════════════════════════
   AI Space Station Export — Cyberpunk Sci-Fi Theme
   "China AI Fleet — Enter the Grid"
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-deep: #020617;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-elevated: rgba(30, 41, 59, 0.7);
  --border: rgba(99, 102, 241, 0.25);
  --border-glow: rgba(99, 102, 241, 0.5);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --accent: #6366f1;
  --accent2: #a855f7;
  --accent3: #06b6d4;
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.4);
  --orange: #f59e0b;
  --red: #ef4444;
  --radius: 14px;
  --scanline-opacity: 0.03;
}

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

body {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ── Scanline overlay ──────────────────────────────── */
body::after {
  content: "";
  position: fixed; inset:0; z-index:9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,var(--scanline-opacity)) 2px,
    rgba(0,0,0,var(--scanline-opacity)) 4px
  );
}

/* ── Starfield Canvas ──────────────────────────────── */
#starfield {
  position: fixed; inset:0; z-index:0;
  pointer-events: none;
}

/* ── Grid background ───────────────────────────────── */
body::before {
  content: "";
  position: fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:
    linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
}
@keyframes gridScroll {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 60px, 60px 0; }
}

/* ── Content wrapper ───────────────────────────────── */
main, nav, section, footer { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
nav {
  position: sticky; top:0; z-index: 100;
  background: rgba(2,6,23,0.9);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}
.nav-inner {
  max-width: 1200px; margin:0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #818cf8 0%, #a855f7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  filter: drop-shadow(0 0 12px rgba(129,140,248,0.4));
}
.nav-links { display:flex; gap:28px; align-items:center; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all .25s;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -4px; left:0; width:0; height:1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .3s;
}
.nav-links a:hover { color: #c7d2fe; text-shadow: 0 0 12px rgba(99,102,241,0.5); }
.nav-links a:hover::after { width: 100%; }
.btn-nav {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; padding: 10px 24px;
  border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 700;
  box-shadow: 0 0 20px rgba(99,102,241,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all .3s;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-nav:hover {
  box-shadow: 0 0 40px rgba(99,102,241,0.5), 0 0 80px rgba(168,85,247,0.2);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   HERO — Terminal / Holographic
   ═══════════════════════════════════════════════════════ */
.hero {
  max-width: 1200px; margin:0 auto; padding: 120px 32px 100px;
  text-align: center; position:relative;
}
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(6,182,212,0.1); border:1px solid rgba(6,182,212,0.3);
  color: #67e8f9; padding:6px 18px; border-radius:20px;
  font-size:12px; margin-bottom:32px; letter-spacing: 0.04em;
}
.hero-badge::before {
  content:""; width:7px; height:7px;
  background: #22d3ee; border-radius:50%;
  box-shadow: 0 0 10px #22d3ee, 0 0 20px rgba(6,182,212,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(1.5)} }

.hero h1 {
  font-size: clamp(38px, 7vw, 72px); font-weight: 900;
  line-height: 1.05; margin-bottom: 28px; letter-spacing: -0.02em;
}
.hero h1 .gr {
  background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 30%, #c084fc 60%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(165,180,252,0.4));
  animation: titleGlow 4s ease-in-out infinite;
}
@keyframes titleGlow {
  0%,100% { filter: drop-shadow(0 0 20px rgba(165,180,252,0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(165,180,252,0.6)); }
}
.hero p {
  font-size: 18px; color: var(--text-dim); max-width: 680px;
  margin: 0 auto 44px; line-height: 1.8;
}
.hero-actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

.btn-primary, .btn-secondary {
  padding: 16px 36px; border-radius: 12px; font-size: 15px;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: all .3s; border: none; letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 0 30px rgba(99,102,241,0.3), 0 8px 32px rgba(99,102,241,0.15);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; top:-50%; left:-50%; width:200%; height:200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: rotate(45deg);
  animation: btnShine 3s infinite;
}
@keyframes btnShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(99,102,241,0.5), 0 12px 40px rgba(99,102,241,0.2);
}
.btn-secondary {
  background: rgba(30,41,59,0.6); color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(99,102,241,0.15);
}

/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */
.section {
  max-width: 1200px; margin:0 auto; padding: 100px 32px;
}
.section-title {
  font-size: 36px; font-weight: 800; text-align: center;
  margin-bottom: 16px; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #e2e8f0, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  text-align: center; color: var(--text-dim); font-size: 16px;
  margin-bottom: 64px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ═══════════════════════════════════════════════════════
   MODEL CARDS — Holographic
   ═══════════════════════════════════════════════════════ */
.models-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all .4s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.model-card::before {
  content: "";
  position: absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  opacity: 0; transition: opacity .4s;
}
.model-card:hover::before { opacity: 1; }
.model-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(99,102,241,0.15), 0 16px 48px rgba(0,0,0,0.4);
}
.model-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; margin-bottom: 24px;
  position: relative;
}
.icon-deepseek { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 0 24px rgba(79,70,229,0.4); }
.icon-qwen    { background: linear-gradient(135deg, #0891b2, #06b6d4); box-shadow: 0 0 24px rgba(8,145,178,0.4); }
.icon-kimi    { background: linear-gradient(135deg, #9333ea, #c084fc); box-shadow: 0 0 24px rgba(147,51,234,0.4); }
.icon-doubao  { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 0 24px rgba(5,150,105,0.4); }

.model-card h3 { font-size: 20px; margin-bottom: 6px; }
.model-card .provider {
  font-size: 12px; color: var(--text-dim); margin-bottom: 18px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.model-card .specs {
  font-size: 13px; color: var(--text-dim); line-height: 1.9;
}
.model-card .price {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--border); font-size: 14px;
}
.model-card .price strong {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--green), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═══════════════════════════════════════════════════════
   COMPARISON — Duel Cards
   ═══════════════════════════════════════════════════════ */
.compare-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; max-width: 900px; margin: 0 auto;
}
.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px; text-align: center;
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.compare-card.openai { border-color: rgba(239,68,68,0.3); }
.compare-card.openai::before {
  content: ""; position: absolute; inset:0;
  background: radial-gradient(ellipse at 50% 0%, rgba(239,68,68,0.08), transparent 70%);
  pointer-events: none;
}
.compare-card.space { border-color: rgba(34,197,94,0.3); }
.compare-card.space::before {
  content: ""; position: absolute; inset:0;
  background: radial-gradient(ellipse at 50% 0%, rgba(34,197,94,0.1), transparent 70%);
  pointer-events: none;
}
.compare-card .label {
  display: inline-block; padding: 5px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; margin-bottom: 24px; letter-spacing: 0.04em;
}
.label.red { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.label.green { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.compare-card .price-big {
  font-size: 56px; font-weight: 900; margin: 16px 0 8px;
}
.compare-card .price-big.red { color: #f87171; }
.compare-card .price-big.green { color: #4ade80; text-shadow: 0 0 30px rgba(34,197,94,0.4); }
.compare-card .price-big span { font-size: 18px; font-weight: 500; color: var(--text-dim); }
.compare-card ul { list-style: none; margin-top: 28px; text-align: left; }
.compare-card li { padding: 8px 0; font-size: 14px; }
.compare-card li::before { content: "[✓] "; color: var(--green); font-weight: 700; }
.compare-card li.missing::before { content: "[✗] "; color: var(--orange); }

/* ═══════════════════════════════════════════════════════
   PRICING TABLE
   ═══════════════════════════════════════════════════════ */
.pricing-table {
  width: 100%; border-collapse: collapse; margin-top: 24px;
}
.pricing-table th {
  text-align: left; padding: 16px; font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em; color: #64748b;
  border-bottom: 1px solid var(--border); font-weight: 600;
}
.pricing-table td {
  padding: 18px 16px; border-bottom: 1px solid rgba(99,102,241,0.1);
  font-size: 14px;
}
.pricing-table tr:hover td {
  background: rgba(99,102,241,0.04);
}
.price-highlight {
  color: var(--green); font-weight: 700;
  text-shadow: 0 0 8px rgba(34,197,94,0.3);
}
.savings {
  font-size: 12px; color: var(--orange);
  text-shadow: 0 0 8px rgba(245,158,11,0.2);
}

/* ═══════════════════════════════════════════════════════
   CODE BLOCKS — Terminal style
   ═══════════════════════════════════════════════════════ */
pre {
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 24px;
  overflow-x: auto; font-size: 13px; line-height: 1.8;
  margin: 20px 0; position: relative;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
}
pre::before {
  content: "● ● ●";
  position: absolute; top:12px; left:16px;
  font-size: 10px; color: #475569; letter-spacing: 3px;
}
pre code {
  font-family: 'JetBrains Mono','SF Mono','Fira Code',monospace;
  color: #c7d2fe; display: block; margin-top: 12px;
}
.s { color: #6ee7b7; }    /* string */
.c { color: #64748b; }    /* comment */
.k { color: #a78bfa; }    /* keyword */
.f { color: #67e8f9; }    /* function */

/* ═══════════════════════════════════════════════════════
   DATA FLOW LINE (decorative)
   ═══════════════════════════════════════════════════════ */
.data-line {
  height: 1px; background: linear-gradient(90deg,
    transparent, var(--accent), var(--accent2), var(--accent3),
    var(--accent2), var(--accent), transparent
  );
  margin: 0 auto; max-width: 800px;
  animation: dataFlow 4s ease-in-out infinite;
  opacity: 0.5;
}
@keyframes dataFlow {
  0%,100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════════════════
   FORM — Holographic input
   ═══════════════════════════════════════════════════════ */
.form-card {
  max-width: 440px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  backdrop-filter: blur(10px);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display:block; font-size:12px; font-weight:600;
  margin-bottom:8px; color: #94a3b8; letter-spacing:0.04em; text-transform:uppercase;
}
.form-group input {
  width:100%; padding:14px 18px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 15px;
  outline: none; transition: all .3s;
  font-family: 'JetBrains Mono', monospace;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(99,102,241,0.2), inset 0 0 20px rgba(99,102,241,0.05);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border); padding: 48px 32px;
  text-align: center; color: var(--text-dim); font-size: 13px;
  background: rgba(2,6,23,0.6);
  backdrop-filter: blur(10px);
}
footer a { color: #818cf8; text-decoration: none; transition: color .2s; }
footer a:hover { color: #a5b4fc; text-shadow: 0 0 10px rgba(129,140,248,0.4); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .compare-section { grid-template-columns: 1fr; }
  .nav-links { display:none; }
  .hero { padding: 80px 20px 60px; }
  .section { padding: 60px 20px; }
  .hero h1 { font-size: 36px; }
}

/* ═══════════════════════════════════════════════════════
   DOCS SPECIFIC
   ═══════════════════════════════════════════════════════ */
.doc-content { max-width: 800px; margin: 0 auto; }
.doc-content h2 {
  font-size: 26px; margin: 56px 0 20px;
  padding-top: 28px; border-top: 1px solid var(--border);
  background: linear-gradient(135deg, #e2e8f0, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.doc-content h3 { font-size: 18px; margin: 36px 0 14px; color: #a5b4fc; }
.doc-content p { margin: 14px 0; color: var(--text-dim); }
.doc-content ul { padding-left: 24px; color: var(--text-dim); }
.doc-content li { margin: 8px 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 13px; font-weight: 700;
  margin-right: 12px; flex-shrink: 0;
  box-shadow: 0 0 12px rgba(99,102,241,0.4);
}

/* ═══════════════════════════════════════════════════════
   COPY BOX
   ═══════════════════════════════════════════════════════ */
.copy-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px; margin: 10px 0 24px;
}
.copy-box code {
  flex:1; font-size:13px; word-break: break-all;
  font-family: 'JetBrains Mono', monospace; color: #a5b4fc;
}
.copy-box button {
  padding: 8px 18px; background: rgba(30,41,59,0.8);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-dim); cursor: pointer; font-size: 12px;
  white-space: nowrap; transition: all .3s;
}
.copy-box button:hover { border-color: var(--accent); color: #c7d2fe; box-shadow: 0 0 12px rgba(99,102,241,0.2); }
