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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #6bcfff; text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #222;
}

header h1 { font-size: 1.5rem; }
header h1 a { color: #ff6b6b; }

main {
  flex: 1;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #222;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

footer a { color: #888; margin: 0 0.5rem; }

/* Project Cards */
.projects {
  display: grid;
  gap: 1rem;
}

.project-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
}

.project-card.no-thumb {
  grid-template-columns: 1fr;
}

.project-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #333;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.project-info h3 {
  color: #ff6b6b;
  margin: 0;
}

.badges {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.badge {
  font-size: 1.2rem;
  cursor: help;
  display: inline-block;
  transition: transform 0.2s;
}

.badge:hover {
  transform: scale(1.3);
}

.project-info .description {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #666;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.project-links a {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  background: #252525;
  border-radius: 4px;
}

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.label {
  background: #2a2a2a;
  color: #888;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.label:hover {
  background: #333;
  color: #aaa;
}

/* Activity indicators */
.activity {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.activity-dot.hot { background: #4ade80; }
.activity-dot.active { background: #facc15; }
.activity-dot.maintained { background: #60a5fa; }
.activity-dot.dormant { background: #666; }

/* Submit Form */
.submit-section {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.submit-section h2 {
  color: #ff6b6b;
  margin-bottom: 1rem;
}

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

input, textarea {
  background: #0a0a0a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.75rem;
  color: #e0e0e0;
  font-size: 1rem;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #6bcfff;
}

button {
  background: #ff6b6b;
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

button:hover { background: #ff8585; }

.submit-button {
  display: inline-block;
  background: #ff6b6b;
  color: #0a0a0a;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  margin-top: 1rem;
  text-decoration: none;
}

.submit-button:hover {
  background: #ff8585;
  text-decoration: none;
}

.message {
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.message.success { background: #1a3a1a; border: 1px solid #2d5a2d; }
.message.error { background: #3a1a1a; border: 1px solid #5a2d2d; }

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
}

.filter-labels {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Legal pages */
.legal {
  max-width: 700px;
}

.legal h2 { color: #ff6b6b; margin-bottom: 1rem; }
.legal h3 { color: #ccc; margin: 1.5rem 0 0.5rem; }
.legal h4 { color: #aaa; margin: 1rem 0 0.5rem; }
.legal p, .legal li { color: #999; }
.legal ul { margin-left: 1.5rem; }
.legal .updated { color: #666; font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Enterprise Pricing Styles */
.pricing-toggle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.pricing-toggle:hover {
  opacity: 0.85;
  text-decoration: none !important;
}

.pricing-section {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding: 1.5rem;
  background: #0f0f0f;
  border: 1px solid #444;
  border-radius: 8px;
  animation: slideDown 0.3s ease-out;
}

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

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.pricing-disclaimer {
  color: #4ade80;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid #4ade80;
  border-radius: 6px;
  display: inline-block;
  margin-top: 0.5rem;
}

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

.pricing-tier {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-tier:hover {
  transform: translateY(-4px);
  border-color: #555;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pricing-tier.highlighted {
  border: 2px solid #ff6b6b;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  transform: scale(1.02);
}

.pricing-tier.highlighted:hover {
  transform: scale(1.04) translateY(-4px);
}

.most-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8585 100%);
  color: #0a0a0a;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.pricing-tier h4 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.tier-price {
  color: #6bcfff;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.tier-description {
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1rem;
  min-height: 2.5em;
}

.line-items {
  list-style: none;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #0f0f0f;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
}

.line-items li {
  color: #aaa;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #222;
}

.line-items li:last-child {
  border-bottom: none;
}

.tier-total {
  color: #ff6b6b;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 4px;
  text-align: center;
}

.tier-features {
  list-style: none;
  margin-bottom: 1rem;
}

.tier-features li {
  color: #ccc;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.tier-features li::before {
  content: "✊";
  position: absolute;
  left: 0;
  opacity: 0.6;
}

.tier-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #888;
}

.tier-meta div {
  margin-bottom: 0.25rem;
}

.tier-meta strong {
  color: #ff6b6b;
}

.pricing-footer {
  text-align: center;
}

.demo-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.demo-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
}

.pricing-loading {
  color: #888;
  text-align: center;
  padding: 2rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
  header, main, footer { padding: 1rem; }
  .project-card { grid-template-columns: 1fr; }
  .project-thumb { display: none; }

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

  .pricing-tier.highlighted {
    transform: none;
  }

  .pricing-tier.highlighted:hover {
    transform: translateY(-4px);
  }
}
