/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf8f4;
  --bg-alt: #f2ede5;
  --fg: #1a2e1a;
  --fg-muted: #5a6b55;
  --accent: #f5a623;
  --accent-dark: #d4891a;
  --green: #1a4d2e;
  --green-light: #2a6b3e;
  --green-pale: #e8f0eb;
  --red: #c0392b;
  --white: #ffffff;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, .headline {
  font-family: 'Syne', system-ui, sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 46, 26, 0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--green);
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta-secondary {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-cta-secondary:hover { color: var(--fg); background: rgba(26,46,26,0.06); }

.nav-cta-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fg);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-cta-primary:hover { background: var(--accent-dark); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #faf8f4 0%, #e8f0eb 40%, #f5a62315 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #f5a62320 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #1a4d2e15 0%, transparent 70%);
  bottom: 50px;
  left: 100px;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #f5a62310 0%, transparent 70%);
  top: 40%;
  left: 30%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 46, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 46, 26, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-line {
  display: block;
}

.hero-accent {
  color: var(--accent);
  position: relative;
}

.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(245, 166, 35, 0.25);
  border-radius: 2px;
  z-index: -1;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 460px;
}

/* ===== PHONE MOCKUP ===== */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  position: relative;
}

.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.phone-frame {
  width: 280px;
  background: #111;
  border-radius: 40px;
  padding: 16px;
  box-shadow: 0 40px 80px rgba(26, 46, 26, 0.25), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: #111;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  background: #faf8f4;
  border-radius: 28px;
  overflow: hidden;
  padding: 40px 16px 16px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
}

.app-wallet {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
}

.app-gig-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(26, 46, 26, 0.06);
  border: 2px solid transparent;
}

.app-gig-card.active {
  border-color: var(--accent);
  background: #fffbf2;
}

.gig-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.gig-icon.clean { background: linear-gradient(135deg, #1a4d2e, #2a6b3e); }
.gig-icon.event { background: linear-gradient(135deg, #f5a623, #d4891a); }
.gig-icon.municipal { background: linear-gradient(135deg, #6b7280, #9ca3af); }

.gig-info { flex: 1; }

.gig-title {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--fg);
  margin-bottom: 2px;
}

.gig-pay {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
}

.gig-dist {
  font-size: 0.65rem;
  color: var(--fg-muted);
}

.gig-badge {
  background: var(--green);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.app-footer {
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 46, 26, 0.08);
  margin-top: 4px;
}

.app-nav-item {
  color: var(--fg-muted);
}

.app-nav-item.active {
  color: var(--green);
}

/* ===== HERO STATS ===== */
.hero-stats {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 60px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(26, 46, 26, 0.1);
  padding-top: 40px;
}

.stat {
  flex: 1;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(26, 46, 26, 0.15);
  margin: 0 40px;
}

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label.light { color: rgba(245, 166, 35, 0.7); }

/* ===== PROBLEM ===== */
.problem {
  padding: 100px 24px;
  background: var(--green);
  color: white;
}

.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.problem-headline {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: white;
  line-height: 1.2;
  padding-top: 40px;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.problem-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.problem-x { flex-shrink: 0; margin-top: 2px; }

.problem-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin-bottom: 4px;
}

.problem-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 24px;
  background: var(--bg);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--green);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: white;
  border: 1px solid rgba(26, 46, 26, 0.08);
  border-radius: 20px;
  padding: 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 46, 26, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--green-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== HOW ===== */
.how {
  padding: 100px 24px;
  background: var(--bg-alt);
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.how-header {
  margin-bottom: 64px;
}

.how-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--green);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: left;
  padding: 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(26, 46, 26, 0.08);
  position: relative;
}

.step-connector {
  width: 40px;
  flex-shrink: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  align-self: center;
  margin: 0 -1px;
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 16px;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 24px;
  background: var(--green);
  position: relative;
  overflow: hidden;
}

.closing-bg {
  position: absolute;
  inset: 0;
}

.closing-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.closing-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: white;
  margin-bottom: 24px;
  line-height: 1.15;
}

.closing-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 24px 32px;
  background: #111;
  color: rgba(255,255,255,0.4);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  margin-bottom: 40px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-sub { margin: 0 auto; }

  .hero-right { order: -1; }

  .hero-phone { transform: scale(0.85); }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .stat-divider { display: none; }

  .problem-inner { grid-template-columns: 1fr; }

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

  .how-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .step-connector {
    width: 2px;
    height: 24px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--accent), var(--green));
  }
}

/* ===== CLOSING CTAs ===== */
.closing-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
}
.cta-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(10, 10, 10, 0.25);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-alt);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg-muted);
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover {
  background: var(--green-pale);
  color: var(--green);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-icon {
  width: 48px;
  height: 48px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.form-error-box {
  background: rgba(192, 57, 43, 0.08);
  border: 1.5px solid rgba(192, 57, 43, 0.3);
  color: var(--red);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: none;
}
.form-error-box.show { display: block; }

.form-success {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--green-pale);
  border: 1.5px solid rgba(26, 77, 46, 0.2);
  border-radius: 12px;
  padding: 20px;
  color: var(--green);
}
.form-success p { font-weight: 600; margin: 0; }

.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--fg); }
.form-input {
  padding: 12px 14px;
  border: 1.5px solid rgba(26, 46, 26, 0.15);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--fg);
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-input::placeholder { color: var(--fg-muted); }

.btn-accent {
  background: var(--accent);
  color: var(--fg);
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-accent:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; }

.modal-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 16px;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ===== HOVER MICRO-INTERACTIONS ===== */
.cta-primary:active, .cta-secondary:active { transform: translateY(0) scale(0.98); }

.nav-cta-primary:active { transform: scale(0.97); }

/* ===== NOISE TEXTURE OVERLAY ===== */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .phone-frame { width: 240px; }
  .modal { padding: 28px 20px; }
  .closing-ctas { flex-direction: column; gap: 12px; }
  .cta-primary, .cta-secondary { width: 100%; justify-content: center; }
}
