@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #1E3A5F;
  --text-on-dark: #F1F5F9;
  --bg-light: #F1F5F9;
  --text-on-light: #334155;
  --bg-accent: #93C5FD;
  --text-on-accent: #1E3A5F;
  --graphite: #334155;
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-label: 'JetBrains Mono', monospace;
  --max-w: 1200px;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(30, 58, 95, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--graphite); }

.surface-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.surface-light { background: var(--bg-light); color: var(--text-on-light); }
.surface-accent { background: var(--bg-accent); color: var(--text-on-accent); }
.surface-soft { background: var(--bg-light); color: var(--bg-dark); }

.surface-dark a, .surface-light a, .surface-accent a, .surface-soft a {
  color: currentColor; text-decoration: underline;
}
.surface-dark *, .surface-light *, .surface-accent *, .surface-soft * { color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 2rem, var(--max-w)); margin-inline: auto; }

body:has(.hero-stacked) .site-header:not(.is-sticky) { color: var(--text-on-dark); }
body:has(.hero-stacked) .site-header.is-sticky { color: var(--text-on-light); }

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
}
.site-header.is-sticky {
  position: fixed;
  background: rgba(241, 245, 249, 0.97);
  box-shadow: var(--shadow);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; }
.nav-toggle { display: none; background: transparent; border: 1px solid currentColor; border-radius: var(--radius); padding: 0.4rem 0.75rem; cursor: pointer; font-family: var(--font-label); font-size: 0.8125rem; }
.main-nav ul { display: flex; list-style: none; gap: 1.5rem; padding: 0; margin: 0; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; opacity: 0.9; }
.main-nav a:hover { opacity: 1; text-decoration: underline; }

.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
}
.btn-primary { background: var(--bg-accent); color: var(--text-on-accent); border-color: var(--bg-accent); }
.btn-primary:hover { box-shadow: var(--shadow); transform: translateY(-2px); opacity: 0.92; }
.btn-outline { background: transparent; color: currentColor; border-color: currentColor; }
.btn-outline:hover { box-shadow: var(--shadow); opacity: 0.85; }
.btn-dark { background: var(--bg-dark); color: var(--text-on-dark); border-color: var(--bg-dark); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Pattern D — Stacked Layered Hero */
.hero-stacked {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
}
.hero-stacked__top {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 4rem;
}
.hero-stacked__top .container { position: relative; z-index: 2; }
.hero-stacked__label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg-accent);
  margin-bottom: 1.25rem;
}
.hero-stacked h1 { margin-bottom: 1rem; max-width: 24ch; }
.hero-sub { font-size: 1.05rem; max-width: 54ch; margin-bottom: 2rem; opacity: 0.92; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-trust {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.hero-stacked__bottom {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}
.hero-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  height: 100%;
  min-height: 280px;
}
.hero-photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.hero-stacked__trust-card {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: var(--bg-light);
  color: var(--graphite);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.2);
  border-left: 4px solid var(--bg-accent);
  text-align: center;
  min-width: min(90%, 320px);
}
.hero-stacked__trust-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--bg-dark);
  margin-bottom: 0.35rem;
}
.hero-stacked__trust-card span {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}

section { padding: 4rem 0; }
.section-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card { border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); background: #fff; }
.card img { border-radius: var(--radius); margin-bottom: 1rem; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.blueprint-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.35);
  margin-bottom: 0.75rem;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-item strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--bg-dark); }
.disclaimer-box {
  border-left: 4px solid var(--bg-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  background: rgba(147, 197, 253, 0.15);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.faq-item { border-bottom: 1px solid rgba(30, 58, 95, 0.12); padding: 1.25rem 0; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid rgba(51, 65, 85, 0.2);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem;
  background: #fff; color: var(--text-on-light);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9375rem; }
.form-check input { margin-top: 0.25rem; width: auto; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.site-footer { padding: 3rem 0 1.5rem; font-size: 0.875rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(241, 245, 249, 0.15); padding-top: 1.5rem; font-size: 0.8125rem; opacity: 0.85; }
.footer-disclaimer { margin-top: 1rem; font-size: 0.8125rem; opacity: 0.8; line-height: 1.5; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; padding: 1.25rem; box-shadow: 0 -4px 24px rgba(30, 58, 95, 0.15); }
.cookie-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-banner p { margin: 0; flex: 1; min-width: 240px; font-size: 0.875rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions button {
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-family: var(--font-label); font-weight: 700; font-size: 0.8125rem;
  cursor: pointer; border: 2px solid currentColor; background: transparent; color: inherit;
}
.cookie-actions .btn-accept { background: var(--bg-accent); color: var(--text-on-accent); border-color: var(--bg-accent); }
.cookie-panel { display: none; width: 100%; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(241, 245, 249, 0.15); }
.cookie-panel.is-open { display: block; }
.page-hero { padding: 7rem 0 3rem; }
.legal-content h2 { margin-top: 2rem; }
.error-page { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.blueprint-timeline { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.blueprint-step { flex: 1; min-width: 140px; padding: 1rem; border-radius: var(--radius); border: 2px solid rgba(147, 197, 253, 0.45); text-align: center; background: #fff; }
.agent-pulse {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-label); font-size: 0.8125rem; font-weight: 700;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: rgba(147, 197, 253, 0.25); margin-bottom: 1rem;
}
.agent-pulse::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bg-accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .agent-pulse::before { animation: none; }
}
@media (max-width: 900px) {
  .hero-stacked { min-height: 75vh; }
  .hero-stacked__top { flex: 0 0 50%; padding: 2rem 0 3.5rem; }
  .hero-stacked__bottom { flex: 0 0 50%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem; box-shadow: var(--shadow); background: var(--bg-light); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.75rem; }
  .site-header .container { position: relative; flex-wrap: wrap; }
  .hero-photo-grid { min-height: 200px; }
  .hero-photo-grid img { min-height: 200px; }
}
