/* styles.css — landing-page components, faithful to ManAhead.dc.html.
   Values mirror the comp's inline styles; the responsive layer at the bottom is
   the one thing the comp lacked. */

/* ============================= buttons ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: filter .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(200, 244, 74, .28); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--accent-30);
  color: var(--accent);
}
.btn-ghost:hover { filter: none; }
/* pre-order variant: outlined lime, used on cards for `stock = 'pre'` items */
.btn-preorder {
  background: transparent;
  border: 1px solid var(--accent-30);
  color: var(--accent);
}
.btn-preorder:hover { filter: none; background: rgba(200, 244, 74, .08); }

/* ============================= nav ============================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(14, 15, 13, .8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad-x);
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-links a { position: relative; color: var(--text); text-decoration: none; transition: color .25s ease; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { font-size: 12px; padding: 10px 24px; white-space: nowrap; }

/* ============================= hero ============================= */
.hero { position: relative; overflow: hidden; padding: 48px var(--pad-x) var(--section-y); }
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 7vw, 104px);
  line-height: .9;
  margin: 0 0 32px;
  text-transform: uppercase;
  font-style: italic;
}
.hero-title span { color: var(--accent); }
.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-70);
  max-width: 448px;
  margin: 0 0 40px;
}
.hero-cta { display: flex; gap: 16px; margin-bottom: 64px; flex-wrap: wrap; }
.hero-cta .btn { padding: 16px 40px; font-size: 14px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-3);
  padding-top: 32px;
  max-width: 340px;
}
.stat-num { font-family: var(--font-display); color: var(--accent); font-size: 24px; line-height: 1; }
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-50);
  margin-top: 6px;
}
.hero-media { position: relative; }
.hero-glow {
  position: absolute;
  inset: -16px;
  background: var(--accent-20);
  filter: blur(48px);
  border-radius: 9999px;
  opacity: .3;
}
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 20;
  background: var(--accent);
  color: var(--ink);
  padding: 5px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* fillable-image replacement: real <img> or an on-brand placeholder tile */
.media {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  border: 1px solid var(--border-3);
  overflow: hidden;
  background: var(--surface);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media.ratio-43 { aspect-ratio: 4 / 3; }
.media.ratio-45 { aspect-ratio: 4 / 5; }
.media.ratio-11 { aspect-ratio: 1 / 1; border: none; }
.img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: repeating-linear-gradient(45deg,
      #16170f, #16170f 14px, #191a12 14px, #191a12 28px);
}
.img-fallback span {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 40px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(200, 244, 74, .35);
  line-height: 1;
}
.shot { filter: grayscale(.3); transition: filter .6s cubic-bezier(.16, 1, .3, 1); }
.card:hover .shot { filter: grayscale(0); }
.media img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.card:hover .media img { transform: scale(1.05); }

/* ============================= marquee ============================= */
.marquee {
  background: var(--accent);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, .1);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.marquee-track { display: flex; width: max-content; animation: maq 26s linear infinite; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 48px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  text-transform: uppercase;
  padding-right: 48px;
}
.marquee-group .dot { opacity: .3; }
@keyframes maq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================= shared section bits ============================= */
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.link-accent {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent-30);
  text-decoration: none;
  white-space: nowrap;
}

/* ============================= products ============================= */
.products { scroll-margin-top: 80px; padding: var(--section-y) var(--pad-x); }
.products-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), border-color .4s ease, box-shadow .5s cubic-bezier(.16, 1, .3, 1);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 244, 74, .4);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
}
.card-media { position: relative; }
.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--ink);
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.card-body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 8px;
  text-transform: uppercase;
  font-style: italic;
}
.card-desc { font-size: 14px; color: var(--text-60); line-height: 1.6; margin: 0 0 24px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
/* unpriced items show "Ask for price" — quieter, uppercase, not a big number */
.price.ask {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-35);
}
.btn-order { padding: 8px 24px; font-size: 12px; }

