/* Base styles */
:root {
  --bg: #0b0d12;
  --card: #11141b;
  --muted: #9aa4b2;
  --text: #e6edf3;
  --primary: #7c5cff;
  --primary-600: #6a4df0;
  --danger: #ff5c7c;
  --success: #2ecc71;
  --border: #1c2230;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
  position: relative;
  z-index: 10;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.title {
  margin: 0 0 12px 0;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: .6px;
  background: linear-gradient(90deg, #8a7cff, #2ad4c6, #ff61d1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.title .logo {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(4px);
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.tagline {
  margin: 16px 0 0 0;
  font-size: 18px;
  font-weight: 500;
  color: #a8b2d1;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 0 20px rgba(168, 178, 209, 0.3);
}

.steps ol {
  margin: 16px 0 0 18px;
  line-height: 1.8;
  color: var(--muted);
}

.link {
  color: #58a6ff;
  text-decoration: none;
}
.link:hover { text-decoration: underline; }

.actions { 
  margin: 32px 0 24px; 
  display: flex; 
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
}

.features {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Score card under YAP NOW */
.score-card {
  max-width: 800px;
  margin: 6px auto 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}

.score-formula {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
}

.score-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.score-notes li {
  font-size: 14px;
  line-height: 1.7;
  margin: 2px 0;
}

.score-details {
  margin-top: 10px;
}

.score-details > summary {
  cursor: pointer;
  color: #c8d2f0;
  font-size: 14px;
  outline: none;
}

.score-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.score-table th,
.score-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.score-table thead th {
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.score-table tbody td {
  color: var(--muted);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(124,92,255,.08);
  border: 1px solid rgba(124,92,255,.2);
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  color: #c8d2f0;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(124,92,255,.15);
  border-color: rgba(124,92,255,.4);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(124,92,255,.6));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #171a23, #0f1218);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #263149;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  border: none;
  color: #fff;
  box-shadow: 0 10px 28px rgba(124,92,255,.6), inset 0 0 14px rgba(255,255,255,.22), 0 0 40px rgba(124,92,255,.35);
}

.neon:hover {
  filter: drop-shadow(0 0 12px rgba(124,92,255,.7));
  transform: translateY(-3px) scale(1.04);
}

/* Enhanced neon and highlight animations */
.neon {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, #7c5cff 0%, #6a4df0 25%, #2ad4c6 50%, #ff61d1 75%, #7c5cff 100%);
  background-size: 300% 300%;
  animation: neonGlow 6s ease infinite;
}

.neon::after {
  content: "";
  position: absolute;
  top: -150%;
  left: -50%;
  width: 60%;
  height: 400%;
  transform: rotate(25deg);
  background: linear-gradient( to right, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0) );
  opacity: 0;
  transition: opacity .25s ease;
}

.neon:hover::after {
  opacity: 1;
  animation: shine 1.2s ease forwards;
}

.neon:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 6px 18px rgba(124,92,255,.38), inset 0 0 8px rgba(255,255,255,.12);
}

.neon:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,92,255,.45), 0 8px 24px rgba(124,92,255,.45);
}

@keyframes neonGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shine {
  0% { transform: translateX(-120%) rotate(25deg); }
  100% { transform: translateX(220%) rotate(25deg); }
}

/* Page load animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  animation: fadeInUp 0.8s ease-out;
}

.steps {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.actions {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.footer {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Staggered feature item animations */
.feature-item:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.8s both; }
.feature-item:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.9s both; }
.feature-item:nth-child(3) { animation: fadeInUp 0.6s ease-out 1.0s both; }

/* Enhanced visual depth */
.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 18px 22px;
  box-shadow: 
    0 8px 32px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(124,92,255,.6), rgba(42,212,198,.6), rgba(255,97,209,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Title glow effect */
.title {
  margin: 0 0 6px 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: .4px;
  background: linear-gradient(90deg, #8a7cff, #2ad4c6, #ff61d1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(124,92,255,.3);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { filter: drop-shadow(0 0 10px rgba(124,92,255,.3)); }
  100% { filter: drop-shadow(0 0 20px rgba(124,92,255,.6)); }
}

/* Button enhanced effects */
.neon {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, #7c5cff 0%, #6a4df0 25%, #2ad4c6 50%, #ff61d1 75%, #7c5cff 100%);
  background-size: 300% 300%;
  animation: neonGlow 6s ease infinite;
  box-shadow: 
    0 8px 24px rgba(124,92,255,.45), 
    inset 0 0 12px rgba(255,255,255,.15),
    0 0 40px rgba(124,92,255,.2);
}

.form {
  margin-top: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00)), var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius);
}

