/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6c63ff;
  --primary-dark: #554fd8;
  --secondary: #ff6584;
  --accent: #43e97b;
  --dark: #0f0f1a;
  --dark2: #1a1a2e;
  --dark3: #16213e;
  --card-bg: #1e1e35;
  --card-border: rgba(108,99,255,0.25);
  --text: #e8e8f0;
  --text-muted: #9090b0;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #6c63ff 0%, #ff6584 100%);
  --gradient2: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --shadow: 0 8px 32px rgba(108,99,255,0.2);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

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

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,15,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108,99,255,0.15);
  padding: 16px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
}

.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(108,99,255,0.15);
}

.nav-cta {
  background: var(--gradient);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.9rem;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== SEARCH ===== */
.search-wrap {
  max-width: 600px;
  margin: 0 auto 20px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 18px 60px 18px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input:focus { border-color: var(--primary); }
.search-wrap input::placeholder { color: var(--text-muted); }

.search-wrap .search-btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: var(--gradient);
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.search-wrap .search-btn:hover { opacity: 0.85; }

/* ===== CATEGORY PILLS ===== */
.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}

.pill {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  transition: all 0.2s;
}

.pill:hover, .pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; }
.section-label {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  color: var(--primary);
  border: 1px solid rgba(108,99,255,0.3);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== TOOL CARDS GRID ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-card:hover {
  border-color: rgba(108,99,255,0.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tool-card:hover::before { opacity: 1; }

.tool-card.featured {
  border-color: rgba(108,99,255,0.5);
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(255,101,132,0.05));
}

.tool-card.featured::before { opacity: 1; }

.featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gradient);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.tool-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.tool-meta h3 { font-size: 1.1rem; margin-bottom: 4px; }

.tool-category-tag {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tool-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-price {
  display: flex;
  flex-direction: column;
}

.price-free { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.price-paid { color: var(--text-muted); font-size: 0.8rem; }
.price-from { color: var(--text-muted); font-size: 0.75rem; }

.tool-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #ffd700;
}

.tool-rating span { color: var(--text-muted); font-size: 0.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(108,99,255,0.4);
}

.btn-outline:hover {
  background: rgba(108,99,255,0.1);
}

/* ===== COMPARISON TABLE ===== */
.comparison-section { background: var(--dark2); }

.compare-table-wrap { overflow-x: auto; border-radius: var(--radius); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th {
  background: rgba(108,99,255,0.15);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--card-border);
}

.compare-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  vertical-align: middle;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(108,99,255,0.05); }

.compare-table .tool-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.compare-table .tool-mini-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.check { color: var(--accent); font-size: 1.1rem; }
.cross { color: var(--secondary); font-size: 1.1rem; }
.partial { color: #ffd700; font-size: 1rem; }

.best-badge {
  background: var(--gradient2);
  color: #0f0f1a;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== AD UNITS ===== */
/* Ad units — managed entirely by Google Auto Ads.
   No manual ins elements; Auto Ads injects its own. */
.ad-unit { display: none; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: var(--dark2);
}

.newsletter-box {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(255,101,132,0.1));
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-box h2 { margin-bottom: 12px; }
.newsletter-box p { color: var(--text-muted); margin-bottom: 32px; }

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

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form input::placeholder { color: var(--text-muted); }

/* ===== TOP PICKS ===== */
.top-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.pick-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.pick-card:hover {
  border-color: rgba(108,99,255,0.5);
  transform: translateX(4px);
}

.pick-rank {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 32px;
}

.pick-info h4 { font-size: 0.95rem; margin-bottom: 3px; }
.pick-info p { font-size: 0.78rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 12px 0 20px;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--primary); }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}
.social-link:hover { background: rgba(108,99,255,0.2); }

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.step-number {
  width: 56px; height: 56px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step-card h3 { margin-bottom: 8px; font-size: 1rem; }
.step-card p { color: var(--text-muted); font-size: 0.88rem; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}

.scroll-top.visible { opacity: 1; transform: translateY(0); }

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark2);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(108,99,255,0.15);
    gap: 4px;
  }

  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 16px; }
  .nav-cta { text-align: center; }

  .navbar { position: relative; }

  .hero { padding: 60px 0 48px; }

  .hero-stats { gap: 28px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .newsletter-form { flex-direction: column; }

  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.5rem; }
  .newsletter-box { padding: 40px 20px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.3s ease both; }

/* ===== TOOLTIP ===== */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark3);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid var(--card-border);
}

/* ===== AFFILIATE DISCLOSURE ===== */
.disclosure-bar {
  background: rgba(108,99,255,0.1);
  border-bottom: 1px solid rgba(108,99,255,0.15);
  padding: 8px 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.disclosure-bar a { color: var(--primary); }

