:root {
  --bg: #f7f0e5;
  --bg-soft: #fffaf2;
  --text: #231f1b;
  --muted: #6d6257;
  --panel: rgba(255,250,242,0.9);
  --panel-strong: #fffaf2;
  --border: rgba(75,55,38,0.14);
  --accent: #2563eb;
  --accent-2: #38bdf8;
  --accent-3: #d6a84f;
  --button-text: #ffffff;
  --hero-overlay: linear-gradient(90deg, rgba(247,240,229,0.96) 0%, rgba(247,240,229,0.76) 43%, rgba(247,240,229,0.18) 100%);
  --shadow: 0 24px 60px rgba(75,55,38,0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 28rem),
    linear-gradient(145deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-hero {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background-image: var(--hero-overlay), var(--hero-image);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}

.nav {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero-content {
  width: min(var(--max-width), calc(100% - 40px));
  margin: auto auto 8vh;
  padding: 84px 0 56px;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 6.9rem);
  line-height: 0.92;
  max-width: 880px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 650px;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions,
.footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
  border: 1px solid var(--border);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--button-text);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 32%, transparent);
}

.button.secondary {
  background: var(--panel);
  color: var(--text);
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.68fr);
  gap: 60px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.card-grid,
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.timeline div,
.metrics div,
.cta,
.legal-content article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card {
  min-height: 260px;
  padding: 28px;
}

.card span {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div,
.metrics div {
  padding: 24px;
}

.timeline strong,
.metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.05rem;
}

.timeline span,
.metrics span {
  color: var(--muted);
  line-height: 1.6;
}

.proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics strong {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.cta {
  margin-top: 56px;
  margin-bottom: 96px;
  padding: clamp(32px, 6vw, 64px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    var(--panel-strong);
}

.cta p {
  max-width: 680px;
}

.footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--muted);
  font-weight: 800;
}

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

.legal-page {
  min-height: 100vh;
}

.legal-nav {
  border-bottom: 1px solid var(--border);
}

.legal-wrap {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 96px;
}

.legal-hero {
  margin-bottom: 38px;
}

.legal-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-content article {
  padding: 26px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.legal-content p {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .nav {
    width: min(100% - 28px, var(--max-width));
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 20;
  }

  .nav-links {
    position: fixed;
    inset: 72px 14px auto;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
    z-index: 15;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .legal-links {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-content,
  .section,
  .footer,
  .legal-wrap {
    width: min(100% - 28px, var(--max-width));
  }

  .hero-content {
    margin-bottom: 4vh;
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .intro,
  .split,
  .card-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .card {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}