/* WangYi — clean corporate blue / network-node theme on cool white.
   Distinct from Luyin (dark teal), MiDa (light violet), RunYan (warm emerald),
   Cojzq (navy+lime console), Ssyuan (ink+gold serif), Shacengbao (sand terracotta). */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Scroll reveal */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo mark: rounded-square node chip */
.logo-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(160deg, #3B82F6, #1D4ED8);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.55);
  position: relative;
}

/* small link tick on the logo node, like a connector stub */
.logo-node::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  width: 6px;
  height: 2px;
  background: #93C5FD;
  border-radius: 2px;
}

/* Dotted node-grid backdrop */
.node-grid {
  background-image: radial-gradient(rgba(37, 99, 235, 0.14) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
}

.node-grid-dark {
  background-image: radial-gradient(rgba(147, 197, 253, 0.12) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
}

/* Soft blue glow in hero */
.hero-glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 9999px;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 70%);
  top: -12rem;
  right: -10rem;
  pointer-events: none;
}

.contact-glow {
  position: absolute;
  width: 30rem;
  height: 30rem;
  border-radius: 9999px;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
  bottom: -12rem;
  left: -10rem;
  pointer-events: none;
}

/* Eyebrow with leading node dot */
.eyebrow-net {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2563EB;
}

.eyebrow-net::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.eyebrow-on-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #93C5FD;
}

.eyebrow-on-dark::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #93C5FD;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.18);
}

/* Dashed network frame with corner nodes — signature motif */
.net-frame {
  position: relative;
  border: 1.5px dashed #93C5FD;
  border-radius: 1rem;
  background: #fff;
}

.net-frame::before,
.net-frame::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.net-frame::before {
  top: -6px;
  left: -6px;
}

.net-frame::after {
  bottom: -6px;
  right: -6px;
}

/* Stat separator: small node pair */
.node-sep {
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(#BFDBFE, #EFF6FF);
  border-radius: 2px;
  position: relative;
}

/* Stat tiles with connector line */
.stat-node {
  position: relative;
  border-top: 2px solid #BFDBFE;
  padding-top: 1.1rem;
}

.stat-node::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #2563EB;
}

/* Blueprint grid lines inside flagship card */
.card-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Pulsing status node */
.pulse-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563EB;
  position: relative;
  flex-shrink: 0;
}

.pulse-node::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.4);
  animation: node-ping 1.8s ease-out infinite;
}

@keyframes node-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Nav */
.nav-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748B;
  transition: color 0.2s;
}

.nav-text:hover {
  color: #2563EB;
}

#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(30, 58, 138, 0.08);
  border-bottom: 1px solid #EFF6FF;
}

/* Service cards */
.svc-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(30, 58, 138, 0.3);
}

.svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
}

/* Chips */
.chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1D4ED8;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

.chip-on-blue {
  font-size: 0.7rem;
  font-weight: 700;
  color: #EFF6FF;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

/* Case study labels + rule */
.cs-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2563EB;
}

.net-rule {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #2563EB 0 40%, #BFDBFE 40% 100%);
  position: relative;
}

.net-rule::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #BFDBFE;
}

/* Form fields */
.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 0.75rem;
  padding: 0.9rem 1.25rem;
  color: #EFF6FF;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field::placeholder {
  color: rgba(147, 197, 253, 0.45);
}

.field:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.6);
}

/* Footer column labels */
.footer-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #60A5FA;
}

/* Buttons */
.btn-primary {
  box-shadow: 0 8px 22px -6px rgba(37, 99, 235, 0.5);
}

.btn-outline {
  box-shadow: 0 4px 14px -6px rgba(37, 99, 235, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none; opacity: 1; transform: none; }
  .pulse-node::after { animation: none; }
  html { scroll-behavior: auto; }
}
