/* ============================================================
   Aeroflow Dynamics — Motion + Mobile + Email subscription band
   ============================================================ */

/* ============= SCROLL REVEALS ============= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"]   { transform: translateX(-32px); }
[data-reveal="right"]  { transform: translateX(32px); }
[data-reveal="scale"]  { transform: scale(.96); transform-origin: center; }
[data-reveal="fade"]   { transform: none; }
[data-reveal].is-in    { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============= HERO KINETICS ============= */
.hero__title { animation: heroSlide 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero__title--accent { animation: heroSlide 1.1s cubic-bezier(.2,.7,.2,1) .14s both; }
.hero__sub { animation: heroSlide 1s cubic-bezier(.2,.7,.2,1) .28s both; }
.hero__actions { animation: heroSlide .9s cubic-bezier(.2,.7,.2,1) .4s both; }
.hero__stats { animation: heroSlide .9s cubic-bezier(.2,.7,.2,1) .55s both; }
.hero .eyebrow { animation: eyebrowDraw .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__glow { animation: glowDrift 9s ease-in-out infinite alternate; }
.hero__scroll { animation: bobby 1.6s ease-in-out infinite alternate; }

@keyframes heroSlide {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
@keyframes eyebrowDraw {
  from { opacity: 0; letter-spacing: 0.4em; }
  to   { opacity: 1; letter-spacing: 0.18em; }
}
@keyframes glowDrift {
  0%   { transform: translate(-50%, 0) scale(1); opacity: .9; }
  100% { transform: translate(-46%, -3%) scale(1.08); opacity: 1; }
}
@keyframes bobby {
  from { transform: translateY(0); opacity: .7; }
  to   { transform: translateY(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title, .hero__title--accent, .hero__sub, .hero__actions, .hero__stats,
  .hero .eyebrow, .hero__glow, .hero__scroll { animation: none; }
}

/* ============= CARD HOVER ============= */
.card { position: relative; isolation: isolate; }
.card .card__media {
  overflow: hidden;
  transition: filter .5s cubic-bezier(.2,.7,.2,1);
}
.card .card__media::before {
  content: "";
  position: absolute; inset: 0;
  background: inherit;
  background-size: cover; background-position: center;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
  z-index: 0;
}
.card:hover .card__media::before { transform: scale(1.06); }
.card .badge { z-index: 2; }
.card .card__title {
  background-image: linear-gradient(var(--volt), var(--volt));
  background-size: 0% 1px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card__title { background-size: 36% 1px; }

/* idle shimmer on empty media tiles (no inline bg-image) */
.card__media:not([style*="background-image"]) {
  background: linear-gradient(120deg, var(--carbon) 0%, var(--carbon-2) 50%, var(--carbon) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: -150% 0; }
  100% { background-position: 150% 0; }
}

/* ============= BUTTON MICRO-INTERACTIONS ============= */
.btn {
  position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              background .3s cubic-bezier(.2,.7,.2,1),
              color .3s cubic-bezier(.2,.7,.2,1),
              border-color .3s cubic-bezier(.2,.7,.2,1),
              letter-spacing .3s cubic-bezier(.2,.7,.2,1);
}
.btn::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  background: currentColor; opacity: .12;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .6s cubic-bezier(.2,.7,.2,1), height .6s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.btn:hover::after { width: 320px; height: 320px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary:hover { letter-spacing: 0.005em; }

/* ============= COLLECTION HOVER ============= */
.collection { isolation: isolate; }
.collection::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--img);
  background-size: cover; background-position: center;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.collection:hover::before { transform: scale(1.07); }
.collection { background-image: none !important; }
.collection__cta {
  position: relative; overflow: hidden;
}
.collection__cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.collection:hover .collection__cta::after { transform: scaleX(1); }

/* ============= NAV INTERACTIVITY ============= */
.nav__links a {
  position: relative;
  padding-bottom: 4px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--volt);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* nav shrink on scroll */
.nav { transition: padding .35s cubic-bezier(.2,.7,.2,1), background .3s ease; }
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(11,15,20,.92); }

/* ============= MARQUEE ============= */
.marquee {
  overflow: hidden; position: relative;
  background: var(--ink);
  border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  padding: 28px 0;
}
.marquee__track {
  display: flex; gap: 60px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-2); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--alloy-2);
  white-space: nowrap;
}
.marquee__item strong { color: var(--volt); }
.marquee__item::after {
  content: "★"; color: var(--alloy); margin-left: 60px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============= EMAIL SUBSCRIBE BAND (injected below hero) ============= */
.subscribe-band {
  position: relative; overflow: hidden;
  background: var(--ink);
  border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  padding: clamp(60px, 8vw, 100px) var(--pad);
  isolation: isolate;
}
.subscribe-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 50%, rgba(217,255,59,.10), transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 30%, rgba(217,255,59,.06), transparent 60%);
  pointer-events: none;
}
.subscribe-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--edge) 1px, transparent 1px),
    linear-gradient(90deg, var(--edge) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, #000 0%, transparent 80%);
  opacity: .5;
  pointer-events: none;
}
.subscribe-band__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.subscribe-band__copy { display: flex; flex-direction: column; gap: 16px; }
.subscribe-band__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-1); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--volt);
}
.subscribe-band__eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--volt);
}
.subscribe-band__pulse {
  display: inline-block; width: 8px; height: 8px;
  background: var(--volt); border-radius: 50%;
  margin-left: 8px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,255,59,.6); }
  50%      { box-shadow: 0 0 0 10px rgba(217,255,59,0); }
}
.subscribe-band h2 {
  font-size: clamp(28px, 3.2vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 18ch;
}
.subscribe-band h2 span { color: var(--volt); }
.subscribe-band p {
  color: var(--alloy-2);
  font-size: var(--t-3);
  max-width: 50ch;
  line-height: 1.55;
}
.subscribe-band__perks {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--edge);
}
.subscribe-band__perk {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-1); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--alloy-2);
}
.subscribe-band__perk::before {
  content: "✓"; color: var(--volt); font-weight: 700;
}
.subscribe-band__form {
  display: flex; flex-direction: column; gap: 14px;
}
.subscribe-band__row {
  display: flex; gap: 0;
  background: var(--carbon);
  border: 1px solid var(--edge-strong);
  transition: border-color .25s cubic-bezier(.2,.7,.2,1), transform .25s cubic-bezier(.2,.7,.2,1);
}
.subscribe-band__row:focus-within {
  border-color: var(--volt);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px -20px rgba(217,255,59,.18);
}
.subscribe-band__row input {
  flex: 1; min-width: 0;
  padding: 22px 24px;
  font: inherit; font-size: var(--t-3);
  background: transparent; border: 0; color: var(--bone);
  outline: none;
}
.subscribe-band__row input::placeholder { color: var(--alloy); }
.subscribe-band__row button {
  padding: 22px 32px;
  font-size: var(--t-3); font-weight: 500;
  background: var(--volt); color: var(--ink);
  border: 0; cursor: pointer;
  white-space: nowrap;
  position: relative; overflow: hidden;
  transition: background .3s cubic-bezier(.2,.7,.2,1), letter-spacing .3s cubic-bezier(.2,.7,.2,1);
}
.subscribe-band__row button:hover { background: var(--pure); letter-spacing: 0.005em; }
.subscribe-band__row button[data-state="sent"] {
  background: var(--ink); color: var(--volt); border: 1px solid var(--volt);
}
.subscribe-band__legal {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-1); letter-spacing: 0.14em;
  color: var(--alloy); text-transform: uppercase;
}
@media (max-width: 900px) {
  .subscribe-band__inner { grid-template-columns: 1fr; gap: 36px; }
  .subscribe-band__row { flex-direction: column; }
  .subscribe-band__row button { padding: 18px 24px; }
}

