/* ============================================================
   AgroMind Robotics — Design System
   Dark-canopy aesthetic. High-end robotics.
   ============================================================ */

:root {
  /* Surfaces */
  --bg-0: #06090c;          /* deepest base */
  --bg-1: #0a0f14;          /* page background */
  --bg-2: #0f1620;          /* elevated panel */
  --bg-3: #131c27;          /* card */
  --bg-4: #1a2532;          /* hover */

  /* Text */
  --text-0: #f5f8fa;        /* primary */
  --text-1: #c5cdd6;        /* body */
  --text-2: #7d8a99;        /* muted */
  --text-3: #4a5867;        /* faint */

  /* Accent — mint/cyan glow matching the logo */
  --accent: #6ef0c8;
  --accent-strong: #34dba4;
  --accent-dim: rgba(110, 240, 200, 0.12);
  --accent-line: rgba(110, 240, 200, 0.28);

  /* Borders */
  --border-1: rgba(255, 255, 255, 0.06);
  --border-2: rgba(255, 255, 255, 0.10);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Scale */
  --container: 1240px;
  --container-narrow: 980px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-1);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-strong); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg-0); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-0);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-1); line-height: 1.55; max-width: 60ch; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before { content: '— '; opacity: .6; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 2rem; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-divider { border-top: 1px solid var(--border-1); }
.bg-elevated { background: var(--bg-2); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 20, 0.7);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-1);
  transition: background .3s var(--ease);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 2rem;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 32px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-0);
  letter-spacing: -0.01em;
}
.brand-text span { color: var(--accent); font-weight: 400; }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-1);
  font-size: .92rem;
  letter-spacing: .01em;
  padding: .4rem 0;
  border-bottom: 1px solid transparent;
  transition: all .2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-0); border-bottom-color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: var(--bg-0) !important;
  padding: .55rem 1.1rem !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: none !important;
  transition: all .2s var(--ease);
}
.nav-cta:hover { background: var(--accent-strong); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-0);
  padding: .5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .005em;
  transition: all .2s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-0);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--bg-0); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(110, 240, 200, 0.18); }
.btn-secondary {
  background: transparent;
  color: var(--text-0);
  border-color: var(--border-2);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  padding: .65rem 0;
}
.btn-ghost:hover { color: var(--accent); }
.btn-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background: var(--bg-0);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,9,12,.55) 0%, rgba(6,9,12,.3) 40%, rgba(6,9,12,.95) 100%),
    linear-gradient(90deg, rgba(6,9,12,.7) 0%, rgba(6,9,12,.2) 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .8rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-tag .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
.hero .lede {
  margin-bottom: 2.5rem;
  max-width: 56ch;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta {
  position: absolute;
  bottom: 2rem; left: 0; right: 0;
  z-index: 1;
}
.hero-meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero-meta-inner > div { display: flex; align-items: center; gap: .6rem; }
.hero-meta-inner .accent { color: var(--accent); }

/* ---------- Generic section heading ---------- */
.section-head { margin-bottom: 4rem; max-width: 56ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Two-col layouts ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.two-col-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-1);
  position: relative;
}
.two-col-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .15em;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .65rem; }
.card p { color: var(--text-1); margin: 0; font-size: .95rem; }

.card-image {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s var(--ease);
}
.card-image:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card-image .img { aspect-ratio: 16/10; overflow: hidden; }
.card-image .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-image:hover .img img { transform: scale(1.04); }
.card-image .body { padding: 1.75rem; }
.card-image h3 { margin-bottom: .5rem; }
.card-image p { margin: 0; font-size: .95rem; color: var(--text-1); }

