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

:root {
  --berry-red: #FF6B6B;
  --berry-dark: #FF4757;
  --berry-light: #FFB8B8;
  --cream: #FFF9F5;
  --cream-dark: #FFF0E8;
  --pink-soft: #FFE4E1;
  --text-dark: #2D1810;
  --text-muted: #6B4A3D;
}

body {
  font-family: 'Bricolage Grotesque', sans-serif;
  background: linear-gradient(135deg, var(--cream) 0%, var(--pink-soft) 50%, var(--cream-dark) 100%);
  min-height: 100vh;
  color: var(--text-dark);
  overflow-x: hidden;
}

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

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.confetti-particle {
  position: absolute;
  pointer-events: none;
}

/* Header */
.header {
  position: relative;
  padding: 3rem 1rem;
  text-align: center;
  overflow: hidden;
}

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

.header-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.strawberry-logo {
  font-size: 4rem;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.2s;
  user-select: none;
}

.strawberry-logo:hover {
  transform: scale(1.2);
}

.strawberry-logo.rainbow-mode {
  animation: bounce 2s ease-in-out infinite, rainbow 1s linear infinite;
}

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

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.logo-text {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--berry-red) 0%, var(--berry-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

.easter-egg-message {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FF6B6B 50%, #9B59B6 100%);
  border-radius: 100px;
  color: white;
  font-weight: 700;
  animation: pop-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

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

/* Demo Section */
.demo-section {
  margin-bottom: 4rem;
}

/* Tweet Composer */
.tweet-composer {
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(255, 107, 107, 0.15), 0 0 0 1px rgba(255, 107, 107, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tweet-composer:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(255, 107, 107, 0.2), 0 0 0 1px rgba(255, 107, 107, 0.15);
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tweet-avatar {
  width: 48px;
  height: 48px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.tweet-user {
  display: flex;
  flex-direction: column;
}

.tweet-name {
  font-weight: 700;
  color: var(--text-dark);
}

.tweet-handle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tweet-body {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.mention {
  color: var(--berry-red);
  font-weight: 600;
}

.tweet-prompt {
  color: var(--text-dark);
}

.tweet-input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--text-dark);
  width: 100%;
  padding: 0.5rem;
  border-bottom: 2px dashed var(--berry-light);
  background: transparent;
  transition: border-color 0.3s;
}

.tweet-input:focus {
  border-bottom-color: var(--berry-red);
}

.tweet-input::placeholder {
  color: #CCC;
}

.tweet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

.build-button {
  background: linear-gradient(135deg, var(--berry-red) 0%, var(--berry-dark) 100%);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.build-button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 71, 87, 0.5);
}

.build-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.build-button.hovering {
  transform: scale(1.05);
}

/* Loading Animation */
.loading-container {
  text-align: center;
  padding: 3rem;
  position: relative;
}

.berry-loader {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.loader-berry {
  font-size: 3rem;
  animation: berry-bounce 0.6s ease-in-out infinite;
}

.loader-berry.b1 { animation-delay: 0s; }
.loader-berry.b2 { animation-delay: 0.2s; }
.loader-berry.b3 { animation-delay: 0.4s; }

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

.loading-message {
  font-size: 1.25rem;
  color: var(--berry-dark);
  font-weight: 600;
  animation: fade-in-out 0.6s ease-in-out;
}

@keyframes fade-in-out {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  font-size: 1.5rem;
  animation: sparkle-float 2s ease-in-out infinite;
}

.sparkle.s1 { top: 20%; left: 15%; animation-delay: 0s; }
.sparkle.s2 { top: 30%; right: 15%; animation-delay: 0.3s; }
.sparkle.s3 { top: 60%; left: 10%; animation-delay: 0.6s; }
.sparkle.s4 { top: 70%; right: 10%; animation-delay: 0.9s; }
.sparkle.s5 { top: 40%; left: 25%; animation-delay: 1.2s; }
.sparkle.s6 { top: 50%; right: 25%; animation-delay: 1.5s; }

@keyframes sparkle-float {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* Completed App Card */
.complete-container {
  text-align: center;
}

.completed-app-card {
  max-width: 360px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(255, 107, 107, 0.2);
  animation: card-reveal 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

@keyframes card-reveal {
  0% { opacity: 0; transform: scale(0.8) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.card-success-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #2ED573 0%, #26DE81 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 15px rgba(46, 213, 115, 0.4);
}

.card-preview {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--pink-soft) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.preview-mockup {
  background: white;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mockup-header {
  height: 8px;
  background: var(--berry-light);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  width: 60%;
}

.mockup-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-element {
  height: 12px;
  background: var(--cream-dark);
  border-radius: 4px;
}

.mockup-element.e1 { width: 100%; }
.mockup-element.e2 { width: 80%; }
.mockup-element.e3 { width: 60%; background: var(--berry-light); }

.card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-url {
  background: var(--cream-dark);
  padding: 0.75rem;
  border-radius: 12px;
}

.url-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  color: var(--berry-dark);
}

.try-again-button {
  margin-top: 1.5rem;
  background: transparent;
  border: 2px solid var(--berry-red);
  color: var(--berry-red);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.try-again-button:hover {
  background: var(--berry-red);
  color: white;
}

/* Gallery */
.gallery-section {
  margin-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: card-fade-in 0.5s ease-out both;
  transform-origin: center;
}

@keyframes card-fade-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.gallery-card:hover,
.gallery-card.hovered {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.2);
}

.gallery-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.gallery-card:hover .gallery-emoji {
  transform: scale(1.2);
}

.gallery-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.gallery-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Stats */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 1rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--berry-red) 0%, var(--berry-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Space Mono', monospace;
}

.stat-number.infinity {
  font-size: 4rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 107, 0.1) 100%);
  padding: 3rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-link {
  display: inline-block;
  font-size: 1.25rem;
  color: var(--berry-dark);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--berry-red);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
  background: var(--berry-red);
  color: white;
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-text {
    font-size: 2.5rem;
  }
  
  .strawberry-logo {
    font-size: 3rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .tweet-composer {
    padding: 1rem;
  }
  
  .tweet-body {
    font-size: 1rem;
  }
  
  .tweet-input {
    font-size: 1rem;
  }
  
  .build-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .stats-container {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-number.infinity {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}