/* ===== Variables ===== */
:root {
  --color-bg: #060d18;
  --color-bg-alt: #0c1525;
  --color-surface: #111d32;
  --color-surface-hover: #162640;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-accent: #0047AB;
  --color-accent-light: #2563EB;
  --color-primary: #003380;
  --color-gradient-start: #003380;
  --color-gradient-end: #0047AB;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s ease;
  --header-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.accent {
  color: var(--color-accent);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-accent-light));
  -webkit-background-clip: text;
-webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 71, 171, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 71, 171, 0.5);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(6, 13, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
  background: #fff;
  padding: 5px 12px;
  border-radius: 8px;
}

.nav__logo-img--footer {
  height: 48px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
}

.nav__link--cta {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: #fff !important;
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem;
}

.nav__link--cta:hover {
  opacity: 0.9;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 71, 171, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(0, 71, 171, 0.1), transparent);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

/* ===== Hero 3D network canvas ===== */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.85;
}

.hero__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* ===== HUD accents ===== */
.hud-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--color-accent-light);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

.hud-corner--tl {
  top: calc(var(--header-height) + 24px);
  left: 24px;
  border-right: none;
  border-bottom: none;
}

.hud-corner--tr {
  top: calc(var(--header-height) + 24px);
  right: 24px;
  border-left: none;
  border-bottom: none;
}

.hud-label {
  position: absolute;
  z-index: 1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--color-accent-light);
  opacity: 0.55;
  pointer-events: none;
}

.hud-label--tl {
  top: calc(var(--header-height) + 38px);
  left: 62px;
}

.hud-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-light);
  margin-right: 6px;
  box-shadow: 0 0 6px var(--color-accent-light);
  animation: hud-blink 1.6s infinite ease-in-out;
}

@keyframes hud-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@media (max-width: 768px) {
  .hud-corner,
  .hud-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hud-dot {
    animation: none;
  }
  .hero__canvas {
    display: none;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 6rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 71, 171, 0.15);
  border: 1px solid rgba(0, 71, 171, 0.35);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__desc {
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(0, 71, 171, 0.35);
  transform: translateY(-3px);
}

.info-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.info-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== Values ===== */
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}

.value-card:hover {
  border-color: rgba(0, 71, 171, 0.4);
  background: var(--color-surface-hover);
}

.value-card__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* ===== Services ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 71, 171, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card ul li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ===== Why Us ===== */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.why-item:hover {
  border-color: rgba(0, 71, 171, 0.35);
}

.why-item__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 71, 171, 0.15);
  color: var(--color-accent);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ===== Industries ===== */
.industries__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.industry-tag {
  padding: 0.65rem 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: default;
}

.industry-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 71, 171, 0.1);
}

/* ===== Process ===== */
.process__timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.process__step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}

.process__step:hover {
  border-color: rgba(0, 71, 171, 0.4);
  transform: translateY(-3px);
}

.process__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
}

.process__step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== Promise / CTA ===== */
.promise {
  position: relative;
  overflow: hidden;
}

.promise::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(0, 71, 171, 0.2), transparent);
  pointer-events: none;
}

.promise__content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.promise__content p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.promise__tagline {
  font-weight: 600;
  color: var(--color-accent-light) !important;
  font-size: 1.1rem !important;
  margin-bottom: 2rem !important;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer__links h4,
.footer__contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer__links ul li {
  margin-bottom: 0.5rem;
}

.footer__links a,
.footer__contact a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  text-align: center;
}

.footer__bottom p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(6, 13, 24, 0.97);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 0.85rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}
