/* =========================================================
   StepStyle Shoes — epic dark theme
   Tokens → base → components → sections → motion
   ========================================================= */
:root {
  --bg: #0a0614;
  --bg-2: #120a24;
  --surface: rgba(255, 255, 255, .05);
  --surface-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .12);
  --text: #f6f2ff;
  --muted: #b9add8;
  --violet: #7c3aed;
  --pink: #ec4899;
  --orange: #fb923c;
  --grad: linear-gradient(120deg, var(--violet), var(--pink) 55%, var(--orange));
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, .35), rgba(236, 72, 153, .25) 60%, rgba(251, 146, 60, .25));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 26px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font-body);
  --bs-link-color: #f9a8d4;
  --bs-link-hover-color: #fff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--bg); color: var(--text); font-size: 1.05rem; line-height: 1.65; }
html, body { overflow-x: clip; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, .brand { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.05; }
a { text-decoration: none; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

.skip-link { position: fixed; left: 14px; top: -70px; z-index: 3000; background: var(--grad); color: #0a0614; font-weight: 700; padding: .7rem 1.1rem; border-radius: 12px; transition: top .25s var(--ease); }
.skip-link:focus { top: 14px; color: #0a0614; }

/* ---------- Animated mesh background ---------- */
.mesh { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #1c0d3d 0%, var(--bg) 60%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.blob.b1 { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: var(--violet); animation: drift1 22s ease-in-out infinite alternate; }
.blob.b2 { width: 40vw; height: 40vw; right: -10vw; top: 22vh; background: var(--pink); opacity: .38; animation: drift2 26s ease-in-out infinite alternate; }
.blob.b3 { width: 34vw; height: 34vw; left: 25vw; bottom: -16vw; background: var(--orange); opacity: .28; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(14vw, 12vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-16vw, -10vh, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(12vw, -14vh, 0) scale(1.2); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(236, 72, 153, .16), transparent 62%); opacity: 0; transition: opacity .4s; will-change: transform; }
.cursor-glow.on { opacity: 1; }

.scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 2500; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Buttons ---------- */
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 999px; font-weight: 700; padding: .7rem 1.5rem; border: 0; transition: transform .3s var(--ease), box-shadow .3s, background-position .6s var(--ease), background-color .3s, color .3s; }
.btn-epic { color: #0a0614; background: var(--grad); background-size: 200% 100%; box-shadow: 0 10px 30px -8px rgba(236, 72, 153, .7); }
.btn-epic:hover { color: #0a0614; background-position: 100% 0; transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(251, 146, 60, .8); }
.btn-epic:active { transform: translateY(0) scale(.98); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { color: #fff; background: var(--surface-2); border-color: rgba(255, 255, 255, .35); transform: translateY(-3px); }
.btn svg, .icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .95rem; }

/* ---------- Announcement + nav ---------- */
.announce { background: var(--grad); color: #0a0614; font-size: .85rem; font-weight: 700; text-align: center; padding: .45rem 1rem; }
.announce a { color: #0a0614; text-decoration: underline; text-underline-offset: 3px; }
.site-nav { position: sticky; top: 0; z-index: 1030; padding: .85rem 0; transition: padding .4s var(--ease), background .4s, box-shadow .4s, backdrop-filter .4s; }
.site-nav.scrolled { padding: .45rem 0; background: rgba(10, 6, 20, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line), 0 20px 40px -20px rgba(0, 0, 0, .6); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.35rem; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #0a0614; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-link { color: var(--muted); font-weight: 600; padding: .55rem .95rem !important; border-radius: 999px; position: relative; transition: color .3s, background .3s; }
.nav-link:hover, .nav-link.active { color: #fff; background: var(--surface-2); }
.navbar-toggler { border: 1px solid var(--line); min-width: 46px; min-height: 46px; border-radius: 14px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { filter: invert(1); }
.cart-btn { position: relative; flex: none; width: 46px; min-width: 46px; height: 46px; padding: 0; border-radius: 50%; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--grad); color: #0a0614; font-size: .75rem; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--ease); }
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }
@media (max-width: 991.98px) {
  .navbar-collapse { margin-top: .8rem; padding: 1rem; border-radius: 22px; background: rgba(18, 10, 36, .92); border: 1px solid var(--line); backdrop-filter: blur(20px); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .95rem .4rem .5rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 600; backdrop-filter: blur(10px); }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 0 rgba(236, 72, 153, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(236, 72, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); } }
.hero h1 { font-size: clamp(3rem, 8.6vw, 7rem); font-weight: 700; margin: 1.2rem 0 1.2rem; text-wrap: balance; }
.grad-text { background: linear-gradient(100deg, var(--violet), var(--pink), var(--orange), var(--pink), var(--violet)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
@keyframes shine { to { background-position: -250% 0; } }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.word > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--w) * 110ms + 150ms); }
@keyframes rise { to { transform: none; } }
.hero .lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.6rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.hero-visual { position: relative; min-height: 470px; }
.hero-main { position: absolute; inset: 0 8% 6% 6%; border-radius: 34px; overflow: hidden; transform: rotate(3deg); box-shadow: 0 50px 90px -30px rgba(236, 72, 153, .65), 0 0 0 1px var(--line); animation: heroFloat 8s ease-in-out infinite; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(10, 6, 20, .55)); }
.hero-second { position: absolute; width: 38%; aspect-ratio: 3 / 4; left: -2%; bottom: -3%; border-radius: 26px; overflow: hidden; transform: rotate(-8deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 4px var(--bg), 0 0 0 5px var(--line); animation: heroFloat 9s ease-in-out -3s infinite reverse; }
.hero-second img { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroFloat { 50% { translate: 0 -14px; } }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 999px; font-weight: 700; font-size: .9rem; background: rgba(10, 6, 20, .6); border: 1px solid var(--line); backdrop-filter: blur(14px); animation: heroFloat 6s ease-in-out infinite; }
.chip.c1 { top: 6%; right: 0; }
.chip.c2 { bottom: 14%; right: -2%; animation-delay: -2.5s; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .03); padding: 1.1rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; padding: 0 1.6rem; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.marquee span:nth-child(3n) { color: #fff; -webkit-text-stroke: 0; }
.marquee b { color: var(--pink); padding: 0 .2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.kicker { color: var(--pink); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; }
.section-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; margin: .5rem 0 .8rem; text-wrap: balance; }
.section-sub { color: var(--muted); max-width: 52ch; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.4rem); }

/* Product cards */
.product { position: relative; height: 100%; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; display: flex; flex-direction: column; }
.product.tilting { transition: transform .08s linear, border-color .4s, box-shadow .5s; }
.product::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 45%); }
.product:hover { border-color: rgba(236, 72, 153, .55); box-shadow: 0 30px 70px -25px rgba(236, 72, 153, .5); }
.product:hover::before { opacity: 1; }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.product-media.tall { aspect-ratio: 4 / 5; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.product:hover .product-media img { transform: scale(1.09); }
.product-media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(0deg, rgba(10, 6, 20, .75), transparent); pointer-events: none; }
.tag { position: absolute; top: 14px; left: 14px; z-index: 3; padding: .3rem .8rem; border-radius: 999px; background: rgba(10, 6, 20, .65); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.product-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product h3, .product h4 { font-size: 1.35rem; margin: 0; }
.product p { color: var(--muted); font-size: .95rem; margin: 0; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.product.compact h4 { font-size: 1.15rem; }
.product.compact .price { font-size: 1.3rem; }

/* Category tiles */
.cat { position: relative; display: block; height: 100%; min-height: 330px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: #fff; isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(1.05) brightness(.85); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 6, 20, .92) 8%, rgba(10, 6, 20, .1) 65%); transition: opacity .5s; }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-soft); mix-blend-mode: color; opacity: 0; transition: opacity .5s; }
.cat:hover { color: #fff; }
.cat:hover img { transform: scale(1.12); filter: saturate(1.25) brightness(1); }
.cat:hover::after { opacity: 1; }
.cat-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.cat-info h3 { font-size: 1.6rem; margin: 0; }
.cat-info small { color: #e9ddff; opacity: .85; }
.arrow { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #0a0614; display: grid; place-items: center; flex: none; transform: translate(-6px, 6px) scale(.85); opacity: .0; transition: transform .5s var(--ease), opacity .4s; }
.cat:hover .arrow { transform: none; opacity: 1; }

/* About */
.about-panel { position: relative; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 34px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(16px); overflow: hidden; }
.about-panel::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; background: var(--grad); filter: blur(80px); opacity: .45; }
.stat-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { padding: 1.6rem 1.2rem; border-radius: 22px; background: rgba(10, 6, 20, .55); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; }
.stat:hover { transform: translateY(-6px); border-color: rgba(236, 72, 153, .55); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.stat > span { color: var(--muted); font-size: .92rem; }
.about p { color: var(--muted); }

/* Contact */
.cta { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(2.4rem, 6vw, 5rem) clamp(1.4rem, 5vw, 4rem); text-align: center; background: var(--grad); background-size: 200% 200%; animation: gradMove 12s ease infinite; color: #0a0614; }
@keyframes gradMove { 50% { background-position: 100% 60%; } }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .22); filter: blur(50px); }
.cta::before { width: 300px; height: 300px; left: -80px; top: -100px; }
.cta::after { width: 260px; height: 260px; right: -60px; bottom: -110px; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 700; color: #0a0614; }
.cta p { color: rgba(10, 6, 20, .8); font-weight: 500; }
.btn-dark-solid { background: #0a0614; color: #fff; }
.btn-dark-solid:hover { background: #1b0f36; color: #fff; transform: translateY(-3px); }
.btn-outline-dark-solid { background: transparent; border: 2px solid #0a0614; color: #0a0614; }
.btn-outline-dark-solid:hover { background: #0a0614; color: #fff; transform: translateY(-3px); }
.info { display: grid; gap: 1rem; margin-top: 2.6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info div { background: rgba(10, 6, 20, .12); border: 1px solid rgba(10, 6, 20, .18); border-radius: 22px; padding: 1.2rem; }
.info h4 { font-size: 1.1rem; margin-bottom: .3rem; color: #0a0614; }
.info p { margin: 0; color: rgba(10, 6, 20, .82); }

footer { padding: 2.6rem 0 3rem; color: var(--muted); border-top: 1px solid var(--line); }
footer a { color: #f9a8d4; padding: .4rem .2rem; display: inline-block; }

/* ---------- Cart drawer ---------- */
.offcanvas { background: rgba(14, 8, 28, .96); backdrop-filter: blur(20px); border-left: 1px solid var(--line); color: var(--text); }
.offcanvas-header { border-bottom: 1px solid var(--line); }
.btn-close { filter: invert(1); opacity: .8; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); animation: slideIn .5s var(--ease) both; }
.cart-item img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.cart-item h5 { font-size: 1rem; margin: 0 0 .2rem; font-family: var(--font-display); }
.qty { display: inline-flex; align-items: center; gap: .3rem; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: #fff; font-weight: 800; line-height: 1; }
.qty button:hover { background: var(--surface-2); }
.remove { color: var(--muted); background: none; border: 0; font-size: .85rem; text-decoration: underline; padding: .2rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.cart-foot { border-top: 1px solid var(--line); padding-top: 1.1rem; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }

.toast-lite { position: fixed; left: 50%; bottom: 26px; z-index: 3000; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: .8rem 1.3rem; border-radius: 999px; background: #fff; color: #0a0614; font-weight: 700; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .8); transition: transform .5s var(--ease), opacity .3s; max-width: calc(100% - 28px); text-align: center; }
.toast-lite.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px) scale(.98); filter: blur(6px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (max-width: 991.98px) {
  .hero-visual { min-height: 400px; margin-top: 1.5rem; }
  .chip.c1 { right: 2%; }
}
@media (max-width: 575.98px) {
  .hero-visual { min-height: 340px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .word > span { transform: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
}
