/* ========== TOKENS ========== */
:root {
  --navy-950: #050f2c;
  --navy-900: #0a1f4d;
  --navy-800: #0d2657;
  --navy-700: #143371;
  --blue-500: #2b6cff;
  --blue-600: #1e5ae8;
  --blue-50: #eaf1ff;
  --ink-900: #0a1f4d;
  --ink-700: #1f2a44;
  --ink-500: #5b6783;
  --ink-400: #7884a3;
  --line: #e6ebf3;
  --line-strong: #d8e0ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(10, 31, 77, 0.04);
  --shadow-sm: 0 1px 3px rgba(10, 31, 77, 0.05), 0 1px 2px rgba(10, 31, 77, 0.04);
  --shadow-md: 0 6px 24px rgba(10, 31, 77, 0.07), 0 2px 6px rgba(10, 31, 77, 0.04);
  --shadow-lg: 0 24px 60px rgba(10, 31, 77, 0.18);
  --container: 1240px;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
button {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1.5px solid transparent;
  transition:
    transform 0.18s ease,
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.btn-sm {
  padding: 11px 20px;
  font-size: 14px;
}
.btn-primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 6px 20px rgba(43, 108, 255, 0.35);
}
.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(43, 108, 255, 0.45);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ========== HERO-WRAP (header + hero share dark canvas) ========== */
.hero-wrap {
  background: #020b1c;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 75%);
}

/* ========== HEADER ========== */
.site-header {
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.025em;
  gap: 2px;
}
.logo-mark {
  background: var(--blue-500);
  color: #fff;
  padding: 6px 9px 6px 7px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}
.logo-mark-zero {
  display: inline-block;
  margin-left: 1px;
}
.logo-text {
  margin-left: 6px;
}
.logo-dot {
  color: var(--blue-500);
}

.primary-nav {
  display: flex;
  gap: 36px;
}
.primary-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 2px;
  position: relative;
  transition: color 0.15s;
}
.primary-nav a:hover {
  color: #fff;
}
.primary-nav a.active {
  color: #fff;
  font-weight: 600;
}
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

