/* Alasca Design System — Earth tones, deep greens, premium agricultural feel */

/* ─── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  --green-900: #052e16;
  --green-800: #14532d;
  --green-700: #166534;
  --green-600: #15803d;
  --green-500: #16a34a;
  --green-400: #4ade80;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;

  --amber-900: #78350f;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50:  #fafaf9;

  --sky-900: #0c1a2e;
  --sky-800: #0f2744;
  --sky-700: #163858;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.10);
}

/* ─── Reset / Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--stone-50);
  color: var(--stone-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/generated-images/company_183043/b729965b-e439-444a-aa4d-04837d384b3e.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 46, 22, 0.3) 0%,
    rgba(5, 46, 22, 0.6) 50%,
    rgba(5, 46, 22, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(22, 163, 74, 0.25);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: var(--green-400);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-title span {
  color: var(--green-400);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--green-500);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
}

.btn-primary:hover {
  background: var(--green-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Stats bar ───────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--green-900);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

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

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green-400);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ─── How it works ───────────────────────────────────────────────────────────── */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.75rem;
  background: var(--green-50);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid var(--green-100);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--stone-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--stone-500);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ─── Feature section (with image) ───────────────────────────────────────────── */
.feature-section {
  background: var(--stone-100);
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
  padding: 5rem 2rem;
}

.feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-image-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feature-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 1;
  pointer-events: none;
}

.feature-image-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.4s ease;
}

.feature-image-wrap:hover img {
  transform: scale(1.03);
}

.feature-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid var(--amber-100);
  margin-bottom: 1rem;
}

.feature-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--stone-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--stone-500);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--stone-700);
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-list li::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  background: var(--green-100);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 0.75rem;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 0.1rem;
}

/* ─── Steps ──────────────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--green-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--stone-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── CTA ────────────────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(22, 163, 74, 0.15), transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(245, 158, 11, 0.08), transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-cta {
  background: var(--amber-500);
  color: var(--amber-900);
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-cta:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--stone-900);
  color: var(--stone-400);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer strong {
  color: var(--green-400);
}

/* ─── Feature cards (3-column features) ──────────────────────────────────────── */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
}

.feature-card-body {
  padding: 1.5rem;
}

.feature-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 0.5rem;
}

.feature-card-body p {
  font-size: 0.85rem;
  color: var(--stone-500);
  line-height: 1.6;
}

/* ─── Community / Farmer Stories ─────────────────────────────────────────────── */
.community-section {
  background: var(--green-50);
  border-top: 1px solid var(--green-100);
  border-bottom: 1px solid var(--green-100);
  padding: 5rem 2rem;
}

.community-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.community-img-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.community-img-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.community-quote {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(5,46,22,0.9) 0%, transparent 100%);
  padding: 3rem 2rem 1.5rem;
}

.community-quote blockquote {
  color: white;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

.community-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-style: normal;
  font-weight: 600;
}

.community-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--stone-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.community-text p {
  color: var(--stone-500);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green-500);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.testimonial-item p {
  color: var(--stone-600);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ─── Driver Network ─────────────────────────────────────────────────────────── */
.driver-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.driver-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.driver-img-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.driver-img-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

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

.driver-stat-box {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.driver-stat-box .val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.driver-stat-box .lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone-400);
  font-weight: 600;
}

/* ─── Coverage / Routing Map ────────────────────────────────────────────────── */
.coverage-section {
  background: var(--stone-900);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.coverage-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.coverage-map-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.coverage-map-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.9);
}

.coverage-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.coverage-text p {
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.coverage-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coverage-feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.coverage-feature-item span:first-child {
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.coverage-feature-item span:first-child svg {
  width: 0.85rem;
  height: 0.85rem;
}

.coverage-feature-item p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ─── Market Impact ─────────────────────────────────────────────────────────── */
.impact-section {
  background: linear-gradient(135deg, var(--stone-50) 0%, var(--amber-50) 100%);
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
  padding: 5rem 2rem;
}

.impact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.impact-img-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.impact-img-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.impact-text .section-label { color: var(--amber-700); background: var(--amber-100); border-color: var(--amber-100); }

.impact-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--stone-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.impact-text > p {
  color: var(--stone-500);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.impact-metric-card {
  background: white;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.impact-metric-card .metric-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.impact-metric-card .metric-lbl {
  font-size: 0.75rem;
  color: var(--stone-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── CTA with background image ─────────────────────────────────────────────── */
.cta-bg-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-bg-section .cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.7);
}

.cta-bg-section .cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,46,22,0.85) 0%, rgba(5,46,22,0.6) 100%);
}

.cta-bg-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 2rem;
  max-width: 640px;
}

.cta-bg-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.cta-bg-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ─── Dashboard refinements (complement Tailwind) ────────────────────────────── */
.dashboard-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
}

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 2rem 1rem; }
  .features-row { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; gap: 2rem; }
  .driver-grid { grid-template-columns: 1fr; gap: 2rem; }
  .coverage-inner { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .impact-metrics { grid-template-columns: 1fr; }
  .driver-stats-row { grid-template-columns: 1fr; }
  .cta-bg-section { min-height: 400px; }
  .cta-bg-content h2 { font-size: 1.75rem; }
}