/* ==========================================================================
   LANDING PAGE
   ==========================================================================
   Styles for the public marketing landing page (/).

   Depends on pinta.css for CSS variables (--ink-*, --brand-red, etc.)
   and base resets. All classes here are landing-specific — no overlap
   with dashboard or auth layouts.

   Sections:
     1. Nav
     2. Hero
     3. Logos strip
     4. Features grid
     5. How it works
     6. CTA section
     7. Footer
     8. Animations + scroll reveal
     9. Responsive
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
body { background: white; overflow-x: hidden; }

/* ── 1. NAV ─────────────────────────────────────────────────────────────── */
.land-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center; padding: 0 40px;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms, background 300ms;
}
.land-nav.scrolled { border-color: var(--ink-150); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  color: var(--ink-900); text-decoration: none;
}
/* Logo mark container — SVG wordmark injected by pinta.js */
.nav-logo-mark {
  width: 80px; height: 22px;
  display: grid; place-items: center;
}

.nav-links { display: flex; gap: 2px; margin-left: 32px; }
.nav-link {
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  color: var(--ink-500); border-radius: 7px; text-decoration: none;
  transition: all 150ms;
}
.nav-link:hover { color: var(--ink-900); background: var(--ink-100); }

.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Nav lang toggle sits left of auth buttons */
.nav-lang-wrap {
  display: flex; align-items: center;
}
.nav-lang-wrap .lang-toggle-wrap {
  position: static;
  background: none;
  border: none;
  padding: 0;
}

.btn-nav-login {
  height: 36px; padding: 0 16px; font-size: 13px; font-weight: 500;
  color: var(--ink-700); border: 1.5px solid var(--ink-200); border-radius: 7px;
  text-decoration: none; display: flex; align-items: center;
  transition: all 150ms;
}
.btn-nav-login:hover { border-color: var(--ink-400); color: var(--ink-900); }

.btn-nav-cta {
  height: 36px; padding: 0 16px; font-size: 13px; font-weight: 600;
  color: white; background: var(--brand-red); border-radius: 7px;
  text-decoration: none; display: flex; align-items: center;
  transition: background 150ms;
}
.btn-nav-cta:hover { background: var(--brand-red-hover); }

/* ── 2. HERO ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 40px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #fafafa 0%, white 60%);
  z-index: 0;
}
.hero-glow {
  position: absolute; top: -20%; right: -10%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(231,68,49,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--ink-200);
  border-radius: 99px; padding: 6px 14px;
  font-size: 12px; font-weight: 500; color: var(--ink-700);
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-red);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 68px; font-weight: 800;
  line-height: 1.0; letter-spacing: -0.04em;
  color: var(--ink-900); margin-bottom: 24px;
}
.hero-title .red { color: var(--brand-red); }

.hero-sub {
  font-size: 18px; line-height: 1.65; color: var(--ink-500);
  max-width: 480px; margin-bottom: 36px;
}

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn-primary-lg {
  height: 52px; padding: 0 28px; font-size: 15px; font-weight: 600;
  background: var(--brand-red); color: white; border-radius: 10px; border: none;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  transition: background 150ms, transform 100ms;
}
.btn-primary-lg:hover { background: var(--brand-red-hover); }
.btn-primary-lg:active { transform: scale(0.98); }
.btn-secondary-lg {
  height: 52px; padding: 0 28px; font-size: 15px; font-weight: 600;
  background: white; color: var(--ink-900); border-radius: 10px;
  border: 1.5px solid var(--ink-200);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  transition: all 150ms;
}
.btn-secondary-lg:hover { border-color: var(--ink-400); }

.hero-proof {
  display: flex; gap: 32px; margin-top: 52px; padding-top: 28px;
  border-top: 1px dashed var(--ink-200);
}
.proof-item { display: flex; flex-direction: column; }
.proof-num {
  font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink-900); font-variant-numeric: tabular-nums;
}
.proof-label {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-400); margin-top: 4px;
}

/* Hero visual (dark card + floating chips) */
.hero-visual { position: relative; }
.visual-card {
  background: var(--ink-900); border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/3; display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
}
.visual-header {
  padding: 16px 20px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.v-dot { width: 10px; height: 10px; border-radius: 50%; }
.visual-content { flex: 1; padding: 20px; overflow: hidden; }
.v-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 6px;
  background: rgba(255,255,255,0.04); transition: background 300ms;
}
.v-row:hover { background: rgba(255,255,255,0.07); }
.v-emoji { font-size: 18px; width: 32px; text-align: center; }
.v-name { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.75); flex: 1; }
.v-price {
  font-size: 12px; font-weight: 600; color: white;
  font-variant-numeric: tabular-nums;
  font-family: 'Geist Mono', monospace;
}
.v-badge { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 3px; }
.v-badge-red   { background: rgba(231,68,49,0.2);  color: #ff8070; }
.v-badge-green { background: rgba(16,185,129,0.15); color: #34d399; }

/* Floating accent cards */
.float-card {
  position: absolute; background: white; border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.04);
  animation: float 6s ease-in-out infinite;
}
.float-card-1 { bottom: -24px; left: -40px; animation-delay: 0s; }
.float-card-2 { top: -20px;   right: -30px; animation-delay: -3s; }
.float-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; margin-bottom: 6px;
}
.float-val   { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); }
.float-label { font-size: 11px; color: var(--ink-500); font-weight: 500; }

