:root {
  --navy: #0B1B2B;
  --navy-2: #0F2235;
  --navy-deep: #08141F;
  --line-dark: #23394F;
  --green: #1FCB98;
  --blue: #0B6F94;
  --paper: #F6F6F2;
  --white: #FFFFFF;
  --ink: #0B1B2B;
  --body: #44576A;
  --muted-dark: #9FB0C0;
  --soft-dark: #C9D5E1;
  --border: #DEE2DC;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 80px; }

/* Header */
.site-header { background: var(--navy); border-bottom: 1px solid #1C3044; position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-dark); display: block; }
.brand span { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-header nav a { color: var(--soft-dark); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.site-header nav a:hover { color: var(--white); }
.site-header nav { align-items: center; }
.site-header nav a.nav-login { color: var(--white); border: 1px solid #3A5168; border-radius: 8px; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav a.nav-login:hover { border-color: var(--green); color: var(--green); }

/* Shared */
.dark { background: var(--navy); color: var(--white); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.eyebrow.on-light { color: var(--blue); }
.lede { font-size: 18px; line-height: 1.6; color: var(--soft-dark); max-width: 560px; }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 24px; border-radius: 8px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { color: var(--white); border: 1px solid #3A5168; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* Hero */
.hero { background-image: linear-gradient(#13283C 1px, transparent 1px), linear-gradient(90deg, #13283C 1px, transparent 1px); background-size: 48px 48px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: clamp(64px, 9vw, 96px); padding-bottom: clamp(72px, 10vw, 112px); }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; }
.hero .lede { font-size: clamp(17px, 1.6vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.status-panel { flex: 1 1 340px; min-width: 0; max-width: 460px; background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 14px; padding: 24px; font-family: var(--mono); }
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-dark); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--green); text-transform: none; letter-spacing: 0; }
.live svg { fill: var(--green); }
.status-panel ul { list-style: none; margin: 8px 0 0; padding: 0; }
.status-panel li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #1E3348; font-size: 14px; }
.status-panel li span:first-child { color: #E6EDF3; }
.status-panel li span:last-child { color: var(--muted-dark); }
.status-panel > p { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted-dark); }

/* Services */
.services { padding: clamp(72px, 9vw, 104px) 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.section-head.split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head.split > div { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.intro { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 420px; }
.section-head:not(.split) .intro { max-width: 640px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 16px; transition: border-color .15s; }
.card:hover { border-color: var(--navy); }
.card .icon { width: 48px; height: 48px; border-radius: 10px; background: #E1F3F8; display: flex; align-items: center; justify-content: center; }
.card .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 16px; line-height: 1.6; color: var(--body); }

/* Approach */
.approach { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(72px, 9vw, 104px) 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.step { border-top: 2px solid var(--navy); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.step .num { font-family: var(--mono); font-size: 14px; color: var(--blue); }
.step h3 { font-size: 24px; font-weight: 600; }
.step p { font-size: 16px; line-height: 1.6; color: var(--body); }

/* Contact */
.contact { padding: clamp(72px, 9vw, 104px) 0; }
.contact-row { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.contact-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-side { flex: 1 1 400px; min-width: 0; }
.reveal-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 14px; padding: 32px; }
.reveal-card p { font-size: 16px; line-height: 1.6; color: var(--soft-dark); }
.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.contact-list a { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; color: var(--white); }
.contact-list a:hover .value { color: var(--green); }
.contact-list .label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); }
.contact-list .value { font-size: clamp(22px, 3vw, 28px); font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--muted-dark); padding: 32px 0; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--soft-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* Legal pages */
.legal { background: var(--white); padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.legal article { max-width: 760px; margin: 0 auto; }
.legal .eyebrow { margin-bottom: 14px; }
.legal h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.legal .updated { margin-top: 14px; font-size: 15px; color: var(--body); }
.legal h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--border); }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: #2B3D4F; }
.legal p + p, .legal ul + p, .legal table + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--ink); }
.legal .caps { font-size: 15px; letter-spacing: 0.01em; }
.legal .table-box { overflow-x: auto; margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); line-height: 1.5; }
.legal th { background: var(--paper); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.legal .legal-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.legal .contact-list { border-top-color: var(--border); align-self: stretch; }
.legal .contact-list a { color: var(--ink); border-bottom-color: var(--border); padding: 16px 0; }
.legal .contact-list a:hover .value { color: var(--blue); }
.legal .contact-list .label { color: var(--body); }
.legal .contact-list .value { font-size: 20px; }
.back-link { display: inline-flex; margin-top: 56px; color: var(--blue); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .site-header { position: static; }
  .brand span { font-size: 22px; }
  .card { padding: 24px; }
  .reveal-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
