/* Home page styles (index.html). Self-contained; services.html keeps using styles.css. */

:root {
  --navy: #0D1B2A;
  --blue: #1D5EFF;
  --blue-mid: #1750E8;
  --blue-hi: #5A8CFF;
  --blue-tint: #E8EFFF;
  --surface: #F4F5F7;
  --line: #E6E9EE;
  --ink-soft: #4A5568;
  --display: 'Montserrat', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--navy); background: var(--surface); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.kicker { font: 600 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 16px; }
h2 { font: 700 clamp(30px, 4.2vw, 52px)/1.1 var(--display); letter-spacing: -0.02em; }

.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 6px; font: 600 16px var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--blue-mid); }
.btn-ghost { border-color: #8795A5; color: #F4F5F7; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: #fff; }
.btn-light { background: var(--surface); color: var(--navy); }
.btn-light:hover, .btn-light:focus-visible { background: #fff; }

/* Hero + nav */
.hero { background: var(--navy); color: var(--surface); }
.nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px 0; }
.nav-mark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.badge { display: flex; flex-direction: column; gap: 3px; }
.logo-icon { height: 32px; width: auto; display: block; }
.badge .word { font: 700 15px/1 var(--display); color: #fff; }
.divider { width: 1px; height: 40px; background: #34465A; }
.tag { font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #B9C3CF; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav-links a { padding: 12px 16px; color: var(--surface); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--blue-hi); }
.nav-links .nav-cta { background: var(--blue); color: #fff; border-radius: 6px; padding: 12px 22px; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--blue-mid); color: #fff; }
.hero-body { padding: 72px 0 104px; }
.hero h1 { font: 700 clamp(42px, 6.6vw, 84px)/1.04 var(--display); letter-spacing: -0.02em; max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--blue-hi); }
.hero-sub { margin-top: 32px; max-width: 560px; font-size: 19px; line-height: 1.6; color: #D3DAE2; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Services cards */
.section { padding: 96px 0 0; }
.section h2 { margin-bottom: 40px; }
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 340px; min-width: 0; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 16px; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font: 700 22px var(--display); }
.card p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* Why */
.why { display: flex; flex-wrap: wrap; gap: 48px; padding: 104px 32px; }
.why .kicker { flex: 0 1 240px; }
.why-body { flex: 1 1 520px; min-width: 0; }
.why-body h2 { font-size: clamp(32px, 4.4vw, 54px); }
.why-body p { margin-top: 28px; max-width: 620px; font-size: 20px; line-height: 1.6; color: #36424F; }

/* Models */
.models-intro { margin: 20px 0 48px; max-width: 620px; font-size: 18px; line-height: 1.6; color: #36424F; }
.model { flex: 1 1 320px; min-width: 0; padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.model .num { font: 700 48px/1 var(--display); color: var(--blue); margin-bottom: 40px; }
.model h3 { font: 700 24px var(--display); margin-bottom: 12px; }
.model p { font-size: 16px; line-height: 1.6; color: #36424F; }
.models h2 { margin-bottom: 0; font-size: clamp(32px, 4.4vw, 54px); }

/* ProgramOps band */
.band { margin-top: 104px; padding: 56px 48px; border-radius: 16px; background: var(--navy); color: var(--surface); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.band-text { flex: 1 1 480px; min-width: 0; }
.band .kicker { color: var(--blue-hi); }
.band h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.01em; margin-bottom: 20px; }
.band p { max-width: 560px; font-size: 18px; line-height: 1.6; color: #D3DAE2; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; padding: 104px 32px; }
.contact h2 { flex: 1 1 400px; min-width: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
.contact-side { flex: 1 1 400px; min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { font: 400 16px var(--sans); color: var(--navy); padding: 12px 14px; border: 1px solid #8B8778; border-radius: 6px; background: #fff; }
.field input { height: 48px; padding-top: 0; padding-bottom: 0; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { align-self: flex-start; }
.contact-form .btn:disabled { opacity: 0.7; cursor: default; }
.contact-form-msg { font-size: 14px; color: #4A5568; }
.contact-form-msg.error { color: #B42318; }
.contact-success { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: var(--blue-tint); color: var(--blue-mid); border-radius: 8px; font-weight: 600; }
.contact-success svg { flex-shrink: 0; }

footer { background: var(--navy); color: #B9C3CF; font-size: 14px; }
footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer a { color: var(--surface); }

/* Work cards (home) */
.work-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.work-card { flex: 1 1 480px; min-width: 0; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s; }
.work-card:hover, .work-card:focus-visible { border-color: var(--blue); transform: translateY(-2px); }
.work-role { font: 600 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-mid); }
.work-card h3 { font: 700 24px var(--display); }
.work-card p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.work-card .work-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--navy); }
.work-stats strong { font: 800 18px var(--display); color: var(--blue); margin-right: 4px; }
.work-link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--blue-mid); }
.work-all { margin-top: 32px; font-weight: 600; }
.work-all a { color: var(--blue-mid); }
@media (prefers-reduced-motion: reduce) { .work-card { transition: none; } .work-card:hover { transform: none; } }

/* Case studies page */
.hero-short { padding-bottom: 80px; }
.kicker-dark { color: var(--blue-hi); }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--blue-hi); }
.cs { padding: 96px 0 0; }
.cs + .cs { padding-top: 88px; }
.cs .wrap { border-top: 1px solid var(--line); padding-top: 72px; }
.cs:first-of-type .wrap { border-top: 0; padding-top: 0; }
.cs h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 48px); }
.cs-tag { font-size: 20px; color: var(--ink-soft); max-width: 720px; }
.metrics { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0; padding: 0; }
.metrics > div { flex: 1 1 200px; padding: 20px 24px; background: var(--navy); color: var(--surface); border-radius: 12px; }
.metrics dt { font: 800 28px/1.15 var(--display); white-space: nowrap; color: var(--blue-hi); margin-bottom: 6px; }
.metrics dd { margin: 0; font-size: 14px; color: #D3DAE2; }
.cs-overview { max-width: 800px; font-size: 18px; line-height: 1.7; color: #36424F; }
.cs-cols { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.cs-col { flex: 1 1 340px; min-width: 0; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cs-col:has(.steps) { flex: 2 1 520px; }
.cs-col h3 { font: 700 13px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 20px; }
.cs-col ul { margin: 0; padding-left: 20px; display: grid; gap: 12px; font-size: 16px; line-height: 1.55; color: #36424F; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.steps li { display: flex; flex-direction: column; gap: 4px; }
.steps strong { font: 700 16px var(--display); }
.steps span { font-size: 16px; line-height: 1.55; color: #36424F; }
.metrics > div:only-child { flex: 0 1 260px; }

/* Hero results panel */
.hero-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-panel { flex: 1 1 360px; min-width: 0; max-width: 460px; padding: 28px; border-radius: 16px; background: #12263A; border: 1px solid #25405A; display: flex; flex-direction: column; gap: 22px; }
.panel-label { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-hi); }
.bar-row { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--surface); border-radius: 6px; }
.bar-row:hover .bar-name, .bar-row:focus-visible .bar-name { color: var(--blue-hi); }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bar-name { font-size: 15px; font-weight: 500; }
.bar-val { font: 800 26px/1 var(--display); color: #fff; }
.bar { display: block; height: 10px; border-radius: 999px; background: #1F3850; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--blue-hi); }
.bar-src { font-size: 12px; color: #9FB0C3; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid #34506B; font-size: 13px; color: #D3DAE2; text-decoration: none; }
.chip strong { color: #fff; font-weight: 700; }
.chip:hover, .chip:focus-visible { border-color: var(--blue-hi); }
.panel-all { font-weight: 600; font-size: 14px; color: var(--blue-hi); text-decoration: none; }
.panel-all:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) { .bar > span { transform-origin: left; animation: grow .9s ease-out both; } @keyframes grow { from { transform: scaleX(0); } } }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 12px; background: #0D1B2A; border: 1px solid #25405A; border-top: 3px solid var(--blue-hi); text-decoration: none; }
.tile strong { font: 800 34px/1 var(--display); color: #fff; letter-spacing: -0.02em; }
.tile span { font-size: 13px; line-height: 1.4; color: #B9C3CF; }
.tile:hover, .tile:focus-visible { background: #102338; border-color: var(--blue-hi); }
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr; } }

.wins { display: flex; flex-direction: column; gap: 10px; }
.win { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #0D1B2A; border: 1px solid #25405A; text-decoration: none; }
.win:hover, .win:focus-visible { background: #102338; border-color: var(--blue-hi); }
.win-icon { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.win strong { display: block; font: 700 16px/1.35 var(--display); color: #fff; }
.win span > span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: #B9C3CF; }

/* Home hero services diagram */
.hero-graphic { flex: 1 1 380px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.graphic { width: 100%; height: auto; display: block; overflow: visible; }
.g-ring { fill: none; stroke: #25405A; stroke-width: 1.5; stroke-dasharray: 3 7; }
.g-lines line { stroke: #34506B; stroke-width: 1.5; }
.g-core-halo { fill: rgba(29, 94, 255, 0.18); }
.g-core { fill: var(--blue); }
.g-core-t { font: 800 17px var(--display); fill: #fff; }
.g-core-s { font: 400 11px var(--mono); fill: #D6E2FF; letter-spacing: 0.08em; text-transform: uppercase; }
.g-node { fill: #12263A; stroke: #3A5873; stroke-width: 1.2; }
.g-dot { fill: var(--blue-hi); }
.g-label { font: 600 13px var(--sans); fill: #fff; }
.graphic-foot { text-align: center; }
.graphic-cap { font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #9FB0C3; margin-bottom: 10px; }
.models-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.models-row li { padding: 8px 14px; border-radius: 999px; border: 1px solid #34506B; font-size: 13px; color: #D3DAE2; }
@media (prefers-reduced-motion: no-preference) { .g-core-halo { transform-origin: 260px 232px; animation: halo 3.2s ease-in-out infinite; } @keyframes halo { 50% { transform: scale(1.12); } } }

/* Case studies hero balance */
.hero-short { padding-bottom: 48px; }
.wins-row { flex-direction: row; flex-wrap: wrap; gap: 16px; padding-bottom: 88px; }
.wins-row .win { flex: 1 1 300px; min-width: 0; }
