/* =========================================================
   Digital Hustle Mart — Homepage (vibrant redesign)
   Self-contained: only used by views/pages/product-list.ejs
   ========================================================= */

:root {
  --ink: #140f2e;
  --ink-2: #221a4a;
  --cream: #fff8f1;
  --paper: #ffffff;
  --text: #1d1838;
  --muted: #625c80;
  --line: rgba(29, 24, 56, .1);

  --violet: #7c4dff;
  --pink: #ff3d81;
  --orange: #ff8a3d;
  --yellow: #ffd23f;
  --teal: #12c2b0;

  --grad: linear-gradient(110deg, var(--yellow) 0%, var(--orange) 30%, var(--pink) 62%, var(--violet) 100%);
  --radius: 22px;
  --shadow: 0 18px 50px -18px rgba(20, 15, 46, .35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.dhm-home {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn-small { padding: 10px 18px; font-size: 14px; background: #fff; color: var(--ink); }
.btn-glow {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(255, 61, 129, .65);
}
.btn-glow:hover { box-shadow: 0 18px 40px -8px rgba(255, 61, 129, .8); }
.btn-card { background: var(--ink); color: #fff; padding: 12px 20px; font-size: 15px; }
.accent-violet .btn-card:hover { background: var(--violet); }
.accent-pink .btn-card:hover { background: var(--pink); }
.accent-teal .btn-card:hover { background: var(--teal); }
.accent-orange .btn-card:hover { background: var(--orange); }
.btn-dark { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 15, 46, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand-badge {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff;
  font: 700 13px/1 var(--display); letter-spacing: .04em;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(48px, 7vw, 90px) 0 clamp(60px, 8vw, 100px);
  isolation: isolate;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; animation: float 14s ease-in-out infinite alternate; }
.blob-1 { width: 460px; height: 460px; background: var(--violet); top: -140px; left: -120px; }
.blob-2 { width: 380px; height: 380px; background: var(--pink); bottom: -160px; right: 18%; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: var(--orange); top: 10%; right: -80px; opacity: .45; animation-delay: -9s; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.1); } }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(18, 194, 176, .25); }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); margin: 22px 0 18px; font-weight: 700; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .76); max-width: 540px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; }
.hero-note { font-size: 14px; color: rgba(255, 255, 255, .65); font-weight: 600; }
.hero-stats { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats li {
  padding: 12px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  display: grid; line-height: 1.2;
}
.hero-stats strong { font-family: var(--display); font-size: 20px; }
.hero-stats span { font-size: 12px; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* Cover showcase */
.hero-showcase { position: relative; height: clamp(360px, 40vw, 480px); }
.cover {
  position: absolute; width: 56%; aspect-ratio: 3 / 4;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12);
  background: #2a2257;
  transition: transform .35s ease;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-1 { left: 22%; top: 2%; z-index: 3; transform: rotate(-3deg); }
.cover-2 { left: 0; top: 14%; z-index: 2; transform: rotate(-12deg); }
.cover-3 { right: 0; top: 16%; z-index: 1; transform: rotate(9deg); }
.cover:hover { z-index: 4; transform: rotate(0) translateY(-10px) scale(1.03); }
.sticker {
  position: absolute; right: 4%; bottom: 0; z-index: 5;
  width: 110px; height: 110px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--yellow); color: var(--ink);
  font: 700 15px/1.15 var(--display);
  transform: rotate(12deg);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: rotate(4deg) scale(1.05); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--grad); color: #fff; overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span { font: 700 18px/1 var(--display); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Shop ---------- */
.shop { padding: clamp(60px, 8vw, 100px) 0 20px; }
.shop-head { text-align: center; margin-bottom: 20px; }
.overline { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.overline.light { color: var(--yellow); }
.shop-head h2, .why h2 { font-size: clamp(34px, 4.6vw, 56px); }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-size: 15px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.chip small { background: var(--ink); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }

.category { padding: clamp(40px, 5vw, 64px) 0; }
.category-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.category-icon {
  flex: none; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 20px; font-size: 30px;
  background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent);
}
.category-head h3 { font-size: clamp(28px, 3vw, 38px); }
.category-head p { margin: 4px 0 0; color: var(--muted); }

.accent-violet { --accent: var(--violet); --accent-soft: #efe9ff; }
.accent-pink   { --accent: var(--pink);   --accent-soft: #ffe7f0; }
.accent-teal   { --accent: var(--teal);   --accent-soft: #e0faf6; }
.accent-orange { --accent: var(--orange); --accent-soft: #fff0e4; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 380px)); gap: 26px; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--line), 0 10px 30px -18px rgba(20, 15, 46, .3);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px; z-index: 2;
  background: var(--accent);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(20, 15, 46, .45); }
.card-media {
  position: relative; display: grid; place-items: center;
  height: 300px; padding: 26px; overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, var(--accent-soft), transparent 60%),
    radial-gradient(circle at 80% 90%, var(--accent-soft), transparent 55%),
    #faf7ff;
}
.card-media img {
  height: 248px; width: auto; max-width: 100%; object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 30px -14px rgba(20, 15, 46, .5);
  transition: transform .35s ease;
}
.card:hover .card-media img { transform: scale(1.05) rotate(-1.5deg); }
.card-placeholder { font-size: 64px; }
.badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
}
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 26px; flex: 1; }
.card-body h4 { font-size: 23px; }
.card-body h4 a:hover { color: var(--accent); }
.card-desc { margin: 0; color: var(--muted); font-size: 15px; }
.card-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; font-weight: 600; }
.card-features li { display: flex; gap: 10px; align-items: flex-start; }
.card-features li::before {
  content: "✓"; flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 900;
}
.card-features li.more { color: var(--muted); font-weight: 600; }
.card-features li.more::before { content: "+"; }
.card-foot {
  margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.price { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: start; gap: 4px 10px; }
.price-now { font: 700 30px/1 var(--display); color: var(--ink); }
.price s { color: var(--muted); font-size: 15px; }
.price small { grid-column: 1 / -1; color: var(--teal); font-weight: 700; font-size: 13px; }

/* ---------- Why ---------- */
.why { background: var(--ink); color: #fff; padding: clamp(70px, 9vw, 110px) 0; margin-top: 40px; position: relative; overflow: hidden; }
.why::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: var(--violet); filter: blur(120px); opacity: .35; right: -160px; top: -200px;
}
.why .wrap { position: relative; z-index: 1; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.why-tile {
  padding: 28px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .3s, background .3s;
}
.why-tile:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .09); }
.why-tile span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 24px; margin-bottom: 18px; }
.why-tile h3 { font-size: 21px; margin-bottom: 8px; }
.why-tile p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 15px; }
.t-violet span { background: var(--violet); }
.t-pink span { background: var(--pink); }
.t-orange span { background: var(--orange); }
.t-teal span { background: var(--teal); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); padding: 44px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 40px); color: var(--ink); }

/* ---------- Footer ---------- */
.foot { background: #0d0a20; color: rgba(255, 255, 255, .7); padding: 46px 0 28px; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; font-size: 14px; }
.foot-links a:hover { color: #fff; }
.foot-small { font-size: 13px; margin: 12px 0 0; color: rgba(255, 255, 255, .5); }
.foot-small.copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- Reveal (only applied by JS to items below the fold) ---------- */
.reveal.pre { opacity: 0; transform: translateY(26px); }
.reveal.pre.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-showcase { height: 360px; max-width: 460px; width: 100%; margin-inline: auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 15px; }
  .hero-showcase { height: 300px; }
  .sticker { width: 88px; height: 88px; font-size: 13px; }
  .hero-stats li { flex: 1; min-width: 0; padding: 10px 12px; }
  .hero-stats strong { font-size: 17px; }
  .why-grid { grid-template-columns: 1fr; }
  .card-media { height: 250px; }
  .card-media img { height: 200px; }
  .cta-inner { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
