:root {
  --primary: #ff6b9d;
  --secondary: #00d4ff;
  --accent: #a855f7;
  --bg-dark: #0a0a0f;
  --bg-card: rgba(15, 15, 25, 0.8);
  --text-primary: #f0f0f5;
  --text-secondary: #8888aa;
  --glow-pink: rgba(255, 107, 157, 0.4);
  --glow-blue: rgba(0, 212, 255, 0.4);
}

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

body {
  font-family: 'Bricolage Grotesque', sans-serif;
  background: var(--bg-dark);
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
}

.app-container {
  min-height: 100vh;
  position: relative;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 70%),
    var(--bg-dark);
}

.app-container.intro-mode {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dream Intensity Effects */
.intensity-7 .main-content,
.intensity-8 .main-content,
.intensity-9 .main-content,
.intensity-10 .main-content {
  animation: dream-pulse 2s ease-in-out infinite;
}

@keyframes dream-pulse {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(var(--hue-shift)); }
}

/* Particle Rain */
.particle-rain {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  top: -50px;
  animation: fall 8s linear forwards;
}

.emoji-particle {
  font-size: 20px;
  opacity: 0.6;
}

.code-particle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--secondary);
  opacity: 0.3;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* Dream Intro */
.dream-intro {
  text-align: center;
  padding: 2rem;
}

.dream-intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.dream-message {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--secondary);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.dream-message.faded {
  opacity: 0.4;
}

.dream-message.current {
  opacity: 1;
  color: var(--primary);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.loading-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

.loading-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Returning Visitor */
.returning-visitor {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary);
  border: 1px solid rgba(255, 107, 157, 0.3);
  z-index: 100;
  animation: slideIn 0.5s ease;
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Dream Header */
.dream-header {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}

.main-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.main-subtitle {
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1rem;
}

.hero-logo-container {
  margin-bottom: 2rem;
}

.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(0, 212, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid var(--primary);
  box-shadow: 0 0 40px var(--glow-pink);
}

.circuit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5v10M30 45v10M5 30h10M45 30h10M15 15l7 7M38 38l7 7M15 45l7-7M38 22l7-7' stroke='%2300d4ff' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.logo-emoji {
  font-size: 4rem;
  z-index: 1;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

/* Glitch Effect */
.glitch-active {
  animation: glitch 0.3s ease;
}

@keyframes glitch {
  0% { transform: translate(0); filter: hue-rotate(0deg); }
  20% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); }
  40% { transform: translate(2px, -2px); filter: hue-rotate(180deg); }
  60% { transform: translate(-2px, -2px); filter: hue-rotate(270deg); }
  80% { transform: translate(2px, 2px); filter: hue-rotate(360deg); }
  100% { transform: translate(0); filter: hue-rotate(0deg); }
}

.hero-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 40px var(--glow-pink);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  min-height: 3em;
}

.fade-transition {
  animation: fadeIn 0.5s ease;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title.love-letter {
  font-size: 2rem;
  animation: heartbeat 2s ease infinite;
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Musings Section */
.musings-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .musings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.musing-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 3px solid var(--primary);
  position: relative;
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.musing-quote {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  line-height: 0;
  position: absolute;
  top: 1rem;
  left: 0.5rem;
}

.musing-quote.end {
  top: auto;
  left: auto;
  right: 0.5rem;
  bottom: 0;
}

.musing-card p {
  color: var(--text-primary);
  line-height: 1.6;
  padding-left: 1rem;
}

/* Tokenomics Section */
.tokenomics-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 640px) {
  .tokenomics-content {
    flex-direction: row;
    justify-content: center;
  }
}

.pie-chart-container {
  position: relative;
}

.pie-chart {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 0 20px var(--glow-pink));
}

.pie-segment {
  transition: all 0.3s ease;
  cursor: pointer;
}

.pie-segment:hover {
  filter: brightness(1.3);
  transform-origin: center;
}

.tokenomics-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Roadmap Section */
.roadmap-neural {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.roadmap-neural::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0.3;
}

