/* ============================================================
   Harten — governed agentic modernisation
   Single-file static site styles. Dependency-free, performant.
   Brand accent: --accent. Swap brand name in index.html only.
   ============================================================ */

:root {
  --bg: #0b0f14;
  --bg-alt: #0f151c;
  --surface: #141b24;
  --surface-2: #1a232e;
  --line: #26323f;
  --text: #e8edf2;
  --text-dim: #a3b1c0;
  --text-faint: #6f8197;
  --accent: #c8a24a;          /* warm stag-gold */
  --accent-soft: #e3c987;
  --accent-ink: #0b0f14;
  --radius: 14px;
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.sr-only,
.skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; z-index: 999;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .5em; color: var(--text); }
p { margin: 0 0 1rem; color: var(--text-dim); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
}

.lede, .section-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--text-dim);
  max-width: 60ch;
}
.lede strong { color: var(--text); }
.section-lede { margin-bottom: 2.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,20,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand-mark { color: var(--accent); font-size: .9em; transform: translateY(1px); }
.brand-name { letter-spacing: .02em; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-size: .92rem; color: var(--text-dim); transition: color .2s var(--ease); }
.nav-menu a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--line); padding: .5rem .9rem; border-radius: 999px;
  color: var(--text) !important; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { border-color: var(--accent); background: rgba(200,162,74,.08); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .98rem; padding: .8rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { font-size: 1.1rem; padding: 1rem 2rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(200,162,74,.14), transparent 60%),
    radial-gradient(800px 420px at 8% 6%, rgba(70,110,150,.12), transparent 62%),
    var(--bg);
}
.hero-inner { max-width: 880px; }
.hero h1 { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.4rem; }
.hero-tag {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--accent-soft); margin: 0;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: rgba(200,162,74,.4); }
.card p:last-child { margin-bottom: 0; }

.card-num { position: relative; padding-top: 2.6rem; }
.card-num::before {
  content: attr(data-num);
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: var(--serif); font-size: 1.5rem; color: var(--accent); opacity: .5;
}

.ticks { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; color: var(--text-dim); font-size: .95rem; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.step {
  border-left: 2px solid var(--line); padding: .2rem 0 .2rem 1.4rem;
  transition: border-color .2s var(--ease);
}
.step:hover { border-color: var(--accent); }
.step p { margin-bottom: 0; font-size: .98rem; }

/* ---------- Stats / proof ---------- */
.stats { margin-bottom: 2.5rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; text-align: center;
}
.stat-figure { display: block; font-family: var(--serif); font-size: 1.55rem; color: var(--accent-soft); margin-bottom: .4rem; }
.stat-label { color: var(--text-faint); font-size: .92rem; }

.pull {
  margin: 0; padding: 2rem 0 0; border: 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4; color: var(--text); max-width: 30ch + 30ch; max-width: 62ch;
}
.pull em { color: var(--accent-soft); font-style: italic; }

/* ---------- CTA ---------- */
.section-cta {
  background:
    radial-gradient(700px 380px at 50% 0%, rgba(200,162,74,.12), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.section-cta .btn { margin: .6rem 0 1.2rem; }
.fineprint { color: var(--text-faint); font-size: .9rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand .brand-mark { font-size: 1rem; }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.2rem; }
.footer-tag { color: var(--text-faint); font-size: .9rem; margin: .5rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: var(--text-dim); font-size: .92rem; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-legal p { color: var(--text-faint); font-size: .85rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: transparent; border: 1px solid var(--line);
    border-radius: 10px; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .28s var(--ease);
  }
  .nav-menu.open { max-height: 420px; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 1rem 24px; }
  .nav-cta { border: 0; border-radius: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
