/* ===== Tokens ===== */
:root {
  --navy-900: #070b1a;
  --navy-850: #0b1020;
  --navy-800: #0e1430;
  --navy-700: #161d40;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #eef1fb;
  --muted: #9aa3c4;
  --muted-2: #7e87ab;
  --violet: #7b5cff;
  --violet-2: #a78bff;
  --blue: #2f7bff;
  --grad: linear-gradient(100deg, #7b5cff 0%, #2f7bff 60%, #25d6c4 120%);
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--navy-900);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Sora', 'Manrope', sans-serif; line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet-2); margin-bottom: 18px;
}
.eyebrow--light { color: rgba(255,255,255,.75); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #25d6c4; box-shadow: 0 0 12px #25d6c4; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .98rem; padding: 14px 26px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(123,92,255,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(123,92,255,.85); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet-2); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--full { width: 100%; justify-content: center; margin-top: 6px; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7,11,26,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Sora'; font-weight: 800; font-size: 1.35rem; }
.logo__icon { display: block; filter: drop-shadow(0 6px 14px rgba(123,92,255,.45)); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 600; font-size: .96rem; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn { color: #fff; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(123,92,255,.32), transparent 70%),
              radial-gradient(closest-side, rgba(47,123,255,.22), transparent 70%);
  filter: blur(20px);
}
.hero__inner { position: relative; max-width: 880px; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: 26px; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 660px; margin-bottom: 38px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted);
  padding: 11px 20px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.02);
}
.hero__badge strong { color: var(--ink); letter-spacing: .04em; }
a.hero__badge { transition: border-color .2s, transform .2s var(--ease); }
a.hero__badge:hover { border-color: var(--violet-2); transform: translateY(-1px); }
.badge-ext { font-size: .85em; opacity: .7; margin-left: 2px; }

/* ===== Stats ===== */
.stats { padding: 30px 0 70px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }
.stat__num { font-family: 'Sora'; font-size: 2.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section--alt { background: var(--navy-850); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.section__sub { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); background: linear-gradient(180deg, rgba(123,92,255,.08), rgba(255,255,255,0)); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 20px; background: rgba(123,92,255,.14); color: var(--violet-2);
  border: 1px solid rgba(123,92,255,.25);
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }

/* ===== Sectors ===== */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sector { padding: 36px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-800); transition: transform .35s var(--ease); }
.sector:hover { transform: translateY(-6px); }
.sector__no { font-family: 'Sora'; font-weight: 800; font-size: 1rem; color: var(--violet-2); letter-spacing: .1em; }
.sector h3 { font-size: 1.5rem; margin: 14px 0 12px; }
.sector p { color: var(--muted); }

