:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --section: #0e0e0e;
  --text: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.64);
  --muted-2: rgba(242, 242, 242, 0.78);
  --border: #1f1f1f;
  --divider: #2a2a2a;
  --accent: #c8c8c8;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-line: rgba(255, 255, 255, 0.35);
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 720px at 82% -160px, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(1100px 800px at -10% 100%, rgba(0,0,0,0.45), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

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

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px var(--pad);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.nav-brand {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-right: auto;
  white-space: nowrap;
}
.nav a:not(.btn) {
  color: var(--muted-2);
  font-size: 14px;
  white-space: nowrap;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 20px; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary {
  background: #f5f5f5;
  color: #0a0a0a !important;
  border-color: #f5f5f5;
}
.btn-primary:hover { background: #fff; color: #000 !important; }
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--divider);
}
.btn-ghost:hover { border-color: #666; }

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 40px clamp(32px, 5vw, 80px);
  padding: clamp(56px, 8vw, 112px) 0 56px;
}
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.11;
  letter-spacing: -0.015em;
  margin: 0;
  margin-left: -0.04em;
}
.hero h1 span { display: block; }
.hero-lead {
  font-size: 17px;
  line-height: 1.65;
  max-width: 56ch;
  margin: 28px 0 0;
  color: var(--muted-2);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.hero-guarantee {
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 52ch;
}
/* Sizing per the Nocturne hero spec: a restrained 340px figure beside the
   copy, not a half-width slab. `lighten` drops the photo's black backdrop
   into the page ground, so no border-radius or opacity is needed. */
.hero-photo {
  flex: 0 1 340px;
  margin: 0;
  min-width: 240px;
}
.hero-photo img {
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  background-color: transparent;
}
@media (max-width: 720px) {
  .hero-photo {
    flex: 1 1 100%;
    max-width: 300px;
    margin-inline: auto;
  }
}

/* Stats */
.stats {
  background: var(--section);
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 42px 28px;
}
.stat-n {
  font-weight: 650;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}
.stat-l {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 0;
}

/* Sections */
.section { padding: 98px 0 70px; }
.section-sm { padding: 28px 0 70px; }
/* Sticky nav offset for in-page anchors (#how, #projects, #about) */
#how, #projects, #about, #template, #faq, #who {
  scroll-margin-top: 72px;
}

/* FAQ (SEO/AEO: crawlable Q&A, no JS accordion) */
.faq-list {
  display: grid;
  gap: 0;
  margin-top: 36px;
  max-width: 72ch;
}
.faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.35;
}
.faq-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-2);
}
.faq-item a { text-decoration: underline; text-underline-offset: 3px; }
.kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h2.section-title {
  font-weight: 650;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin: 0;
}

.step {
  display: grid;
  grid-template-columns: minmax(48px, 120px) minmax(0, 1fr);
  gap: 12px clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding: 42px 0;
}
.step + .step {
  border-top: 1px solid var(--border);
}
.step-n {
  font-weight: 650;
  font-size: 15px;
  color: var(--accent);
  margin: 0;
}
.step h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 600;
}
.step p {
  font-size: 15.5px;
  line-height: 1.75;
  margin: 12px 0 0;
  color: var(--muted-2);
  max-width: 62ch;
}

/* Guarantee */
.guarantee-box {
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  background: var(--accent-soft);
}
.guarantee-box p {
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 34ch;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.card:hover { border-color: #444; color: inherit; }
.card-kicker {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.card-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}
.card-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted-2);
  margin: 0;
}

/* Lead form */
.lead-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
  max-width: 480px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.input {
  flex: 1;
  min-width: 200px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
.input:focus {
  outline: none;
  border-color: #888;
}
.lead-msg { margin-top: 16px; color: var(--muted-2); font-size: 15px; }
.lead-msg.ok { color: #c8e6c9; }
.lead-msg.err { color: #ff8a80; }

/* Footer */
.site-footer {
  padding: 56px 0;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
}
.footer-links a { color: var(--muted-2); }
.hr {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(to right, transparent, var(--divider) 48px calc(100% - 48px), transparent);
}

/* Mobile sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 60;
}
.mobile-cta .btn { width: 100%; }
@media (max-width: 720px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 72px; }
}

/* Inner pages */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 40px; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  font-weight: 650;
}
.prose { max-width: 68ch; }
.prose p { color: var(--muted-2); font-size: 16px; line-height: 1.75; }
.prose p a { text-decoration: underline; text-underline-offset: 3px; }
.timeline {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-left: 1px solid var(--border);
}
.timeline li {
  padding: 0 0 28px 24px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline strong { display: block; margin-bottom: 4px; }
.timeline span { color: var(--muted); font-size: 14px; }