/* ============================= how it works ============================= */
.how {
  scroll-margin-top: 80px;
  padding: var(--section-y) var(--pad-x);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-title { text-align: center; margin: 0 0 64px; font-style: italic; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.how-step { text-align: center; }
.how-num { font-family: var(--font-display); font-size: 96px; line-height: 1; margin-bottom: 16px; color: var(--accent-20); }
.how-num.active { color: var(--accent); }
.how-step h3 { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; margin: 0 0 16px; }
.how-step p { font-size: 14px; color: var(--text-60); line-height: 1.6; margin: 0; }

/* ============================= about ============================= */
.about {
  scroll-margin-top: 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about h2 {
  font-family: var(--font-display);
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: .025em;
  line-height: .95;
  margin: 0 0 24px;
}
.about p { font-size: 18px; line-height: 1.65; color: var(--text-70); margin: 0 0 18px; }
.about p.last { margin: 0 0 32px; }
.about .btn { padding: 16px 32px; font-size: 14px; }

/* product-grid empty state ("No products yet") */
.empty-note { color: var(--text-50); font-size: 15px; padding: 8px 0; }

/* ============================= contact ============================= */
.contact { scroll-margin-top: 80px; max-width: var(--maxw); margin: 0 auto; padding: var(--section-y) var(--pad-x); }
.contact-card {
  background: var(--accent);
  border-radius: var(--r);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 48px;
  align-items: center;
  color: var(--ink);
}
.contact-eyebrow { display: block; font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.contact-card h2 {
  font-family: var(--font-display);
  font-size: 64px;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 16px;
  line-height: .9;
  font-style: italic;
}
.contact-card p { font-size: 18px; line-height: 1.6; margin: 0; max-width: 440px; color: rgba(0, 0, 0, .75); }
.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.btn-wa-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 20px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: filter .2s ease, transform .15s ease;
}
.btn-wa-dark:hover { filter: brightness(1.15); transform: translateY(-1px); }
.contact-info { background: var(--bg); color: var(--text); border-radius: var(--r-sm); padding: 18px 20px; }
.contact-info .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-50); margin-bottom: 4px; }
.contact-info .big { font-family: var(--font-display); font-size: 26px; letter-spacing: .03em; }
.contact-info .val { font-size: 15px; font-weight: 700; }

/* ============================= footer ============================= */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { font-family: var(--font-display); font-size: 26px; letter-spacing: .05em; text-transform: uppercase; }
.footer-brand span { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--text-50); }

/* demo-mode ribbon (only shown when Supabase isn't configured) */
.demo-banner {
  background: rgba(200, 244, 74, .12);
  border-bottom: 1px solid var(--accent-30);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}
.demo-banner a { color: var(--accent); }

/* hidden utility — used by the demo banner (shown only in demo mode) and any
   other JS-toggled element. Shared by every public page via styles.css. */
.hidden { display: none !important; }

/* ============================= motion ============================= */
/* Hero + page headers: a staggered "rise" on load (above the fold, so these
   play immediately rather than waiting for scroll). */
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.hero-title    { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .08s both; }
.hero-sub      { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .16s both; }
.hero-cta      { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .24s both; }
.hero-stats    { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .32s both; }
.hero-media    { animation: rise .9s cubic-bezier(.16, 1, .3, 1) .2s both; }
.page-header .eyebrow, .about-header .eyebrow { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.page-title, .about-title { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .08s both; }
.page-lead { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .16s both; }

/* Scroll-reveal: JS (js/reveal.js) adds `.in` when the element enters view.
   Gated behind `.js` (set by an inline <script>) so that with scripting off the
   content is never left invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Motion-sensitive users: kill entrance/scroll animation and big hover shifts. */
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero-title, .hero-sub, .hero-cta, .hero-stats, .hero-media,
  .page-header .eyebrow, .about-header .eyebrow, .page-title, .about-title, .page-lead {
    animation: none;
  }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .card:hover .media img { transform: none; }
}

/* ============================= responsive ============================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about .media { order: -1; max-width: 420px; }
  .contact-card { grid-template-columns: 1fr; padding: 48px 36px; }
  .contact-card h2 { font-size: 48px; }
  .section-title { font-size: 40px; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }        /* keep brand + Order button on phones */
  .products-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .contact-card h2 { font-size: 40px; }
  .marquee-group { font-size: 24px; gap: 32px; }
}
