/* ==========================================================================
   GreenSuccess 1.0 — greensuccess.io
   Plain CSS. No preprocessor, no build step.
   Breakpoints: phone <=600, tablet <=900, wide >=1421 (boundary guards 601/901/1421)
   ========================================================================== */

:root {
  /* Brand — sampled from the supplied logo files */
  --mint:        #20F3AE;
  --mint-soft:   #7BF8CE;
  --mint-dim:    rgba(32, 243, 174, 0.10);
  --mint-line:   rgba(32, 243, 174, 0.28);
  --mint-glow:   rgba(32, 243, 174, 0.22);

  /* Surfaces */
  --ink:         #0A0D0C;
  --ink2:        #111614;
  --ink3:        #18201D;
  --panel:       #111614;
  --panel-hover: #18201D;
  --paper:       #F5F5F5;
  --brand-black: #1D1D1B;

  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text:        #EDF2EF;
  --muted:       #93A29B;
  --muted-2:     #6C7B75;

  --shadow:      0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 24px 64px rgba(0, 0, 0, 0.45);

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --maxw: 1240px;
  --gutter: 24px;
  --radius: 14px;
  --radius-lg: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p { margin: 0; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--mint-glow);
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }

.section__head { max-width: 780px; margin-bottom: 48px; }
.section__head p { color: var(--muted); margin-top: 18px; font-size: 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mint);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--mint);
  opacity: 0.7;
}

h2.section__title { font-size: 44px; }
h3.card__title { font-size: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary {
  background: var(--mint);
  color: var(--brand-black);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-1px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 13, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(10, 13, 12, 0.92);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.header .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 108px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 760px;
  background:
    radial-gradient(52% 58% at 22% 18%, rgba(32, 243, 174, 0.20) 0%, rgba(32, 243, 174, 0) 68%),
    radial-gradient(46% 54% at 82% 8%, rgba(32, 243, 174, 0.10) 0%, rgba(32, 243, 174, 0) 70%);
  z-index: -2;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 78%);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero__copy { min-width: 0; }

.hero h1 {
  font-size: 68px;
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--mint) 0%, var(--mint-soft) 55%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  margin-top: 26px;
  max-width: 620px;
  font-size: 19px;
  color: var(--muted);
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}
.hero__mark {
  width: min(320px, 100%);
  filter: drop-shadow(0 24px 60px var(--mint-glow));
  animation: floaty 7s ease-in-out infinite;
}
.hero__ring {
  position: absolute;
  width: min(420px, 92%);
  aspect-ratio: 1;
  border: 1px solid var(--mint-line);
  border-radius: 50%;
  opacity: 0.45;
  animation: spin 26s linear infinite;
}
.hero__ring::after {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px var(--mint-dim);
  transform: translateX(-50%);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- Stat strip ---------- */
.stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--ink2);
  padding: 26px 24px;
  min-width: 0;
}
.stat__val {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  min-width: 0;
  overflow: hidden;
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
  transform: translateY(-2px);
}
.card__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--mint-dim);
  border: 1px solid var(--mint-line);
  color: var(--mint);
  margin-bottom: 18px;
}
.card__icon svg { width: 20px; height: 20px; }
.card__title { margin-bottom: 10px; }
.card__body { color: var(--muted); font-size: 16px; }

/* Capability cards get the 4px left accent (never a full tint) */
.card--rule::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--mint);
  opacity: 0;
  transition: opacity .22s ease;
}
.card--rule:hover::before { opacity: 1; }

/* ---------- Brands ---------- */
.brand-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  min-width: 0;
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}
.brand-card:hover {
  border-color: var(--mint-line);
  background: var(--panel-hover);
  transform: translateY(-2px);
}
.brand-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-card__logo {
  height: 44px;
  display: flex;
  align-items: center;
}
.brand-card__logo img { max-height: 44px; width: auto; }
/* Typographic fallback until licensed brand artwork is dropped into assets/brands/ */
.brand-card__wordmark {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-card__tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mint);
  letter-spacing: 0.02em;
}
.brand-card__body { color: var(--muted); font-size: 15px; margin: 0; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--mint-dim);
  color: var(--mint);
  border: 1px solid var(--mint-line);
  white-space: nowrap;
}
.badge--soon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-color: var(--line-strong);
}