/* ===== Approach ===== */
.approach { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.approach__text p { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: #25d6c4; font-weight: 800; }
.panel { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(123,92,255,.07), rgba(255,255,255,0)); }
.panel h4 { font-size: 1.2rem; margin-bottom: 20px; }
.panel__row { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.panel__row strong { font-size: 1rem; }
.panel__row span { color: var(--muted); font-size: .92rem; }

/* ===== Capabilities band ===== */
.capband { background: var(--navy-850); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.capband::after { content: ""; position: absolute; right: -150px; top: -150px; width: 500px; height: 500px; background: radial-gradient(closest-side, rgba(123,92,255,.25), transparent 70%); filter: blur(10px); }
.capband__inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.capband__sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; max-width: 540px; }
.capband__cta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.capband__contract { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.capband__contract strong { color: var(--ink); letter-spacing: .04em; }
a.capband__contract { transition: color .2s; }
a.capband__contract:hover { color: var(--ink); }
a.capband__contract:hover strong { text-decoration: underline; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact__info p { color: var(--muted); margin-top: 14px; }
.contact__block { margin-top: 28px; }
.contact__block h4 { font-size: 1rem; color: var(--violet-2); margin-bottom: 8px; }
.contact__block a { color: var(--ink); border-bottom: 1px solid var(--line); }
.contact__block a:hover { border-color: var(--violet-2); }
.contact__form { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-800); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--navy-900); color: var(--ink); font-family: inherit; font-size: .97rem; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); }
.field textarea { resize: vertical; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.form__status { margin-top: 14px; font-size: .92rem; color: var(--muted); min-height: 1.2em; }
.form__status.ok { color: #25d6c4; }
.form__status.err { color: #ff7b8a; }

/* ===== Footer ===== */
.footer { background: var(--navy-850); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__brand p { color: var(--muted); margin-top: 16px; max-width: 280px; font-size: .95rem; }
.logo--light { font-size: 1.25rem; }
.footer__col h5 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .88rem; flex-wrap: wrap; }

/* ===== Active nav (multi-page) ===== */
.nav__links a.active { color: var(--ink); }
.nav__links a.active:not(.btn) { position: relative; }
.nav__links a.active:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad);
}

/* ===== Inner page hero ===== */
.page-hero { position: relative; padding: 150px 0 68px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__inner { position: relative; max-width: 780px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 18px; }
.page-hero h1 .grad { display: inline; }
.page-hero p { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 640px; }

/* ===== Teaser helpers (home) ===== */
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.head-row .section__head { margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet-2); white-space: nowrap; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.center-cta { text-align: center; margin-top: 48px; }

/* ===== CTA band (closing) ===== */
.ctaband { background: var(--navy-850); border-top: 1px solid var(--line); }
.ctaband__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.ctaband__inner p { color: var(--muted); font-size: 1.1rem; margin: 16px 0 30px; }

/* ===== Mission quote ===== */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote .eyebrow { text-align: center; }
.quote .stmt { font-family: 'Sora'; font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.95rem); line-height: 1.45; color: var(--ink); letter-spacing: -.01em; }
.quote .mark { color: var(--violet-2); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

/* ===== Technical expertise chips ===== */
.expertise { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.exp-group { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-800); }
.exp-group h4 { font-size: .98rem; color: var(--violet-2); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ===== Numbered steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-800); }
.step__no { font-family: 'Sora'; font-weight: 800; font-size: 1.1rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: rgba(123, 92, 255, .14); color: var(--violet-2); border: 1px solid rgba(123, 92, 255, .25); margin-bottom: 16px; }
.step h4 { font-size: 1.05rem; }

/* ===== Contract vehicles / NAICS specs ===== */
.specs { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.spec-card { padding: 32px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-800); }
.spec-card__head { display: flex; align-items: center; gap: 10px; font-family: 'Sora'; font-weight: 700; font-size: 1.05rem; margin-bottom: 20px; }
.spec-card__head + .spec-card__head, .naics + .spec-card__head { margin-top: 28px; }
.spec { display: grid; }
.spec > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.spec > div:first-child { border-top: 0; padding-top: 0; }
.spec dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.spec dd { color: var(--ink); font-size: .95rem; line-height: 1.6; }
.spec dd a { color: var(--violet-2); }
.spec dd a:hover { text-decoration: underline; }
.naics { list-style: none; display: grid; gap: 12px; }
.naics--grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.naics li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); font-size: .95rem; color: var(--muted); }
.naics li strong { color: var(--ink); font-family: 'Sora'; margin-right: 10px; letter-spacing: .02em; }
.naics-block { margin-top: 24px; padding: 32px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-800); }
.spec-note { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.spec-note a { color: var(--violet-2); }
.spec-note a:hover { text-decoration: underline; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px; border: 1px solid rgba(123, 92, 255, .3); background: rgba(123, 92, 255, .1); color: var(--ink); font-size: .88rem; font-weight: 600; }

/* ===== Clickable service cards ===== */
.card[data-service] { cursor: pointer; }
.card[data-service]:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .9rem; color: var(--violet-2); }
.card__more span { transition: transform .2s var(--ease); }
.card[data-service]:hover .card__more span { transform: translateX(4px); }

/* ===== Service modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 7, 16, .72); backdrop-filter: blur(6px); animation: modalFade .25s ease; }
.modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 540px;
  background: var(--navy-800); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 36px 36px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); animation: modalPop .3s var(--ease);
}
.modal__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--muted); font-size: 1.9rem; line-height: 1; cursor: pointer; transition: color .2s; }
.modal__close:hover { color: var(--ink); }
.modal__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 22px; background: rgba(123, 92, 255, .14); color: var(--violet-2); border: 1px solid rgba(123, 92, 255, .25); }
.modal__panel h3 { font-size: 1.5rem; margin-bottom: 14px; }
.modal__panel p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.modal__cta { margin-top: 28px; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav__links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background: rgba(7,11,26,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 18px 24px 26px; transform: translateY(-120%); transition: transform .35s var(--ease); align-items: stretch; }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a.btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .nav__toggle { display: flex; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .cards, .sectors { grid-template-columns: 1fr; }
  .approach, .capband__inner, .contact { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .page-hero { padding: 120px 0 52px; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .specs { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .expertise, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats__grid, .footer__inner, .ticks { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
}
