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

:root {
  --purple: #6B46C1;
  --red: #DC2626;
  --blue: #3B82F6;
  --orange: #F59E0B;
  --cream: #FFFBF5;
  --gray: #64748B;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  overflow-x: hidden;
}

.app-container {
  position: relative;
  min-height: 100vh;
}

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.berrry-mascot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 80px;
  cursor: pointer;
  animation: bounce 1s infinite;
  z-index: 1000;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.app-header {
  background: linear-gradient(135deg, var(--purple) 0%, #8B5CF6 50%, var(--blue) 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  animation: float 20s linear infinite;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

.header-content {
  position: relative;
  z-index: 1;
}

.berrry-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.main-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: titleFloat 3s ease-in-out infinite;
}

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

.main-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.secret-badge {
  margin-top: 1rem;
  background: rgba(255, 215, 0, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  display: inline-block;
  animation: pulse 1s infinite;
}

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

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.stats-section {
  margin-bottom: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 30px rgba(107, 70, 193, 0.2);
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray);
  font-size: 1rem;
  font-weight: 500;
}

.features-section {
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before,
.feature-card.active::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(107, 70, 193, 0.2);
}

.feature-card.active {
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(59, 130, 246, 0.05));
}

.feature-card.favorite {
  border: 2px solid var(--orange);
}

.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.feature-emoji {
  font-size: 3rem;
}

.favorite-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.favorite-btn:hover {
  transform: scale(1.3);
}

.feature-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-stat {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-fun-fact {
  font-style: italic;
  color: var(--orange);
  font-size: 0.9rem;
}

.feature-expanded {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(107, 70, 193, 0.1);
}

.comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-side h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--gray);
}

.comparison-bar {
  height: 24px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  border-radius: 12px;
  transition: width 0.5s ease;
}

.comparison-side.old .comparison-bar {
  background: linear-gradient(90deg, #CBD5E1, #94A3B8);
}

.interactive-section {
  margin-bottom: 4rem;
}

.demo-container {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.demo-prompt h3 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1rem;
}

.demo-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

.demo-input:focus {
  outline: none;
  border-color: var(--purple);
}

.demo-responses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.response-box {
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #E2E8F0;
}

.response-box h4 {
  margin-bottom: 1rem;
  color: var(--gray);
}

.new-response {
  border-color: var(--purple);
  background: rgba(107, 70, 193, 0.05);
}

.typing-indicator {
  color: var(--gray);
  font-style: italic;
  animation: typing 1.5s infinite;
}

@keyframes typing {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.quiz-section {
  margin-bottom: 4rem;
}

.start-quiz-btn {
  display: block;
  margin: 2rem auto;
  padding: 1rem 3rem;
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.start-quiz-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.3);
}

.quiz-card {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 2rem auto;
}

.quiz-title {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--purple);
}

.quiz-question {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-answer {
  padding: 1rem 2rem;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-answer:hover {
  background: rgba(107, 70, 193, 0.1);
  border-color: var(--purple);
  transform: translateX(8px);
}

.quiz-score {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple);
}

.timeline-section {
  margin-bottom: 4rem;
}

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  z-index: 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  background: white;
  border: 4px solid var(--purple);
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.5);
}

.timeline-label {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-footer {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

.footer-content a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: white;
}

.disclaimer {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-top: 1rem;
}

.random-click-btn {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: rgba(220, 38, 38, 0.2);
  border: 2px solid var(--red);
  border-radius: 50px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.random-click-btn:hover {
  background: var(--red);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .demo-responses {
    grid-template-columns: 1fr;
  }

  .timeline {
    flex-direction: column;
    gap: 2rem;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: auto;
  }
}