/* Purpose Driven Marketplace — Main CSS
   Clean, modern SaaS aesthetic. Mobile-first.
*/

:root {
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-light:  #3b82f6;
  --primary-bg:     #eff6ff;
  --accent:         #f59e0b;
  --accent-dark:    #d97706;
  --success:        #10b981;
  --danger:         #ef4444;
  --black:          #0f172a;
  --gray-900:       #1e293b;
  --gray-800:       #334155;
  --gray-700:       #475569;
  --gray-600:       #64748b;
  --gray-500:       #94a3b8;
  --gray-400:       #cbd5e1;
  --gray-300:       #e2e8f0;
  --gray-200:       #f1f5f9;
  --gray-100:       #f8fafc;
  --white:          #ffffff;
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.05);
  --shadow:         0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl:      0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius:         8px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --transition:     all 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ━━━ BUTTONS ━━━ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--gray-800);
  border-color: var(--gray-400);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ━━━ HEADER ━━━ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-300);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.1rem;
}
.logo-icon { font-size: 1.5rem; }
.logo-accent { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-link:hover { color: var(--primary); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ━━━ HERO ━━━ */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--primary-bg) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 540px;
  margin: 20px 0 32px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-300);
}
.proof-item { text-align: center; }
.proof-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
}
.proof-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

/* Browser mockup */
.hero-visual { position: relative; }
.browser-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-300);
}
.browser-dots {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: var(--gray-200);
  border-bottom: 1px solid var(--gray-300);
}
.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }
.browser-content { padding: 24px; }
.mockup-restaurant { font-size: 0.9rem; }
.mockup-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: #c8102e;
  padding-bottom: 16px;
  border-bottom: 2px solid #d4af37;
  margin-bottom: 16px;
}
.mockup-menu-items { display: flex; flex-direction: column; gap: 12px; }
.mockup-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  font-weight: 500;
}
.mockup-item span:last-child { color: #c8102e; font-weight: 700; }
.mockup-btn {
  margin-top: 20px;
  padding: 14px;
  background: #d4af37;
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  font-weight: 700;
}

/* ━━━ PROBLEM/SOLUTION ━━━ */
.problem-section {
  padding: 80px 0;
  background: var(--white);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.problem-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300);
}
.problem-card.problem {
  background: var(--gray-100);
}
.problem-card.solution {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #f0fdf4 100%);
  border-color: var(--primary-light);
}
.card-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}
.problem-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.problem-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-card li {
  padding-left: 0;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* ━━━ SECTION LABELS ━━━ */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ━━━ FEATURES ━━━ */
.features-section {
  padding: 100px 0;
  background: var(--gray-100);
  text-align: center;
}
.features-section h2 { margin-bottom: 8px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300);
  text-align: left;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--gray-600); font-size: 0.95rem; }

/* ━━━ HOW IT WORKS ━━━ */
.how-section {
  padding: 100px 0;
  text-align: center;
}
.how-section h2 { margin-bottom: 48px; }
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}
.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
}
.step-number {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray-600); font-size: 0.95rem; }
.step-arrow {
  font-size: 2rem;
  color: var(--gray-400);
  padding-top: 16px;
  flex-shrink: 0;
}

/* ━━━ LIVE EXAMPLE ━━━ */
.example-section {
  padding: 100px 0;
  background: var(--gray-100);
  text-align: center;
}
.example-section h2 { margin-bottom: 8px; }
.example-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow);
  text-align: left;
}
.example-info h3 { font-size: 1.5rem; margin-bottom: 8px; }
.example-tagline { color: var(--gray-600); margin-bottom: 20px; font-style: italic; }
.example-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.example-features li { font-size: 0.95rem; color: var(--gray-700); }

/* Phone mockup */
.phone-mockup {
  width: 280px;
  margin: 0 auto;
  background: var(--gray-900);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
}
.phone-screen {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  padding: 20px;
}
.phone-header {
  font-weight: 700;
  font-size: 1.1rem;
  color: #c8102e;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid #d4af37;
  margin-bottom: 16px;
}
.phone-hero-text {
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}
.phone-info {
  font-size: 0.8rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 20px;
}
.phone-btn {
  padding: 12px;
  background: #d4af37;
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.phone-btn-outline {
  background: var(--white);
  color: #c8102e;
  border: 2px solid #c8102e;
}

/* ━━━ CTA ━━━ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
}
.cta-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-card h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 16px; }
.cta-card p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 32px; }
.cta-methods {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.cta-section .btn-primary:hover {
  background: var(--gray-100);
  color: var(--primary-dark);
}
.cta-section .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.cta-section .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}
.cta-note {
  margin-top: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.cta-note a { color: var(--white); text-decoration: underline; }

/* ━━━ FOOTER ━━━ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
}
.footer-brand { font-weight: 700; color: var(--white); font-size: 1.1rem; }
.footer-brand .logo-icon { margin-right: 4px; }
.footer-tagline { color: var(--gray-500); font-weight: 400; font-size: 0.9rem; margin-top: 8px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col a {
  display: block;
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-800);
  text-align: center;
  font-size: 0.85rem;
}

/* ━━━ RESPONSIVE ━━━ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-proof { justify-content: center; }
  .hero-visual { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .example-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .example-preview { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
