:root {
  --bg: #0b0c0b;
  --bg-elev: #121412;
  --bg-alt: #0e100e;
  --green: #009a48;
  --green-bright: #00bd58;
  --green-soft: rgba(0, 154, 72, 0.14);
  --text: #f4f5f3;
  --muted: #9aa39c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green); color: #04130a; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Typography helpers ---------- */
h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-bright); margin-bottom: 18px;
}

.section__title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.section__lede, .contact__lede { color: var(--muted); max-width: 60ch; font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 10px;
  border: 1px solid transparent; transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #04130a; }
.btn--primary:hover { background: var(--green-bright); box-shadow: 0 8px 30px rgba(0, 154, 72, 0.35); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-bright); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 12, 11, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; }
.brand__word { display: block; height: 21px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a { font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav__links > a:hover { color: var(--text); }
.nav__cta { color: var(--text); }
.nav__cta:hover { color: var(--green-bright); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); transition: transform 0.25s, opacity 0.25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 110px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 760px; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 154, 72, 0.22) 0%, rgba(0, 154, 72, 0.06) 38%, transparent 68%);
  filter: blur(8px);
}
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__mark {
  width: 150px; height: 150px; margin-bottom: 8px;
  animation: markPulse 3.6s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 154, 72, 0.38)); }
  50% { filter: drop-shadow(0 0 44px rgba(0, 154, 72, 0.72)); }
}
.hero__wordmark { display: block; width: clamp(220px, 60vw, 392px); height: auto; margin-bottom: 30px; }
.hero__title { font-size: clamp(38px, 7vw, 76px); margin-bottom: 26px; }
.hero__lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 56ch; margin: 0 auto 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 44px; }
.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 154, 72, 0.5); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--green-soft); color: var(--green-bright); font-size: 18px; margin-bottom: 20px;
}
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- About ---------- */
.about { max-width: 720px; }
.about__body p { color: var(--muted); margin-top: 18px; max-width: 52ch; }
.about__body p:first-of-type { margin-top: 22px; }

/* ---------- Contact ---------- */
.section--cta { text-align: center; background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact__lede { margin: 0 auto; }
.contact__actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 36px; }
.contact__social { display: flex; gap: 24px; }
.contact__social a { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.contact__social a:hover { color: var(--green-bright); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__word { display: block; height: 18px; width: auto; }
.footer__meta { color: var(--muted); font-size: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.05s; }
.hero .reveal:nth-child(3) { transition-delay: 0.1s; }
.hero .reveal:nth-child(4) { transition-delay: 0.15s; }
.hero .reveal:nth-child(5) { transition-delay: 0.2s; }
.hero .reveal:nth-child(6) { transition-delay: 0.25s; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(11, 12, 11, 0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    clip-path: inset(0 0 100% 0); transition: clip-path 0.3s var(--ease);
  }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .nav__links > a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 12px; justify-content: center; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
