/* 99 Dimes Page Redesign Style Tokens */
:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Cyber Theme Colors */
  --neon-accent: #00ffcc;
  --bg-dark: #0a0a0a;
  --text-light: #f3f4f6;
  
  --panel-1: #111827;
  --panel-2: #1f2937;
  --panel-3: #1e1b4b;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  overflow: hidden; /* Scrollsnaps are driven programmatically by JS */
  overscroll-behavior-y: none;
}

h1, h2, h3, .syncopate {
  font-family: 'Syncopate', sans-serif;
  letter-spacing: -0.04em;
}

/* Constellation Background */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Stinger Screen Transition Layer */
#stinger {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(90deg, transparent 0%, var(--neon-accent) 50%, transparent 100%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: skewX(-15deg);
}

#stinger .bars {
  display: flex;
  width: 120%;
  height: 100%;
}

#stinger .bar {
  flex: 1;
  background-color: var(--neon-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.4);
}

#stinger .bar.down {
  transform-origin: top;
}

/* Panels Viewport Container */
#panels-container {
  height: 100vh;
  width: 100vw;
  position: relative;
  transform: translateY(0);
  will-change: transform;
  z-index: 2;
}

.panel {
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  box-sizing: border-box;
  overflow: hidden;
}

.panel-bg-1 { background: radial-gradient(circle at center, rgba(17, 24, 39, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%); }
.panel-bg-2 { background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.95) 100%); }
.panel-bg-3 { background: radial-gradient(ellipse at bottom, rgba(30, 27, 75, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%); }

/* Glitch Heading Effect */
.glitch-wrapper {
  position: relative;
}

.glitch {
  position: relative;
  color: white;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.glitch::before {
  left: 3px;
  text-shadow: -2px 0 #ff0055;
  clip: rect(24px, 750px, 90px, 0);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
  left: -3px;
  text-shadow: -2px 0 #00eeff;
  clip: rect(85px, 750px, 140px, 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(19px, 9999px, 86px, 0); }
  20% { clip: rect(61px, 9999px, 9px, 0); }
  40% { clip: rect(83px, 9999px, 47px, 0); }
  60% { clip: rect(110px, 9999px, 19px, 0); }
  80% { clip: rect(32px, 9999px, 73px, 0); }
  100% { clip: rect(98px, 9999px, 4px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(74px, 9999px, 32px, 0); }
  20% { clip: rect(13px, 9999px, 96px, 0); }
  40% { clip: rect(89px, 9999px, 21px, 0); }
  60% { clip: rect(44px, 9999px, 68px, 0); }
  80% { clip: rect(106px, 9999px, 55px, 0); }
  100% { clip: rect(27px, 9999px, 88px, 0); }
}

/* Nav Tab indicators */
.nav-tab {
  position: relative;
  transition: color 0.3s ease;
}

.nav-tab.active {
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

/* Geometric details */
.geometric-shape {
  position: absolute;
  opacity: 0.03;
  pointer-events: none;
}

.shape-circle {
  border-radius: 50%;
  border: 1px solid white;
}

.shape-square {
  border: 1px solid white;
  transform: rotate(45deg);
}

/* Bullet list check icons styling override */
i[data-lucide="check-circle"] {
  stroke-width: 3;
}

/* Redesigned Launch Buttons */
.launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--neon-accent) 0%, #00e5ff 100%);
  border: none;
  padding: 12px 28px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #04050a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 255, 204, 0.25);
  cursor: pointer;
}

.launch-btn:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 204, 0.45);
}

.launch-btn.disabled {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Navigation DOTS */
#nav-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 50;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--neon-accent);
  border-color: var(--neon-accent);
  box-shadow: 0 0 15px var(--neon-accent);
  transform: scale(1.2);
}

/* Mock UI base layout */
.mock-ui {
  width: 100%;
  background: rgba(10, 13, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Three.js Pack Container & Canvas (Kept fully intact!) */
.pack-visual-container {
  background: #0c1222;
  border: 2px solid rgba(0, 255, 204, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(0, 255, 204, 0.12);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.three-pack-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.pack-ui-radial-dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, #050508 100%);
  pointer-events: none;
  z-index: 20;
}

/* Floating HUD Overlay */
.pack-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  z-index: 30;
  pointer-events: none;
}

.pack-hud-header {
  text-align: center;
  padding-top: 6px;
  pointer-events: none;
}

.pack-hud-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(to right, #00ffcc, #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.3));
  margin: 0;
}

.pack-hud-subtitle {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 2px;
}

/* Actions Button Area */
.pack-hud-actions {
  padding-bottom: 6px;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

/* Pack Opening Buttons Styling */
.pack-btn {
  pointer-events: auto;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 50px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.15);
}

.pack-btn-primary {
  background: linear-gradient(to right, #db2777, #9333ea, #00ffcc);
  box-shadow: 0 0 25px rgba(219, 39, 119, 0.3);
}

.pack-btn-primary:hover {
  background: linear-gradient(to right, #ec4899, #00ffcc);
  box-shadow: 0 0 35px rgba(0, 255, 204, 0.5);
  transform: translateY(-2px);
}

.pack-btn-secondary {
  background: #1e293b;
  border-color: rgba(0, 255, 204, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

.pack-btn-secondary:hover {
  background: #334155;
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.3);
  transform: translateY(-2px);
}

.pack-btn-claim {
  background: linear-gradient(to right, #0891b2, #4f46e5, #db2777);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.25);
}

.pack-btn-claim:hover {
  background: linear-gradient(to right, #00ffcc, #db2777);
  box-shadow: 0 0 35px rgba(219, 39, 119, 0.45);
  transform: translateY(-2px);
}

.pack-btn:active {
  transform: translateY(0);
}

.pack-btn-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-25deg) translateX(-150%);
}

.pack-btn:hover .pack-btn-shine {
  animation: btn-shine-anim 1.5s ease-in-out infinite;
}

/* Pack Opening Text Message */
.pack-status-msg {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: #00ffcc;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: pulse-status-neon 1.5s infinite ease-in-out;
}

@keyframes btn-shine-anim {
  0% { transform: skewX(-25deg) translateX(-150%); }
  100% { transform: skewX(-25deg) translateX(250%); }
}

@keyframes pulse-status-neon {
  0% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.6; transform: scale(0.95); }
}

/* Custom indicator animations */
@keyframes pulse-status {
  0% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.6; transform: scale(0.95); }
}

/* Responsive constraints */
@media (max-width: 900px) {
  .panel {
    padding: 5rem 2rem 2rem 2rem;
    height: auto;
    min-height: 100vh;
  }
  
  #panels-container {
    height: auto;
    transform: none !important;
  }
  
  .panel {
    height: auto;
  }
}