/* ---------- Pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pipeline__step {
  background: var(--ink2);
  padding: 24px 20px;
  min-width: 0;
  transition: background .22s ease;
}
.pipeline__step:hover { background: var(--ink3); }
.pipeline__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint);
  letter-spacing: 0.14em;
}
.pipeline__name {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.pipeline__desc { margin-top: 6px; font-size: 14px; color: var(--muted-2); }

/* ---------- Markets ---------- */
.markets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.market {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-width: 0;
}
.market__dot {
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px var(--mint-dim);
}
.market__dot--soon { background: var(--muted-2); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05); }
.market__name { font-weight: 700; font-size: 17px; min-width: 0; }
.market__state {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

/* ---------- Split / About ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.split__col { min-width: 0; }
.split p + p { margin-top: 18px; }
.split p { color: var(--muted); }

.quote {
  margin-top: 32px;
  padding: 24px 26px;
  border-left: 3px solid var(--mint);
  background: var(--mint-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 16px;
  min-width: 0;
}
.checklist svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--mint); margin-top: 3px; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  border: 1px solid var(--mint-line);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  background:
    radial-gradient(90% 160% at 12% 0%, rgba(32, 243, 174, 0.16) 0%, rgba(32, 243, 174, 0) 62%),
    var(--ink2);
  overflow: hidden;
}
.cta h2 { font-size: 38px; max-width: 620px; }
.cta p { margin-top: 16px; color: var(--muted); max-width: 560px; font-size: 18px; }
.cta__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer__col { min-width: 0; }
.footer__col img { height: 28px; width: auto; margin-bottom: 18px; }
.footer__col p { color: var(--muted-2); font-size: 15px; }
.footer h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.footer ul a:hover { color: var(--mint); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-2);
  font-size: 13px;
}
.footer__legal { max-width: 720px; line-height: 1.6; }

.social { display: flex; gap: 8px; }
.social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease;
}
.social a:hover { color: var(--mint); border-color: var(--mint-line); }
.social svg { width: 18px; height: 18px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Tablet — <= 900px  (includes the nav collapse)
   ========================================================================== */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  h2.section__title { font-size: 36px; }

  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--ink2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 48px; padding: 0 16px; font-size: 16px; }

  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }

  .hero { padding: 72px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 48px; }
  .hero__art { order: -1; }
  .hero__mark { width: min(220px, 60%); }
  .hero__ring { width: min(300px, 80%); }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 40px 28px; }
  .cta h2 { font-size: 30px; }
}

/* ==========================================================================
   Phone — <= 600px
   ========================================================================== */
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }

  .section { padding: 64px 0; }
  h2.section__title { font-size: 30px; }
  .section__head p { font-size: 16px; }

  .hero h1 { font-size: 36px; }
  .hero__lede { font-size: 17px; }
  .hero__actions .btn { width: 100%; }

  .stats { margin-top: 48px; }
  .stat__val { font-size: 26px; }

  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .quote { font-size: 18px; padding: 20px; }
  .cta h2 { font-size: 26px; }
}

/* ==========================================================================
   Wide — >= 1421px
   ========================================================================== */
@media (min-width: 1421px) {
  :root { --maxw: 1320px; }
  .hero h1 { font-size: 76px; }
  .section { padding: 120px 0; }
}

/* ---------- Accessibility: motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__mark, .hero__ring { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Contact form — revealed on click, no address rendered anywhere
   ========================================================================== */
.cform {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  animation: cformIn .28s ease;
}
.cform[hidden] { display: none; }

@keyframes cformIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.cform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  max-width: 780px;
}

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }

.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.req { color: var(--mint); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  min-height: 48px;
  padding: 12px 14px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;           /* 16px minimum stops iOS Safari zooming on focus */
  line-height: 1.5;
  transition: border-color .18s ease, background .18s ease;
}
.field textarea { min-height: 128px; resize: vertical; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A29B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted-2); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 3px var(--mint-glow);
}

.field.is-invalid input,
.field.is-invalid textarea { border-color: #FF6B6B; }

.field__err { font-size: 13px; color: #FF6B6B; margin: 0; }
.field__err[hidden] { display: none; }

/* Honeypot — off-screen rather than display:none, which some bots skip */
.cform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform__foot {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cform__note { font-size: 13px; color: var(--muted-2); margin: 0; max-width: 380px; }

.cform__status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  background: var(--mint-dim);
  border: 1px solid var(--mint-line);
  color: var(--mint);
}
.cform__status[hidden] { display: none; }
.cform__status.is-error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.30);
  color: #FF6B6B;
}

.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

@media (max-width: 600px) {
  .cform__grid { grid-template-columns: 1fr; }
  .cform__foot { flex-direction: column; align-items: stretch; }
  .cform__foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cform { animation: none; }
}
