:root {
  --navy: #1f3a52;
  --navy-deep: #152a3c;
  --ink: #1d2733;
  --ink-soft: #4a5868;
  --muted: #6b7785;
  --line: #dfe3e8;
  --paper: #ffffff;
  --sand: #f5f3ef;
  --accent: #e0752d;
  --accent-dark: #c2601d;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 0.8em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); padding: 8px 16px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo-mark { width: 34px; height: 34px; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); flex: none; }
.logo-mark.big { display: block; width: 56px; height: 56px; margin-bottom: 24px; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.05; }
.logo-text small { display: block; font-family: var(--font); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-text small { color: rgba(255, 255, 255, 0.6); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { padding: 8px 12px; text-decoration: none; color: var(--ink-soft); font-weight: 600; border-radius: 6px; }
.site-nav a:not(.btn):hover { color: var(--navy); background: var(--sand); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #2a4d6b); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hero h1 span { display: block; font-size: 0.5em; font-weight: 600; color: rgba(255, 255, 255, 0.8); margin-top: 0.5em; line-height: 1.3; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { color: #9fc0dc; }
.blueprint { width: 100%; height: auto; display: block; }
.blueprint .accent-stroke { stroke: var(--accent); }
.blueprint .dim { fill: var(--accent); font: 600 12px var(--font); }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { max-width: 420px; }
}

/* Trust bar */
.trust { background: var(--sand); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.trust strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); }
.trust span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 700px) { .trust-inner { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--sand); }
.section-header { max-width: 640px; margin-bottom: 48px; }
.section-header p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.service:hover { border-color: var(--accent); box-shadow: 0 12px 30px rgba(31, 58, 82, 0.1); transform: translateY(-3px); }
.service p { color: var(--ink-soft); margin: 0; }
.icon { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: #fdf0e6; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--accent); }
.steps p { color: var(--ink-soft); margin: 0; }
.step-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #d4dbe2; margin-bottom: 8px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Portal promo */
.promo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.mock { border-radius: 14px; background: #fff; box-shadow: 0 30px 60px rgba(21, 42, 60, 0.18); border: 1px solid var(--line); overflow: hidden; }
.mock-bar { background: var(--navy); padding: 12px 14px; display: flex; gap: 6px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.mock-body { padding: 24px; }
.mock-title { font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mock-title em { font-style: normal; font-size: 0.75rem; background: #fff0e3; color: #9a4a10; padding: 3px 10px; border-radius: 999px; align-self: center; }
.mock-progress { height: 8px; background: #e7ebef; border-radius: 999px; margin: 16px 0 20px; overflow: hidden; }
.mock-progress span { display: block; height: 100%; width: 55%; background: linear-gradient(90deg, var(--accent), #f0a05a); }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.mock-row b { width: 16px; height: 16px; border: 2px solid #b6bfc9; border-radius: 4px; flex: none; }
.mock-row b.done { background: #2e7d4f; border-color: #2e7d4f; }
@media (max-width: 860px) { .promo-inner { grid-template-columns: 1fr; } }

/* About */
.about-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-display); font-weight: 800; font-size: 6rem;
}
.creds { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.creds li { background: var(--sand); padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; border-left: 3px solid var(--accent); }
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; aspect-ratio: 1; }
  .creds { grid-template-columns: 1fr; }
}

/* Contact */
.section-dark { background: var(--navy-deep); color: #fff; }
.section-dark a { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.8); }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { margin: 28px 0 0; display: grid; gap: 16px; }
.contact-info dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.55); }
.contact-info dd { margin: 2px 0 0; font-weight: 600; }
.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--ink); padding: 11px 12px; border: 1px solid #c9d0d8; border-radius: 8px; width: 100%; background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form .btn { align-self: flex-start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-alert { background: #fbeaea; color: #7e1c16; padding: 12px 14px; border-radius: 8px; border: 1px solid #efc1be; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }

/* Footer */
.site-footer { background: #0f1f2d; color: rgba(255, 255, 255, 0.7); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.copyright { width: 100%; margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); }

/* Simple pages (thanks, 404) */
.simple-page { background: var(--sand); }
.simple { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 640px; }
.simple h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--navy); }
.simple p { color: var(--ink-soft); font-size: 1.1rem; }
