/* TerraLoop — Earth-toned, confident, industrial */
:root {
  --bg: #0f0d0a;
  --bg-alt: #1a1612;
  --bg-card: #211d18;
  --accent: #c8873a;
  --accent-dim: #a06b28;
  --text: #e8d5b7;
  --text-muted: #9c8b72;
  --border: #2e271e;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 80px 60px;
  gap: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,135,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
}

.hero-left h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-left h1 em {
  color: var(--accent);
  font-style: normal;
}

.lede {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* LAND VIZ */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.land-viz {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.grid-overlay { position: absolute; inset: 0; }
.grid-line { position: absolute; background: var(--border); }
.grid-line.h { left: 0; right: 0; height: 1px; }
.grid-line.v { top: 0; bottom: 0; width: 1px; }

.parcel-grid {
  position: absolute;
  inset: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
}
.parcel {
  border: 1px solid var(--accent-dim);
  border-radius: 2px;
  position: relative;
}
.parcel-a { background: rgba(200,135,58,0.15); border-color: var(--accent); }
.parcel-b { background: rgba(200,135,58,0.07); }
.parcel-c { background: rgba(200,135,58,0.07); }
.parcel-d { background: rgba(200,135,58,0.07); }
.parcel-e { background: rgba(200,135,58,0.07); }
.parcel-f { background: rgba(200,135,58,0.15); border-color: var(--accent); }

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  top: 50%;
  animation: scan 4s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes scan {
  0% { top: 10%; opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { top: 90%; opacity: 0; }
}

.agent-ping {
  position: absolute;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--bg);
}
.p1 { top: 10%; right: 8%; }
.p2 { top: 50%; left: 8%; transform: translateY(-50%); }
.p3 { bottom: 10%; right: 8%; }

/* SECTION COMMON */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
}

/* HOW IT WORKS */
.how-it-works {
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}
.how-it-works h2 {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 16px 0 20px;
  max-width: 600px;
}
.how-it-works .section-sub { margin-bottom: 60px; }

.workflow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.step-connector {
  display: flex;
  align-items: center;
  padding: 0 8px;
  padding-top: 48px;
  flex-shrink: 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--accent);
  opacity: 0.4;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 12px;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* AGENTS */
.agents {
  padding: 100px 80px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.agents h2 {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 16px 0 60px;
}

.agent-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.agent-card {
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s;
}
.agent-card:hover { border-color: var(--accent-dim); }
.agent-icon { margin-bottom: 24px; }
.agent-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 12px;
}
.agent-card > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.agent-specs {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.agent-specs li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  padding-left: 16px;
}
.agent-specs li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.6;
}

/* MARKET */
.market {
  padding: 100px 80px;
  border-top: 1px solid var(--border);
}
.market-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.market-left h2 {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 16px 0 24px;
}
.market-left p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.market-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.data-row:first-child { border-top: 1px solid var(--border); }
.data-key {
  font-size: 14px;
  color: var(--text-muted);
}
.data-val {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* VISION */
.vision {
  padding: 100px 80px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.vision-inner { max-width: 800px; }
.vision-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 32px;
}
.vision blockquote {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 40px;
  border-left: 3px solid var(--accent);
  padding-left: 32px;
}
.vision > .vision-inner > p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 60px;
  max-width: 640px;
}

.vision-stats {
  display: flex;
  gap: 48px;
}
.vstat { display: flex; flex-direction: column; }
.vstat-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
}
.vstat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  max-width: 140px;
  line-height: 1.5;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 80px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.footer-meta {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  text-align: right;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { padding: 60px 40px; grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .how-it-works, .agents, .market, .vision { padding: 60px 40px; }
  .workflow { flex-direction: column; gap: 16px; }
  .step-connector { display: none; }
  .agent-cards { grid-template-columns: 1fr; }
  .market-inner { grid-template-columns: 1fr; gap: 40px; }
  .vision-stats { flex-wrap: wrap; gap: 24px; }
  footer { padding: 40px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 24px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .how-it-works, .agents, .market, .vision { padding: 48px 24px; }
  .how-it-works h2, .agents h2, .market-left h2 { font-size: 40px; }
  .agent-card { padding: 24px; }
  footer { padding: 32px 24px; }
}