/* ─── ScentSwap Homepage v3 — Grailed-inspired layout ───────────────────────
   Clean white navbar, secondary category nav, full-width hero banner,
   content sections below. Minimal chrome, content-first.
─────────────────────────────────────────────────────────────────────────── */

/* ── Navbar — always white/solid on homepage ────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e8e2da;
  box-shadow: none;
}

/* ── Secondary category nav ─────────────────────────────────────────────── */
.cat-nav {
  background: #fff;
  border-bottom: 1px solid #e8e2da;
  position: sticky;
  top: 68px;
  z-index: 99;
}

.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: none;
  padding: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav-item {
  display: block;
  padding: 0.7rem 1.1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.cat-nav-item:hover {
  color: #1a1410;
  border-bottom-color: #1a1410;
}

/* ── Hero Banner ─────────────────────────────────────────────────────────── */
.home-banner {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.home-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.home-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,8,6,0.72) 0%, rgba(10,8,6,0.35) 60%, rgba(10,8,6,0.1) 100%);
}

.home-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5rem;
  max-width: 680px;
}

.home-banner-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.home-banner-headline {
  font-family: 'Jost', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.home-banner-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.home-banner-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.home-banner-btn-primary {
  background: #ffffff;
  color: #1a1410;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9), 0 4px 24px rgba(255,255,255,0.35);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.home-banner-btn-primary:hover {
  background: #f5f0eb;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9), 0 8px 32px rgba(255,255,255,0.45);
}

.home-banner-btn-ghost {
  color: rgba(255,255,255,0.85);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.35);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.home-banner-btn-ghost:hover {
  border-color: rgba(255,255,255,0.75);
  color: #fff;
}

/* ── Home sections ───────────────────────────────────────────────────────── */
.home-section {
  padding: 3.5rem 0;
  background: #faf8f5;
}
.home-section--dark {
  background: #1a1410;
  padding: 3.5rem 0;
}
.home-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.home-section-title {
  font-family: 'Jost', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1410;
}
.home-section-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.home-section-link:hover { text-decoration: underline; }

/* ── Marquee ─────────────────────────────────────────────────────────────── */
.marquee-strip-v2 {
  background: #1a1410;
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 40s linear infinite;
}
.marquee-inner {
  display: inline-flex;
  align-items: center;
  padding-right: 2rem;
}
.marquee-item {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.55);
  padding: 0 0.5rem;
}
.marquee-dot { color: var(--accent); margin: 0 0.2rem; font-size: 0.6rem; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Scent Rail ──────────────────────────────────────────────────────────── */
.scent-rail-section { padding: 3.5rem 2rem; background: #faf8f5; }
.scent-rail-header  { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; }
.scent-rail-title   { font-family: 'Jost', sans-serif; font-size: 1.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #1a1410; }
.scent-rail-link    { font-size: 0.8rem; font-weight: 500; color: var(--accent); text-decoration: none; }
.scent-rail-link:hover { text-decoration: underline; }

.scent-rail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}
.scent-rail-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 3/4;
  display: block;
}
.scent-rail-card:hover .scent-rail-img { transform: scale(1.04); }
.scent-rail-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.scent-rail-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.25rem 0.85rem 0.75rem;
}

/* ── Trending Creators Row ───────────────────────────────────────────────── */
.home-creators-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-creator-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  width: 130px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.home-creator-pill:hover { transform: translateY(-3px); }

.home-creator-avatar-wrap {
  margin-bottom: 0.75rem;
}
.home-creator-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  display: block;
}
.home-creator-avatar-fallback {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
}
.home-creator-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1410;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.home-creator-bio {
  font-size: 0.73rem;
  color: #888;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Pillars ─────────────────────────────────────────────────────────────── */
.pillars-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
}
.pillar {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 3/4;
  display: block;
}
.pillar:hover .pillar-img { transform: scale(1.04); }
.pillar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pillar-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
}
.pillar-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem;
  color: #fff;
}
.pillar-eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #ffffff; margin-bottom: 0.3rem;
}
.pillar-title {
  font-family: 'Jost', sans-serif;
  font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem;
}
.pillar-desc {
  font-size: 0.82rem; color: rgba(255,255,255,0.72);
  line-height: 1.6; margin-bottom: 0.85rem;
}
.pillar-cta {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  color: #ffffff; text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255,255,255,0.4);
}

/* ── How it works ────────────────────────────────────────────────────────── */
.how-v2 {
  padding: 5rem 2rem;
  background: #fff;
}
.how-v2-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.how-v2-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.75rem;
}
.how-v2-heading {
  font-family: 'Jost', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; color: #1a1410; line-height: 1.1;
  margin: 0 0 3rem;
}
.how-v2-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
}
.how-v2-num {
  font-family: 'Jost', sans-serif;
  font-size: 2.5rem; font-weight: 800; color: #e8e2da;
  margin-bottom: 0.75rem;
}
.how-v2-step-title {
  font-size: 1rem; font-weight: 600; color: #1a1410; margin-bottom: 0.5rem;
}
.how-v2-step-desc {
  font-size: 0.87rem; color: #888; line-height: 1.7;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cat-nav { top: 60px; }
  .cat-nav-item { padding: 0.6rem 0.75rem; font-size: 0.72rem; }

  .home-banner { height: 380px; }
  .home-banner-content { padding: 0 1.5rem; max-width: 100%; }
  .home-banner-headline { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .home-banner-actions { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .home-banner-btn-primary, .home-banner-btn-ghost { width: 100%; text-align: center; }

  .home-section { padding: 2.5rem 0; }
  .home-section-inner { padding: 0 1.25rem; }
  .scent-rail-section { padding: 2.5rem 1.25rem; }

  .scent-rail-grid { grid-template-columns: repeat(2, 1fr); }
  .scent-rail-grid .scent-rail-card:nth-child(5) { display: none; }

  .marquee-strip-v2 { padding: 0.4rem 0; }
  .marquee-item { font-size: 0.68rem; padding: 0 0.35rem; }
  .home-section--dark { padding: 1.75rem 0 0; }
  .home-section--dark .home-section-inner { padding: 0 1.25rem 0; }
  .home-section--dark .home-section-header { margin-bottom: 1rem; }
  .pillars-section { grid-template-columns: 1fr; border-radius: 0; }
  .pillar { aspect-ratio: 16/9; }
  .pillar-title { font-size: 1.4rem; }
  .pillar-desc { font-size: 0.78rem; margin-bottom: 0.5rem; }
  .pillar-content { padding: 1.25rem 1rem; }

  .how-v2 { padding: 1.75rem 1.25rem 2rem; }
  .how-v2-heading { font-size: 1.4rem; margin-bottom: 1.5rem; }
  .how-v2-steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .how-v2-num { font-size: 1.5rem; margin-bottom: 0.35rem; }
  .how-v2-step-title { font-size: 0.88rem; }
  .how-v2-step-desc { font-size: 0.78rem; }
}
