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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #151515;
  --border-color: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #707070;
  --accent-primary: #0066ff;
  --accent-hover: #0052cc;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  /* Discord colors */
  --discord-blurple: #5865F2;
  --discord-green: #43b581;
  --discord-yellow: #faa61a;
  --discord-red: #f04747;
  --discord-gray: #747f8d;
  
  /* Spotify color */
  --spotify-green: #1DB954;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #00ccff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Sections */
.demo-section,
.frameworks-section,
.code-section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 700;
}

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

/* Demo Grid */
.demo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 968px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

.demo-card,
.features-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.demo-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 102, 255, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.connected {
  background: rgba(67, 181, 129, 0.1);
  color: var(--discord-green);
}

.status-badge.disconnected {
  background: rgba(240, 71, 71, 0.1);
  color: var(--discord-red);
}

.status-badge.connecting {
  background: rgba(250, 166, 26, 0.1);
  color: var(--discord-yellow);
}

/* Loading State */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

/* Activity Content */
.profile-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  min-width: 0;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
}

.status-dot.online { background: var(--discord-green); }
.status-dot.idle { background: var(--discord-yellow); }
.status-dot.dnd { background: var(--discord-red); }
.status-dot.offline { background: var(--discord-gray); }

.user-info h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.username {
  color: var(--text-secondary);
  font-size: 0.9rem;
  word-break: break-all;
}

@media (max-width: 480px) {
  .user-info h2 {
    font-size: 1.25rem;
  }
}

.status-text {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-text.online {
  background: rgba(67, 181, 129, 0.1);
  color: var(--discord-green);
}

.status-text.idle {
  background: rgba(250, 166, 26, 0.1);
  color: var(--discord-yellow);
}

.status-text.dnd {
  background: rgba(240, 71, 71, 0.1);
  color: var(--discord-red);
}

.status-text.offline {
  background: rgba(116, 127, 141, 0.1);
  color: var(--discord-gray);
}

/* Activities */
.activities-section h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.activity-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.activity-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(5px);
}

.activity-card.spotify {
  border-color: var(--spotify-green);
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.05) 0%, var(--bg-tertiary) 100%);
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.activity-type {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.service-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-card);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: auto;
}

.service-icon {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

.activity-content {
  display: flex;
  gap: 15px;
}

.activity-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
  min-width: 0;
}

.activity-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.activity-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.activity-state {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--spotify-green);
  transition: width 0.5s ease-out;
  border-radius: 2px;
  will-change: width;
}

/* No Activity */
.no-activity {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-tertiary);
}

/* Features List */
.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Framework Grid */
.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.framework-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.framework-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 102, 255, 0.1);
}

.framework-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.framework-icon svg {
  width: 100%;
  height: 100%;
}

.framework-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

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

/* Supported Activities Section */


.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.activity-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
}

.activity-category:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.2);
}

.activity-category.highlight-card {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(114, 137, 218, 0.1));
  border: 2px solid var(--primary-color);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  text-align: center;
}

.activity-category h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-align: center;
}

.activity-category p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  text-align: center;
}

.premid-tagline {
  font-weight: 600;
  color: var(--primary-color) !important;
  font-size: 1.05rem;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-list li {
  padding: 8px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease;
}

.activity-list li:last-child {
  border-bottom: none;
}

.activity-list li:hover {
  color: var(--text-primary);
}

.premid-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.premid-actions .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  justify-content: center;
}

.premid-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  margin-top: 40px;
}

.premid-info-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.premid-info-content > p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: rgba(88, 101, 242, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.benefit-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-item span:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.setup-note {
  background: rgba(67, 181, 129, 0.1);
  border-left: 4px solid #43b581;
  padding: 15px 20px;
  border-radius: 8px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.setup-note strong {
  color: var(--text-primary);
}

/* Code Section */
.code-section {
  padding: 80px 20px;
  background: var(--bg-primary);
}

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

/* Installation Steps */
.install-section {
  margin-bottom: 50px;
}

.install-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.install-subtitle {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.step-item:hover {
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.step-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.step-content a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Code Section */
.code-section {
  background: var(--bg-secondary);
}

.code-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 25px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.code-content {
  position: relative;
}

.code-panel {
  display: none;
  animation: fadeIn 0.3s ease;
  position: relative;
}

.code-panel.active {
  display: block;
}

/* Copy Button */
.copy-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  z-index: 10;
}

.copy-btn:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

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

.copy-btn.copied {
  background: rgba(67, 181, 129, 0.2);
  border-color: #43b581;
  color: #43b581;
}

.copy-btn svg {
  flex-shrink: 0;
}

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

pre {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  padding-top: 50px;
  overflow-x: auto;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

code {
  color: #e6e6e6;
}

/* Highlight.js overrides */
.hljs {
  background: transparent;
  padding: 0;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-link {
  color: #c678dd;
}

.hljs-function .hljs-keyword {
  color: #61afef;
}

.hljs-string,
.hljs-title,
.hljs-name,
.hljs-type,
.hljs-attribute,
.hljs-symbol,
.hljs-bullet,
.hljs-built_in,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
  color: #98c379;
}

.hljs-comment,
.hljs-quote,
.hljs-deletion,
.hljs-meta {
  color: #5c6370;
}

.hljs-attr,
.hljs-number {
  color: #d19a66;
}

.hljs-tag {
  color: #e06c75;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
}

.footer p {
  color: var(--text-secondary);
  margin: 5px 0;
}

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

.footer a:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
  }

  .activity-content {
    flex-direction: column;
  }

  .activity-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .profile-section {
    gap: 15px;
  }

  .avatar {
    width: 60px;
    height: 60px;
  }

  .demo-card,
  .features-card {
    padding: 20px;
  }
}

/* Error state */
.error-state {
  text-align: center;
  padding: 40px 20px;
}

.error-state h3 {
  color: var(--error);
  margin-bottom: 15px;
}

.error-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.retry-btn {
  padding: 10px 25px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
