:root {
  --bg: #03040a;
  --bg-deep: #060812;
  --surface: rgba(12, 16, 28, 0.65);
  --border: rgba(120, 160, 255, 0.12);
  --border-bright: rgba(120, 160, 255, 0.28);
  --text: #eef2ff;
  --text-muted: #8b95b0;
  --blue: #5b8cff;
  --cyan: #2ee6d6;
  --glow: rgba(91, 140, 255, 0.15);
  --header-h: 70px;
  --radius: 14px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --section-py: 88px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.page {
  position: relative;
  z-index: 1;
}

/* ===== Ambient ===== */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 140, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 20%, transparent 75%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.ambient-orb--1 {
  width: 600px;
  height: 400px;
  top: -10%;
  left: 20%;
  background: rgba(91, 140, 255, 0.12);
}

.ambient-orb--2 {
  width: 500px;
  height: 350px;
  top: 30%;
  right: -5%;
  background: rgba(46, 230, 214, 0.07);
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.25s, border-color 0.25s;
}

.header.is-scrolled {
  background: rgba(3, 4, 10, 0.88);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a:not(.btn) {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-menu a:not(.btn):hover { color: var(--text); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #4060d0);
  color: #fff;
  box-shadow: 0 0 40px rgba(91, 140, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 56px rgba(91, 140, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  border: 1px solid var(--border-bright);
  background: rgba(91, 140, 255, 0.08);
}

.btn-sm:hover {
  background: rgba(91, 140, 255, 0.15);
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(91, 140, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(46, 230, 214, 0.06), transparent 50%);
}

.hero-inner {
  max-width: 680px;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 20px;
}

.shine {
  background: linear-gradient(135deg, #a8c4ff 0%, var(--cyan) 50%, #a8c4ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (prefers-reduced-motion: no-preference) {
  .shine { animation: shine 6s linear infinite; }
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* ===== Sections ===== */
.section {
  padding: var(--section-py) 0;
}

.section-alt {
  background: var(--bg-deep);
  border-block: 1px solid var(--border);
}

.sec-head {
  margin-bottom: 48px;
  max-width: 620px;
}

.sec-head--center {
  max-width: 640px;
  text-align: center;
  margin-inline: auto;
}

.sec-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.sec-head p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

#capabilities {
  padding-top: 72px;
}

#solutions {
  padding-bottom: 96px;
}

#contact {
  padding-top: 72px;
  padding-bottom: 96px;
}

/* ===== Capability matrix ===== */
.cap-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cap-card {
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
}

.cap-card:hover {
  border-color: rgba(46, 230, 214, 0.35);
  transform: translateY(-2px);
}

.cap-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  color: var(--cyan);
  border: 1px solid rgba(46, 230, 214, 0.25);
  border-radius: 999px;
  background: rgba(46, 230, 214, 0.06);
}

.cap-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cap-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== Solutions ===== */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.sol-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s;
}

.sol-card:hover { border-color: var(--border-bright); }

.sol-card--hero {
  grid-column: 1 / -1;
  border-color: rgba(46, 230, 214, 0.25);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.08) 0%, rgba(46, 230, 214, 0.05) 100%);
}

.sol-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.sol-ref {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: -6px 0 12px;
}

.sol-ref a {
  color: var(--cyan);
  text-decoration: none;
}

.sol-ref a:hover { text-decoration: underline; }

.sol-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.sol-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.75;
}

.sol-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sol-feats li {
  padding: 5px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ===== CTA ===== */
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 44px 52px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.1), rgba(46, 230, 214, 0.06));
  box-shadow: 0 0 60px var(--glow);
}

.cta-text h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin-bottom: 8px;
}

.cta-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  line-height: 1.7;
}

.cta-tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 18px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  background: var(--bg);
  transition: box-shadow 0.25s;
}

.cta-tel small {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cta-tel strong {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cta-tel:hover { box-shadow: 0 0 40px var(--glow); }

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-right p,
.footer-right a {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-right a:hover { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cap-matrix { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --section-py: 64px; }

  .container { width: min(1120px, calc(100% - 32px)); }

  .menu-btn { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(3, 4, 10, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu .btn { margin-top: 8px; text-align: center; }

  .hero {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 56px;
  }

  .hero-desc { font-size: 0.98rem; }

  .cap-matrix,
  .sol-grid {
    grid-template-columns: 1fr;
  }

  .sol-card--hero { grid-column: auto; }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .cta-tel { width: 100%; }

  .footer-right { align-items: flex-start; }
}
