:root {
  --bg: #071f44;
  --surface: #0a3161;
  --surface-2: #123f76;
  --ink: #ffffff;
  --muted: #eaf2ff;
  --soft: #c7d9f0;
  --line: rgba(255, 255, 255, 0.18);
  --accent: #6ea8ff;
  --accent-2: #b31942;
  --accent-dark: #0a3161;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #04142d; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 10%, rgba(110, 168, 255, 0.20), transparent 30rem),
    radial-gradient(circle at 10% 22%, rgba(179, 25, 66, 0.18), transparent 24rem),
    linear-gradient(180deg, #0a3161 0%, #071f44 48%, #04142d 100%);
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
h1 { font-family: "IBM Plex Serif", Georgia, serif; font-size: clamp(3.2rem, 8vw, 7.8rem); max-width: 980px; }
h2 { font-family: "IBM Plex Serif", Georgia, serif; font-size: clamp(2.35rem, 5vw, 4.8rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.03em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(4, 20, 45, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(179, 25, 66, 0.22);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.03em; font-size: 1.08rem; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent-2);
  font-family: "IBM Plex Serif", Georgia, serif;
}

nav { display: flex; align-items: center; gap: 22px; font-size: 0.96rem; color: var(--white); }
nav a { transition: color .18s ease, transform .18s ease; }
nav a:hover { color: var(--white); transform: translateY(-1px); }
.nav-cta { color: var(--white); font-weight: 700; }

.section { padding: clamp(72px, 9vw, 132px) clamp(20px, 5vw, 72px); }
.hero { min-height: calc(100vh - 73px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center; gap: clamp(36px, 6vw, 92px); padding-top: clamp(56px, 8vw, 96px); }
.hero-copy { display: grid; gap: 28px; }
.eyebrow, .section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
}
.eyebrow::before, .section-kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent-2); }
.lede { max-width: 860px; color: var(--muted); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--accent-2); color: var(--white); box-shadow: 0 14px 30px rgba(179, 25, 66, .32); }
.primary:hover { background: #961537; box-shadow: 0 18px 40px rgba(179, 25, 66, .42); }
.secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); color: var(--white); }

.signal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .07);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-top { display: grid; gap: 8px; padding: 26px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(179, 25, 66, .14)); }
.panel-top span, .signal-grid span { color: var(--soft); font-size: .84rem; }
.panel-top strong { font-size: 1.25rem; letter-spacing: -0.03em; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.signal-grid div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 120px; display: grid; align-content: space-between; }
.signal-grid div:nth-child(even) { border-right: 0; }
.signal-grid div:nth-child(n+3) { border-bottom: 0; }
.signal-grid strong { font-size: 1.12rem; color: var(--white); }
.panel-note { margin: 26px; padding: 20px; border-radius: 18px; color: var(--muted); background: rgba(255,255,255,.08); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.body-copy { display: grid; gap: 18px; color: var(--muted); font-size: 1.15rem; }
.problem { border-top: 1px solid var(--line); }
.problem .section-kicker, .about .section-kicker { margin-bottom: 22px; }

.stakes, .services, .proof { background: rgba(255,255,255,.05); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stakes h2 { max-width: 820px; margin-top: 18px; }
.cards { display: grid; gap: 18px; margin-top: 38px; }
.six { grid-template-columns: repeat(3, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }
.cards article, .proof blockquote {
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .07);
  min-height: 230px;
}
.cards article span { display: inline-block; color: var(--accent-2); font-weight: 700; margin-bottom: 34px; }
.cards article p { margin-top: 16px; color: var(--muted); }

.solution { padding-top: clamp(86px, 11vw, 150px); padding-bottom: clamp(86px, 11vw, 150px); }
.solution-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 78px);
  border-radius: 36px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}
.solution-card .eyebrow { color: var(--muted); }
.solution-card h2 { margin-top: 22px; }
.solution-card p:last-child { max-width: 860px; margin-top: 26px; color: rgba(255,255,255,.74); font-size: 1.18rem; }

.section-heading { max-width: 860px; display: grid; gap: 20px; }
.services .cards article { min-height: 300px; }
.services .cards article > span { color: var(--white); margin-bottom: 42px; }

.diagnostic { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.diagnostic-copy p:last-child { color: var(--muted); margin-top: 24px; font-size: 1.22rem; max-width: 620px; }
.diagnostic-list { padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); background: rgba(255,255,255,.08); border: 1px solid var(--line); box-shadow: var(--shadow); }
ul { margin: 24px 0 28px; padding: 0; list-style: none; display: grid; gap: 14px; }
li { position: relative; padding-left: 28px; color: var(--muted); }
li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); }

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.proof blockquote { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.proof p { font-family: "IBM Plex Serif", Georgia, serif; font-size: 1.35rem; line-height: 1.28; letter-spacing: -0.03em; }
cite { color: var(--muted); font-style: normal; margin-top: 24px; display: block; }

.about { border-bottom: 1px solid var(--line); }
.final-cta { text-align: center; max-width: 1040px; margin: 0 auto; display: grid; justify-items: center; gap: 22px; }
.final-cta p:not(.eyebrow) { color: var(--muted); font-size: 1.2rem; max-width: 620px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 5vw, 72px); color: var(--muted); border-top: 1px solid var(--line); }
footer a { color: var(--white); font-weight: 700; }

@media (max-width: 1080px) {
  .hero, .diagnostic, .split { grid-template-columns: 1fr; }
  .four, .six, .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { position: static; align-items: flex-start; }
  nav { display: none; }
  .section { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: auto; }
  .four, .six, .proof-grid, .signal-grid { grid-template-columns: 1fr; }
  .signal-grid div, .signal-grid div:nth-child(even), .signal-grid div:nth-child(n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-grid div:last-child { border-bottom: 0; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .cta-row, footer { flex-direction: column; align-items: flex-start; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, html { scroll-behavior: auto !important; transition: none !important; }
}

/* Case studies */
.case-hero {
  min-height: 72vh;
  display: grid;
  align-content: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.case-hero h1 { max-width: 1180px; }
.case-index { padding-top: clamp(48px, 7vw, 96px); }
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.case-study-card {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .16);
}
.case-study-card.featured,
.case-study-card:last-child { grid-column: 1 / -1; }
.case-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  font-weight: 700;
}
.case-top strong { color: var(--white); }
.case-study-card h2 {
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  max-width: 980px;
}
.case-study-card p { color: var(--muted); font-size: 1.05rem; }
.case-study-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 0;
}
.case-study-card dl div {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255,255,255,.12);
}
.case-study-card dt {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  font-family: "IBM Plex Serif", Georgia, serif;
  letter-spacing: -0.04em;
}
.case-study-card dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}
.intelligence-note {
  padding: 18px 20px;
  border-left: 4px solid var(--accent-2);
  background: rgba(179, 25, 66, .12);
  border-radius: var(--radius-sm);
}
@media (max-width: 900px) {
  .case-study-grid { grid-template-columns: 1fr; }
  .case-study-card dl { grid-template-columns: 1fr; }
  .case-top { align-items: flex-start; flex-direction: column; }
}
