/* SiteRoast - Dark theme with fire vibes */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #ff6b35;
  --accent-hover: #ff8c5a;
  --accent-glow: rgba(255, 107, 53, 0.3);
  --fire-red: #e63946;
  --fire-orange: #ff6b35;
  --fire-yellow: #ffd166;
  --border: #2a2a2a;
  --border-hover: #3a3a3a;
  --gradient-fire: linear-gradient(135deg, #e63946, #ff6b35, #ffd166);
  --radius: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge span { color: var(--accent); }

h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-gradient {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* Roast Input */
.roast-form {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.input-wrapper {
  display: flex;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.roast-form input {
  flex: 1;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  outline: none;
}

.roast-form input::placeholder { color: var(--text-muted); }

.roast-btn {
  padding: 18px 32px;
  background: var(--gradient-fire);
  color: white;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}

.roast-btn:hover { opacity: 0.9; }
.roast-btn:active { transform: scale(0.98); }
.roast-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Value Props */
.value-props {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.prop-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.prop-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.prop-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.prop-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
}

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

/* Results Section (shown after roast) */
.results-section {
  display: none;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.results-section.visible { display: block; }

.results-header {
  text-align: center;
  margin-bottom: 48px;
}

.score-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  background: var(--bg-card);
  border: 4px solid var(--border);
}

.score-value {
  font-size: 3.5rem;
  font-weight: 800;
}

.score-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.score-bad { border-color: var(--fire-red); }
.score-bad .score-value { color: var(--fire-red); }
.score-ok { border-color: var(--fire-orange); }
.score-ok .score-value { color: var(--fire-orange); }
.score-good { border-color: var(--fire-yellow); }
.score-good .score-value { color: var(--fire-yellow); }
.score-great { border-color: #06d6a0; }
.score-great .score-value { color: #06d6a0; }

.roasted-url {
  font-size: 1.1rem;
  color: var(--text-secondary);
  word-break: break-all;
}

/* Category bars */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.category-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-name {
  font-weight: 600;
  text-transform: capitalize;
}

.category-score {
  font-weight: 700;
  font-size: 1.2rem;
}

.category-bar {
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
}

.category-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
  background: var(--gradient-fire);
}

/* Issues list */
.issues-list { list-style: none; }

.issue-item {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.issue-severity {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.severity-critical { background: rgba(230, 57, 70, 0.15); color: var(--fire-red); }
.severity-high { background: rgba(255, 107, 53, 0.15); color: var(--fire-orange); }
.severity-medium { background: rgba(255, 209, 102, 0.15); color: var(--fire-yellow); }
.severity-low { background: rgba(6, 214, 160, 0.15); color: #06d6a0; }

.issue-content { flex: 1; }
.issue-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.issue-message { font-size: 0.95rem; line-height: 1.5; }

/* Share bar */
.share-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.share-btn {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

.share-btn:hover { border-color: var(--accent); }

.share-btn.primary {
  background: var(--gradient-fire);
  border: none;
  color: white;
}

/* Pricing */
.pricing {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.pricing h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.price-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.price-card:hover {
  transform: translateY(-2px);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 14px;
  background: var(--gradient-fire);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-amount span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
}

.price-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.price-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
  border: none;
}

.price-btn:hover { opacity: 0.9; }

.price-btn.outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
}

.price-btn.filled {
  background: var(--gradient-fire);
  color: white;
}

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

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-secondary);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .props-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .input-wrapper { flex-direction: column; }
  .roast-btn { padding: 16px; }
  .nav-links { gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}