/* ========== HERO ========== */
.hero {
  padding: 0 0 56px;
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75%;
  background-image: url("https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=1800&q=85");
  background-size: cover;
  background-position: center right;
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #020b1c 0%,
      #020b1c 14%,
      rgba(2, 11, 28, 0.85) 26%,
      rgba(2, 11, 28, 0.4) 42%,
      rgba(2, 11, 28, 0.22) 65%,
      rgba(2, 11, 28, 0.2) 100%
    ),
    linear-gradient(135deg, rgba(11, 30, 70, 0.25) 0%, rgba(2, 11, 28, 0.12) 100%);
  pointer-events: none;
}
.hero-grid {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 540px;
}
.hero-copy {
  padding: 56px 28px;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy > * {
  max-width: 580px;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #4f8bff;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.eyebrow.blue {
  color: var(--blue-500);
}
.eyebrow.light {
  color: #93b3ff;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 560px;
}
.lede {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 500px;
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: var(--blue-500);
}
.btn-outline:hover {
  background: rgba(43, 108, 255, 0.1);
  color: #fff;
  border-color: var(--blue-500);
}

/* hero foot: trust row + helping card */
.hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 36px 0 0;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
  align-items: center;
  padding-left: max(28px, calc((100vw - var(--container)) / 2 + 28px));
  padding-right: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.trust-icon {
  color: var(--blue-500);
  display: inline-flex;
  flex-shrink: 0;
}
.trust-icon svg {
  width: 22px;
  height: 22px;
}

.helping-card {
  display: none;
  background: rgba(8, 22, 58, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 28px;
  display: none; /*flex; */
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-self: end;
  align-self: center;
  width: fit-content;
  max-width: 520px;
  margin-right: max(28px, calc((100vw - var(--container)) / 2 + 28px));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.helping-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(43, 108, 255, 0.18);
  color: var(--blue-500);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.helping-icon svg {
  width: 28px;
  height: 28px;
}
.helping-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.helping-text span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

/* ========== SECTION HEAD ========== */
.section {
  padding: 110px 0;
}
.section-head {
  max-width: 800px;
  margin-bottom: 64px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
}
.section-head p {
  color: var(--ink-500);
  font-size: 16.5px;
  margin: 0;
  line-height: 1.6;
}

/* ========== SERVICES ========== */
.services {
  background: var(--bg-soft);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-50);
  color: var(--blue-500);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition:
    background 0.25s,
    color 0.25s;
}
.card:hover .card-icon {
  background: var(--blue-500);
  color: #fff;
}
.card-icon svg {
  width: 26px;
  height: 26px;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--navy-900);
  letter-spacing: -0.015em;
  font-weight: 700;
}
.card p {
  font-size: 14.5px;
  color: var(--ink-500);
  margin: 0 0 22px;
  line-height: 1.65;
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.card-link:hover {
  gap: 10px;
}

/* ========== WHY / STATS ========== */
.why {
  background: #020b1c;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 50px 0;
}
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.35;
}
.why-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.55fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.why-copy h2 {
  color: #fff;
  font-size: clamp(30px, 3.2vw, 42px);
  margin-bottom: 18px;
  line-height: 1.1;
  font-weight: 800;
}
.why-copy p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16.5px;
  margin: 0 0 32px;
  max-width: 460px;
  line-height: 1.65;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  background: linear-gradient(180deg, rgba(15, 35, 80, 0.55), rgba(8, 22, 58, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 26px 18px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.stat:hover {
  border-color: rgba(43, 108, 255, 0.5);
  transform: translateY(-3px);
}
.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(43, 108, 255, 0.14);
  color: var(--blue-500);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(43, 108, 255, 0.18);
}
.stat-icon svg {
  width: 26px;
  height: 26px;
}
.stat-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
  margin-bottom: 18px;
  min-height: 34px;
}
.stat-num {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.stat-num em {
  color: var(--blue-500);
  font-style: normal;
}
.stat-label {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  font-weight: 500;
}

/* ========== INDUSTRIES ========== */
.industries {
  background: #fff;
  padding: 50px 0;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.industry {
  background: transparent;
  border: none;
  padding: 16px 8px;
  text-align: center;
}
.industry-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  background: transparent;
  color: #000;
  border: none;
  display: grid;
  place-items: center;
}
.industry-icon svg {
  width: 38px;
  height: 38px;
}
.industry span {
  font-size: 13.5px;
  font-weight: 600;
  color: #000;
  display: block;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #050f2c;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 88px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 56px;
  padding-bottom: 64px;
}
.footer-brand .logo {
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 14.5px;
  margin: 0 0 22px;
  max-width: 320px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.socials a:hover {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
  transform: translateY(-2px);
}
.socials svg {
  width: 14px;
  height: 14px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.5px;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #fff;
}
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}
.contact-list .icon {
  color: var(--blue-500);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.contact-list .icon svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 13.5px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.legal {
  display: flex;
  gap: 28px;
}
.legal a {
  color: rgba(255, 255, 255, 0.55);
}
.legal a:hover {
  color: #fff;
}

/* ========== MOBILE NAV ========== */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
  transform-origin: center;
}
body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 11, 28, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body.nav-open .mobile-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #020b1c;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  padding: 22px 26px 32px;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}
body.nav-open .mobile-nav {
  transform: translateX(0);
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.nav-close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.nav-close:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav-close svg {
  width: 20px;
  height: 20px;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}
.mobile-nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.mobile-nav-cta {
  justify-content: center;
  width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image {
    min-height: 360px;
  }
  .hero-image img {
    position: relative;
    height: 360px;
  }
  .hero-copy {
    padding: 56px 28px;
  }
  .hero-foot {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .trust-row {
    padding: 0 28px;
    grid-template-columns: repeat(2, auto);
    gap: 16px 28px;
    justify-content: start;
  }
  .helping-card {
    margin: 0 28px;
    justify-self: start;
  }
  .why-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 720px) {
  .primary-nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .mobile-nav,
  .mobile-nav-overlay {
    display: flex;
  }
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(2, 11, 28, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .hero-wrap {
    padding-top: 72px;
  }
  .section {
    padding: 72px 0;
  }
  .hero {
    padding: 0 0 48px;
  }
  .hero-copy {
    padding: 40px 24px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom-inner {
    flex-direction: column;
  }
  .trust-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .header-inner {
    height: 72px;
  }
}
