@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #080E0C;
  --bg-panel: #0D1512;
  --bg-panel-hover: #121D18;
  --ink: #F3F1E9;
  --muted: #A3AFA8;
  --muted-dim: #718078;
  --accent: #259b55;
  --accent-soft: #8af5ab;
  --accent-bright: #22c55e;
  --line: rgba(243,241,233,0.12);
  --line-strong: rgba(243,241,233,0.22);
  --ease: cubic-bezier(.16,.84,.44,1);
  --wrap: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
section { position: relative; }
::selection { background: var(--accent); color: #0D1512; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons & Badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 999px;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary, .button.primary, button.btn-primary, a.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
}
.btn-primary *, .button.primary * {
  color: #ffffff !important;
}
.btn-primary:hover, .button.primary:hover, button.btn-primary:hover, a.btn-primary:hover {
  background: var(--accent-bright);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(37, 155, 85, 0.65);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: rgba(37,155,85,0.08);
  transform: translateY(-2px);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 16px;
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Header Navigation ---------- */
header#siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(243, 241, 233, 0.06);
  transition: all .3s ease;
}
header#siteHeader.scrolled {
  background: rgba(8, 14, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
header#siteHeader nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  transition: height .25s ease;
}
header#siteHeader.scrolled nav {
  height: 72px;
}
header#siteHeader .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
header#siteHeader .logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: height 0.25s ease;
}
header#siteHeader.scrolled .logo img {
  height: 36px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s ease;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Subpage Hero Banner ---------- */
.hero-subpage {
  position: relative;
  padding: 125px 0 64px;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(37, 155, 85, 0.12), transparent 70%), var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-subpage-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(1px 1px at 30px 40px, rgba(243, 241, 233, 0.5), transparent),
                    radial-gradient(1.5px 1.5px at 150px 120px, rgba(138, 245, 171, 0.7), transparent);
  background-size: 400px 250px;
  opacity: 0.5;
}
.hero-subpage .wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
}
.hero-subpage h1 {
  font-size: clamp(36px, 4.8vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.hero-subpage p.intro {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 65ch;
}

/* ---------- Common Section Padding & Grid System ---------- */
.section-pad { padding: 90px 0; }
.section-pad.divider-top { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
  max-width: 24ch;
}
.section-head .desc {
  color: var(--muted);
  font-size: 16px;
  max-width: 44ch;
  line-height: 1.6;
}

/* ---------- Cards, Grids & Forms ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.card-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 32px;
  transition: all .25s ease;
  position: relative;
}
.card-panel:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.4);
}

/* Form inputs */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}
.form-control {
  width: 100%;
  background: #0d1512;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,155,85,0.25);
}
textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* ---------- Final Centralized CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  padding: 110px 0 130px;
  overflow: hidden;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle 540px at 50% 50%, rgba(37, 155, 85, 0.14), transparent 70%);
}
.final-cta .wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-cta .kicker {
  margin-bottom: 18px;
  justify-content: center;
}
.final-cta h2 {
  font-size: clamp(36px, 5.2vw, 64px);
  max-width: 22ch;
  line-height: 1.1;
  margin: 0 auto;
  letter-spacing: -0.02em;
}
.final-cta p.lede {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}
.final-cta .actions {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
  background: #050a08;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: 14.5px; color: var(--muted); margin-top: 16px; line-height: 1.55; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all .2s ease;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: rgba(37,155,85,0.1);
  transform: translateY(-2px);
}
.footer-social svg { width: 15px; height: 15px; }
.fcol h4 {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fcol ul { display: flex; flex-direction: column; gap: 11px; }
.fcol a { font-size: 14.5px; color: var(--ink); transition: color .15s ease; text-decoration: none; }
.fcol a:hover { color: var(--accent-soft); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { font-size: 13px; color: var(--muted-dim); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 13px; color: var(--muted-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal, .reveal-img, .stagger-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in-view, .reveal-img.in-view, .stagger-item.in-view {
  opacity: 1;
  transform: translateY(0);
}
.stagger-item { transition-delay: calc(var(--i, 0) * 0.08s); }

/* Desktop hidden for mobile-only drawer */
.mobile-drawer {
  display: none;
}

/* ---------- Responsive Layout ---------- */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (max-width: 900px) {
  header#siteHeader nav { height: 72px; }
  .menu-toggle { display: block; }
  .nav-links, .nav-cta { display: none !important; }

  .mobile-drawer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(8, 14, 12, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 24px 36px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 200;
    overflow-y: auto;
    display: flex;
  }
  .mobile-drawer.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(243, 241, 233, 0.08);
  }
  .mobile-drawer-close {
    background: rgba(243, 241, 233, 0.06);
    border: 1px solid rgba(243, 241, 233, 0.12);
    color: var(--ink);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-drawer-close:hover {
    background: rgba(37, 155, 85, 0.2);
    border-color: var(--accent);
    color: #ffffff;
  }
  .mobile-drawer-close svg {
    width: 20px;
    height: 20px;
  }

  .mobile-drawer-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 28px;
  }
  .mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .mobile-drawer-nav li {
    width: 100%;
    list-style: none;
  }
  .mobile-drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid rgba(243, 241, 233, 0.08);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .mobile-drawer-nav a:hover,
  .mobile-drawer-nav a.active {
    color: var(--accent-soft);
    padding-left: 6px;
    border-bottom-color: rgba(37, 155, 85, 0.4);
  }
  .mobile-drawer-nav .m-num {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--accent-soft);
    font-weight: 400;
    margin-right: 14px;
  }
  .mobile-drawer-nav .m-arrow {
    width: 20px;
    height: 20px;
    stroke: var(--muted);
    transition: transform 0.2s ease, stroke 0.2s ease;
    flex-shrink: 0;
  }
  .mobile-drawer-nav a:hover .m-arrow,
  .mobile-drawer-nav a.active .m-arrow {
    transform: translate(3px, -3px);
    stroke: var(--accent-soft);
  }

  .mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
  }
  .mobile-drawer-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 15px;
  }

  .mobile-drawer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(243, 241, 233, 0.08);
    margin-top: 8px;
  }
  .mobile-drawer-email {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    color: var(--muted);
    text-decoration: none;
  }
  .mobile-drawer-email:hover {
    color: var(--ink);
  }
  .mobile-drawer-social {
    display: flex;
    gap: 12px;
  }
  .mobile-drawer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(243, 241, 233, 0.05);
    border: 1px solid rgba(243, 241, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .mobile-drawer-social a:hover {
    background: rgba(37, 155, 85, 0.2);
    border-color: var(--accent);
    color: #ffffff;
  }
  .mobile-drawer-social svg {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; }
}