/* ── 3. CATALOG TICKER ───────────────────────────────────────────────────── */
.ticker-section {
  padding: 44px 0;
  border-top: 1px solid var(--ink-150);
  border-bottom: 1px solid var(--ink-150);
  background: white;
  overflow: hidden;
}

/* Small centered label above the ticker */
.ticker-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-400);
  margin-bottom: 24px;
}
.ticker-label-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-red); flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* Outer wrap: clips overflow + pauses both rows on hover */
.ticker-wrap {
  position: relative;
  overflow: hidden;
}

/* Smooth left/right edge fade — masks the endless scroll to viewport */
.ticker-wrap::before,
.ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 180px; z-index: 2; pointer-events: none;
}
.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
}
.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
}

/* Pause BOTH rows when hovering anywhere in the ticker area */
.ticker-wrap:hover .ticker-row-1,
.ticker-wrap:hover .ticker-row-2 {
  animation-play-state: paused;
}

/* Each row is one long horizontal strip — must be wider than viewport */
.ticker-row {
  display: flex; gap: 10px;
  width: max-content;
  padding: 5px 0;
}
.ticker-row + .ticker-row { margin-top: 10px; }

/* Row 1: scrolls left — translateX(0) → translateX(-50%) */
.ticker-row-1 { animation: ticker-left 48s linear infinite; }

/* Row 2: scrolls right — translateX(-50%) → translateX(0) */
.ticker-row-2 { animation: ticker-right 40s linear infinite; }

@keyframes ticker-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes ticker-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Base pill */
.ticker-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 500; color: var(--ink-700);
  white-space: nowrap; flex-shrink: 0;
  border: 1px solid var(--ink-150);
  background: var(--ink-50);
  cursor: default;
  transition: transform 150ms, box-shadow 150ms, border-color 150ms;
}
.ticker-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.07);
  border-color: var(--ink-300);
}

