:root {
  --bg: #0b1016;
  --bg-2: #121a24;
  --bg-3: #182230;
  --ink: #e8eef5;
  --muted: #8b9aab;
  --copper: #c9894a;
  --copper-hot: #d9a05c;
  --teal: #4f9ea8;
  --teal-soft: rgba(79, 158, 168, 0.18);
  --copper-soft: rgba(201, 137, 74, 0.18);
  --line: rgba(232, 238, 245, 0.1);
  --danger: #d46a5a;
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --topbar-h: 64px;
  --wrap: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.page-enter { animation: pageIn 0.35s ease both; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.page-enter,
  .hero-brand,
  .hero h1,
  .hero .lead,
  .cta-row,
  .aperture { animation: none !important; }
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap { width: var(--wrap); margin-inline: auto; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--topbar-h);
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 22, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.topbar.scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 16, 22, 0.92);
}

.topbar-inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand span { color: var(--copper); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--copper);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

main { padding-top: var(--topbar-h); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--copper);
  color: #1a120a;
}

.btn-primary:hover { background: var(--copper-hot); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(232, 238, 245, 0.28);
  background: rgba(232, 238, 245, 0.04);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

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

.prose {
  color: var(--muted);
  max-width: 46rem;
}

.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--ink); font-weight: 650; }

.bullets {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.bullets li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(11, 16, 22, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
}
