/* ChurnSleuth — Global Styles
   Primary: #6366F1 (indigo)
   Dark theme background: #0F1117
*/

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

:root {
  --primary:       #6366F1;
  --primary-dark:  #4F46E5;
  --primary-light: #818CF8;
  --bg:            #0F1117;
  --surface:       #1A1D2E;
  --surface-alt:   #1E2235;
  --border:        #2D3148;
  --text:          #E2E8F0;
  --muted:         #64748B;
  --subtle:        #94A3B8;

  /* Category colours */
  --cat-missing:   #6366F1;
  --cat-expensive: #EF4444;
  --cat-bug:       #F97316;
  --cat-competitor:#EAB308;
  --cat-other:     #6B7280;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

.text-primary { color: var(--primary); }
.text-muted   { color: var(--muted); }
.text-subtle  { color: var(--subtle); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

/* ── Badge ─────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.badge-missing    { background: var(--cat-missing); }
.badge-expensive  { background: var(--cat-expensive); }
.badge-bug        { background: var(--cat-bug); }
.badge-competitor { background: var(--cat-competitor); }
.badge-other      { background: var(--cat-other); }
.badge-pending    { background: #374151; color: #9CA3AF; }

/* ── Nav ───────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,17,23,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--subtle);
  font-size: .9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(99,102,241,.15);
  color: var(--primary-light);
  border: 1px solid rgba(99,102,241,.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #E2E8F0 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--subtle);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Feature grid ──────────────────────────────────────────────── */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--primary); }

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

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--subtle);
  font-size: .9rem;
}

/* ── Pricing ───────────────────────────────────────────────────── */
.pricing {
  padding: 80px 0;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, #1A1D2E 0%, #1c1e34 100%);
}

.pricing-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.pricing-features {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}
.pricing-features li {
  padding: 6px 0;
  font-size: .9rem;
  color: var(--subtle);
}
.pricing-features li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
}

/* ── Section headings ──────────────────────────────────────────── */
.section-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--subtle);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

/* ── Form elements ─────────────────────────────────────────────── */
input, textarea, select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  transition: border-color .15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 60px 0 48px; }
  .features, .pricing { padding: 48px 0; }
  .nav-links { display: none; }
}