/* ---------- Stat blocks ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
.stat {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-1);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: .5rem;
}
.stat .label { font-size: .85rem; color: var(--text-2); }

/* ---------- Comparison table ---------- */
.compare {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--border-1);
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div { padding: 1.25rem 1.5rem; border-right: 1px solid var(--border-1); font-size: .95rem; }
.compare-row > div:last-child { border-right: none; }
.compare-row.head > div {
  background: var(--bg-3);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.compare-row.head .agromind { color: var(--accent); }
.compare-row .label { color: var(--text-2); font-size: .85rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.compare-row .old { color: var(--text-2); }
.compare-row .agromind { color: var(--text-0); }

/* ---------- Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}
.roadmap::before {
  content: '';
  position: absolute;
  top: 1.25rem; left: 1rem; right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-line) 0%, var(--border-1) 100%);
  z-index: 0;
}
.roadmap-item {
  position: relative;
  padding: 0 1rem;
  z-index: 1;
}
.roadmap-item .marker {
  width: 12px; height: 12px;
  background: var(--bg-1);
  border: 2px solid var(--accent);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 0 0 4px var(--bg-1);
}
.roadmap-item.dim .marker { border-color: var(--text-3); }
.roadmap-item .year {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: .35rem;
}
.roadmap-item.dim .year { color: var(--text-2); }
.roadmap-item .phase {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-0);
  margin-bottom: .65rem;
}
.roadmap-item .desc { font-size: .9rem; color: var(--text-2); margin: 0; }

/* ---------- Logo strip ---------- */
.logo-strip {
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  padding: 2.5rem 0;
  background: var(--bg-2);
}
.logo-strip-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 1.5rem;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .02em;
}
.logo-row span { opacity: .65; transition: opacity .2s var(--ease); }
.logo-row span:hover { opacity: 1; color: var(--text-0); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border-1);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { max-width: 32ch; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-2); font-size: .92rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: var(--text-1); font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-3);
  letter-spacing: .05em;
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  padding: 10rem 0 5rem;
  position: relative;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border-1);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,9,12,.4) 0%, rgba(6,9,12,.9) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { max-width: 60ch; }

/* ---------- Architecture diagram (tech page) ---------- */
.arch-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.arch-layer {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
  transition: all .3s var(--ease);
}
.arch-layer:hover { border-color: var(--accent-line); }
.arch-layer .label {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.arch-layer .name { font-family: var(--font-display); font-size: 1.4rem; color: var(--text-0); margin: .35rem 0 0; }
.arch-layer .desc { color: var(--text-1); margin: 0; font-size: .95rem; }
.arch-layer .tags {
  margin-top: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.arch-layer .tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .2rem .55rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  letter-spacing: .05em;
}

/* ---------- Pill / Status indicators ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .7rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.pill.accent { background: var(--accent-dim); border-color: var(--accent-line); color: var(--accent); }

/* ---------- Investor metric strip ---------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.metric {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .3s var(--ease);
}
.metric:hover { border-color: var(--accent-line); }
.metric .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--accent);
  line-height: 1;
  font-weight: 500;
  margin-bottom: .75rem;
}
.metric .label { color: var(--text-0); font-size: 1rem; margin-bottom: .35rem; font-weight: 500; }
.metric .sub { color: var(--text-2); font-size: .85rem; margin: 0; }

/* ---------- Long-form / docs style ---------- */
.prose p, .prose li { color: var(--text-1); font-size: 1rem; line-height: 1.7; }
.prose h3 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--accent); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}
.team-card .role {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.team-card h3 { margin-bottom: .35rem; }
.team-card .position { color: var(--text-2); font-size: .9rem; margin-bottom: 1.25rem; }
.team-card p { font-size: .95rem; }

/* ---------- Contact / CTA blocks ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 50%; height: 200%;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 60%);
  pointer-events: none;
}
.cta-block h2 { margin-bottom: 1rem; max-width: 22ch; }
.cta-block p { color: var(--text-1); margin: 0 0 1.5rem; }
.cta-block .ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-block .meta { font-family: var(--font-mono); font-size: .8rem; color: var(--text-2); line-height: 2; }
.cta-block .meta a { color: var(--text-1); }
.cta-block .meta a:hover { color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-2);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-1);
    gap: 1rem;
  }
  .two-col { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .roadmap::before { display: none; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div { border-right: none; border-bottom: 1px solid var(--border-1); }
  .compare-row.head { display: none; }
  .compare-row > div::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: .35rem;
  }
  .arch-layer { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cta-block { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .stat { border-right: none; border-bottom: 1px solid var(--border-1); }
  .stat:last-child { border-bottom: none; }
}
@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 1.25rem; }
  .nav { padding: .85rem 1.25rem; }
  .roadmap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 90vh; padding-top: 7rem; }
}
