:root {
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
  --primary: #1d4ed8;
  --on-primary: #ffffff;
  --accent-from: #2563eb;
  --accent-to: #7c3aed;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-alt: #111c33;
    --surface: #1e293b;
    --text: #f7fafc;
    --muted: #a8b5c7;
    --border: #334155;
    --primary: #38bdf8;
    --on-primary: #0f172a;
    --accent-from: #60a5fa;
    --accent-to: #a78bfa;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 1.25rem; }
.bar nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.bar nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg-alt); }
.bar .btn { padding: 0.45rem 1rem; }

a:focus-visible, .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Hero */
.hero { padding: clamp(3rem, 9vw, 7rem) 0; }
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; max-width: 18ch; }
.accent {
  color: var(--primary); /* fallback when background-clip: text is unsupported */
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .accent {
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.lede { margin-top: 1.5rem; max-width: 62ch; font-size: 1.2rem; color: var(--muted); }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section h2, .cta h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.section-lede { margin-top: 0.75rem; color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

.grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.feature-list { list-style: none; padding: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; }
.roles div { border-top: 3px solid var(--primary); padding-top: 1rem; }
.roles dt { font-weight: 700; font-size: 1.1rem; }
.roles dd { margin: 0.4rem 0 0; color: var(--muted); }

/* CTA */
.cta { padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; border-top: 1px solid var(--border); }
.cta p { margin: 0.75rem 0 1.75rem; color: var(--muted); }
.actions-center { justify-content: center; margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 640px) {
  .bar nav a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
