:root {
  --bg: #070d19;
  --bg-alt: #0c1426;
  --card: #121d33;
  --border: #1f2e4a;
  --text: #e6eef8;
  --muted: #8ea1bd;
  --primary: #10b981;
  --accent: #38bdf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #04131c; display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.brand-name small { color: var(--accent); font-size: 12px; font-weight: 600; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; gap: 10px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: #03151e; border: none; padding: 9px 18px; border-radius: 9px;
  font-weight: 700; font-size: 13.5px; cursor: pointer; display: inline-block;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 9px; font-size: 13.5px; cursor: pointer; display: inline-block;
}
.btn-outline:hover { border-color: var(--accent); color: #fff; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

/* Hero */
.hero {
  padding: 72px 0 64px;
  background: radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.14), transparent 45%),
              radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.12), transparent 45%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.95fr; gap: 40px; align-items: center; }
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 12px;
  background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7; margin-bottom: 16px; font-weight: 600;
}
.hero h1 { font-size: 42px; line-height: 1.22; margin-bottom: 18px; }
.gradient-text {
  background: linear-gradient(90deg, #34d399, #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; }
.hero-desc strong { color: #e2e8f0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-metrics { display: flex; gap: 32px; border-top: 1px solid var(--border); padding-top: 20px; }
.hero-metrics strong { display: block; font-size: 20px; color: #fff; }
.hero-metrics span { font-size: 12px; color: var(--muted); }

/* Interactive Demo Card */
.demo-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.demo-header {
  background: #0f192d; padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.demo-contact { display: flex; align-items: center; gap: 10px; }
#demo-flag { font-size: 24px; }
.demo-name { font-weight: 700; font-size: 14px; }
.demo-meta { font-size: 11.5px; color: var(--accent); }
.engine-pill {
  background: rgba(16, 185, 129, 0.16); color: #6ee7b7;
  padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
}
.demo-tabs { display: flex; gap: 6px; padding: 10px 14px; background: #0c1424; border-bottom: 1px solid var(--border); }
.demo-tab {
  flex: 1; background: #16223a; border: 1px solid var(--border); color: var(--muted);
  padding: 6px; border-radius: 8px; font-size: 12px; cursor: pointer;
}
.demo-tab.active { border-color: var(--primary); color: #fff; background: rgba(16, 185, 129, 0.16); }
.demo-chat { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: 13px; }
.bubble.in { align-self: flex-start; background: #1a2742; border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #0d3b32; border-top-right-radius: 4px; }
.bubble .trans {
  margin-top: 6px; padding-top: 5px; border-top: 1px dashed rgba(56, 189, 248, 0.35);
  color: #38bdf8; font-size: 12.5px;
}
.bubble .b-tag { font-size: 10px; color: #94a3b8; margin-top: 3px; }
.demo-composer {
  background: #0f192d; border-top: 1px solid var(--border); padding: 11px 14px;
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted);
}
.demo-send {
  background: var(--primary); color: #04131c; padding: 4px 10px; border-radius: 99px; font-weight: 700;
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.f-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.f-icon { font-size: 26px; margin-bottom: 10px; }
.f-card h3 { font-size: 16px; margin-bottom: 8px; }
.f-card p { font-size: 13.5px; color: var(--muted); }

/* Routing Table */
.route-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.route-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.route-table th, .route-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.route-table th { color: var(--muted); font-size: 12.5px; background: #0f192d; }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: rgba(16, 185, 129, 0.16); color: #6ee7b7;
}
.badge-cyan { background: rgba(6, 182, 212, 0.16); color: #67e8f9; }
.badge-blue { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.badge-purple { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; }

/* Download */
.download-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 28px;
}
.download-box h3 { font-size: 20px; margin-bottom: 8px; }
.download-box p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.install-steps { padding-left: 20px; font-size: 13.5px; color: #cbd5e1; }
.install-steps li { margin-bottom: 6px; }
.install-steps code { background: #0b1220; padding: 2px 6px; border-radius: 4px; color: var(--accent); }
.download-actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; text-align: center; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 20px; display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3), 0 18px 40px rgba(16, 185, 129, 0.12);
}
.p-tag {
  position: absolute; top: -11px; right: 16px; background: var(--primary); color: #04131c;
  font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 99px;
}
.p-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.p-price { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.p-price span { font-size: 13px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; flex: 1; margin-bottom: 20px; font-size: 13.5px; color: #cbd5e1; }
.price-card li { margin-bottom: 8px; }
.p-btn { width: 100%; text-align: center; }

/* Invite */
.invite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.i-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.i-card h3 { font-size: 20px; margin-bottom: 10px; }
.i-card p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px;
}
summary { font-weight: 600; cursor: pointer; font-size: 15px; }
details p { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 26px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: #fff; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.modal.hidden, .hidden { display: none; }
.modal-card {
  width: 420px; max-width: 92vw; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.close-btn { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input {
  width: 100%; background: #0a1222; border: 1px solid var(--border);
  color: #fff; padding: 9px 11px; border-radius: 8px; font-size: 13px;
}
.modal-btns { display: flex; gap: 10px; margin-top: 14px; }
.modal-btns button { flex: 1; }
.member-box { background: #0a1222; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.m-title { font-weight: 700; color: #6ee7b7; }
.m-sub { font-size: 12.5px; color: var(--accent); margin-top: 4px; }
.m-invite { font-size: 12px; color: var(--muted); margin-top: 4px; }
.u-msg { margin-top: 12px; font-size: 12.5px; text-align: center; min-height: 18px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid, .feature-grid, .pricing-grid, .invite-grid { grid-template-columns: 1fr; }
  .download-box { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 32px; }
}