/* Category color variants — each category gets a distinctive tint */
.pill-dairy     { background: #eff6ff; border-color: #bfdbfe; }
.pill-meat      { background: #fff1f2; border-color: #fecdd3; }
.pill-bakery    { background: #fffbeb; border-color: #fde68a; }
.pill-produce   { background: #f0fdf4; border-color: #bbf7d0; }
.pill-beverage  { background: #fdf4ff; border-color: #e9d5ff; }
.pill-frozen    { background: #f0f9ff; border-color: #bae6fd; }
.pill-condiment { background: #fff7ed; border-color: #fed7aa; }
.pill-neutral   { background: var(--ink-50); border-color: var(--ink-150); }

/* Reduced motion: disable scroll, wrap pills in a grid instead */
@media (prefers-reduced-motion: reduce) {
  .ticker-row-1, .ticker-row-2 {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 40px;
  }
}

/* ── 4. FEATURES GRID ────────────────────────────────────────────────────── */
.features { max-width: 1200px; margin: 0 auto; padding: 100px 40px; }

.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-red);
  margin-bottom: 12px; text-align: center;
}
.section-title {
  font-size: 44px; font-weight: 800; letter-spacing: -0.03em;
  text-align: center; color: var(--ink-900); margin-bottom: 16px; line-height: 1.1;
}
.section-sub {
  font-size: 17px; color: var(--ink-500); text-align: center;
  margin-bottom: 64px; max-width: 540px;
  margin-left: auto; margin-right: auto; line-height: 1.6;
}

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--ink-50); border: 1px solid var(--ink-150);
  border-radius: 14px; padding: 28px;
  transition: all 200ms; cursor: default;
}
.feature-card:hover {
  background: white; box-shadow: var(--shadow-lg);
  transform: translateY(-2px); border-color: var(--ink-200);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 18px; font-size: 22px;
}
.feature-title {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink-900); margin-bottom: 8px;
}
.feature-desc { font-size: 14px; color: var(--ink-500); line-height: 1.6; }

/* ── 5. HOW IT WORKS ─────────────────────────────────────────────────────── */
.how { background: var(--ink-900); padding: 100px 40px; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.how .section-title { color: white; }
.how .section-sub   { color: rgba(255,255,255,0.5); }
.how .section-eyebrow { color: var(--brand-red); }

.steps-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  position: relative; margin-top: 64px;
}
/* Connector line between step circles */
.steps-row::before {
  content: '';
  position: absolute; top: 28px;
  left: calc(100% / 6); right: calc(100% / 6);
  height: 1px; background: rgba(255,255,255,0.08);
}
.step { text-align: center; padding: 0 24px; }
.step-num {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 20px;
  font-size: 20px; font-weight: 700; color: white;
  font-variant-numeric: tabular-nums;
  transition: all 300ms;
}
.step:hover .step-num { background: var(--brand-red); border-color: var(--brand-red); }
.step-title  { font-size: 17px; font-weight: 700; color: white; margin-bottom: 10px; }
.step-desc   { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ── 6. CTA SECTION ──────────────────────────────────────────────────────── */
.cta-section { padding: 100px 40px; background: white; }
.cta-inner   { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-title {
  font-size: 48px; font-weight: 800; letter-spacing: -0.035em;
  color: var(--ink-900); line-height: 1.1; margin-bottom: 20px;
}
.cta-title span { color: var(--brand-red); }
.cta-sub     { font-size: 17px; color: var(--ink-500); line-height: 1.6; margin-bottom: 40px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; }

/* ── 7. FOOTER ───────────────────────────────────────────────────────────── */
.land-footer {
  background: var(--ink-50); border-top: 1px solid var(--ink-150); padding: 32px 40px;
}
.land-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--ink-900);
}
.footer-logo-mark {
  width: 60px; height: 18px;
  display: grid; place-items: center;
}
.footer-links { display: flex; gap: 24px; }
.footer-link { font-size: 13px; color: var(--ink-400); text-decoration: none; transition: color 150ms; }
.footer-link:hover { color: var(--ink-900); }
.footer-copy { font-size: 12px; color: var(--ink-400); }

/* ── 8. ANIMATIONS ───────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.6; transform: scale(1.3); }
}

/* Scroll reveal — only hide elements once JS confirms it is running (.js-ready on <html>).
   Without JS, content stays visible. With JS, elements fade in on scroll. */
.js-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }

/* ── 9. RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-title { font-size: 44px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: 40px; }
  .steps-row::before { display: none; }
  .land-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 90px 20px 60px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .land-footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-proof { gap: 20px; flex-wrap: wrap; }
  .logos-row { gap: 24px; }
}
