:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --border: #e2e8f0;
  --accent: #3b5bdb;
  --accent-soft: #eef2ff;
  --dark: #0f1419;
  --dark-surface: #161b26;
  --dark-border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-dark: 0 24px 48px rgba(0, 0, 0, 0.4);
  --max: 1080px;
  --pad-x: clamp(20px, 6vw, 80px);
  --section-y: clamp(72px, 9vw, 104px);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --hero-title: clamp(2.5rem, 5.5vw, 3.75rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3vw, 28px) var(--pad-x);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: block;
  height: var(--hero-title);
  width: calc(var(--hero-title) * 3.6);
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

nav a {
  margin-left: 28px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

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

/* ── Typography ── */

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow-dark {
  color: #7c9cff;
}

h1 {
  font-size: var(--hero-title);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.15;
}

.section-lead {
  margin: 0 0 36px;
  max-width: 520px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Hero ── */

.hero {
  padding: clamp(64px, 10vw, 120px) var(--pad-x) clamp(80px, 10vw, 112px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 720px;
}

.subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── Buttons ── */

.button {
  display: inline-block;
  padding: 12px 20px;
  background: var(--text);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}

.button:hover {
  background: #1e293b;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.button-secondary:hover {
  background: var(--bg);
  border-color: #cbd5e1;
}

/* ── Sections ── */

.section {
  padding: var(--section-y) var(--pad-x);
  background: var(--surface);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* ── Why ── */

.why {
  background: var(--bg);
}

.why .section-inner {
  max-width: 640px;
}

.why p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.why .why-lead {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

/* ── Features ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Product showcase ── */

.product-showcase {
  padding: var(--section-y) var(--pad-x);
  background: var(--dark);
  color: #cbd5e1;
}

.product-showcase-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.showcase-header {
  max-width: 560px;
  margin-bottom: 48px;
}

.showcase-header h2 {
  color: #f1f5f9;
}

.showcase-intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: #94a3b8;
}

.app-frame {
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-surface);
  box-shadow: var(--shadow-dark);
}

.app-frame-hero {
  margin-bottom: 32px;
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #1c2230;
  border-bottom: 1px solid var(--dark-border);
}

.app-chrome-compact {
  padding: 8px 12px;
}

.app-chrome-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.app-chrome-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d4556;
}

.app-chrome-dots span:nth-child(1) { background: #4a5568; }
.app-chrome-dots span:nth-child(2) { background: #3d4556; }
.app-chrome-dots span:nth-child(3) { background: #3d4556; }

.app-chrome-label {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.02em;
}

.app-frame-viewport {
  background: #0a0c14;
  line-height: 0;
}

.app-frame-viewport img {
  display: block;
  width: 100%;
  height: auto;
}

.app-crop {
  height: 210px;
  overflow: hidden;
}

.app-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.app-crop-charts img,
.app-crop-contingency img {
  object-fit: contain;
  object-position: center top;
}

.app-crop-funding img {
  object-fit: cover;
  object-position: center top;
}

.showcase-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-card-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.2px;
}

.showcase-card-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
}

/* ── Workflow ── */

.workflow {
  background: var(--bg);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.workflow-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.workflow-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.workflow-step h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.workflow-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── CTA ── */

.cta {
  background: var(--text);
  color: white;
  text-align: center;
}

.cta-inner {
  max-width: 560px;
}

.cta h2 {
  color: white;
}

.cta p {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.65;
  color: #94a3b8;
}

.cta .button {
  background: white;
  color: var(--text);
}

.cta .button:hover {
  background: #f1f5f9;
}

/* ── Footer ── */

footer {
  padding: 28px var(--pad-x);
  color: var(--text-soft);
  font-size: 13px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0;
  max-width: var(--max);
  margin-inline: auto;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .showcase-features {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  nav a {
    margin-left: 0;
    margin-right: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    text-align: center;
  }

  .app-crop {
    height: 190px;
  }
}
