/* ── Landing Page Styles ── */
/* Figtree font (Aurelika design language) */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;800&display=swap');

:root {
  --landing-accent: #156d95;
  --landing-accent-hover: #0e5a7d;
  --landing-bg: #fafafa;
  --landing-bg-alt: #e9e9e9;
  --landing-dark: #1a1a1a;
  --landing-muted: #6b7280;
}

/* ── Typography ── */
.font-figtree { font-family: 'Figtree', system-ui, -apple-system, sans-serif; }

/* ── Navbar ── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.landing-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Hero dashboard mockup ── */
.dashboard-mockup {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1000 / 680;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* App shell */
.mockup-shell {
  width: 100%;
  height: 100%;
  background: #c5c3d1;
  padding: 8px;
}
.mockup-inner {
  width: 100%;
  height: 100%;
  background: #f5f4f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mockup-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px;
  flex-shrink: 0;
}
.mockup-logo {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-right: 4px;
}
.mockup-pills {
  display: flex;
  gap: 3px;
}
.mockup-pill {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: default;
  transition: background 0.2s, color 0.2s;
}
.mockup-pill.active {
  background: #1a1a1a;
  color: white;
}
.mockup-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Phone mockup inner content */
.mockup-content {
  position: relative;
  height: calc(100% - 24px);
  overflow: hidden;
}

/* ── Dashboard screens ── */
.demo-screen {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.demo-screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mockup cards */
.mockup-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Mockup table */
.mockup-table { width: 100%; border-collapse: collapse; }
.mockup-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}
.mockup-table td {
  padding: 7px 8px;
  font-size: 11px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

/* Animated rows */
.mockup-row {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.demo-screen.active .mockup-row {
  opacity: 1;
  transform: translateX(0);
}
.demo-screen.active .mockup-row:nth-child(1) { transition-delay: 0.1s; }
.demo-screen.active .mockup-row:nth-child(2) { transition-delay: 0.2s; }
.demo-screen.active .mockup-row:nth-child(3) { transition-delay: 0.3s; }
.demo-screen.active .mockup-row:nth-child(4) { transition-delay: 0.4s; }
.demo-screen.active .mockup-row:nth-child(5) { transition-delay: 0.5s; }

/* Stock badges */
.stock-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}
.stock-ok { background: #dcfce7; color: #166534; }
.stock-low { background: #fef3c7; color: #92400e; }
.stock-out { background: #fee2e2; color: #991b1b; }

/* Order status badges */
.order-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}
.order-pending { background: #fef3c7; color: #92400e; }
.order-shipped { background: #dbeafe; color: #1e40af; }
.order-delivered { background: #dcfce7; color: #166534; }

/* Log entry slide */
.log-entry {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.demo-screen.active .log-entry {
  opacity: 1;
  transform: translateY(0);
}
.demo-screen.active .log-entry:nth-child(1) { transition-delay: 0.15s; }
.demo-screen.active .log-entry:nth-child(2) { transition-delay: 0.35s; }
.demo-screen.active .log-entry:nth-child(3) { transition-delay: 0.55s; }
.demo-screen.active .log-entry:nth-child(4) { transition-delay: 0.75s; }
.demo-screen.active .log-entry:nth-child(5) { transition-delay: 0.95s; }
.demo-screen.active .log-entry:nth-child(6) { transition-delay: 1.15s; }

/* ── Step indicator ── */
.step-dots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}
.step-dot.active { background: #156d95; }
.step-dot .step-progress {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #156d95;
  animation: none;
}
.step-dot.active .step-progress {
  animation: step-spin 1s linear infinite;
}
@keyframes step-spin {
  to { transform: rotate(360deg); }
}
.step-label {
  font-size: 11px;
  color: #9ca3af;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
  margin-top: 8px;
  transition: color 0.3s;
}
.step-label.active { color: #156d95; font-weight: 600; }

/* ── Mobile mockup (phone frame) ── */
.phone-mockup {
  width: 340px;
  max-width: 100%;
  aspect-ratio: 340 / 500;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  border: 4px solid #1a1a1a;
  margin: 0 auto;
}
.phone-notch {
  width: 120px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

/* ── Marketplace carousel ── */
.carousel-track {
  display: flex;
  gap: 24px;
  animation: carousel-scroll 28s linear infinite;
  width: max-content;
}
.carousel-track:hover {
  animation-play-state: paused;
}
@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.carousel-container {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Marketplace logo cards */
.mp-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 10px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  flex-shrink: 0;
  transition: box-shadow 0.2s, transform 0.15s;
}
.mp-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.mp-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.mp-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.mp-ml .mp-mark { background: #FFE600; color: #1a1a1a; }
.mp-ml .mp-name { color: #8a7d00; letter-spacing: -0.5px; }
.mp-fl .mp-mark { background: #C4D600; color: #1a1a1a; }
.mp-fl .mp-name { color: #6b8f00; letter-spacing: -0.3px; }
.mp-rp .mp-mark { background: #6D2077; }
.mp-rp .mp-name { color: #6D2077; letter-spacing: 2px; font-size: 13px; font-weight: 800; }
.mp-pa .mp-mark { background: #E3001B; }
.mp-pa .mp-name { color: #E3001B; }
.mp-li .mp-mark { background: #0071DC; }
.mp-li .mp-name { color: #0071DC; }
.mp-so .mp-mark { background: #F26522; }
.mp-so .mp-name { color: #F26522; letter-spacing: 1.5px; font-size: 13px; font-weight: 800; }
.mp-ea .mp-mark { background: #E30613; }
.mp-ea .mp-name { color: #E30613; font-weight: 800; }

/* ── FAQ accordion ── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 16px;
}
.faq-icon {
  transition: transform 0.35s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ── Scroll reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Button hover transition ── */
.btn-landing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-landing:hover {
  border-radius: 16px;
}
.btn-primary-landing {
  background: var(--landing-accent);
  color: white;
}
.btn-primary-landing:hover {
  background: var(--landing-accent-hover);
}
.btn-secondary-landing {
  background: transparent;
  color: var(--landing-dark);
  border: 1.5px solid #d1d5db;
}
.btn-secondary-landing:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* ── Feature cards ── */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #156d9510;
  color: #156d95;
  margin-bottom: 16px;
}

/* ── Step cards (How It Works) ── */
.step-card {
  text-align: center;
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--landing-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  margin: 0 auto 16px;
}

/* Step connector line */
.step-connector {
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 2px;
  background: #e5e7eb;
}

/* ── Pricing card ── */
.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  border: 2px solid var(--landing-accent);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--landing-accent);
}

/* ── Stats section ── */
.stat-item {
  text-align: center;
  padding: 24px;
}
.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--landing-dark);
  line-height: 1.2;
}
.stat-label {
  font-size: 14px;
  color: var(--landing-muted);
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .step-dots {
    flex-direction: row;
    gap: 12px;
  }
  .step-label {
    writing-mode: horizontal-tb;
    transform: none;
    margin-top: 0;
    margin-left: 0;
  }
  .demo-screen { padding: 8px 10px; }
  .mockup-nav { padding: 6px 10px 4px; }
  .mockup-pill { padding: 3px 7px; font-size: 9px; }
  .mockup-shell { padding: 6px; }
  .mockup-table th, .mockup-table td { padding: 4px 6px; font-size: 9px; }
  .stat-value { font-size: 24px; }
}
