/* ============ KismatWale — Cosmic Y2K theme ============ */

html, body { overflow-x: clip; max-width: 100%; }

/* ---------- background layers ---------- */
.kw-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.kw-aurora {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
  animation: kwFloat 18s ease-in-out infinite alternate;
}
.kw-aurora-1 { width: 55vw; height: 55vw; top: -20vw; left: -12vw;
  background: radial-gradient(circle, #4f46e5 0%, transparent 65%); }
.kw-aurora-2 { width: 45vw; height: 45vw; top: 30vh; right: -15vw;
  background: radial-gradient(circle, #22d3ee 0%, transparent 65%);
  animation-delay: -6s; animation-duration: 22s; }
.kw-aurora-3 { width: 40vw; height: 40vw; bottom: -18vw; left: 25vw;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 65%);
  opacity: .35; animation-delay: -12s; animation-duration: 26s; }

@keyframes kwFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, 4vh) scale(1.15); }
}

.kw-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 25px 45px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 140px 160px, rgba(255,255,255,.4), transparent),
    radial-gradient(2px 2px at 240px 80px, rgba(103,232,249,.7), transparent),
    radial-gradient(1px 1px at 340px 210px, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 440px 60px, rgba(165,180,252,.7), transparent),
    radial-gradient(1px 1px at 540px 140px, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 90px 260px, rgba(34,211,238,.55), transparent);
  background-size: 620px 300px;
  animation: kwTwinkle 5s ease-in-out infinite alternate;
}
@keyframes kwTwinkle { from { opacity: .55; } to { opacity: 1; } }