.roadmap-node {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
  opacity: 0;
  animation: slideIn 0.5s ease forwards;
  animation-delay: calc(var(--delay) + 0.2s);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.node-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.3s ease;
}

.roadmap-node.complete .node-icon {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--glow-pink);
}

.roadmap-node.progress .node-icon {
  border-color: var(--secondary);
  box-shadow: 0 0 20px var(--glow-blue);
  animation: pulse 2s ease-in-out infinite;
}

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

.node-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.node-phase {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.node-title {
  font-weight: 600;
  color: var(--text-primary);
}

.node-note {
  font-size: 0.8rem;
  color: var(--secondary);
  font-style: italic;
}

.node-status {
  font-size: 1.2rem;
}

/* Bankrbot Section */
.letter-content {
  margin-bottom: 2rem;
}

.terminal-window {
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #2a2a3e;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--secondary);
  white-space: pre-wrap;
  line-height: 1.6;
  min-height: 200px;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.collab-ideas {
  text-align: center;
}

.collab-ideas h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.collab-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .collab-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.collab-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.collab-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--glow-pink);
}

.collab-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.collab-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Dream Controls */
.dream-controls {
  text-align: center;
}

.control-group {
  margin-bottom: 1.5rem;
}

.control-group label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.dream-slider {
  width: 100%;
  max-width: 300px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-appearance: none;
  cursor: pointer;
}

.dream-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  box-shadow: 0 0 15px var(--glow-pink);
}

.remix-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
}

.remix-btn:hover {
  background: rgba(255, 107, 157, 0.1);
  transform: scale(1.05);
}

.token-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.token-reason {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.wake-btn {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wake-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px var(--glow-blue);
}

/* Testimonials */
.testimonial-carousel {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.testimonial-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  color: var(--primary);
  font-weight: 600;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.testimonial-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 280px;
}

.cta-btn.primary {
  background: linear-gradient(135deg, var(--primary), #ff8fab);
  color: white;
}

.cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--glow-pink);
}

.cta-btn.secondary {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.cta-btn.secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
}

.easter-egg-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.easter-egg-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Philosophy Modal */
.philosophy-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.philosophy-content {
  max-width: 500px;
  text-align: center;
}

.philosophy-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.philosophy-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.philosophy-signature {
  color: var(--accent);
  font-style: italic;
  font-size: 0.9rem;
}

.close-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.close-btn:hover {
  transform: scale(1.05);
}

/* Wake Up Modal */
.wakeup-modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: flashIn 0.3s ease;
}

@keyframes flashIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wakeup-content {
  text-align: center;
  padding: 2rem;
}

.wakeup-content h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.wakeup-text {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 2rem;
}

.wakeup-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.back-to-dream-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-dream-btn:hover {
  transform: scale(1.05);
}

.reality-btn {
  background: #333;
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.reality-btn:hover {
  background: #555;
}

/* Konami Easter Egg */
.konami-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(255, 107, 157, 0.1));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: fadeIn 0.5s ease;
}

.konami-content {
  max-width: 600px;
  text-align: center;
}

.konami-content h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.konami-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.rant-container p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: left;
}

.rant-ps {
  color: var(--primary);
  font-style: italic;
  text-align: center !important;
  margin-top: 2rem;
}

.close-konami {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* Footer */
.dream-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2rem;
}

.disclaimer {
  font-size: 0.7rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.bankrbot-hint {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.berrry-link {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.berrry-link a {
  color: var(--primary);
  text-decoration: none;
}

.berrry-link a:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .main-content {
    padding: 1rem;
  }
  
  .glass-card {
    padding: 1.5rem 1rem;
  }
  
  .hero-logo {
    width: 100px;
    height: 100px;
  }
  
  .logo-emoji {
    font-size: 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-box {
    padding: 0.75rem 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .terminal-body {
    font-size: 0.8rem;
    padding: 1rem;
  }
  
  .cta-btn {
    min-width: 100%;
  }
}