:root {
  --brand: #0560e8;
  --brand-dark: #0a3fa8;
  --navy: #00163a;
  --bg: #ffffff;
  --bg-alt: #f1f6fe;
  --card: #ffffff;
  --border: rgba(0, 22, 58, .09);
  --text: #1b2a44;
  --text-dim: #5b6b85;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}
h1, h2, h3, h4, .stat { font-family: 'Space Grotesk', 'Inter', sans-serif; color: var(--navy); }
.text-body-secondary { color: var(--text-dim) !important; }

/* Scroll progress */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  z-index: 2000;
}

/* Nav */
#mainNav { padding: 1rem 0; transition: all .3s ease; }
#mainNav.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  padding: .5rem 0;
  box-shadow: 0 1px 0 var(--border), 0 8px 24px -16px rgba(0, 22, 58, .25);
}
.navbar-brand img { display: block; width: auto; }
.navbar-toggler { color: var(--navy); }
.navbar-nav .nav-link { color: var(--text); font-weight: 500; position: relative; padding: .5rem .9rem; }
.navbar-nav .nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: var(--brand); transition: all .3s ease; transform: translateX(-50%);
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--brand); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { width: 55%; }
@media (max-width: 991px) {
  #mainNav .navbar-collapse { background: #fff; border-radius: 12px; padding: 1rem; margin-top: .75rem; box-shadow: 0 12px 30px -12px rgba(0, 22, 58, .3); }
}

/* Buttons */
.btn-accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 0; color: #fff; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(5, 96, 232, .55); }
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand); font-weight: 600; background: transparent; transition: all .2s ease; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: rgba(5, 96, 232, .08); border: 1px solid rgba(5, 96, 232, .2);
  padding: .35rem .8rem; border-radius: 50px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--brand), #2e9bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hero */
.hero {
  min-height: 100vh; position: relative; padding: 7rem 0 5rem; overflow: hidden;
  background: linear-gradient(180deg, #eaf2ff 0%, #f7faff 60%, #ffffff 100%);
}
#network { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; width: 760px; height: 760px; right: -220px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 96, 232, .16), transparent 65%); pointer-events: none;
}
.hero-stats .stat { font-size: 2rem; font-weight: 700; color: var(--navy); }
.hero-stats small { color: var(--text-dim); }
.scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: var(--brand); font-size: 1.6rem; animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* Sections */
.py-section { padding: 6rem 0; }
.alt { background: var(--bg-alt); }

/* Service cards */
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 2rem;
  box-shadow: 0 10px 30px -22px rgba(0, 22, 58, .35);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(5, 96, 232, .09), transparent 60%);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(5, 96, 232, .35); box-shadow: 0 24px 40px -22px rgba(5, 96, 232, .4); }
.service-card:hover::before { opacity: 1; }
.service-card .icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; font-size: 1.6rem;
  color: var(--brand); background: rgba(5, 96, 232, .09); margin-bottom: 1.1rem; transition: transform .3s ease;
}
.service-card:hover .icon { transform: scale(1.1) rotate(-6deg); }
.service-card h3 { font-size: 1.2rem; font-weight: 600; }
.service-card p { color: var(--text-dim); margin: 0; font-size: .95rem; position: relative; }

/* Why cards */
.why-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; height: 100%;
  box-shadow: 0 10px 30px -24px rgba(0, 22, 58, .35);
  transition: transform .3s ease, border-color .3s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(5, 96, 232, .35); }
.why-card i { font-size: 1.7rem; color: var(--brand); }
.why-card h4 { font-size: 1.05rem; margin: .7rem 0 .3rem; font-weight: 600; }
.why-card p { margin: 0; color: var(--text-dim); font-size: .9rem; }

/* Contact */
.contact-list li { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; color: var(--text); }
.contact-list i {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(5, 96, 232, .09); color: var(--brand); font-size: 1.1rem; flex-shrink: 0;
}
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--brand); }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); color: var(--navy); font-size: 1.15rem; transition: all .3s ease; background: #fff;
}
.social a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.contact-form {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 2rem;
  box-shadow: 0 24px 50px -30px rgba(0, 22, 58, .35);
}
.contact-form .form-control, .contact-form .form-select {
  background: #f7faff; border: 1px solid var(--border); color: var(--text); padding: .7rem .9rem;
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
  background: #fff; border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(5, 96, 232, .15);
}
.form-label { font-size: .85rem; color: var(--text-dim); }

/* Footer + to top */
footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
footer img { width: auto; }
#toTop {
  position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; padding: 0;
  opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 1500;
}
#toTop.show { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
  * { transition-duration: .01ms !important; }
}
