/* shared.css — base layout styles + components shared across pages.
   Extracted from inline <style> of index.html during Wave 1c refactor.
   Order: reset → layout → header → buttons → typography → footer → mobile. */

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Page-wide vertical rails (radar pattern) — fixed overlay with vertical edges */
.page-rails {
  position: fixed;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  pointer-events: none;
  z-index: 1;
}

.page-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

/* ── Header (task 474 block 3008: moved from inline index.html — shared partial → shared CSS) ──── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: none;
  padding: 12px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  color: #1A1F2E;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
}
/* Legacy markup fallback (header-row / .logo / nav) — kept for backward compat */
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 700; font-size: 20px; color: white; text-decoration: none; }
.logo .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: white; margin-right: 8px; vertical-align: middle; }
nav a { color: white; text-decoration: none; margin-left: 24px; font-weight: 500; font-size: 14px; }
nav a:hover { color: var(--brand-text); }

/* ── CTA row + Buttons ───────────────────────────────────────────── */
.cta-row { display: flex; gap: 14px; flex-wrap: nowrap; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn__arrow { transition: transform 160ms ease; display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ── Typography (radar-style block pattern) ──────────────────────── */
.block-eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 16px;
  text-align: center;
}
.block-h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  margin: 0 0 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-align: center;
}
.block-h2--left { text-align: left; }
.block-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 18px; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  margin-top: 64px;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  display: inline-block;
}
.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 320px;
  line-height: 1.5;
}
.footer-ecosystem {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}
.footer-ecosystem a {
  color: var(--brand);
  text-decoration: none;
}
.footer-ecosystem a:hover { text-decoration: underline; }
.footer-nav h4,
.footer-contact h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}
.footer-nav ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav li a,
.footer-contact li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}
.footer-nav li a:hover,
.footer-contact li a:hover { color: var(--brand); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  margin: 0;
}
.footer-legal a:hover { color: var(--brand); }
.footer-legal-sep { color: var(--border); }

/* ── Mobile <820 — shared elements ───────────────────────────────── */
@media (max-width: 820px) {
  .page-rails { display: none; }
  footer.site-footer { padding: 48px 0 24px; margin-top: 48px; }
  .footer-container { padding: 0 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
}

/* ── Mobile <640 — buttons compact ───────────────────────────────── */
@media (max-width: 640px) {
  .btn { padding: 12px 22px; font-size: 15px; }
}
