/* public/static.css — premium brand stylesheet for prerendered static seed pages.
 * Stable path (no content hash) so every static page in dist/ can link it.
 * Brand palette mirrors index.html theme-color (#4F86F7). This is the
 * first-paint visual system for every Worker-served geographic, service,
 * industry, and combination page — a single cohesive, premium surface that
 * reads as an art-directed brand before React hydration, not a plain document.
 *
 * Design language: luminous blue + pearl white + midnight navy, restrained
 * depth from soft shadows and hairline borders, editorial typography with
 * Plus Jakarta Sans display + Inter body (graceful system fallback).
 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Brand tokens — raw values, no wrapper functions. */
  --brand: #2563eb;
  --brand-bright: #4F86F7;
  --brand-deep: #1d4ed8;
  --navy: #0b1426;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --pearl: #f8fafc;
  --pearl-deep: #f1f5f9;
  --surface: #ffffff;
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px -12px rgba(15, 23, 42, 0.10), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -20px rgba(30, 64, 175, 0.18), 0 8px 16px -8px rgba(15, 23, 42, 0.06);
  --shadow-cta: 0 20px 50px -24px rgba(29, 78, 216, 0.45);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.18;
  margin: 0 0 0.55em;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 4.6vw, 3.1rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2.1rem); letter-spacing: -0.022em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.014em; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: 700; color: var(--ink); }

/* ── Layout ─────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ── Header / navigation ────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.5rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -0.022em;
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand-deep) 100%);
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.5);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  align-items: center;
}
.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover {
  color: var(--brand-deep);
  text-decoration: none;
  background: var(--pearl);
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.75rem;
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(79, 134, 247, 0.12) 0%, transparent 55%),
    radial-gradient(90% 75% at 96% 6%, rgba(37, 99, 235, 0.08) 0%, transparent 58%),
    linear-gradient(180deg, #f4f8ff 0%, #ffffff 78%);
  border-bottom: 1px solid var(--line-soft);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(79, 134, 247, 0.1);
  border: 1px solid rgba(79, 134, 247, 0.2);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 {
  max-width: 18ch;
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.hero p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 58ch;
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover {
  text-decoration: none;
  box-shadow: 0 24px 56px -22px rgba(29, 78, 216, 0.6);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--brand-deep);
  border-color: rgba(79, 134, 247, 0.3);
}
.btn--ghost:hover {
  background: rgba(79, 134, 247, 0.07);
  text-decoration: none;
  border-color: rgba(79, 134, 247, 0.5);
}

/* ── Sections ────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section--muted { background: var(--pearl); }
.section + .section { border-top: 1px solid var(--line-soft); }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ── Cards ──────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(79, 134, 247, 0.3);
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--ink); }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.6; }

/* ── Link lists (directory rows) ─────────────────────── */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.link-list li a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-xs);
  background: var(--pearl);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.link-list li a:hover {
  background: rgba(79, 134, 247, 0.07);
  color: var(--brand-deep);
  text-decoration: none;
  border-color: rgba(79, 134, 247, 0.2);
}

/* ── CTA banner ──────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1426 0%, #163a6b 55%, var(--brand-deep) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 2.5rem auto;
  max-width: var(--maxw);
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 0%, rgba(79, 134, 247, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 22ch; margin: 0 auto 0.6rem; }
.cta p { color: rgba(255, 255, 255, 0.88); max-width: 50ch; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.cta .btn--primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.4);
}
.cta .btn--primary:hover { background: var(--pearl); box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.5); }

/* ── Breadcrumbs ─────────────────────────────────────── */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.breadcrumbs a { color: var(--brand-deep); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: none; }
.breadcrumbs span { color: var(--line); margin: 0 0.1rem; }

/* ── Main + article prose ────────────────────────────── */
main > section:first-child { padding-top: 0; }
main h2 { margin-top: 0; }
main h3 { margin-top: 1.6rem; color: var(--ink); }
main p, main li { color: var(--ink-soft); }
main ul li a, main ol li a { color: var(--brand-deep); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 3rem 0 1.75rem;
  margin-top: 2.5rem;
}
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.site-footer__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.site-footer h4 {
  color: #fff;
  font-size: 0.72rem;
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.85rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #94a3b8; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.83rem;
  color: #64748b;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.75rem; }
  .cta { padding: 2.25rem 1.5rem; border-radius: 18px; margin: 1.75rem 1.5rem; }
  .section { padding: 2.75rem 0; }
  .container { padding: 0 1.25rem; }
  .grid { grid-template-columns: 1fr; }
  .site-nav { gap: 0.25rem 0.5rem; }
  .site-nav a { font-size: 0.85rem; }
  .site-nav .btn { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
  .hero p { font-size: 1rem; }
  .link-list { grid-template-columns: 1fr; }
  .site-header__inner { gap: 0.5rem; }
}

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