:root {
  --green: #86B840;
  --green-dark: #5C8A2B;
  --green-darker: #3F6A18;
  --green-light: #EAF4DC;
  --red: #D6303B;
  --text-dark: #223018;
  --text-muted: #5B6B4E;
  --white: #FFFFFF;
  --cream: #FAFCF6;
  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(34, 48, 24, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; margin-bottom: 10px; }

p { margin: 0 0 16px; color: var(--text-muted); }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.kicker-light { color: var(--green-light); }

.section-lead {
  font-size: 1.08rem;
  max-width: 68ch;
  margin-bottom: 8px;
}

.section-lead-light { color: #DCE9CC; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(34, 48, 24, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-icon { width: 34px; height: 34px; object-fit: contain; }

.brand-word {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-darker);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.85;
}

.site-nav a:hover { opacity: 1; color: var(--green-dark); }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 999px;
  opacity: 1 !important;
}

.nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  display: block;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--green-light) 0%, var(--white) 55%);
  padding: 72px 0 88px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  background: transparent;
  color: var(--green-darker);
  border: 2px solid var(--green);
}

.btn-ghost:hover { background: var(--green-light); }

.hero-art { display: flex; justify-content: center; }

.hero-badge {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--cream); }

.section-dark {
  background: linear-gradient(160deg, var(--green-darker), var(--green-dark));
  color: var(--white);
}

.section-dark h2 { color: var(--white); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--white);
  border: 1px solid rgba(34, 48, 24, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 { color: var(--green-darker); }

/* Market */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.market-item {
  padding: 8px 0;
  border-top: 3px solid var(--green);
}

.market-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  margin: 14px 0 6px;
  letter-spacing: 0.08em;
}

.market-item h3 { color: var(--green-darker); }

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--green);
}

.partner-card h3 { color: var(--green-darker); }

/* Flow */
.flow {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: start;
}

.flow-step {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid rgba(34, 48, 24, 0.08);
}

.flow-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.flow-arrow {
  align-self: center;
  font-size: 1.6rem;
  color: var(--green);
  font-weight: 700;
}

/* API section */
.api-wrap { text-align: left; }

.api-card {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 34px;
  max-width: 640px;
}

.status-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.status-badge-live { background: var(--green-dark); }
.status-badge-dev { background: #C9861F; }

.api-card p { color: #E7F0DA; margin-bottom: 22px; }

.api-card .btn-primary { background: var(--white); color: var(--green-darker); }
.api-card .btn-primary:hover { background: var(--green-light); }

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: #C9D3BD;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand .brand-word { color: var(--white); }
.footer-inner p { margin: 0; color: #A9B69A; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-badge { width: 160px; height: 160px; }

  .card-grid, .market-grid, .partner-grid { grid-template-columns: 1fr; }

  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); margin: 0 auto; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    border-bottom: 1px solid rgba(34, 48, 24, 0.08);
    display: none;
    gap: 16px;
  }

  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
}
