/* ============================================================
   TapMe LP — custom styles
   ============================================================ */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ---------- noise grain ---------- */
.noise {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- grid bg ---------- */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ---------- gradient orbs ---------- */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  animation: float 14s ease-in-out infinite alternate;
}
.orb-1 {
  top: -10%; left: -10%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, #ff00aa 0%, transparent 60%);
  opacity: 0.35;
}
.orb-2 {
  bottom: -20%; right: -10%;
  width: 50vw; height: 50vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, #00d4ff 0%, transparent 60%);
  opacity: 0.35;
  animation-delay: -4s;
}
.orb-3 {
  top: 40%; left: 40%;
  width: 30vw; height: 30vw; max-width: 420px; max-height: 420px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 60%);
  opacity: 0.3;
  animation-delay: -8s;
}
.orb-cta {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  border-radius: 9999px;
  filter: blur(120px);
  background: conic-gradient(from 0deg, #ff00aa, #ffcc00, #00d4ff, #8b5cf6, #ff00aa);
  opacity: 0.15;
  animation: spin-slow 30s linear infinite;
}
@keyframes float {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- logo mark ---------- */
.logo-mark {
  background: conic-gradient(from 180deg, #ff00aa, #ffcc00, #00d4ff, #8b5cf6, #ff00aa);
  box-shadow: 0 0 20px rgba(255,255,255,0.15), inset 0 0 8px rgba(0,0,0,0.3);
}
.logo-mark::before {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 4px;
  background: #05050a;
}
.logo-mark::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 6px;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 35%, transparent 36%);
  background-size: 8px 8px;
  opacity: 0.9;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle, black 30%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 65%);
}

/* ---------- text gradient ---------- */
.text-gradient {
  background: linear-gradient(110deg, #ff6bb5 0%, #ffd166 30%, #6dd5ed 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease-in-out infinite alternate;
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ---------- 3D tilt card ---------- */
.perspective-2000 { perspective: 2000px; }
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.85),
    0 0 80px -20px rgba(255, 255, 255, 0.08);
  will-change: transform;
}
.tilt-card img,
.tilt-card video {
  backface-visibility: hidden;
}
.holo-layer {
  background:
    linear-gradient(
      125deg,
      rgba(255,180,220,0.08) 0%,
      rgba(255,230,180,0.06) 25%,
      rgba(180,230,255,0.08) 50%,
      rgba(210,200,255,0.06) 75%,
      rgba(255,180,220,0.08) 100%
    );
  mix-blend-mode: soft-light;
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
}
.shine-layer {
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,0.18) 47%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.18) 53%,
    transparent 65%
  );
  background-size: 250% 250%;
  background-position: 100% 0;
  mix-blend-mode: overlay;
  z-index: 3;
  opacity: 0.55;
  transition: background-position 0.2s ease-out;
}
.tilt-card:hover .shine-layer { background-position: 0% 100%; }

/* ---------- marquee ---------- */
.marquee { animation: marquee 30s linear infinite; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ---------- bounce slow ---------- */
@keyframes bounce-slow {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, -8px); opacity: 1; }
}
.animate-bounce-slow {
  animation: bounce-slow 2.5s ease-in-out infinite;
}

/* ---------- reveal animation (GSAP fallback) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- step cards ---------- */
.step-card {
  position: relative;
  padding: 2rem 1.75rem 2.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: border-color 0.4s, transform 0.4s;
  overflow: hidden;
}
.step-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(139,92,246,0.25), rgba(255,0,170,0.25), transparent);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
  padding: 1px;
  -webkit-mask:
     linear-gradient(#fff 0 0) content-box,
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }
.step-card:hover::before { opacity: 1; }
.step-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.75rem;
}
.step-icon {
  width: 56px; height: 56px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}
.step-title { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.step-body { color: rgba(255,255,255,0.55); line-height: 1.7; font-size: 0.9rem; }

/* ---------- product cards ---------- */
.product-card {
  display: block;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}
.product-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}
.event-cover {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,0,170,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(0,212,255,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139,92,246,0.25) 0%, transparent 60%),
    #111;
}

/* ---------- scene cards ---------- */
.scene-card {
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
}
.scene-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}
.scene-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.scene-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.015em; }
.scene-body { color: rgba(255,255,255,0.55); line-height: 1.75; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-item {
  padding: 1.5rem 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  transition: transform 0.3s, color 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: #fff; }
.faq-item[open] summary { color: #fff; }
.faq-body {
  margin-top: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  font-size: 0.92rem;
}

/* ---------- nav scrolled ---------- */
.nav-scrolled {
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ---------- responsive polish ---------- */
@media (max-width: 768px) {
  .tilt-card { box-shadow: 0 20px 40px -15px rgba(0,0,0,0.8); }
}
