:root {
  --ink: #0f1229;
  --ink-soft: #1e2245;
  --signal: #6366f1;
  --signal-dark: #4f46e5;
  --gold: #818cf8;
  --gold-dark: #6366f1;
  --accent: #8b5cf6;
  --accent-dark: #7c3aed;
  --steel: #5f6f83;
  --mist: #eef2ff;
  --line: #c7d2fe;
}

body {
  color: var(--ink);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  padding-bottom: 4rem;
}

a { text-decoration: none; }

.bg-ink { background: linear-gradient(180deg, #1e2245 0%, var(--ink) 100%); }

/* ─── Navbar ─── */
.navbar { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0.85rem 0; }
.navbar-brand { align-items: center; display: flex; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; }
.navbar-brand .brand-dot { color: var(--signal); }
.navbar-brand:hover { color: #fff; }
.navbar .nav-link { color: rgba(255,255,255,0.74); font-size: 0.95rem; margin-left: 0.75rem; }
.navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .nav-link.active { color: #fff; }
.nav-link-main { color: var(--gold) !important; font-weight: 600; }

/* ─── Buttons ─── */
.btn-signal {
  --bs-btn-bg: var(--signal); --bs-btn-border-color: var(--signal); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--signal-dark); --bs-btn-hover-border-color: var(--signal-dark);
  --bs-btn-hover-color: #fff; font-weight: 700;
}

/* ─── Typography ─── */
.eyebrow { color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.text-signal { color: var(--signal-dark); }

/* ─── Hero ─── */
.masthead {
  background:
    radial-gradient(circle at 85% 15%, rgba(99,102,241,0.18), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(139,92,246,0.12), transparent 40%),
    linear-gradient(135deg, #1e2245 0%, var(--ink) 55%, #0a0c1a 100%);
  padding: 8rem 0 5rem;
}

.min-vh-hero { min-height: 640px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.hero-stat strong { color: var(--signal); display: block; font-size: 1.75rem; font-weight: 800; }
.hero-stat span { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

/* ─── Hero Console ─── */
.hero-console {
  backdrop-filter: blur(8px);
  background: rgba(15,18,41,0.88);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 0.5rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.28);
  color: #fff;
  padding: 1.5rem;
}

.console-header {
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}
.console-header strong { color: var(--signal); font-size: 0.85rem; }

.console-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.console-grid div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.35rem;
  padding: 1rem;
  transition: border-color 0.2s ease;
}
.console-grid div:hover { border-color: rgba(99,102,241,0.45); }
.console-grid small { color: rgba(255,255,255,0.62); display: block; margin-bottom: 0.35rem; font-size: 0.78rem; }
.console-grid strong { color: var(--signal); font-size: 1.65rem; letter-spacing: 0.04em; }

.console-route {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 1.25rem 0;
}
.console-route span {
  background: linear-gradient(90deg, var(--signal), var(--accent));
  border-radius: 2px;
  display: block;
  height: 4px;
}

/* ─── Pain points ─── */
.pain-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pain-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 4px solid var(--signal-dark);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pain-card:hover { box-shadow: 0 8px 24px rgba(99,102,241,0.12); transform: translateY(-2px); }
.pain-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.pain-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.pain-card p { color: var(--steel); font-size: 0.9rem; margin-bottom: 0; line-height: 1.7; }

/* ─── Features icons ─── */
.features-icons { padding: 5rem 0; }
.features-icons .features-icons-item { max-width: 22rem; }
.features-icons .features-icons-icon { color: var(--signal-dark); font-size: 4rem; height: 6rem; }
.features-icons h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.features-icons .lead { color: var(--steel); font-size: 1rem; }

/* ─── Stats ─── */
.stats-section {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  padding: 4rem 0;
}
.stat-box { text-align: center; }
.stat-box .stat-num { color: var(--signal); font-size: clamp(2.5rem,5vw,3.5rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.stat-box .stat-num sup { font-size: 0.5em; vertical-align: super; }
.stat-box .stat-label { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-top: 0.5rem; }
.stat-box .stat-sub { color: rgba(255,255,255,0.45); font-size: 0.8rem; }

/* ─── Sections ─── */
.product-section, .process-section { padding: 5rem 0; }

/* ─── Cards ─── */
.service-card, .step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  box-shadow: 0 8px 24px rgba(15,18,41,0.04);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover, .step-card:hover { box-shadow: 0 16px 32px rgba(15,18,41,0.08); transform: translateY(-3px); }
.service-card { border-top: 4px solid var(--signal); }
.service-card i { color: var(--signal-dark); font-size: 2.4rem; }
.service-card h3, .step-card h3 { font-size: 1.2rem; margin: 1rem 0 0.75rem; }
.service-card p, .step-card p { color: var(--steel); margin-bottom: 0; }

.step-card span { color: var(--signal-dark); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.12em; }
.solution-links { border-top: 1px solid var(--line); padding-top: 2rem; }

/* ─── Case cards ─── */
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(15,18,41,0.04);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover { box-shadow: 0 14px 32px rgba(99,102,241,0.1); transform: translateY(-3px); }
.case-tag {
  background: var(--mist);
  border-radius: 2rem;
  color: var(--signal-dark);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
}
.case-metrics { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.case-metric strong { color: var(--signal-dark); display: block; font-size: 1.75rem; font-weight: 800; }
.case-metric span { color: var(--steel); font-size: 0.82rem; }

/* ─── Showcase ─── */
.showcase .showcase-text { padding: 4rem; }
.showcase .showcase-img { background-position: center; background-size: cover; min-height: 28rem; }
.showcase-gps {
  background-image:
    linear-gradient(rgba(15,18,41,0.15), rgba(15,18,41,0.15)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1200&q=80");
}
.showcase-dispatch {
  background-image:
    linear-gradient(rgba(15,18,41,0.12), rgba(15,18,41,0.12)),
    url("https://images.unsplash.com/photo-1449824913935-59a10b8d2000?auto=format&fit=crop&w=1200&q=80");
}

/* ─── SEO link cards ─── */
.seo-link-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--ink);
  display: block;
  height: 100%;
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.seo-link-card:hover { border-color: var(--signal-dark); box-shadow: 0 12px 24px rgba(15,18,41,0.06); color: var(--ink); }
.seo-link-card strong, .seo-link-card span { display: block; }
.seo-link-card span { color: var(--steel); font-size: 0.9rem; margin-top: 0.5rem; }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.faq-item p { color: var(--steel); font-size: 0.95rem; margin-bottom: 0; }

/* ─── Keyword tags ─── */
.keyword-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.keyword-tags a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2rem;
  color: var(--ink);
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.keyword-tags a:hover { border-color: var(--signal); color: var(--signal-dark); }

/* ─── Share cards ─── */
.share-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(15,18,41,0.04);
  padding: 1.5rem;
}
.share-platform { color: var(--signal-dark); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; }
.share-content {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.7;
  padding: 1rem;
  white-space: pre-line;
}

/* ─── CTA ─── */
.call-to-action {
  background:
    linear-gradient(110deg, rgba(15,18,41,0.95), rgba(30,34,69,0.92)),
    url("https://images.unsplash.com/photo-1587293852726-70cdb56c2866?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  padding: 5.5rem 0;
}
.lead-form {
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0.5rem;
  padding: 1.5rem;
}
.lead-form .form-label { color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.lead-step .is-invalid { border-color: #ef4444; }
.lead-preview { background: rgba(255,255,255,0.08); border-radius: 0.35rem; padding: 0.65rem 0.85rem; }

/* ─── Footer ─── */
.footer { padding: 2.5rem 0 2rem; }
.footer a:hover { color: #fff !important; }
.footer-contact li { margin-bottom: 0.35rem; }
.footer-divider { border-color: rgba(255,255,255,0.12); margin: 1.5rem 0; }

/* ─── Page Hero (subpages) ─── */
.page-hero {
  background:
    linear-gradient(115deg, rgba(15,18,41,0.94), rgba(30,34,69,0.88)),
    url("https://images.unsplash.com/photo-1449824913935-59a10b8d2000?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  margin-top: 56px;
  padding: 4.5rem 0 3.5rem;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.82); max-width: 42rem; }
.breadcrumb-nav { font-size: 0.9rem; margin-bottom: 1.25rem; }
.breadcrumb-nav a { color: rgba(255,255,255,0.72); }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav span { color: rgba(255,255,255,0.45); margin: 0 0.4rem; }

/* ─── Subpage content ─── */
.subpage-content { padding: 4rem 0 5rem; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: 0.5rem; box-shadow: 0 8px 24px rgba(15,18,41,0.04); margin-bottom: 1.5rem; padding: 2rem; }
.content-card h2 { border-left: 4px solid var(--signal); font-size: 1.35rem; margin-bottom: 1rem; padding-left: 0.85rem; }
.content-card ul { color: var(--steel); margin-bottom: 0; padding-left: 1.25rem; }
.content-card li { margin-bottom: 0.5rem; }
.feature-pill { background: var(--mist); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); display: inline-block; font-size: 0.88rem; font-weight: 600; margin: 0 0.5rem 0.5rem 0; padding: 0.4rem 0.9rem; }

.sidebar-card { background: var(--ink-soft); border-radius: 0.5rem; color: #fff; padding: 1.75rem; position: sticky; top: 5.5rem; }
.sidebar-card h3 { color: var(--gold); font-size: 1rem; letter-spacing: 0.08em; margin-bottom: 1rem; text-transform: uppercase; }
.sidebar-card a { border-bottom: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); display: block; padding: 0.65rem 0; }
.sidebar-card a:last-child { border-bottom: 0; }
.sidebar-card a:hover { color: var(--gold); }

.subpage-cta { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%); border-radius: 0.5rem; color: #fff; margin-top: 1rem; padding: 2rem; }
.subpage-cta p { color: rgba(255,255,255,0.78); margin-bottom: 1.25rem; }

/* ─── Sticky bar ─── */
.sticky-lead-bar {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-soft) 100%);
  border-top: 2px solid var(--signal);
  bottom: 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  left: 0;
  position: fixed;
  right: 0;
  z-index: 1050;
}
.sticky-lead-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1140px;
  padding: 0.65rem 1rem;
}
.sticky-lead-text { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 600; }
.sticky-lead-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sticky-lead-phone { color: var(--gold); font-weight: 700; }
.sticky-lead-btn {
  background: var(--signal);
  border-radius: 0.35rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  transition: background 0.2s;
}
.sticky-lead-btn:hover { background: var(--signal-dark); color: #fff; }

/* ─── Responsive ─── */
@media (max-width: 991.98px) {
  .min-vh-hero { min-height: auto; }
  .masthead { padding-top: 7rem; }
  .showcase .showcase-text { padding: 3rem 1.5rem; }
  .sidebar-card { margin-top: 2rem; position: static; }
}
@media (max-width: 575.98px) {
  .stats-section .stat-box + .stat-box { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; }
}
