/* ===== BYOE / 卜一智元 Global Styles ===== */
:root {
  --primary: #1c4fe8;
  --primary-dark: #0d2fa8;
  --accent: #00c2ff;
  --accent2: #7c3aed;
  --bg: #f5f7ff;
  --bg-dark: #0a0f2e;
  --text: #1a1a2e;
  --text-light: #5a6280;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 40px rgba(28,79,232,0.10);
  --shadow-card: 0 4px 24px rgba(28,79,232,0.08);
  --transition: 0.25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28,79,232,0.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 7%;
  height: 64px;
  box-shadow: 0 2px 16px rgba(28,79,232,0.05);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2em; font-weight: 700; color: var(--primary);
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.97em; font-weight: 500; color: var(--text);
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); border-bottom-color: var(--accent); }
.nav-cta {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--white) !important;
  padding: 8px 22px !important;
  border-radius: 24px !important;
  border-bottom: none !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 12px rgba(28,79,232,0.18);
}
.nav-cta:hover { opacity: 0.88; color: var(--white) !important; }

/* ── HERO ── */
.hero {
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0a0f2e 0%, #1c2b6e 50%, #0d2fa8 100%);
  text-align: center;
  padding: 80px 6% 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(0,194,255,0.18) 0%, transparent 70%),
              radial-gradient(ellipse at 20% 70%, rgba(124,58,237,0.15) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(0,194,255,0.15);
  border: 1px solid rgba(0,194,255,0.35);
  color: var(--accent);
  font-size: 0.85em; font-weight: 600; letter-spacing: 0.06em;
  padding: 6px 18px; border-radius: 20px; margin-bottom: 28px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2em, 5vw, 3.8em);
  font-weight: 800; color: var(--white);
  line-height: 1.15; margin-bottom: 18px;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.2em; color: rgba(255,255,255,0.72);
  margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--white); font-size: 1.05em; font-weight: 600;
  padding: 14px 36px; border-radius: 30px;
  box-shadow: 0 4px 20px rgba(28,79,232,0.30);
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(28,79,232,0.38); color: var(--white); }
.btn-secondary {
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.30);
  color: var(--white); font-size: 1.05em; font-weight: 500;
  padding: 14px 36px; border-radius: 30px;
  transition: background var(--transition), border-color var(--transition);
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); color: var(--white); border-color: var(--accent); }

/* ── SECTION BASE ── */
section { padding: 80px 7%; }
.section-tag {
  display: inline-block;
  background: linear-gradient(90deg, rgba(28,79,232,0.10), rgba(0,194,255,0.10));
  color: var(--primary); font-size: 0.82em; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 14px; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6em, 3vw, 2.4em);
  font-weight: 800; line-height: 1.2; margin-bottom: 16px;
}
.section-title .hl { color: var(--primary); }
.section-desc { color: var(--text-light); font-size: 1.08em; max-width: 560px; }
.section-header { margin-bottom: 52px; }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(28,79,232,0.06);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(28,79,232,0.13); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(28,79,232,0.10), rgba(0,194,255,0.12));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.1em; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.97em; }

/* ── ALTERNATING SPLIT ── */
.split {
  display: flex; align-items: center; gap: 60px;
  margin-bottom: 80px;
}
.split.reverse { flex-direction: row-reverse; }
.split-text { flex: 1 1 400px; }
.split-text h2 { font-size: clamp(1.4em,2.5vw,2em); font-weight: 800; margin-bottom: 14px; }
.split-text p { color: var(--text-light); margin-bottom: 18px; }
.split-visual {
  flex: 1 1 380px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0f4ff 100%);
  border-radius: 20px;
  padding: 36px;
  min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.split-visual svg { width: 100%; max-width: 320px; }

/* ── STEPS ── */
.steps { display: flex; flex-wrap: wrap; gap: 0; }
.step {
  flex: 1 1 180px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 32px 20px;
  position: relative;
}
.step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -10px; top: 40px;
  font-size: 1.6em; color: var(--accent); font-weight: 300;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white); font-size: 1.2em; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; box-shadow: 0 4px 16px rgba(28,79,232,0.22);
}
.step h4 { font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-light); font-size: 0.92em; }

