/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ── Variables ── */
:root {
  --bg-dark: #090A0E;
  --bg-dark-alt: #0D0F16;
  --bg-dark-card: #0F1118;
  --bg-light: #F5F6F7;
  --bg-light-alt: #FAFAFA;
  --bg-white: #FFFFFF;

  --text-cream: #F0EDE6;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --text-muted-light: #4B5563;

  --green: #92C47C;
  --green-dark: #6B9E56;

  --font-sans: 'Inter', sans-serif;
  --radius: 1rem;
  --container: 1280px;
}

/* ── Base ── */
body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--green);
  color: var(--bg-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ── Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}

.items-center { align-items: center; }

/* ── Sections ── */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--bg-dark-alt);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-light {
  background: var(--bg-light);
}

.section-light-alt {
  background: var(--bg-light-alt);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
  .section { padding: 8rem 0; }
}

/* ── Label ── */
.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}

/* ── Typography ── */
.text-cream { color: var(--text-cream); }
.text-dark { color: var(--text-dark); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }

.text-center { text-align: center; }

.heading-xl {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.heading-lg {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.heading-md {
  font-size: 1.5rem;
  font-weight: 700;
}

.body-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}

.body-text-light {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(240, 237, 230, 0.45);
}

@media (min-width: 768px) {
  .heading-xl { font-size: 3.75rem; }
  .heading-lg { font-size: 3rem; }
  .heading-md { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  .heading-xl { font-size: 4.5rem; }
  .heading-lg { font-size: 3.5rem; }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(240, 237, 230, 0.4);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  .hero-subtitle { font-size: 1.875rem; }
}

.hero-heading {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-cream);
}

.hero-heading br {
  display: none;
}

@media (min-width: 768px) {
  .hero-heading br { display: inline; }
}

@media (min-width: 768px) {
  .hero-heading { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .hero-heading { font-size: 4.5rem; }
}

/* Giant phrase */
.phrase-giant {
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.05em;
}

@media (min-width: 768px) {
  .phrase-giant { font-size: 6rem; }
}
@media (min-width: 1024px) {
  .phrase-giant { font-size: 10rem; }
}

/* Step numbers */
.step-num {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.05em;
}

@media (min-width: 768px) {
  .step-num { font-size: 6rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 2rem;
  height: 3rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-lg {
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  color: var(--text-cream);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(9, 10, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 2.25rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
  .nav-logo img { height: 2.5rem; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(240, 237, 230, 0.45);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--text-cream);
}

/* Mobile menu button */
.nav-mobile-btn {
  display: flex;
  padding: 0.5rem;
  color: var(--text-cream);
}

@media (min-width: 768px) {
  .nav-mobile-btn { display: none; }
}

.nav-mobile-btn svg {
  width: 28px;
  height: 28px;
}

/* Mobile menu panel */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-dark-card);
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 1.5rem;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.mobile-menu.open {
  max-height: 300px;
  opacity: 1;
  padding: 1.5rem;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(240, 237, 230, 0.7);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--text-cream);
}

.mobile-menu .btn {
  width: 100%;
  height: 3rem;
  font-size: 1rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 10rem;
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
}

.hero-glow-1 {
  position: absolute;
  top: 33%;
  right: 0;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(146, 196, 124, 0.06);
  filter: blur(140px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(146, 196, 124, 0.03);
  filter: blur(100px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-eco {
  min-height: auto;
  padding-top: 10rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .hero { padding-top: 12rem; padding-bottom: 8rem; }
  .hero-eco { padding-top: 11rem; padding-bottom: 7rem; }
}

.hero-eco .hero-subtitle-eco {
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.5);
  line-height: 1.6;
  max-width: 42rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .hero-eco .hero-subtitle-eco { font-size: 1.25rem; }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
}

/* ── Grain Overlay ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── Decorative Glows ── */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glow-green-sm {
  width: 400px;
  height: 400px;
  background: rgba(146, 196, 124, 0.03);
  filter: blur(100px);
}

.glow-green-lg {
  width: 500px;
  height: 500px;
  background: rgba(146, 196, 124, 0.03);
  filter: blur(120px);
}

/* ── Marquee ── */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

.marquee {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 0;
  overflow: hidden;
  background: var(--bg-dark-alt);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  width: max-content;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.25);
}

.marquee-dot {
  color: rgba(146, 196, 124, 0.6);
  font-size: 1rem;
  line-height: 1;
}

/* ── Cards ── */
.card {
  padding: 2rem;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.card-light {
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.08);
}

.card-light:hover {
  border-color: rgba(0,0,0,0.15);
}

.card-featured {
  background: rgba(146, 196, 124, 0.08);
  border: 1px solid rgba(146, 196, 124, 0.35);
  position: relative;
}

.card-featured:hover {
  border-color: rgba(146, 196, 124, 0.55);
}

.card-dark-green {
  background: rgba(146, 196, 124, 0.04);
  border: 1px solid rgba(146, 196, 124, 0.25);
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.card-dark-green:hover {
  border-color: rgba(146, 196, 124, 0.45);
}

.card-dark-neutral {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.card-dark-neutral:hover {
  border-color: rgba(255,255,255,0.15);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-muted {
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text-muted);
}

.card-icon-green {
  border: 1px solid rgba(146, 196, 124, 0.3);
  color: var(--green);
}

.badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--green);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* List items */
.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
}

.list-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.list-dot-green {
  width: 6px;
  height: 6px;
  background: var(--green);
}

.list-item-featured {
  color: #374151;
  font-weight: 500;
}

.list-item-dark {
  color: rgba(240, 237, 230, 0.6);
  font-weight: 500;
}

.list-item-dark-muted {
  color: rgba(240, 237, 230, 0.5);
  font-weight: 300;
}

.list-dot-light {
  width: 4px;
  height: 4px;
  background: rgba(240, 237, 230, 0.25);
}

/* ── Ecosystem Grid ── */
.eco-grid {
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .eco-grid { grid-template-columns: repeat(3, 1fr); }
}

.eco-grid-item {
  background: var(--bg-dark-alt);
  padding: 2.5rem;
  transition: background 0.3s;
  cursor: default;
}

.eco-grid-item:hover {
  background: #13161F;
}

.eco-grid-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(146, 196, 124, 0.3);
  margin-bottom: 2rem;
  transition: background 0.3s;
}

.eco-grid-item:hover .eco-grid-dot {
  background: var(--green);
}

/* ── Context feature cards ── */
.feature-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.08);
  transition: all 0.3s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.feature-card:hover {
  border-color: rgba(146, 196, 124, 0.3);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(146, 196, 124, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
  transition: background 0.3s;
}

.feature-card:hover .feature-icon {
  background: rgba(146, 196, 124, 0.18);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

/* ── How it works steps ── */
.step-line {
  width: 2rem;
  height: 1px;
  background: rgba(146, 196, 124, 0.2);
  margin-bottom: 1.25rem;
  transition: background 0.5s;
}

.step:hover .step-line {
  background: rgba(146, 196, 124, 0.5);
}

/* ── CTA Section ── */
.cta-section {
  padding: 7rem 0 10rem;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.cta-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(146, 196, 124, 0.027), transparent);
}

.cta-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(146, 196, 124, 0.2), transparent);
}

.cta-heading {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-heading { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .cta-heading { font-size: 6rem; }
}

.cta-subtitle {
  color: rgba(240, 237, 230, 0.4);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .cta-subtitle { white-space: nowrap; }
}

.cta-secondary-link {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(240, 237, 230, 0.35);
  font-weight: 300;
  transition: color 0.2s;
}

.cta-secondary-link:hover {
  color: rgba(240, 237, 230, 0.6);
}

/* ── Footer ── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--bg-dark);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(240, 237, 230, 0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-brand {
  color: var(--text-cream);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Fade-in animation ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* Hero text animations */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.3s; }
.hero-anim-3 { animation-delay: 0.55s; }

/* ── SVG desktop-only ── */
.svg-desktop {
  display: none;
}

@media (min-width: 768px) {
  .svg-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Utility ── */
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-6 { margin-top: 1.5rem; }
.pt-2 { padding-top: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.inline-flex { display: inline-flex; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.font-medium { font-weight: 500; }
.whitespace-nowrap { white-space: nowrap; }
