:root {
  --sky-50: #f2f9ff;
  --sky-100: #e2f1ff;
  --sky-200: #c7e5ff;
  --sky-500: #2f8ff6;
  --sky-700: #1666c1;
  --ink-900: #0f1f33;
  --ink-700: #3f546d;
  --line: rgba(15, 31, 51, 0.12);
  --surface: rgba(255, 255, 255, 0.85);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: radial-gradient(circle at 10% 15%, #d7ebff 0%, transparent 26%),
    radial-gradient(circle at 88% 12%, #b5e0ff 0%, transparent 24%),
    linear-gradient(140deg, #f4fbff 0%, #eaf4ff 45%, #dfefff 100%);
  min-height: 100vh;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(18, 97, 173, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 97, 173, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.skip-link {
  position: fixed;
  left: 0.75rem;
  top: -3.2rem;
  z-index: 9999;
  background: #0b2d52;
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 9998;
  background: rgba(47, 143, 246, 0.12);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2f8ff6, #6fd0ff);
}

.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 1rem 0 3rem;
}

.nav-wrap {
  margin-top: 0.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: #0b2d52;
}

.nav-wrap .container-fluid {
  align-items: center;
}

.navbar-toggler.nav-toggle {
  border-color: rgba(47, 143, 246, 0.45);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.22rem rgba(47, 143, 246, 0.2);
}

.nav-links .nav-link {
  color: #35506d;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  border: 1px solid transparent;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  color: #1261ad;
  border-color: rgba(47, 143, 246, 0.35);
  background: rgba(47, 143, 246, 0.1);
}

.hero-content {
  max-width: 790px;
  padding-top: 4.5rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1d74cc;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.03;
  margin: 0.7rem 0 0;
}

.lede {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--ink-700);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
}

.hero-cta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, #2f8ff6, #46b5ff);
  box-shadow: 0 14px 32px rgba(47, 143, 246, 0.36);
}

.btn-ghost {
  border: 1px solid rgba(47, 143, 246, 0.45);
  background: rgba(255, 255, 255, 0.75);
  color: #1261ad;
}

.stats,
.services,
.portfolio,
.about,
.contact-wrap,
.footer {
  margin-bottom: 2.5rem;
}

.stat-card,
.service-card,
.portfolio-card,
.about,
.contact-card,
.footer {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface);
  box-shadow: 0 16px 35px rgba(22, 102, 193, 0.09);
}

.stat-card {
  padding: 1.15rem;
}

.stat-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.stat-card p {
  margin: 0.35rem 0 0;
  color: var(--ink-700);
}

.section-head {
  margin-bottom: 0.9rem;
}

.section-head h2 {
  margin: 0.6rem 0 0;
  max-width: 31ch;
}

.section-cta {
  margin-top: 0.95rem;
}

.service-card,
.portfolio-card {
  overflow: hidden;
}

.service-card .card-body,
.portfolio-card .card-body {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(232, 245, 255, 0.86));
}

.service-card h3,
.portfolio-card h3 {
  color: #123f6d;
}

.service-card p,
.portfolio-card p,
.service-card li {
  color: #3f546d;
}

.about {
  padding: 1.3rem;
}

.steps {
  display: grid;
  gap: 0.65rem;
}

.steps article {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.72rem 0.82rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(140deg, #2f8ff6, #6cc4ff);
  color: #fff;
  font-size: 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.steps p {
  margin: 0;
}

.chip {
  margin: 0 0 0.4rem;
  color: #1a75d0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-card {
  padding: 1.35rem;
}

.contact-card form {
  display: grid;
  gap: 0.45rem;
}

.contact-card label {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #224767;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid rgba(18, 97, 173, 0.25);
  border-radius: 0.78rem;
  background: #fff;
  padding: 0.72rem 0.8rem;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: 0;
  border-color: #2f8ff6;
  box-shadow: 0 0 0 0.2rem rgba(47, 143, 246, 0.2);
}

.alert {
  margin: 0.35rem 0;
  border-radius: 0.72rem;
  padding: 0.62rem 0.74rem;
  font-size: 0.93rem;
}

.alert-success {
  background: rgba(18, 165, 118, 0.13);
  border: 1px solid rgba(18, 165, 118, 0.28);
  color: #11694a;
}

.alert-error {
  background: rgba(220, 80, 80, 0.11);
  border: 1px solid rgba(220, 80, 80, 0.28);
  color: #902727;
}

.field-error {
  margin: 0;
  color: #902727;
  font-size: 0.87rem;
}

.footer {
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  max-width: 64ch;
}

.footer small {
  color: #456281;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .hero-content {
    padding-top: 3.3rem;
  }

  .nav-wrap {
    border-radius: 0;
  }

  .nav-links {
    padding-top: 0.55rem;
  }

  .nav-links .nav-link {
    margin-top: 0.25rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-bottom: 2.4rem;
  }

  .hero-content {
    padding-top: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn,
  .service-card,
  .portfolio-card {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
