/* ── WTF Is This Budget — Renegade Theme ─────────────────────────── */

:root {
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --border-subtle: rgba(71, 85, 105, 0.5);
  --accent-green: #22c55e;
  --accent-green-hover: #16a34a;
  --accent-red: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glass-blur: 12px;
  --glass-bg: rgba(15, 23, 42, 0.6);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.6));
  --gradient-accent: linear-gradient(135deg, #22c55e, #16a34a);
}

/* ── Base ────────────────────────────────────────────────────────── */
.bg-renegade {
  background: var(--gradient-hero);
  min-height: 100vh;
}

/* ── Glass Cards ─────────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--gradient-accent);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-green);
}

/* ── Form Inputs ─────────────────────────────────────────────────── */
.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

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

/* ── Section gradients ───────────────────────────────────────────── */
.section-gradient {
  background: linear-gradient(180deg, transparent 0%, rgba(34, 197, 94, 0.03) 50%, transparent 100%);
}

/* ── Feature cards ───────────────────────────────────────────────── */
.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-green);
}

/* ── Pricing cards ───────────────────────────────────────────────── */
.pricing-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--accent-green);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.15);
}

/* ── FAQ Accordion ───────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  color: var(--text-primary);
  font-weight: 600;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-chevron.rotated {
  transform: rotate(180deg);
}

/* ── Stat cards ──────────────────────────────────────────────────── */
.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-green);
}

/* ── Hero glow effect ────────────────────────────────────────────── */
.hero-glow {
  position: relative;
}

.hero-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08), transparent 70%);
  pointer-events: none;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .glass-card {
    border-radius: 0.75rem;
  }

  .hero-glow::before {
    width: 300px;
    height: 300px;
  }
}

/* ── Nav link active state ───────────────────────────────────────── */
.nav-link.active {
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.1);
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
