:root {
  --bg: #070a08;
  --fg: #ecf3ee;
  --muted: rgba(236, 243, 238, 0.72);
  --muted2: rgba(236, 243, 238, 0.55);
  --glass: rgba(12, 18, 14, 0.55);
  --stroke: rgba(255, 255, 255, 0.12);
  --accent: #35b24a;
  --accent2: #1f7d33;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--fg);
  background: radial-gradient(1200px 700px at 65% 20%, rgba(53, 178, 74, 0.16), transparent 60%),
    radial-gradient(900px 620px at 25% 65%, rgba(53, 178, 74, 0.1), transparent 55%),
    linear-gradient(180deg, #060806 0%, #040604 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* HIL-style: follows --mouse-x / --mouse-y from JS (browser-vars pattern) */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    720px 520px at calc(var(--mouse-x, 0) * 1px) calc(var(--mouse-y, 0) * 1px),
    rgba(240, 240, 224, 0.04) 0%,
    rgba(53, 178, 74, 0.07) 28%,
    transparent 58%
  );
  pointer-events: none;
}

.centerLogo {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.centerLogoImg {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  opacity: 0.6;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 26px rgba(53, 178, 74, 0.12));
  transform: none;
}

#p5-root {
  position: absolute;
  inset: 0;
}

.vignette {
  position: absolute;
  inset: -1px;
  background: radial-gradient(700px 500px at 50% 35%, transparent 20%, rgba(0, 0, 0, 0.5) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(600px 440px at 50% 35%, rgba(0, 0, 0, 0.85) 20%, transparent 75%);
  opacity: 0.35;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 8, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
}

.brandMark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(53, 178, 74, 0.2));
}

.brandText {
  letter-spacing: -0.02em;
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navLinks a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 999px;
  transition: color 140ms ease, background 140ms ease;
}

.navLinks a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.navCtas {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.btnPrimary {
  border-color: rgba(53, 178, 74, 0.35);
  background: linear-gradient(180deg, rgba(53, 178, 74, 0.95) 0%, rgba(31, 125, 51, 0.95) 100%);
  color: #061008;
}

.btnPrimary:hover {
  border-color: rgba(53, 178, 74, 0.55);
}

.btnGhost {
  background: rgba(255, 255, 255, 0.03);
}

.main {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 18px;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.main > * {
  width: 100%;
}

.main.isHidden {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.hero {
  padding: 74px 0 38px;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.heroTopline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted2);
  font-size: 14px;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(53, 178, 74, 0.25);
  background: rgba(53, 178, 74, 0.09);
  color: rgba(236, 243, 238, 0.82);
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(236, 243, 238, 0.35);
}

.muted {
  color: var(--muted2);
}

.heroTitle {
  margin: 18px 0 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 820;
  font-size: clamp(44px, 6.2vw, 78px);
  max-width: 16ch;
  text-wrap: balance;
}

.heroTitleLine {
  display: block;
}

.heroTitleAccent {
  color: rgba(236, 243, 238, 0.92);
  text-shadow: 0 0 30px rgba(53, 178, 74, 0.22);
}

.heroLead {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.heroCtas {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.heroStats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 12, 0.42);
  border-radius: var(--radius);
  padding: 14px 14px;
  backdrop-filter: blur(10px);
}

.statNum {
  font-weight: 850;
  letter-spacing: -0.03em;
  font-size: 16px;
}

.statLabel {
  margin-top: 6px;
  color: var(--muted2);
  font-weight: 650;
  font-size: 13px;
}

.section {
  padding: 54px 0;
}

.sectionTitle {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.sectionLead {
  margin: 12px 0 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(12, 18, 14, 0.52) 0%, rgba(7, 10, 8, 0.28) 100%);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 178, 74, 0.22);
  background: linear-gradient(180deg, rgba(12, 18, 14, 0.64) 0%, rgba(7, 10, 8, 0.32) 100%);
}

.cardTitle {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.cardBody {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: start;
}

.callout {
  border: 1px solid rgba(53, 178, 74, 0.22);
  background: rgba(53, 178, 74, 0.08);
  border-radius: var(--radius);
  padding: 16px 16px;
}

.calloutTitle {
  font-weight: 850;
  letter-spacing: -0.02em;
}

.calloutBody {
  margin-top: 8px;
  color: rgba(236, 243, 238, 0.78);
  line-height: 1.55;
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.cta {
  padding: 70px 0 24px;
}

.ctaInner {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(12, 18, 14, 0.62) 0%, rgba(6, 10, 8, 0.34) 100%);
  border-radius: calc(var(--radius) + 10px);
  padding: 22px 18px;
  backdrop-filter: blur(14px);
}

.ctaTitle {
  margin: 0;
  letter-spacing: -0.03em;
  font-size: 26px;
}

.ctaLead {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.ctaForm {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1 1 240px;
  min-width: 220px;
  padding: 12px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--fg);
  outline: none;
}

input[type="email"]::placeholder {
  color: rgba(236, 243, 238, 0.45);
}

input[type="email"]:focus {
  border-color: rgba(53, 178, 74, 0.4);
  box-shadow: 0 0 0 6px rgba(53, 178, 74, 0.12);
}

.ctaFine {
  margin: 12px 0 0;
  color: rgba(236, 243, 238, 0.55);
  font-size: 13px;
}

.footer {
  padding: 34px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: rgba(236, 243, 238, 0.62);
}

.footerLeft {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footerMark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  opacity: 0.85;
}

.footerText {
  font-weight: 750;
  color: rgba(236, 243, 238, 0.8);
}

.footerRight a {
  color: rgba(236, 243, 238, 0.62);
  text-decoration: none;
  font-weight: 650;
}

.footerRight a:hover {
  color: rgba(236, 243, 238, 0.88);
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .navLinks {
    display: none;
  }
  .heroStats {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card {
    transition: none;
  }
  .btn:hover,
  .card:hover {
    transform: none;
  }
}