/* ===== Earth Mills — Universal Molecular Transformation Platform ===== */

:root {
  --bg: #0a0e0c;
  --bg-alt: #0e1411;
  --surface: #121a16;
  --surface-2: #16201b;
  --line: #233029;
  --text: #eef3ef;
  --muted: #9db1a6;
  --muted-dim: #6f857a;

  --iron: #c9742f;       /* molten metal / copper */
  --iron-bright: #f0995a;
  --earth: #3fb27f;      /* growth green */
  --earth-bright: #5fe3a6;
  --accent-grad: linear-gradient(120deg, var(--iron-bright), var(--earth-bright));

  --radius: 16px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand__text, .eyebrow {
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 12, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 14, 12, 0.9);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__logo {
  flex: none;
  filter: drop-shadow(0 0 9px rgba(95, 227, 166, 0.35));
}
.brand__text { font-size: 0.95rem; letter-spacing: 0.06em; }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
}
.btn--primary {
  background: var(--accent-grad);
  color: #06120c;
  box-shadow: 0 8px 30px rgba(95, 227, 166, 0.22);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(95, 227, 166, 0.35); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--earth-bright); color: var(--earth-bright); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(63, 178, 127, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 178, 127, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.hero__glow--1 { width: 520px; height: 520px; background: rgba(201, 116, 47, 0.32); top: -120px; right: -80px; }
.hero__glow--2 { width: 480px; height: 480px; background: rgba(63, 178, 127, 0.28); bottom: -160px; left: -120px; }

.hero__content { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--earth-bright);
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 26px;
}
.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 38px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: "Sora", sans-serif; font-size: 2rem; color: var(--text); }
.hero__stats span { font-size: 0.85rem; color: var(--muted-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== Sections ===== */
.section { padding: 110px 24px; max-width: var(--maxw); margin: 0 auto; }
.section--alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__title {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}
.section__intro { font-size: 1.1rem; color: var(--muted); }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.cards--compact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 56px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(95, 227, 166, 0.4); background: var(--surface-2); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(63, 178, 127, 0.1);
  border: 1px solid var(--line);
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 0.95rem;
  color: var(--earth-bright);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card__link {
  display: inline-block; margin-top: 16px;
  color: var(--iron-bright); font-weight: 600; font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.card__link:hover { color: var(--earth-bright); }
.card--partner { display: flex; flex-direction: column; }
.card--partner p { flex: 1; }

/* ===== Split ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.split__col h3 { font-size: 1.4rem; margin-bottom: 14px; color: var(--text); }
.split__col p { color: var(--muted); margin-bottom: 14px; }
.split__col--wide { }
.pull { color: var(--earth-bright); font-weight: 600; font-size: 1.05rem; }

/* ===== Checklist ===== */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checklist li {
  position: relative;
  padding: 14px 16px 14px 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--earth-bright); font-weight: 700;
}

/* ===== Stack (agriculture) ===== */
.stack { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.stack__item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.stack__item h3 { font-size: 1.2rem; color: var(--iron-bright); }
.stack__item p { color: var(--muted); }

.quote {
  max-width: 820px; margin: 56px auto 0;
  text-align: center;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500; line-height: 1.4;
  color: var(--text);
}
.quote em { color: var(--earth-bright); font-style: normal; }

/* ===== Positioning ===== */
.positioning {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
}
.positioning h3 { font-size: 1.4rem; margin-bottom: 14px; }
.positioning > p { color: var(--muted); max-width: 760px; }
.positioning__lines { margin-top: 28px; display: grid; gap: 10px; }
.positioning__lines p { font-family: "Sora", sans-serif; font-size: 1.15rem; color: var(--muted); }
.positioning__lines span { color: var(--iron-bright); font-weight: 700; }
.positioning__cap { color: var(--earth-bright) !important; font-weight: 600; margin-top: 8px; }

/* ===== Metrics ===== */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 24px;
  text-align: center;
}
.metric strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.metric span {
  display: block; margin-top: 10px;
  font-size: 0.85rem; color: var(--muted-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ===== CTA band ===== */
.cta-band {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, rgba(201,116,47,0.12), rgba(63,178,127,0.12));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 40px;
}
.cta-band p { font-family: "Sora", sans-serif; font-size: 1.25rem; font-weight: 600; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 56px 24px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.footer__email { color: var(--earth-bright); font-weight: 500; }
.footer__tags { color: var(--muted); margin-bottom: 12px; }
.footer__legal { color: var(--muted-dim); font-size: 0.88rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .stack__item { grid-template-columns: 1fr; gap: 6px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 14, 12, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav.is-open .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero__stats { gap: 32px; }
  .cta-band { flex-direction: column; text-align: center; }
}
