/* EarthPilotOS — Design System
   Aesthetic: grounded, earthy, warm — not corporate SaaS
   Fonts: Syne (display) + DM Sans (body) via Google Fonts
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #f7f4ef;
  --bg-alt: #ede9e0;
  --surface: #ffffff;
  --text: #1a1714;
  --text-muted: #6b6359;
  --accent: #3d7a4f;
  --accent-warm: #c47a2b;
  --accent-light: #e8f0ea;
  --border: #ddd8ce;
  --shadow: rgba(26, 23, 20, 0.08);
  --shadow-md: rgba(26, 23, 20, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-brand span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: #346141;
  transform: translateY(-1px);
}

/* ── Container ─────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(61, 122, 79, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(61, 122, 79, 0.3);
}

.btn-primary:hover {
  background: #346141;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(61, 122, 79, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text); }

/* ── Stats Bar ─────────────────────────────────────── */
.stats-bar {
  padding: 0 0 4rem;
}

.stats-row {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
}

.stat-item {
  flex: 1;
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Section Labels ────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* ── Testimonials ─────────────────────────────────── */
.testimonials-section {
  padding: 5rem 0 6rem;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at center, rgba(196, 122, 43, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 520px;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 3.5rem;
  font-weight: 300;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-md);
}

.testimonial-card::before {
  content: '\u201C';
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.12;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  line-height: 1;
  pointer-events: none;
}

.card-quote {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.author-info { min-width: 0; }

.author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.star {
  width: 14px;
  height: 14px;
  background: var(--accent-warm);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ── Footer ────────────────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 2rem 0;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-inner a:hover { color: rgba(255,255,255,0.85); }

/* ── Features ─────────────────────────────────────── */
.features-section {
  padding: 6rem 0 5rem;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-md);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(61, 122, 79, 0.15);
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Client Intake Section ────────────────────────── */
.intake-section {
  padding: 6rem 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.intake-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61, 122, 79, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.intake-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intake-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 1rem;
  max-width: 420px;
}

.intake-text > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 400px;
}

.intake-checklist {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.intake-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
}

.intake-checklist svg {
  flex-shrink: 0;
}

.intake-graphic {
  display: flex;
  justify-content: center;
}

.intake-form-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 320px;
  box-shadow: 0 8px 40px var(--shadow-md);
  position: relative;
}

.intake-form-mock::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  opacity: 0.08;
  z-index: -1;
}

.mock-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mock-step {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.mock-field {
  margin-bottom: 1rem;
}

.mock-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mock-input {
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.mock-textarea {
  height: 52px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.mock-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.mock-bar {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 2px;
}

.mock-cta {
  background: var(--accent);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
}

/* ── How It Works ─────────────────────────────────── */
.how-section {
  padding: 6rem 0 5rem;
}

.steps-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 3rem;
}

.step {
  flex: 1;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--shadow);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.step-arrow {
  padding: 0 1rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .testimonials-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    flex-direction: column;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat-item:last-child { border-bottom: none; }
  .intake-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .steps-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .step-arrow { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .features-section, .intake-section, .how-section { padding: 4rem 0 3rem; }
}