/* ---------- Tokens ---------- */
:root {
  --green-100: #A3EBB1;
  --green-500: #18A558;
  --green-700: #116530;

  --bg:        #0a1110;
  --bg-elev:   #0f1916;
  --bg-card:   #111d19;
  --bg-card-2: #142420;
  --border:    rgba(163, 235, 177, 0.10);
  --border-strong: rgba(163, 235, 177, 0.18);

  --text:      #e8f4ec;
  --text-dim:  #9db1a7;
  --text-mute: #869a90;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-lg: 0 30px 60px -30px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px rgba(24,165,88,0.25), 0 20px 60px -20px rgba(24,165,88,0.35);

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-500); color: #001; padding: 10px 14px;
  border-radius: var(--radius-sm); font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--green-100);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--border);
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg));
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-100);
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(24,165,88,0.08);
}
.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
}
.section-sub {
  color: var(--text-dim);
  font-size: 1.075rem;
  margin-top: 16px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(10,17,16,0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark { flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.94rem;
  color: var(--text-dim);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-sm  { padding: 9px 14px; font-size: 0.88rem; }
.btn-lg  { padding: 15px 24px; font-size: 1.02rem; }
.btn-primary {
  background: var(--green-500);
  color: #00120a;
  box-shadow: 0 8px 24px -8px rgba(24,165,88,0.55);
}
.btn-primary:hover {
  background: #1cb863;
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(163,235,177,0.06);
  border-color: rgba(163,235,177,0.3);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(163,235,177,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(163,235,177,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  left: 50%; top: -10%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%,
      rgba(24,165,88,0.35) 0%,
      rgba(24,165,88,0.10) 30%,
      transparent 60%);
  filter: blur(20px);
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 880px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-100);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(24,165,88,0.08);
  margin-bottom: 28px;
  transition: border-color .15s ease, background .15s ease;
}
a.eyebrow:hover {
  border-color: rgba(163,235,177,0.4);
  background: rgba(24,165,88,0.14);
}

/* ---------- Stack wall ---------- */
.stack-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px 56px;
  padding: 40px 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stack-wall img {
  height: 30px;
  max-height: 30px;
  width: auto;
  max-width: 130px;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity .2s ease;
}
.stack-wall img:hover { opacity: 1; }

@media (max-width: 700px) {
  .stack-wall { gap: 28px 36px; padding: 28px 8px; }
  .stack-wall img { height: 24px; max-height: 24px; }
}

/* ---------- Testimonials ---------- */
.testimonials { gap: 24px; }
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color .2s ease;
}
.testimonial:hover { border-color: var(--border-strong); }
.quote-mark {
  width: 28px; height: 28px;
  color: var(--green-500);
  opacity: 0.55;
}
.testimonial blockquote {
  margin: 0;
  font-size: 1.075rem;
  line-height: 1.55;
  color: var(--text);
  flex-grow: 1;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  min-height: 50px;
}
.client-logo {
  height: 26px;
  width: auto;
  max-width: 200px;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}
.anon {
  color: var(--text-mute);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.grad {
  background: linear-gradient(120deg, var(--green-100) 0%, var(--green-500) 60%, var(--green-100) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
  color: var(--text-mute);
  font-size: 0.92rem;
}
.hero-meta .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 12px var(--green-500);
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Cards / Features ---------- */
.card, .feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover, .feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: var(--bg-card-2);
}
.card h3, .feature h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.card p, .feature p {
  color: var(--text-dim);
  font-size: 0.96rem;
}
.card-bordered { background: transparent; }

.feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(24,165,88,0.12);
  color: var(--green-100);
  margin-bottom: 16px;
  border: 1px solid var(--border-strong);
}
.feature-icon svg { width: 20px; height: 20px; }

/* Center a lone trailing card in a 3-col grid (e.g. 7th of 7) */
@media (min-width: 901px) {
  .grid-features > .feature:last-child:nth-child(3n - 2) {
    grid-column: 2;
  }
}

/* ---------- Pillars ---------- */
.pillars { gap: 24px; }
.pillar {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.pillar::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(24,165,88,0.18), transparent 70%);
  pointer-events: none;
}
.pillar-num {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-100);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.pillar h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.pillar p { color: var(--text-dim); }

/* ---------- Who note ---------- */
.who-note {
  margin-top: 32px;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.95rem;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
}
.step-num {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #00130a;
  box-shadow: 0 8px 20px -8px rgba(24,165,88,0.5);
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p  { color: var(--text-dim); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.about p { color: var(--text-dim); margin-top: 16px; }
.about h2 { margin-top: 14px; }
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-glow);
}
.about-badge {
  position: absolute;
  top: -14px; left: 32px;
  background: linear-gradient(135deg, var(--green-100), var(--green-500));
  color: #00130a;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
}
.about-facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.about-facts li:last-child { border-bottom: 0; }
.about-facts strong { color: var(--text); font-weight: 600; }
.about-facts span { color: var(--text-dim); text-align: right; }

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  color: var(--green-100);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.about-link:hover { color: #fff; border-color: var(--green-100); }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green-100);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ---------- Final CTA ---------- */
.cta-section {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(24,165,88,0.18), transparent 60%),
    var(--bg);
}
.cta-inner {
  text-align: center;
  max-width: 640px;
}
.cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
}
.cta-section p {
  color: var(--text-dim);
  margin-top: 16px;
  font-size: 1.08rem;
}
.cta-fineprint {
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--text-mute);
}
.cta-fineprint a {
  color: var(--green-100);
  border-bottom: 1px solid var(--border-strong);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  background: var(--bg-elev);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.footer-meta {
  color: var(--text-mute);
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--text); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
