/* SRPN design system. Tokens first; components below. No external fonts or scripts. */
:root {
  --navy-900: #081430;
  --navy-800: #0b1b3a;
  --navy-700: #14284f;
  --navy-100: #e4e9f3;
  --accent: #e0a526;       /* restrained amber */
  --accent-strong: #865800;
  --ink: #101828;
  --muted: #4a5568;
  --line: #d9dee8;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --danger: #b42318;
  --ok: #067647;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(8,20,48,.06), 0 8px 24px rgba(8,20,48,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  /* spacing scale */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 5rem;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1rem; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* typography scale */
h1,h2,h3,h4 { line-height: 1.2; color: var(--navy-800); margin: 0 0 var(--s4); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 var(--s4); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-strong); margin-bottom: var(--s3); }
.muted { color: var(--muted); }
.hero .eyebrow, .section-dark .eyebrow, .page-head .eyebrow { color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: 8px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--accent); color: var(--navy-900); }
.btn-primary:hover { background: #f0b73a; color: var(--navy-900); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy-800); font-weight: 800; font-size: 1.4rem; letter-spacing: .06em; }
.logo-mark { width: 34px; height: 34px; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a:not(.btn) { display: block; padding: .5rem .75rem; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .95rem; border-radius: 6px; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--navy-800); background: var(--bg-soft); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 6px 6px 0 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy-800); position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* hero */
.hero { background: var(--navy-800); color: #fff; padding: var(--s8) 0; overflow: hidden; }
.hero h1 { color: #fff; }
.hero .lead { color: #c7d0e3; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s7); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s5); }
.hero-note { font-size: .85rem; color: #9fb0d0; margin-top: var(--s5); }
.hero-visual svg { width: 100%; height: auto; }

/* sections */
.section { padding: var(--s8) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-800); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: var(--s6); }
.grid { display: grid; gap: var(--s5); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: #b8c2d6; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; font-weight: 650; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--navy-100); display: grid; place-items: center; margin-bottom: var(--s4); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--navy-800); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #fff4d6; color: #7a5200; margin-bottom: var(--s3); align-self: flex-start; }
.pill-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3) var(--s5); }
.pill-list li { padding-left: 1.5rem; position: relative; }
.pill-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: .6rem; border-radius: 2px; background: var(--accent); }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s5); }
.steps li { counter-increment: s; position: relative; padding-top: 3rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent); color: var(--navy-900); font-weight: 800; display: grid; place-items: center; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* leadership */
.profile { text-align: left; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--navy-100); display: grid; place-items: center; margin-bottom: var(--s4); overflow: hidden; }
.avatar svg { width: 48px; height: 48px; fill: none; stroke: var(--navy-700); stroke-width: 1.5; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.role { color: var(--accent-strong); font-weight: 650; margin-bottom: var(--s3); }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s5); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .95rem; }
.req { color: var(--danger); }
input, select, textarea { font: inherit; padding: .7rem .8rem; border: 1.5px solid #9aa5b8; border-radius: 8px; background: #fff; color: var(--ink); min-height: 46px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--navy-700); }
[aria-invalid="true"] { border-color: var(--danger); background: #fff6f5; }
.error { color: var(--danger); font-size: .88rem; min-height: 1.1rem; }
.hint { font-size: .85rem; color: var(--muted); }
.check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.check input { width: 22px; min-height: 22px; margin-top: .2rem; }
.check label { font-weight: 450; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: var(--s4); padding: var(--s4); border-radius: 8px; display: none; }
.status.show { display: block; }
.status.ok { background: #ecfdf3; color: var(--ok); border: 1px solid #abefc6; }
.status.err { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.status.info { background: #fff8e1; color: #6b4a00; border: 1px solid #f3d98a; }
.proto { background: #fff8e1; border: 1px solid #f3d98a; color: #6b4a00; padding: var(--s3) var(--s4); border-radius: 8px; margin-bottom: var(--s5); font-size: .92rem; }

/* faq */
details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: var(--s3); }
summary { cursor: pointer; padding: var(--s4) var(--s5); font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-strong); }
details[open] summary::after { content: "\2212"; }
summary::-webkit-details-marker { display: none; }
details > div { padding: 0 var(--s5) var(--s4); color: var(--muted); }

/* page head & CTA band */
.page-head { background: var(--navy-800); color: #fff; padding: var(--s7) 0; }
.page-head h1 { color: #fff; margin-bottom: var(--s3); }
.page-head .lead { color: #c7d0e3; margin: 0; }
.cta-band { background: var(--navy-800); color: #fff; padding: var(--s7) 0; }
.cta-band .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); }
.cta-band h2 { color: #fff; margin: 0; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: var(--s6); }
.draft-banner { background: #fff8e1; border: 1px solid #f3d98a; color: #6b4a00; padding: var(--s4); border-radius: 8px; margin-bottom: var(--s5); }

/* footer */
.site-footer { background: var(--navy-900); color: #c7d0e3; padding: var(--s7) 0 var(--s5); font-size: .95rem; }
.site-footer a { color: #e6ebf5; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s6); padding-top: var(--s4); font-size: .85rem; color: #9fb0d0; }
.footer-logo { color: #fff; }

/* responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; padding: var(--s3) 1rem var(--s5); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a.btn { margin-top: var(--s3); }
}
@media (max-width: 640px) {
  .section { padding: var(--s7) 0; }
  .grid-2, .grid-3, .grid-4, .form-grid, .pill-list, .steps, .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: var(--s5); }
  .hero { padding: var(--s7) 0; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* hero v2: world map */
.hero { background: radial-gradient(ellipse 60% 70% at 72% 50%, #16305f 0%, var(--navy-800) 70%); position: relative; }
.hero-visual { position: relative; }
.hero-visual .world { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 24px rgba(224,165,38,.12)); }
.world .land { stroke: #7f9be0; stroke-width: 3.3; stroke-linecap: round; fill: none; opacity: .95; }
.world .arc-base { fill: none; stroke: #e0a526; stroke-width: 1.6; opacity: .6; }
.world .arc-flow { fill: none; stroke: #fff2c4; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 22 160; filter: drop-shadow(0 0 4px #ffd36b); animation: flow 3.4s linear infinite; }
.world .node { fill: #fff; stroke: #e0a526; stroke-width: 2; }
.world .node-ring { fill: none; stroke: #ffd36b; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ping 2.8s ease-out infinite; }
.world .hub { fill: #e0a526; stroke: #fff; stroke-width: 2; }
.world .hub-ring { fill: none; stroke: #e0a526; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.2s ease-out infinite; }
.world .city { fill: #fff; font: 700 13px system-ui, sans-serif; letter-spacing: .02em; paint-order: stroke; stroke: #0b1b3a; stroke-width: 3px; }
.world .hub-label { fill: #ffd36b; font: 800 16px system-ui, sans-serif; letter-spacing: .06em; paint-order: stroke; stroke: #0b1b3a; stroke-width: 4px; }
@keyframes flow { from { stroke-dashoffset: 182; } to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .95; } 100% { transform: scale(3.6); opacity: 0; } }
@media (min-width: 1001px) { .hero-visual { margin-right: -1rem; } .hero-grid { grid-template-columns: .85fr 1.4fr; gap: var(--s5); } .hero h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); } }
@media (max-width: 1000px) { .hero-visual { max-width: none; } }
@media (max-width: 640px) { .world .city { font-size: 17px; } .world .hub-label { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .world .arc-flow { animation: none; stroke-dasharray: none; opacity: .5; } .world .node-ring, .world .hub-ring { animation: none; opacity: 0; } }

/* dropdown nav */
.main-nav .has-sub { position: relative; }
.main-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; flex-direction: column; gap: 0; z-index: 60; }
.main-nav .has-sub:hover > .sub, .main-nav .has-sub:focus-within > .sub { display: flex; }
@media (max-width: 860px) {
  .main-nav .sub { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
  .main-nav .sub a { font-size: .9rem; color: var(--muted); }
}
