/*
  CityFetchHQ Landing — Clean, Minimal Design
  =============================================
*/

:root {
  /* Neutrals first — green is accent only */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Accent — used sparingly */
  --accent: #0F9D58;
  --accent-hover: #0A7B44;
  --accent-light: #E8F5E9;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --section-pad: 6rem 0;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 9999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---- Container ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--gray-900);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--gray-500);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--gray-900); }

.header-actions { display: flex; gap: 0.75rem; align-items: center; }

/* Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.hamburger {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-900);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.2s;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--gray-900);
  left: 0;
  transition: transform 0.3s;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

body.nav-open .hamburger { background: transparent; }
body.nav-open .hamburger::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gray-900);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gray-700);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--gray-900);
  color: var(--gray-900);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ---- Hero ---- */
.hero-section {
  padding: 10rem 0 6rem;
  position: relative;
}

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

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--gray-100);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.hero-label .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}

.hero-line-accent {
  position: relative;
  display: inline-block;
}

.hero-line-accent::after {
  content: '';
  position: absolute;
  bottom: 0.12em;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent);
  border-radius: var(--r-full);
  z-index: -1;
  opacity: 0.18;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.stat-item {}
.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual — real screenshots */
.hero-visual {
  position: relative;
}

.hero-screenshot {
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
}

/* ---- Sections ---- */
.section { padding: var(--section-pad); }
.section-alt { background: var(--gray-50); }

/* ---- About Grid & Illustration ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about-illustration {
  border-radius: var(--r-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  border: 1px solid var(--gray-200);
  background: var(--white);
  animation: float 6s ease-in-out infinite;
  max-width: 320px;
  margin: 0 auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
}

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

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gray-700);
  transition: all 0.3s;
}

.step-card:hover .step-icon {
  background: var(--gray-900);
  color: var(--white);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  transition: all 0.3s ease;
  background: var(--white);
}

.feature-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gray-700);
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  color: var(--white);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

/* ---- Delivery Section ---- */
.delivery-section { background: var(--gray-50); }

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.delivery-grid.reversed { direction: rtl; }
.delivery-grid.reversed > * { direction: ltr; }

.delivery-img {
  border-radius: var(--r-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-200);
}

.delivery-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.delivery-content p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

.timeline-step {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray-600);
  border: 2px solid var(--gray-200);
}

.timeline-step.active .timeline-dot {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.timeline-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-text span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* Order type cards */
.order-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 5rem;
}

.order-card {
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  background: var(--white);
}

.order-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.order-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.check-icon {
  width: 18px;
  height: 18px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

/* Payment stats */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.payment-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  background: var(--white);
}

.payment-stat .num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.payment-stat .label {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Transport modes */
.transport-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.transport-item {
  text-align: center;
}

.transport-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  color: var(--gray-600);
}

.transport-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* ---- CTA / Download ---- */
.cta-section {
  padding: var(--section-pad);
}

.cta-box {
  background: var(--gray-900);
  border-radius: var(--r-lg);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--gray-400);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  color: var(--gray-900);
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-md);
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.store-icon {
  display: flex;
  align-items: center;
}

.store-text { display: flex; flex-direction: column; align-items: flex-start; }
.store-sub { font-size: 0.6rem; text-transform: uppercase; color: var(--gray-500); line-height: 1; }
.store-title { font-size: 1rem; font-weight: 700; line-height: 1.2; }

/* ---- Footer ---- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { color: var(--gray-500); font-size: 0.9rem; max-width: 280px; line-height: 1.6; }

.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-title {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: var(--gray-500);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }

.newsletter-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-input:focus { border-color: var(--accent); }

.newsletter-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.6rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-btn:hover { background: var(--accent-hover); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ---- Scroll Progress ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 200;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .about-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .about-grid .section-title, .about-grid .section-desc { text-align: center !important; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 3rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid { grid-template-columns: 1fr; gap: 2rem; }
  .delivery-grid.reversed { direction: ltr; }
  .order-types { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.06);
    z-index: 100;
  }

  body.nav-open .main-nav { right: 0; }
  body.nav-open { overflow: hidden; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

  .nav-list { flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
  .nav-link { font-size: 1.1rem; }
  .header-actions { flex-direction: column; width: 100%; }
  .header-actions .btn { width: 100%; justify-content: center; }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .transport-grid { gap: 1.5rem; }
  .payment-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  .cta-box { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .cta-buttons { flex-direction: column; }
  .store-badge { justify-content: center; }
  .payment-grid { grid-template-columns: 1fr; }
  .transport-grid { flex-wrap: wrap; gap: 1rem; }
}
