@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --purple: #7C42E3;
  --purple-dark: #6030C0;
  --purple-light: #9B6EF0;
  --purple-ghost: #F3EEFF;
  --black: #0A0A0F;
  --gray-900: #111118;
  --gray-800: #1C1C27;
  --gray-600: #3A3A50;
  --gray-400: #7A7A95;
  --gray-200: #E8E8F0;
  --gray-100: #F5F5FA;
  --white: #FFFFFF;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(124,66,227,0.12);
  --shadow-lg: 0 12px 48px rgba(124,66,227,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--purple);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 8px;
}

.logo-icon span {
  display: block;
  background: white;
  border-radius: 2px;
  width: 4px;
}
.logo-icon span:nth-child(1) { height: 10px; opacity: 0.5; }
.logo-icon span:nth-child(2) { height: 16px; }
.logo-icon span:nth-child(3) { height: 13px; opacity: 0.75; }

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
}
.logo-text span { color: var(--purple); }

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

nav a {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
nav a:hover { color: var(--purple); background: var(--purple-ghost); }
nav a.active { color: var(--purple); background: var(--purple-ghost); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--purple);
  color: white;
}
.btn-primary:hover {
  background: var(--purple-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}
.btn-ghost:hover {
  background: var(--purple-ghost);
  color: var(--purple);
}

/* HERO */
.hero {
  padding: 80px 2rem 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-ghost);
  color: var(--purple);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--black);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--purple);
}

.hero p {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: 380px;
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  min-width: 200px;
}

.hero-card.card-1 { top: 0; right: 0; width: 240px; }
.hero-card.card-2 { top: 100px; left: 0; width: 220px; }
.hero-card.card-3 { bottom: 20px; right: 30px; width: 200px; }

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}
.card-type { font-size: 12px; color: var(--gray-400); }

.card-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.score-bar {
  height: 5px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.score-fill {
  height: 100%;
  background: var(--purple);
  border-radius: 10px;
  transition: width 1s ease;
}

.card-badge {
  display: inline-block;
  background: var(--purple-ghost);
  color: var(--purple);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

/* STATS BAR */
.stats-bar {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 2rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--gray-400); margin-top: 4px; }

/* SECTION */
.section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--black);
  line-height: 1.15;
}

/* CATEGORIES GRID */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  border-color: var(--purple);
  background: var(--purple-ghost);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: var(--purple);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1rem;
}

.category-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.category-count {
  font-size: 13px;
  color: var(--gray-400);
}

/* ARTICLES GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  background: white;
  text-decoration: none;
  display: block;
}

.article-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--purple-ghost), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body { padding: 1.25rem; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.article-tag {
  background: var(--purple-ghost);
  color: var(--purple);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-date { font-size: 12px; color: var(--gray-400); }

.article-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.article-excerpt {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* COMPARISON TABLE */
.comparison-section {
  background: var(--gray-100);
  padding: 80px 2rem;
}

.comparison-inner { max-width: 1200px; margin: 0 auto; }

.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comp-table th {
  background: var(--black);
  color: white;
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.comp-table th:first-child { border-radius: 0; }
.comp-table th.highlight { background: var(--purple); }

.comp-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--gray-600);
}

.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: var(--purple-ghost); }

.comp-table td:first-child {
  font-weight: 500;
  color: var(--black);
}

.check { color: #22C55E; font-size: 18px; }
.cross { color: #EF4444; font-size: 18px; }
.neutral { color: var(--gray-400); }

/* NEWSLETTER */
.newsletter {
  background: var(--purple);
  padding: 80px 2rem;
  text-align: center;
}

.newsletter-inner { max-width: 560px; margin: 0 auto; }

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.newsletter p { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 2rem; }

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--black);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--gray-800); }

/* FOOTER */
.site-footer {
  background: var(--black);
  color: white;
  padding: 60px 2rem 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text { color: white; }
.footer-brand p {
  color: var(--gray-400);
  font-size: 14px;
  margin-top: 1rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--purple-light); }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 13px; color: var(--gray-400); }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 13px; color: var(--gray-400); }
.footer-legal a:hover { color: var(--purple-light); }

/* AFFILIATE NOTICE */
.affiliate-notice {
  background: var(--purple-ghost);
  border-left: 3px solid var(--purple);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 2rem;
}
.affiliate-notice a { color: var(--purple); font-weight: 500; }

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .categories-grid, .articles-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-inner { justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
