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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(26, 26, 36, 0.8);
  --purple: #8b5cf6;
  --teal: #14b8a6;
  --pink: #ec4899;
  --text-primary: #f1f1f1;
  --text-secondary: #9ca3af;
  --border: rgba(139, 92, 246, 0.2);
}

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

.app-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0a2e 50%, var(--bg-primary) 100%);
  position: relative;
}

.app-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Landing Page */
.landing-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  position: relative;
  z-index: 1;
}

.hero-section {
  text-align: center;
  margin-bottom: 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-button {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 40px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.social-proof {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.social-proof strong {
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 500;
}

/* Assessment */
.assessment-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  position: relative;
  z-index: 1;
}

.progress-section {
  margin-bottom: 40px;
}

.step-indicator {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.progress-bar {
  height: 4px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 30px;
  backdrop-filter: blur(10px);
}

.question-card.fade-in {
  animation: fadeSlideIn 0.4s ease forwards;
}

.question-card.fade-out {
  animation: fadeSlideOut 0.3s ease forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.question-text {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}

.options-grid {
  display: grid;
  gap: 12px;
}

.option-button {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(26, 26, 36, 0.6);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  text-align: left;
}

.option-button:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--purple);
}

.option-button.selected {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.option-emoji {
  font-size: 1.5rem;
}

.option-label {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
}

.checkmark {
  color: var(--teal);
  font-weight: bold;
}

/* Results */
.results-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  position: relative;
  z-index: 1;
}

.easter-egg {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--pink);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 500;
}

.results-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.tools-section {
  margin-bottom: 40px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

.tool-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.tool-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.tool-tag {
  display: inline-block;
  background: rgba(20, 184, 166, 0.2);
  color: var(--teal);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.architecture-section {
  margin-bottom: 40px;
}

.architecture-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arch-node {
  text-align: center;
}

.arch-node span {
  display: inline-block;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(20, 184, 166, 0.3));
  border: 1px solid var(--purple);
  border-radius: 8px;
  padding: 12px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.arch-arrow {
  color: var(--purple);
  font-size: 1.2rem;
  margin: 4px 0;
}

.prompts-section {
  margin-bottom: 40px;
}

.prompts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.prompt-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.prompt-header:hover {
  background: rgba(139, 92, 246, 0.1);
}

.expand-icon {
  color: var(--purple);
  font-weight: bold;
  font-size: 1.2rem;
}

.prompt-content {
  padding: 0 20px 20px;
  animation: fadeIn 0.3s ease;
}

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

.prompt-content p {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.copy-button {
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-button:hover {
  background: #9f75f8;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-button, .secondary-button {
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  border: none;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.secondary-button {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.secondary-button:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.1);
}

/* Loading */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--bg-card);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.loading-subtext {
  color: var(--text-secondary);
  animation: pulse 1.5s ease infinite;
}

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

.confetti-particle {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Footer */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, var(--bg-primary));
  padding: 40px 20px 20px;
  text-align: center;
  z-index: 10;
}

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

.app-footer a {
  color: var(--purple);
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

.footer-tagline {
  font-size: 0.8rem !important;
  margin-top: 4px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .question-card {
    padding: 30px 20px;
  }
  
  .question-text {
    font-size: 1.25rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .primary-button, .secondary-button {
    width: 100%;
  }
}