/* 🚀 BusyWorth — Premium Design System
   Modern, clean, conversion-focused. Zero frameworks.
   Font: Inter (loaded via Google Fonts in HTML head)
*/

/* --- Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-focus: #6366f1;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px -6px rgba(0,0,0,0.08);

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--surface-subtle);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--primary); color: white; }

/* --- Utility --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-gradient { background: linear-gradient(135deg, var(--primary), #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* --- Modern Nav --- */
nav {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { text-decoration: none; color: var(--gray-900); }
.logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); text-decoration: none; }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--gray-950) 0%, #1e1b4b 40%, #172554 70%, var(--gray-950) 100%);
  color: white;
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}
.hero .container { position: relative; z-index: 1; }
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #818cf8, #c084fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-weight: 400;
}
.hero .cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero .stat-item { text-align: center; }
.hero .stat-value { font-size: 1.5rem; font-weight: 700; color: white; }
.hero .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  color: white;
}
.btn-accent { background: linear-gradient(135deg, var(--accent), #d97706); color: white; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35); }
.btn-accent:hover { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45); color: white; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-outline:hover { background: var(--primary); color: white; box-shadow: var(--shadow-glow); }
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); color: white; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* --- Section Styles --- */
.section { padding: var(--space-3xl) 0; }
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: all var(--transition-slow);
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* --- Review Card --- */
.review-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  opacity: 0;
  transition: opacity var(--transition);
}
.review-card:hover::before { opacity: 1; }
.review-card .card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.review-card .logo-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.review-card .card-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.review-card .rating {
  display: flex; gap: 3px; align-items: center;
}
.review-card .rating .star { color: #f59e0b; font-size: 1rem; }
.review-card .rating .star.empty { color: var(--gray-200); }
.review-card .rating .score { font-size: 0.85rem; color: var(--gray-500); margin-left: 6px; font-weight: 500; }
.review-card p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 16px; flex-grow: 1; line-height: 1.6; }
.review-card .meta {
  display: flex; gap: 20px; font-size: 0.85rem; color: var(--gray-500);
  margin-bottom: 20px; flex-wrap: wrap;
}
.review-card .meta span {
  display: flex; align-items: center; gap: 6px;
}
.review-card .meta .tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

/* --- How We Review Section --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.process-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-slow);
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.process-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.process-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.process-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }

/* --- Comparison Cards --- */
.comp-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.comp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.comp-card .comp-icon { font-size: 2.5rem; margin-bottom: 12px; }
.comp-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.comp-card p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }

/* --- Disclosure Banner --- */
.disclosure {
  background: var(--accent-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.disclosure strong { white-space: nowrap; flex-shrink: 0; }

/* --- Pro/Con Grid --- */
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 28px 0; }
.procon-box {
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}
.procon-box.pros { background: linear-gradient(135deg, #f0fdf4, var(--surface)); border-color: #bbf7d0; }
.procon-box.cons { background: linear-gradient(135deg, #fef2f2, var(--surface)); border-color: #fecaca; }
.procon-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.procon ul { list-style: none; }
.procon li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.procon li:last-child { border-bottom: none; }
.procon .pros li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.procon .cons li::before { content: '✗'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* --- Comparison Table --- */
.compare-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 24px 0;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.compare-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--gray-50); }
.compare-table .winner { color: var(--green); font-weight: 600; }
.compare-table .winner::before { content: '✓ '; }

/* --- Pricing Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition-slow);
  background: var(--surface);
  position: relative;
}
.pricing-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-card.featured .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  padding: 5px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.pricing-card .price { font-size: 2.2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 2px; letter-spacing: -1px; }
.pricing-card .price .currency { font-size: 1rem; font-weight: 600; color: var(--gray-500); }
.pricing-card .frequency { color: var(--gray-400); font-size: 0.85rem; margin-bottom: 20px; }
.pricing-card ul { list-style: none; margin-bottom: 24px; text-align: left; }
.pricing-card li { padding: 8px 0; font-size: 0.9rem; color: var(--gray-600); display: flex; align-items: center; gap: 8px; }
.pricing-card li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* --- Article Content --- */
article { max-width: 720px; margin: 0 auto; padding: 0 20px; }
article .article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
article .article-header .meta {
  display: flex;
  gap: 16px;
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
article .article-header .meta .pill {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 12px;
  border-radius: var(--radius-full);
  font-weight: 500;
}
article h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; line-height: 1.2; }
article .subtitle { color: var(--gray-500); font-size: 1.05rem; margin-bottom: 0; line-height: 1.6; }
article h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px; letter-spacing: -0.3px; color: var(--gray-900); }
article h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 12px; color: var(--gray-900); }
article p { margin-bottom: 20px; color: var(--gray-700); line-height: 1.75; font-size: 1rem; }
article ul, article ol { margin-bottom: 20px; padding-left: 24px; }
article li { margin-bottom: 8px; color: var(--gray-700); line-height: 1.6; }
article .highlight-box {
  background: linear-gradient(135deg, var(--primary-light), var(--surface));
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}
article .highlight-box p:last-child { margin-bottom: 0; }

/* --- TOC (Table of Contents) --- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 28px 0;
}
.toc h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toc li { font-size: 0.9rem; }
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.toc a:hover { color: var(--primary); }

/* --- Affiliate CTA --- */
.affiliate-cta {
  background: linear-gradient(135deg, var(--primary-light), #f0f4ff, var(--surface));
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 36px 0;
}
.affiliate-cta h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.affiliate-cta p { color: var(--gray-600); margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.affiliate-cta .btn { font-size: 1rem; padding: 14px 36px; }

/* --- Footer --- */
footer {
  background: var(--gray-950);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
  margin-top: 80px;
}
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
footer h4 { color: white; font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
footer a { color: rgba(255,255,255,0.6); display: block; margin-bottom: 10px; font-size: 0.9rem; transition: color var(--transition); }
footer a:hover { color: white; }
footer .footer-brand { font-size: 1.2rem; font-weight: 800; color: white; margin-bottom: 12px; }
footer .footer-brand span { color: #818cf8; }
footer .copyright { grid-column: 1 / -1; text-align: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; margin-top: 28px; }
footer .footer-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.5s ease-out; }
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }

/* --- Landing Page Specific --- */
.hero-mini {
  background: linear-gradient(135deg, var(--gray-950) 0%, #1e1b4b 50%, #172554 100%);
  color: white;
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-mini h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -1px; }
.hero-mini .breadcrumb { color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-bottom: 12px; }
.hero-mini .breadcrumb a { color: rgba(255,255,255,0.6); }
.hero-mini .breadcrumb a:hover { color: white; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 48px 0 40px; }
  .hero .stats { gap: 24px; margin-top: 32px; }
  .process-grid { grid-template-columns: 1fr; }
  .procon { grid-template-columns: 1fr; }
  footer .container { grid-template-columns: 1fr; gap: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 10px; font-size: 0.8rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .section { padding: 40px 0; }
  .hero .cta-group { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .nav-links a { font-size: 0.75rem; padding: 4px 8px; }
  .logo { font-size: 1.1rem; }
}