/* ── STATS ── */
.stats-row {
  display: flex; flex-wrap: wrap; gap: 0;
  background: linear-gradient(90deg, var(--primary) 0%, #3b5fe2 50%, var(--accent) 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(28,79,232,0.22);
}
.stat-item {
  flex: 1 1 180px; padding: 40px 24px;
  text-align: center; color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 2.6em; font-weight: 900; }
.stat-item .label { font-size: 0.92em; opacity: 0.80; margin-top: 4px; }

/* ── TESTIMONIAL / QUOTE ── */
.quote-section {
  background: linear-gradient(135deg, #0a0f2e 0%, #1c2b6e 100%);
  border-radius: 24px;
  padding: 60px 8%;
  text-align: center; color: var(--white);
  margin: 0 0 60px;
}
.quote-section blockquote {
  font-size: clamp(1.3em, 2.5vw, 2em);
  font-weight: 700; line-height: 1.45;
  margin-bottom: 24px;
}
.quote-section blockquote .hl { color: var(--accent); }
.quote-section cite { opacity: 0.65; font-size: 0.95em; font-style: normal; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 20px;
  padding: 56px 7%;
  text-align: center; color: var(--white);
  box-shadow: 0 8px 40px rgba(28,79,232,0.20);
}
.cta-band h2 { font-size: 2em; font-weight: 800; margin-bottom: 14px; }
.cta-band p { opacity: 0.85; margin-bottom: 32px; font-size: 1.1em; }
.cta-band .btn-white {
  background: var(--white); color: var(--primary);
  font-weight: 700; font-size: 1.05em;
  padding: 14px 40px; border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: inline-block;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }
.code-pill {
  display: inline-block; margin-top: 18px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); padding: 10px 24px; border-radius: 12px;
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  font-size: 1em; letter-spacing: 0.03em;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.55);
  padding: 48px 7% 28px;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between; margin-bottom: 40px;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 0.9em; max-width: 240px; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.95em; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 0.9em; }
.footer-col ul a { color: rgba(255,255,255,0.55); }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 0.88em;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--accent); }

/* ── PRODUCT PAGE SPECIFICS ── */
.product-hero {
  background: linear-gradient(135deg, #090d24 0%, #14276b 50%, #0c3580 100%);
  min-height: 72vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 6% 60px;
  position: relative; overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(0,194,255,0.22) 0%, transparent 65%);
}
.product-hero-content { position: relative; z-index: 1; max-width: 720px; }
.product-hero h1 {
  font-size: clamp(2.2em, 5vw, 3.6em);
  font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 14px;
}
.product-hero .en-name {
  font-size: 1.05em; letter-spacing: 0.10em; font-weight: 400;
  color: rgba(255,255,255,0.55); margin-bottom: 18px;
}
.product-hero .slogan {
  font-size: 1.3em; color: var(--accent);
  font-weight: 700; margin-bottom: 10px;
}
.product-hero .slogan-en {
  font-size: 0.95em; color: rgba(255,255,255,0.50); margin-bottom: 36px;
}

/* ── TERMINAL DEMO ── */
.terminal-demo {
  background: #0d1117; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden; max-width: 680px; margin: 0 auto;
  box-shadow: 0 12px 48px rgba(0,0,0,0.45);
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  font-size: 0.92em; line-height: 1.8;
}
.term-bar {
  background: #21262d; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #28c940; }
.term-title { color: rgba(255,255,255,0.35); font-size: 0.85em; margin-left: 8px; }
.term-body { padding: 22px 24px; }
.term-body .prompt { color: #58a6ff; }
.term-body .cmd { color: #e6edf3; }
.term-body .out { color: rgba(230,237,243,0.55); }
.term-body .ok { color: #3fb950; }
.term-body .info { color: #d2a8ff; }
.term-body .line { display: block; }

/* ── ARCH DIAGRAM ── */
.arch-diagram {
  width: 100%; max-width: 700px; margin: 0 auto;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.pricing-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  border: 2px solid rgba(28,79,232,0.08);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(28,79,232,0.18);
}
.pricing-card.featured .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--white); font-size: 0.78em; font-weight: 700;
  padding: 4px 18px; border-radius: 14px;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card h3 { font-size: 1.15em; font-weight: 800; margin-bottom: 8px; }
.pricing-card .price { font-size: 2.4em; font-weight: 900; color: var(--primary); }
.pricing-card .price span { font-size: 0.45em; font-weight: 500; color: var(--text-light); }
.pricing-card ul { list-style: none; margin: 22px 0; text-align: left; }
.pricing-card ul li {
  padding: 7px 0; border-bottom: 1px solid rgba(28,79,232,0.05);
  font-size: 0.95em; color: var(--text-light);
}
.pricing-card ul li::before { content: '✓  '; color: var(--primary); font-weight: 700; }

/* ── COMMAND TABLE ── */
table td code, .term-body span.cmd, td[style*="monospace"] {
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  nav { padding: 0 4%; }
  section { padding: 52px 5%; }
  .split { flex-direction: column; gap: 32px; }
  .split.reverse { flex-direction: column; }
  .step:not(:last-child)::after { display: none; }
  .footer-top { flex-direction: column; gap: 28px; }
  .stats-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
}