/* ============= MOBILE NAV DRAWER ============= */
.mnav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  position: relative;
}
.mnav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--bone);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}
.mnav-toggle span:nth-child(1) { top: 14px; }
.mnav-toggle span:nth-child(2) { top: 19.5px; }
.mnav-toggle span:nth-child(3) { top: 25px; }
.mnav-toggle[data-open] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mnav-toggle[data-open] span:nth-child(2) { opacity: 0; }
.mnav-toggle[data-open] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mnav {
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--ink);
  padding: 40px var(--pad) 100px;
  z-index: 40;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; gap: 4px;
  overflow: auto;
}
.mnav[data-open] { transform: translateX(0); }
.mnav a {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 600; letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--edge);
  color: var(--bone);
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateX(20px);
}
.mnav[data-open] a {
  animation: mnavSlide .55s cubic-bezier(.2,.7,.2,1) both;
}
.mnav[data-open] a:nth-child(1) { animation-delay: .08s; }
.mnav[data-open] a:nth-child(2) { animation-delay: .12s; }
.mnav[data-open] a:nth-child(3) { animation-delay: .16s; }
.mnav[data-open] a:nth-child(4) { animation-delay: .20s; }
.mnav[data-open] a:nth-child(5) { animation-delay: .24s; }
.mnav[data-open] a:nth-child(6) { animation-delay: .28s; }
.mnav[data-open] a:nth-child(7) { animation-delay: .32s; }
.mnav[data-open] a:nth-child(8) { animation-delay: .36s; }
.mnav[data-open] a:nth-child(9) { animation-delay: .40s; }
.mnav a::after { content: "→"; color: var(--alloy); font-weight: 300; }
.mnav a:hover { color: var(--volt); }
.mnav a:hover::after { color: var(--volt); transform: translateX(4px); transition: transform .2s ease; }
.mnav__footer {
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--edge);
  display: flex; flex-direction: column; gap: 10px;
}
.mnav__footer a {
  font-size: var(--t-3); font-weight: 400; padding: 6px 0; border-bottom: 0;
  color: var(--alloy-2);
}
.mnav__contact {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-1); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--alloy); margin-top: 24px;
}
@keyframes mnavSlide {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

/* ============= MOBILE STICKY CTA (PDP) ============= */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: rgba(11,15,20,.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--edge);
  padding: 14px var(--pad);
  display: none;
  align-items: center; gap: 14px;
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.mobile-cta[data-show] { transform: none; }
.mobile-cta__name {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-cta__title {
  font-size: var(--t-2); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobile-cta__price { font-size: var(--t-2); color: var(--alloy-2); font-family: 'JetBrains Mono', monospace; }
.mobile-cta .btn { padding: 12px 18px; font-size: var(--t-2); }

/* ============= MOBILE OPTIMIZATIONS ============= */
@media (max-width: 900px) {
  /* Show mobile drawer trigger, hide desktop nav links */
  .nav { padding-left: 18px; padding-right: 18px; gap: 12px; }
  .nav__links { display: none; }
  .nav__cta { gap: 4px; }
  .nav__cta .iconbtn:nth-child(2) { display: none; }
  .mnav-toggle { display: inline-flex; }

  /* Tighter hero */
  .hero {
    padding-top: clamp(60px, 18vw, 120px);
    padding-bottom: clamp(40px, 10vw, 80px);
  }
  .hero__title { font-size: clamp(48px, 13vw, 80px); }
  .hero__stats { margin-top: 40px; }
  .hero__stats strong { font-size: clamp(24px, 6vw, 32px); }
  .hero__scroll { display: none; }

  /* Section padding */
  section { padding-left: 20px; padding-right: 20px; }

  /* Buttons full-width on mobile */
  .hero__actions .btn { flex: 1 1 200px; min-height: 52px; }

  /* Cards: tap area */
  .card { transition: none; }
  .card__media { aspect-ratio: 16/11; }

  /* Drawer comes from bottom */
  .drawer {
    top: auto; right: 0; bottom: 0; left: 0;
    width: 100%;
    transform: translateY(105%);
    border-left: 0;
    border-top: 1px solid var(--edge);
    max-height: 88vh;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .drawer[data-open] { transform: translateY(0); }

  /* Footer */
  .footer__top { gap: 32px; padding-bottom: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Touch targets */
  .nav__brand { font-size: 12px; gap: 6px; }
  .nav__brand svg { width: 22px; height: 22px; }

  /* Reduce parallax on mobile */
  .hero__grid { background-size: 40px 40px; }
}

@media (max-width: 540px) {
  .hero__title { font-size: clamp(40px, 14vw, 64px); }
  .hero__sub { font-size: var(--t-3); }
  .nav__brand span em { display: none; }
  .utility { font-size: 11px; padding: 8px 14px; }
  .iconbtn { width: 38px; height: 38px; }
  .iconbtn--cart .cart-count { top: 0; right: 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }

  .subscribe-band h2 { font-size: clamp(24px, 7vw, 36px); }
  .subscribe-band__perks { gap: 12px 20px; }
}

/* ============= TILT / 3D CARD (used on featured) ============= */
.tilt {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.tilt:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
