:root {
  --green: #0d9a0e;
  --green-dark: #0a7a0b;
  --green-soft: #e9f6e9;
  --ink: #0d0f0d;
  --ink-2: #1a1d1a;
  --text: #2b302b;
  --muted: #5f675f;
  --line: #e3e7e3;
  --bg: #ffffff;
  --bg-alt: #f5f7f5;
  --radius: 14px;
  --max: 1160px;
  --font-head: "Exo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: currentColor; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img.emblem { width: 40px; height: 40px; object-fit: contain; }
.brand img.wordmark { height: 20px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5em .9em; border-radius: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  color: var(--ink); text-decoration: none; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--green); }
.nav-links a[aria-current="page"] { color: var(--green); }
.nav-links .nav-cta a { background: var(--ink); color: #fff; padding: .55em 1.1em; border-radius: 999px; margin-left: 8px; }
.nav-links .nav-cta a:hover, .nav-links .nav-cta a[aria-current="page"] { background: var(--green); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links .nav-cta a { margin: 12px 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-img) center / cover no-repeat;
  opacity: .45;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,12,10,.92) 0%, rgba(10,12,10,.7) 45%, rgba(10,12,10,.2) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.hero h1 { color: #fff; max-width: 780px; }
.hero h1 .accent { color: #3fd13f; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 600px; }
.hero .eyebrow { color: #3fd13f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-sm .container { padding-top: 80px; padding-bottom: 80px; }

/* Sections */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .hero .container { padding-top: 80px; padding-bottom: 80px; }
}

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.3); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.section-dark .card { background: var(--ink-2); border-color: #2a2f2a; }
.section-dark .card p { color: rgba(255,255,255,.7); }
.section-dark .card .icon { background: rgba(13,154,14,.18); color: #3fd13f; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--green); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
.section-dark .stat span { color: rgba(255,255,255,.7); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 32px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--green);
}
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--green); color: #fff; padding: 72px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); }
.cta-band .btn-dark:hover { background: #fff; color: var(--ink); }

/* Founder */
.founder-name { font-family: var(--font-head); font-size: 1.1rem; color: var(--green); font-weight: 600; margin-bottom: 1.2em; }
.quote {
  border-left: 4px solid var(--green); padding: 4px 0 4px 20px; margin: 28px 0 0;
  font-family: var(--font-head); font-size: 1.15rem; color: var(--ink);
}

/* Forms */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: 0 24px 60px -36px rgba(0,0,0,.35);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 28px 20px; } }
label { display: block; font-weight: 500; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
label .req { color: var(--green); }
input, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
  padding: .8em 1em; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(13,154,14,.15); }
textarea { min-height: 140px; resize: vertical; }
.form-actions { margin-top: 24px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list .icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.info-list .icon svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--ink); }
.info-list a, .info-list span { color: var(--muted); text-decoration: none; }
.info-list a:hover { color: var(--green); }

/* Login / coming soon */
.login-wrap { min-height: calc(100vh - 72px - 260px); display: grid; place-items: center; padding: 80px 20px; background: var(--bg-alt); }
.login-card { width: 100%; max-width: 440px; text-align: center; }
.login-card .emblem { width: 84px; height: 84px; margin: 0 auto 20px; }
.badge {
  display: inline-block; background: var(--green-soft); color: var(--green-dark);
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .45em 1em; border-radius: 999px; margin-bottom: 16px;
}
.login-card form { text-align: left; margin-top: 28px; display: grid; gap: 18px; }
.login-card .btn { width: 100%; }
.login-card .fine { font-size: .88rem; color: var(--muted); margin: 18px 0 0; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,10,8,.6);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 18px; max-width: 400px; width: 100%;
  padding: 36px 32px 28px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  transform: translateY(12px) scale(.98); transition: transform .2s;
}
.modal-backdrop.open .modal { transform: none; }
.modal .icon { width: 60px; height: 60px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.modal .icon svg { width: 30px; height: 30px; }
.modal h3 { font-size: 1.4rem; margin-bottom: .35em; }
.modal p { color: var(--muted); margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand img.wordmark { height: 22px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; }
.site-footer h4 { font-family: var(--font-head); color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #3fd13f; }
.footer-bottom { border-top: 1px solid #262a26; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Dropdown (Repowering > School Bus) */
.has-sub { position: relative; }
.sub-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: .5em .9em; border: 0; background: none; cursor: pointer; border-radius: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink);
  transition: color .2s;
}
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.sub-toggle:hover, .has-sub.active > .sub-toggle { color: var(--green); }
.sub-menu { list-style: none; margin: 0; padding: 0; }
@media (min-width: 861px) {
  .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
    box-shadow: 0 18px 40px -20px rgba(0,0,0,.3);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
  }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu {
    opacity: 1; visibility: visible; transform: none;
  }
  .has-sub:hover .sub-toggle svg, .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
  .sub-menu a { padding: .6em .9em; }
  .sub-menu a:hover { background: var(--bg-alt); }
}
@media (max-width: 860px) {
  .sub-toggle { width: 100%; justify-content: space-between; padding: .85em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sub-menu { display: none; }
  .has-sub.open .sub-menu { display: block; }
  .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
  .sub-menu a { padding-left: 1.5em; }
}
