:root {
  --bg: #f6f7f4;
  --bg-alt: #eef1ec;
  --surface: #ffffff;
  --border: #d5ddd6;
  --text: #1c2421;
  --muted: #5c6b64;
  --primary: #1f6b4a;
  --primary-dark: #164e36;
  --accent: #0e7490;
  --slate: #24312c;
  --shadow: 0 8px 24px rgba(28, 36, 33, .06);
  --radius: 12px;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(rgba(36, 49, 44, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 49, 44, .04) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

.eyebrow, .mono, .tag, .badge, .svg-label, .optional {
  font-family: var(--font-mono);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .7rem;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 650;
  margin-bottom: 1.8rem;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 247, 244, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: .85rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.logo {
  font-weight: 700;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { font-weight: 500; color: var(--primary); }
.nav-links { display: flex; gap: 1.2rem; margin-left: auto; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
}
.nav-links a:hover { color: var(--accent); }

.hero {
  min-height: 78svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-content { max-width: 820px; padding: 8rem 1.4rem 4.5rem; }
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  font-weight: 700;
  margin: .3rem 0 1rem;
}
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.trust {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--slate);
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.section { max-width: 1120px; margin: 0 auto; padding: 4.8rem 1.4rem; }
.section-alt { max-width: none; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; margin: .35rem 0 .45rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .mono { color: var(--accent); font-size: .75rem; margin-bottom: .4rem; }
.tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .55rem;
}
.price {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: .2rem;
}
.price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
.badge {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: .28rem .55rem;
  margin-bottom: .7rem;
}

.steps { list-style: none; display: grid; gap: 1rem; }
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.steps .mono { color: var(--slate); font-size: .82rem; margin-bottom: .35rem; }
.steps p:last-child { color: var(--muted); }

.scope {
  margin-top: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem 1.2rem;
}
.scope .mono { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); margin-bottom: .4rem; }
.scope p:last-child { color: var(--muted); }

.diagrams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.diagrams figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem .8rem .9rem;
}
.diagrams svg { width: 100%; height: auto; color: var(--slate); display: block; }
.svg-label { font-size: 11px; fill: var(--accent); font-family: var(--font-mono); }
.diagrams figcaption { color: var(--muted); font-size: .88rem; margin-top: .4rem; }

.section-cta { text-align: center; }
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
}
.contact-form .field { margin-bottom: .9rem; }
.contact-form label, .contact-form legend {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: .32rem;
}
.optional { font-weight: 500; color: var(--muted); font-size: .72rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .7rem .85rem;
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.concerns { border: 0; padding: 0; }
.concerns label {
  font-weight: 500;
  display: flex;
  gap: .5rem;
  align-items: center;
  margin: .35rem 0;
}
.concerns input { width: auto; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.contact-form .btn { width: 100%; text-align: center; }
.contact-form button[disabled] { opacity: .55; cursor: not-allowed; }
.assurance { color: var(--muted); font-size: .84rem; margin-top: .75rem; }
.form-status { min-height: 1.3rem; font-size: .92rem; margin-top: .55rem; }
.form-status.ok { color: var(--primary-dark); font-weight: 600; }
.form-status.err { color: #9f1239; font-weight: 600; }

.footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-links { margin-left: 0; width: 100%; justify-content: center; flex-wrap: wrap; }
  .section { padding: 3.4rem 1.1rem; }
}