.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 18px 22px;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(124,92,255,.6), rgba(42,212,198,.6), rgba(255,97,209,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.input-row {
  display: flex;
  gap: 10px;
}

input[type="url"] {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  outline: none;
  border: 1px solid var(--border);
  background: #0f1218;
  color: var(--text);
}

input[type="url"]::placeholder { color: #5e6a7c; }

.help { margin: 10px 0 0; color: var(--muted); }
.error { margin: 10px 0 0; color: var(--danger); }

.success {
  margin-top: 14px;
  background: rgba(46, 204, 113, .12);
  border: 1px solid rgba(46, 204, 113, .4);
  color: #b3ffd1;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(46, 204, 113, .25);
  animation: pulse 1.2s ease 1;
}

.steps { 
  text-align: center; 
  margin: 0 20px 20px 20px;
  padding: 32px 24px;
}

.pitch {
  font-family: 'Orbitron', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.9;
  letter-spacing: .4px;
  color: #e8f7ff;
  text-shadow: 0 0 12px rgba(42,212,198,.22), 0 1px 0 rgba(0,0,0,.35);
  background: linear-gradient(90deg, rgba(90,255,210,.18), rgba(124,92,255,.18));
  -webkit-background-clip: text;
  background-clip: text;
}

.pitch-link {
  color: #58a6ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(88,166,255,.6);
  padding-bottom: 1px;
}
.pitch-link:hover {
  color: #8cc5ff;
  border-bottom-color: rgba(140,197,255,.9);
}

html { scroll-behavior: smooth; }

.steps .pitch + .pitch {
  margin-top: 12px;
}

.footer {
  margin-top: auto;
  text-align: center;
  color: var(--muted);
}

.twitter-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0 24px 0;
  padding: 20px 0;
}

.x-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.x-logo {
  width: 32px;
  height: 32px;
  color: #ffffff;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.x-logo-link:hover .x-logo {
  color: #1da1f2;
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 12px rgba(29, 161, 242, 0.6));
}

/* Music Control - Fixed Position */
.music-control-fixed {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
}

.music-btn-fixed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: 25px;
  color: #c8d2f0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.music-btn-fixed:hover {
  background: rgba(124, 92, 255, 0.2);
  border-color: rgba(124, 92, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 92, 255, 0.4);
}

.music-btn-fixed.playing {
  background: rgba(20, 241, 149, 0.2);
  border-color: rgba(20, 241, 149, 0.5);
  color: #14f195;
  box-shadow: 0 4px 20px rgba(20, 241, 149, 0.3);
}

.music-btn-fixed.playing:hover {
  background: rgba(20, 241, 149, 0.3);
  border-color: rgba(20, 241, 149, 0.7);
  box-shadow: 0 8px 25px rgba(20, 241, 149, 0.5);
}

.music-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.music-btn-fixed:hover .music-icon {
  transform: scale(1.1);
}

.music-btn-fixed.playing .music-icon {
  animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.music-text {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .container {
    padding: 40px 16px 32px;
  }
  
  .title { 
    font-size: 40px; 
    letter-spacing: .4px;
  }
  
  .tagline {
    font-size: 16px;
    letter-spacing: 0.6px;
  }
  
  .pitch {
    font-size: 18px;
    line-height: 1.7;
  }
  
  .features {
    gap: 20px;
  }
  
  .feature-item {
    padding: 8px 14px;
    font-size: 14px;
  }
  
  .steps {
    margin: 0 10px 16px 10px;
    padding: 24px 16px;
  }
  
  .actions {
    margin: 24px 0 20px;
    gap: 24px;
    padding: 0 10px;
  }
  
  .music-control-fixed {
    bottom: 15px;
    left: 15px;
  }
  
  .music-btn-fixed {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .title { 
    font-size: 36px; 
    letter-spacing: .3px;
  }
  
  .container { 
    padding: 32px 12px 24px; 
  }
  
  .features {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }
  
  .feature-item {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .music-control-fixed {
    bottom: 10px;
    left: 10px;
  }
  
  .music-btn-fixed {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .music-icon {
    width: 16px;
    height: 16px;
  }
}

/* Fullscreen canvases: particles and confetti */
#bgCanvas, #fxCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Particle layer behind */
#bgCanvas { z-index: -2; }

/* Decorative elements */
.decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(124,92,255,.1), rgba(42,212,198,.1));
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 15%;
  animation-delay: -2s;
  animation-duration: 15s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 5%;
  animation-delay: -4s;
  animation-duration: 10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 10%;
  animation-delay: -6s;
  animation-duration: 14s;
}

.shape-5 {
  width: 40px;
  height: 40px;
  top: 40%;
  right: 30%;
  animation-delay: -8s;
  animation-duration: 8s;
}

.shape-6 {
  width: 90px;
  height: 90px;
  bottom: 40%;
  left: 20%;
  animation-delay: -10s;
  animation-duration: 11s;
}

/* Grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(124,92,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-30px) rotate(270deg);
  }
}

/* Pill icons motion */
.pill-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.pill-icon {
  position: absolute;
  opacity: 0.2;
  filter: drop-shadow(0 0 12px rgba(20, 241, 149, 0.4));
  animation: pillFloat 14s ease-in-out infinite;
}

.pill-1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  animation-duration: 16s;
}

.pill-2 {
  top: 25%;
  right: 12%;
  animation-delay: -2s;
  animation-duration: 20s;
}

.pill-3 {
  top: 65%;
  left: 5%;
  animation-delay: -4s;
  animation-duration: 14s;
}

.pill-4 {
  bottom: 25%;
  right: 8%;
  animation-delay: -6s;
  animation-duration: 18s;
}

.pill-5 {
  top: 45%;
  right: 25%;
  animation-delay: -8s;
  animation-duration: 15s;
}

.pill-6 {
  top: 75%;
  right: 18%;
  animation-delay: -10s;
  animation-duration: 17s;
}

.pill-7 {
  top: 35%;
  left: 20%;
  animation-delay: -12s;
  animation-duration: 19s;
}

.pill-8 {
  bottom: 45%;
  left: 12%;
  animation-delay: -14s;
  animation-duration: 13s;
}

@keyframes pillFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.2;
  }
  25% {
    transform: translateY(-25px) rotate(15deg) scale(1.05);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-10px) rotate(-10deg) scale(0.95);
    opacity: 0.25;
  }
  75% {
    transform: translateY(-35px) rotate(20deg) scale(1.1);
    opacity: 0.35;
  }
}

/* 3D tilt (transform controlled by JS) */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes pulse {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}