.kw-grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- gradient text ---------- */
.kw-gradient-text {
  background: linear-gradient(90deg, #67e8f9, #22d3ee, #a5b4fc, #67e8f9);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: kwHue 6s linear infinite;
}
@keyframes kwHue { to { background-position: 300% 0; } }

/* ---------- nav pieces ---------- */
.kw-navlink {
  padding: .4rem .85rem; border-radius: 9999px; font-weight: 500;
  transition: all .2s ease; cursor: pointer; white-space: nowrap;
}
.kw-navlink:hover { background: rgba(34,211,238,.15); color: #a5f3fc; }

.kw-chip {
  white-space: nowrap; padding: .35rem .8rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
  font-weight: 600; transition: all .2s;
}
.kw-chip:hover { border-color: #5eead4; color: #5eead4; }

.kw-btn-sm {
  padding: .45rem 1.1rem; border-radius: 9999px; font-weight: 700; color: #04060f;
  background: linear-gradient(90deg, #67e8f9, #22d3ee);
  transition: all .2s; cursor: pointer;
}
.kw-btn-sm:hover { box-shadow: 0 0 20px rgba(34,211,238,.5); transform: scale(1.04); }

.kw-no-scrollbar::-webkit-scrollbar { display: none; }
.kw-no-scrollbar { scrollbar-width: none; }

/* ---------- big CTA button ---------- */
.kw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 2.2rem; border-radius: 1.25rem;
  font-weight: 800; font-size: 1.05rem; color: #04060f;
  background: linear-gradient(90deg, #67e8f9, #22d3ee, #a5b4fc);
  background-size: 200% 100%;
  transition: all .25s ease; cursor: pointer;
  box-shadow: 0 8px 30px rgba(34,211,238,.35);
}
.kw-btn:hover { background-position: 100% 0; transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(34,211,238,.5); }
.kw-btn:active { transform: scale(.97); }

/* ---------- glass & gradient-border cards ---------- */
.glass {
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.1);
}
.glass:hover { border-color: rgba(34,211,238,.35); }

.kw-card {
  position: relative; border-radius: 1.5rem;
  background:
    linear-gradient(#0b1220, #0b1220) padding-box,
    linear-gradient(135deg, rgba(103,232,249,.6), rgba(34,211,238,.6), rgba(79,70,229,.6)) border-box;
  border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease;
  transform-style: preserve-3d; will-change: transform;
}
.kw-card:hover { box-shadow: 0 18px 50px rgba(79,70,229,.35); }

/* ---------- sticker badges ---------- */
.kw-sticker {
  display: inline-block; padding: .35rem .9rem; border-radius: 9999px;
  font-weight: 800; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.kw-sticker-acid { background: #5eead4; color: #04060f; }
.kw-sticker-pink { background: linear-gradient(90deg, #22d3ee, #a5b4fc); color: #fff; }
.kw-sticker-gold { background: linear-gradient(90deg, #67e8f9, #38bdf8); color: #04060f; }

/* ---------- marquee ticker ---------- */
.kw-marquee { overflow: hidden; white-space: nowrap; }
.kw-marquee-track {
  display: inline-flex; gap: 2.5rem; padding-right: 2.5rem;
  animation: kwMarquee 22s linear infinite;
  font-family: 'Unbounded', 'Baloo 2', sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
@keyframes kwMarquee { to { transform: translateX(-50%); } }
.kw-marquee-rev { animation-direction: reverse; animation-duration: 34s; }

/* ---------- floating hero glyphs ---------- */
.kw-orbit { position: absolute; font-size: 1.8rem; opacity: .8; animation: kwBob 5s ease-in-out infinite alternate; }
@keyframes kwBob { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-16px) rotate(8deg); } }

/* ---------- scroll reveal ---------- */
.kw-io { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.kw-io.kw-in { opacity: 1; transform: translateY(0); }

/* ---------- section reveal (reading results) ---------- */
@keyframes kwReveal { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.kw-reveal { animation: kwReveal .5s cubic-bezier(.2,.7,.3,1) both; }

/* ---------- loading crystal ball ---------- */
@keyframes kwPulse { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(34,211,238,.6)); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 28px rgba(165,180,252,.9)); } }
.kw-pulse { animation: kwPulse 1.1s ease-in-out infinite; display: inline-block; }

/* ---------- tarot cards ---------- */
.tarot-card { perspective: 900px; cursor: pointer; }
.tarot-inner { position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.7,.3,1.1); }
.tarot-card.flipped .tarot-inner { transform: rotateY(180deg); }
.tarot-card:not(.flipped):hover .tarot-inner { transform: translateY(-8px) rotate(2deg); }
.tarot-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: .9rem; display: flex; align-items: center; justify-content: center; text-align: center;
}
.tarot-back {
  background:
    linear-gradient(#101a33, #0b1220) padding-box,
    linear-gradient(135deg, #67e8f9, #22d3ee, #4f46e5) border-box;
  border: 1.5px solid transparent;
  font-size: 1.8rem;
}
.tarot-front {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  color: #04060f; font-weight: 800; font-size: .72rem; padding: .4rem;
  font-family: 'Unbounded', sans-serif;
}
.tarot-card.picked .tarot-back { box-shadow: 0 0 24px rgba(34,211,238,.7); }

/* ---------- blurred locked teaser ---------- */
.kw-blur { filter: blur(5px); user-select: none; pointer-events: none; }

/* ---------- inputs ---------- */
.kw-input {
  width: 100%; border-radius: 1rem; padding: .8rem 1.1rem;
  background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.14);
  color: #f3f4f6; transition: all .2s; color-scheme: dark;
}
.kw-input:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.2); background: rgba(255,255,255,.08); }

/* ---------- policy pages ---------- */
.policy b { color: #a5f3fc; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .kw-aurora, .kw-stars, .kw-gradient-text, .kw-marquee-track, .kw-orbit, .kw-pulse { animation: none !important; }
  .kw-io { opacity: 1; transform: none; transition: none; }
  .kw-card, .kw-btn, .tarot-inner { transition: none; }
}

/* ---------- celestial extras ---------- */
.kw-moonglow {
  position: absolute; left: 50%; top: -6rem; transform: translateX(-50%);
  width: 46rem; height: 46rem; max-width: 120vw; pointer-events: none;
  background: radial-gradient(circle, rgba(165,180,252,.16) 0%, rgba(34,211,238,.07) 40%, transparent 68%);
  filter: blur(6px);
}
.kw-btn { position: relative; overflow: hidden; }
.kw-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.kw-btn:hover::after { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) { .kw-btn::after { display: none; } }

/* ---------- report components ---------- */
.kw-secnum {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2rem; height: 2rem; border-radius: .65rem;
  font-family: 'Unbounded', sans-serif; font-size: .7rem; font-weight: 700;
  color: #04060f; flex-shrink: 0;
  background: linear-gradient(135deg, #67e8f9, #a5b4fc);
}
.kw-seal {
  display: inline-block; padding: .6rem 1.6rem; border-radius: 9999px;
  border: 1.5px dashed rgba(103,232,249,.5); color: #67e8f9;
  font-family: 'Unbounded', 'Baloo 2', sans-serif; font-size: .7rem; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase;
}
