/* ========== Aethernet · 深太空蓝 + 电气青 设计系统 ========== */
:root {
  /* Brand palette */
  --primary: #0066FF;        /* 电气蓝 — 主 CTA、链接 */
  --primary-hover: #0052CC;
  --secondary: #00D4FF;      /* 汽青 — 渐变次色 / 高亮 */
  --accent: #5B6CFF;         /* 雾紫过渡色 — 渐变中段 */

  /* Surfaces (dark default) */
  --bg: #0A0E1A;             /* 太空黑 */
  --bg-elevated: #111729;    /* 卡片底 */
  --bg-soft: #1A2138;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #E6F0FF;
  --text-muted: #94A3C2;
  --text-soft: #5C6B89;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #0066FF 0%, #5B6CFF 50%, #00D4FF 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0,102,255,.12) 0%, rgba(91,108,255,.10) 50%, rgba(0,212,255,.08) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(0,102,255,.25) 0%, transparent 60%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --shadow-glow: 0 0 40px rgba(0,102,255,.3);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 9999px;
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ========== Layout ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Nav ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--gradient-brand);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg);
  border-radius: 6px;
}
.logo-mark::before {
  content: '';
  position: absolute;
  inset: 7px;
  background: var(--gradient-brand);
  border-radius: 3px;
  z-index: 1;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  padding: 8px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--bg); }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(0,102,255,.5); }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--text-muted); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
  background: rgba(255,255,255,0.03);
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-strip {
  margin-top: 64px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-strip span { color: var(--text-muted); }
.trust-strip .dot { color: var(--primary); }

/* ========== Sections ========== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ========== Split Cards ========== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.split-card {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.split-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.split-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity .3s;
}
.split-card:hover::before { opacity: 1; }
.split-card .tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  margin-bottom: 16px;
}
.split-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.split-card .subtitle {
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.split-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ========== Capability grid ========== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02);
  transition: border-color .3s, background .3s;
}
.cap:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
}
.cap h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cap p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== Feature list (for /zwds) ========== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.02);
}
.feature-item .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
}

/* ========== Input demo ========== */
.demo-card {
  max-width: 480px;
  margin: 48px auto 0;
  padding: 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}
.demo-card .row {
  margin-bottom: 16px;
}
.demo-card label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.demo-card input, .demo-card select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.demo-card input:focus, .demo-card select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,.2);
}
.demo-card .btn { width: 100%; margin-top: 8px; }

/* ========== Pricing ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.price-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
}
.price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0,102,255,.05), var(--bg-elevated));
  position: relative;
}
.price-card.featured::after {
  content: 'POPULAR';
  position: absolute;
  top: -10px;
  right: 24px;
  padding: 4px 10px;
  background: var(--gradient-brand);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  border-radius: var(--r-pill);
  color: #fff;
  font-weight: 700;
}
.price-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.price-card .price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.price-card .price span { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.price-card .desc { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.price-card ul { list-style: none; margin-bottom: 28px; }
.price-card li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}
.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* ========== Page hero (smaller, for inner pages) ========== */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
  position: relative;
}
.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

/* ========== Content prose (for legal/about pages) ========== */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.prose h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}
.prose p, .prose li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 14px; }
.prose strong { color: var(--text); }
.prose a { color: var(--secondary); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--primary); }

/* ========== Contact form ========== */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
}
.contact-form .row { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,.2);
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .tagline {
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-soft);
}
.footer-bottom .mono { font-family: var(--font-mono); }

/* ========== Responsive ========== */
@media (max-width: 968px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg-elevated); flex-direction: column; padding: 24px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero { padding: 120px 0 60px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ========== Animations ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s ease forwards; }
