/* ============================================================
   Rockitten NFT — base.css
   Reset, fonts, design tokens, common globals
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* palette */
  --bg-deep: #0a0420;
  --bg-purple-1: #1a0a3e;
  --bg-purple-2: #2a0e5e;
  --bg-purple-3: #4a1d8a;
  --accent-pink: #ff3eb5;
  --accent-pink-glow: #ff6ad0;
  --accent-blue: #00d4ff;
  --accent-cyan: #7df9ff;
  --text-white: #ffffff;
  --text-soft: #d8cce8;
  --text-muted: #b8a8d4;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-card: rgba(216, 204, 232, 0.35);
  --bg-card: rgba(20, 10, 50, 0.5);

  /* fonts */
  --font-display: 'Orbitron', 'Michroma', sans-serif;
  --font-body: 'Rajdhani', 'Inter', sans-serif;
  --font-pixel: 'Michroma', 'Orbitron', sans-serif;

  /* timing */
  --t-fast: 0.25s;
  --t-med: 0.6s;
  --t-slow: 1.2s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  user-select: none;
}

body {
  position: relative;
}

/* Hide scrollbars, this is a single-page stage */
body::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* ============================================================
   Stage — the container that holds all slides
   ============================================================ */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   Slide base
   ============================================================ */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 2.5vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease-out), visibility 0s linear 0.8s;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s var(--ease-out), visibility 0s linear 0s;
  pointer-events: auto;
}

/* Background radial — the deep purple glow */
.bg-radial {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(74, 29, 138, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(40, 15, 95, 0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(20, 10, 50, 0.4) 0%, var(--bg-deep) 75%);
}

/* Wave canvas — fills slide */
.wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  mix-blend-mode: screen;
  opacity: 0.65;
}

/* Blob — uses the SVG <filter id="blob-blur"> */
.blob {
  position: absolute;
  z-index: 1;
  width: clamp(180px, 22vw, 380px);
  filter: url(#blob-blur);
  opacity: 0.85;
  pointer-events: none;
}

.blob svg {
  width: 100%;
  height: auto;
  display: block;
}

.blob-purple {
  bottom: -3%;
  left: -4%;
  fill: var(--accent-pink);
}

.blob-blue {
  top: -8%;
  right: -4%;
  fill: var(--accent-blue);
}

.blob-tr-soft {
  top: -8%;
  right: -4%;
  opacity: 0.7;
}

/* Section title (used in slides 2 & 5) */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-white);
  text-shadow: 0 0 24px rgba(255, 62, 181, 0.35);
}

/* Container helper */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  height: 100%;
  justify-content: center;
}

/* Pink button (used on slides 3 & 4) */
.btn-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 2em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: var(--text-white);
  background: linear-gradient(135deg, var(--accent-pink) 0%, #d8348f 100%);
  border-radius: 4px;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
  box-shadow: 0 6px 20px rgba(255, 62, 181, 0.35);
}

.btn-pink::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 62, 181, 0.55);
}

.btn-pink:hover::after {
  transform: translateX(100%);
}

/* ============================================================
   Loader
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo svg {
  animation: spin 2s linear infinite;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  color: var(--text-white);
}

.loader-bar {
  width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-blue));
  width: 0;
  animation: load 1.4s ease-out forwards;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes load {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ============================================================
   Responsive — tablet / phone
   ============================================================ */
@media (max-width: 768px) {
  .slide {
    padding: 1rem;
  }
}