:root {
  --bg: #0b0d10;
  --bg-alt: #111418;
  --card: #161a1f;
  --border: #262b32;
  --text: #eef1f4;
  --text-dim: #9aa4af;
  --accent: #6ea8ff;
  --accent-dim: #3d5f99;
  --radius: 12px;
  --max-width: 1100px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafbfc;
    --bg-alt: #f2f4f7;
    --card: #ffffff;
    --border: #e3e7ec;
    --text: #14181d;
    --text-dim: #5b6672;
    --accent: #2f5fd6;
    --accent-dim: #cfdcf7;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

nav.main-nav {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

nav.main-nav a:hover { color: var(--text); text-decoration: none; }

main { padding-bottom: 80px; }

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

.hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0) 40%, rgba(11,13,16,0.55) 100%);
}

.hero-media .caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  right: 20px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero p.lead {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 60ch;
  margin: 0 0 32px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #0b0d10;
}
.btn-primary:hover { text-decoration: none; opacity: 0.9; }

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { text-decoration: none; border-color: var(--accent); }

section.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

section.section:last-of-type { border-bottom: none; }

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

.section p.section-lead {
  color: var(--text-dim);
  max-width: 65ch;
  margin: 0 0 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card .num {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.card.has-media {
  padding: 0;
  overflow: hidden;
}

.card.has-media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.card.has-media .card-body {
  padding: 22px 26px 26px;
}

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

.showcase figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.showcase img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.showcase figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  background: linear-gradient(180deg, rgba(11,13,16,0) 0%, rgba(11,13,16,0.75) 100%);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.95rem;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.process-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.process-item .step {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.4rem;
}

.process-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.process-item p { margin: 0; color: var(--text-dim); font-size: 0.95rem; max-width: 60ch; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stat .value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat .label {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 4px;
}

.cta-band {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}

.cta-band h2 { margin: 0 0 12px; }
.cta-band p { color: var(--text-dim); margin: 0 0 28px; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site-footer nav {
  display: flex;
  gap: 20px;
}

footer.site-footer a { color: var(--text-dim); }
footer.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal main .wrap { max-width: 800px; }

.legal h1 {
  font-size: 2.1rem;
  margin: 56px 0 8px;
}

.legal .meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-size: 1.25rem;
  margin: 40px 0 14px;
}

.legal p {
  color: var(--text-dim);
  margin: 0 0 16px;
}

.legal p strong { color: var(--text); }
