.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --cat-music: #818cf8;
  --cat-writing: #818cf8;
  --cat-images: #818cf8;
  --cat-video: #818cf8;
  --cat-productivity: #818cf8;
  --cat-audio: #818cf8;
  --cat-coding: #818cf8;
  --cat-marketing: #818cf8;
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-elevated: rgba(255,255,255,0.85);
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f2;
  --border: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.12);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #7a7a80;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-subtle: rgba(99,102,241,0.1);
  --accent-glow: rgba(99,102,241,0.2);
  --green: #10b981;
  --green-muted: rgba(16,185,129,0.12);
  --red: #ef4444;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
}

[data-theme="light"] .search-container {
  background: white;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

[data-theme="light"] .search-container:focus-within {
  box-shadow: 0 0 0 4px var(--accent-subtle), 0 4px 24px rgba(0,0,0,0.08);
}

[data-theme="light"] footer,
[data-theme="light"] .footer-col p,
[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-bottom {
  color: #1d1d1f;
}
[data-theme="light"] .nav-links a {
  color: #1d1d1f;
}

[data-theme="dark"] {
  --bg: #060608;
  --bg-secondary: #0c0c10;
  --bg-card: #121216;
  --bg-card-hover: #1a1a20;
  --bg-elevated: rgba(18,18,22,0.9);
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --text: #f5f5f7;
  --text-secondary: #8e8e93;
  --text-muted: #636366;
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-subtle: rgba(129,140,248,0.1);
  --accent-glow: rgba(129,140,248,0.2);
  --green: #34d399;
  --green-muted: rgba(52,211,153,0.12);
  --red: #f87171;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
  transition: background var(--transition), color var(--transition);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../images/ai-bg.jpg') center/cover no-repeat;
  opacity: 0.3;
  filter: grayscale(1) brightness(0.3) contrast(1.2);
}

::selection { background: var(--accent); color: white; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5vw;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  background: rgba(6,6,8,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: var(--bg-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo svg {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.85rem;
}

.nav-links a {
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.lang-switch a {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lang-switch a.active {
  background: var(--accent);
  color: white;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  font-family: var(--font);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: var(--border-light);
}

@media (max-width: 768px) {
  nav { height: 64px; padding: 0 4vw; }
  .nav-inner { gap: 6px; }
  .logo svg { height: 26px; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 0.7rem; }
  .lang-switch a { padding: 3px 7px; font-size: 0.65rem; }
  .theme-toggle { width: 30px; height: 30px; font-size: 0.85rem; }
}

@media (max-width: 600px) {
  nav { height: 56px; padding: 0 3vw; }
  .nav-inner { gap: 4px; }
  .logo svg { height: 20px; }
  .nav-links { gap: 5px; }
  .nav-links a { font-size: 0.65rem; }
  .lang-switch a { padding: 2px 5px; font-size: 0.6rem; }
  .theme-toggle { width: 26px; height: 26px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  nav { height: 48px; padding: 0 1.5vw; }
  .nav-inner { gap: 3px; }
  .logo svg { height: 15px; }
  .nav-links { gap: 3px; }
  .nav-links a { font-size: 0.55rem; }
  .lang-switch a { padding: 1px 3px; font-size: 0.5rem; }
  .lang-switch { gap: 1px; padding: 1px; }
  .theme-toggle { width: 20px; height: 20px; font-size: 0.65rem; }
}

@media (max-width: 360px) {
  nav { height: 42px; padding: 0 1vw; }
  .nav-inner { gap: 2px; }
  .logo svg { height: 13px; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 0.5rem; }
  .lang-switch a { padding: 1px 2px; font-size: 0.45rem; }
  .lang-switch { gap: 1px; padding: 1px; }
  .theme-toggle { width: 18px; height: 18px; font-size: 0.6rem; }
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 5vw 80px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(99,102,241,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(129,140,248,0.08) 0%, transparent 40%);
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(99,102,241,0.06) 0%, transparent 50%);
  z-index: 0;
}



/* Neural network floating nodes */
#hero .hero-nodes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#hero .hero-nodes span {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  animation: nodeFloat 24s ease-in-out infinite;
}

#hero .hero-nodes span:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; width: 3px; height: 3px; opacity: 0.4; }
#hero .hero-nodes span:nth-child(2) { top: 25%; left: 85%; animation-delay: -4s; width: 2px; height: 2px; opacity: 0.3; }
#hero .hero-nodes span:nth-child(3) { top: 60%; left: 5%; animation-delay: -8s; width: 4px; height: 4px; opacity: 0.25; }
#hero .hero-nodes span:nth-child(4) { top: 70%; left: 80%; animation-delay: -12s; width: 2px; height: 2px; opacity: 0.35; }
#hero .hero-nodes span:nth-child(5) { top: 40%; left: 50%; animation-delay: -16s; width: 3px; height: 3px; opacity: 0.3; }
#hero .hero-nodes span:nth-child(6) { top: 85%; left: 30%; animation-delay: -20s; width: 2px; height: 2px; opacity: 0.25; }
#hero .hero-nodes span:nth-child(7) { top: 10%; left: 45%; animation-delay: -2s; width: 4px; height: 4px; opacity: 0.2; }
#hero .hero-nodes span:nth-child(8) { top: 50%; left: 92%; animation-delay: -6s; width: 2px; height: 2px; opacity: 0.3; }

@keyframes nodeFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -12px); }
  50% { transform: translate(-12px, 18px); }
  75% { transform: translate(24px, 6px); }
}

.hero-content {
  text-align: center;
  width: 100%;
  max-width: calc(100vw - 10vw);
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: none;
  text-align: center;
}

#hero h1 span {
  background: linear-gradient(135deg, #818cf8, #a78bfa, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

#hero h1 span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(99,102,241,0.2) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

#hero p {
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  color: var(--text-secondary);
  margin: 0 auto 44px;
  line-height: 1.7;
  text-align: center;
  max-width: 600px;
}

.search-container {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 60px;
  padding: 4px;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin: 0 auto;
}

.search-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle), 0 4px 24px rgba(0,0,0,0.3);
}

.search-container input {
  flex: 1;
  min-width: 260px;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 14px 20px;
  font-family: var(--font);
}

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

.search-container button {
  padding: 12px 28px;
  border-radius: 60px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}

.search-container button:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(99,102,241,0.35);
}

.search-container button:active {
  transform: scale(0.98);
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 52px;
}

.hero-category {
  padding: 10px 22px;
  border-radius: 60px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-category::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(129,140,248,0.08);
  opacity: 0;
  transition: opacity var(--transition);
}

.hero-category:hover::before { opacity: 1; }

.hero-category:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero Short (inner pages) ── */
.hero-short {
  min-height: 50vh;
  padding: 140px 5vw 80px;
}
.section {
  width: 100%;
  padding: 100px 5vw;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.section-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}

.section-link:hover { color: var(--accent-hover); }

/* ── Categories ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
  position: relative;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.category-card:hover {
  border-color: rgba(129,140,248,0.2);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card .cat-inner {
  padding: 20px 20px 24px;
  width: 100%;
}

.category-card .name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-card .count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Review Cards ── */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  z-index: 1;
  transition: opacity var(--transition);
}

.review-card:hover::before { opacity: 0.6; }

.review-card:hover {
  border-color: rgba(129,140,248,0.2);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(129,140,248,0.08);
}

.review-card .card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.review-card .card-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform var(--transition);
}

.review-card:hover .card-logo {
  transform: scale(1.08);
}

.review-card .card-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

[data-theme="dark"] .review-card .card-logo img,
[data-theme="dark"] .vs-logo img,
[data-theme="dark"] .modal-logo img {
  filter: brightness(1.6) contrast(0.8);
}

[data-theme="dark"] .review-card .card-logo img[alt="InVideo"],
[data-theme="dark"] .vs-logo img[alt="InVideo"],
[data-theme="dark"] .modal-logo img[alt="InVideo"] {
  filter: brightness(0) invert(1);
}

.review-card .card-logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
}

.review-card .card-image { background: linear-gradient(135deg, rgba(129,140,248,0.12), rgba(99,102,241,0.03)); }

.review-card .card-image .category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 60px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.review-card .card-image .rating-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 60px;
  font-size: 0.8rem;
  color: #fbbf24;
  font-weight: 600;
}

.card-body { padding: 24px; }

.card-body .tool-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-body .tool-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.card-body .excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-body .meta .price {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
  padding: 4px 12px;
  border-radius: 60px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-body .meta .price.free { color: #34d399; }

.card-body .meta .read-more {
  font-size: 0.82rem;
  color: white;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 60px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--transition);
}

.review-card:hover .read-more {
  background: rgba(129,140,248,0.2);
}

/* ── Pros/Cons ── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.pros, .cons {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.pros {
  background: var(--green-muted);
  color: var(--green);
}

.cons {
  background: rgba(239,68,68,0.1);
  color: var(--red);
}

.pros li, .cons li {
  list-style: none;
  padding: 3px 0;
}

/* ── Filters ── */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.filters-bar select {
  padding: 9px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
}

.filters-bar select:focus {
  outline: none;
  border-color: var(--accent);
}

.filters-bar .filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── No Results ── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.active { opacity: 1; }

.modal-content {
  background: linear-gradient(170deg, rgba(129,140,248,0.03), var(--bg-elevated) 40%);
  border: 1px solid rgba(129,140,248,0.1);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(129,140,248,0.06);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  font-family: var(--font);
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.modal-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.modal-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.modal-logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
}

.modal-category {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 60px;
  color: white;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-rating {
  font-size: 1rem;
  color: #fbbf24;
  font-weight: 600;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.modal-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 22px;
  letter-spacing: -0.3px;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 60px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

.modal-btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 60px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  border: 1px solid rgba(255,255,255,0.08);
}

.modal-btn:hover {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.15);
}

/* ── Footer ── */
footer {
  width: 100%;
  padding: 64px 5vw 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.footer-grid .footer-col {
  flex: 1;
  min-width: 160px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-col p,
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text-secondary); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom span {
  display: block;
}

.footer-bottom span + span {
  margin-top: 4px;
}

/* ── Scroll to top ── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  z-index: 500;
  box-shadow: var(--shadow);
}

.scroll-top.visible { display: flex; }

.scroll-top:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.review-card, .category-card {
  animation: fadeUp 0.5s ease both;
}

/* ── Comparisons ── */
.vs-section {
  margin-bottom: 80px;
}

.vs-header {
  text-align: center;
  margin-bottom: 32px;
}

.vs-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.vs-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

@media (max-width: 768px) {
  .vs-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vs-card:nth-child(1) { grid-column: 1; grid-row: 1; }
  .vs-card:nth-child(3) { grid-column: 2; grid-row: 1; }
  .vs-divider { grid-column: 1 / -1; grid-row: 2; width: 100%; padding: 8px 0; }
}

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

.vs-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.vs-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.vs-card-top {
  text-align: center;
}

.vs-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.vs-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.vs-logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
}

.vs-card .vs-rank {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.vs-card .vs-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.vs-card .vs-rating {
  font-size: 0.95rem;
  color: #fbbf24;
  font-weight: 600;
  margin-bottom: 8px;
}

.vs-card .vs-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.vs-card .vs-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 60px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.vs-card .vs-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 60px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  margin-bottom: 16px;
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  width: 80px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .vs-divider { width: 100%; padding: 8px 0; }
}

.vs-divider span {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.vs-table {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.vs-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}

.vs-table-row:last-child { border-bottom: none; }

.vs-table-row .label {
  color: var(--text-muted);
  font-weight: 500;
}

.vs-table-row .value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.vs-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.vs-pros-cons .pc-list {
  font-size: 0.8rem;
}

.vs-pros-cons .pc-list li {
  list-style: none;
  padding: 2px 0;
}

.vs-pros-cons .pc-list .pc-pro { color: var(--green); }
.vs-pros-cons .pc-list .pc-con { color: var(--red); }

.vs-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  border-radius: 60px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition);
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
}

.vs-btn:hover {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.15);
}

.vs-winner {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 60px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .review-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  #hero { min-height: 90vh; padding: 120px 5vw 60px; }
  #hero.hero-short { min-height: 40vh; padding: 120px 5vw 50px; }
  .section { padding: 64px 5vw; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero-categories { gap: 8px; }
  .hero-category { font-size: 0.8rem; padding: 8px 16px; }
  .search-container { display: flex; flex-direction: column; gap: 10px; background: none; border: none; padding: 0; box-shadow: none; width: 100%; max-width: 400px; }
  .search-container input { width: 100%; min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 60px; }
  .search-container button { width: 100%; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  #hero h1 { font-size: clamp(1.6rem, 7vw, 3.5rem); letter-spacing: -0.5px; }
  #hero p { font-size: clamp(0.75rem, 2.8vw, 0.95rem); }
}

@media (max-width: 600px) {
  #hero { min-height: 100dvh; padding: 110px 4vw 50px; }
  #hero.hero-short { min-height: 40vh; padding: 110px 4vw 40px; }
  #hero h1 { font-size: clamp(1.5rem, 8vw, 2.5rem); }
  #hero p { font-size: clamp(0.75rem, 3vw, 0.9rem); margin-bottom: 28px; }
  .hero-categories { margin-top: 32px; gap: 6px; }
  .hero-category { font-size: 0.75rem; padding: 6px 14px; }
  .review-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.82rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card .cat-inner { padding: 14px; }
  .review-card .card-image { height: 140px; }
  .card-body { padding: 16px; }
  .card-body .tool-name { font-size: 1rem; }
  .search-container input { font-size: 0.85rem; padding: 12px 16px; }
  .search-container button { padding: 10px 20px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  #hero { padding: 100px 4vw 40px; min-height: 100dvh; }
  #hero.hero-short { min-height: 35vh; padding: 100px 4vw 30px; }
  #hero h1 { font-size: clamp(1.3rem, 7vw, 1.8rem); }
  #hero p { font-size: clamp(0.7rem, 3vw, 0.85rem); margin-bottom: 24px; }
  .hero-category { font-size: 0.7rem; padding: 5px 12px; }
  .review-grid { gap: 8px; }
  .review-card .card-image { height: 120px; }
  .card-body { padding: 12px; }
  .card-body .tool-name { font-size: 0.85rem; }
  .card-body .tool-tagline { font-size: 0.72rem; }
  .review-card .card-logo { width: 56px; height: 56px; }
  .review-card .card-logo img { width: 34px; height: 34px; }
}

@media (max-width: 360px) {
  #hero { min-height: 100dvh; padding: 90px 3vw 30px; }
  #hero.hero-short { min-height: 30vh; padding: 90px 3vw 24px; }
  #hero h1 { font-size: clamp(1.2rem, 7vw, 1.5rem); }
  #hero p { font-size: 0.7rem; margin-bottom: 20px; }
  .section { padding: 32px 4vw; }
  .hero-category { font-size: 0.65rem; padding: 4px 10px; }
  .category-grid { gap: 8px; }
  .category-card .cat-inner { padding: 10px; }
  .category-card .name { font-size: 0.78rem; }
  .review-grid { gap: 6px; }
  .review-card .card-image { height: 100px; }
  .card-body { padding: 10px; }
  .card-body .tool-name { font-size: 0.8rem; }
  .card-body .tool-tagline { font-size: 0.68rem; }
  .review-card .card-logo { width: 48px; height: 48px; }
  .review-card .card-logo img { width: 28px; height: 28px; }
  .card-body .tool-tagline { font-size: 0.75rem; }
  #cookie-banner { padding: 12px 4vw; font-size: 0.8rem; }
  #cookie-banner .cookie-btns button { font-size: 0.75rem; padding: 8px 14px; }
  footer { padding: 32px 4vw 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; }
  footer { padding: 40px 5vw 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #cookie-banner { flex-direction: column; text-align: center; gap: 12px; padding: 16px 5vw; }
  #cookie-banner .cookie-btns { flex-direction: column; width: 100%; }
}

#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
  background: var(--bg-card); backdrop-filter: blur(16px); border-top: 1px solid var(--border);
  padding: 16px 24px; display: none; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text); box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
#cookie-banner.show { display: flex; }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
#cookie-banner .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
#cookie-banner .cookie-btn {
  padding: 9px 22px; border: none; border-radius: 10px; cursor: pointer; font-size: 0.82rem;
  font-weight: 600; transition: all 0.2s; letter-spacing: 0.01em;
}
#cookie-banner .cookie-btn.accept { background: var(--accent); color: #fff; }
#cookie-banner .cookie-btn.accept:hover { box-shadow: 0 2px 12px rgba(129,140,248,0.4); }
#cookie-banner .cookie-btn.reject { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
#cookie-banner .cookie-btn.reject:hover { border-color: var(--text-muted); color: var(--text); }
#cookie-banner .cookie-btn.prefs { background: transparent; color: var(--text); border: 1px solid var(--border); }
#cookie-banner .cookie-btn.prefs:hover { border-color: var(--accent); color: var(--accent); }
#cookie-banner a { color: var(--accent); text-decoration: underline; }

.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; padding: 5vw;
}
.cookie-modal-overlay.active { opacity: 1; }
.cookie-modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 36px; max-width: 480px; width: 100%; color: var(--text);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.cookie-modal h3 { margin: 0 0 20px; font-size: 1.2rem; }
.cookie-option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option-info { flex: 1; }
.cookie-option-info strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.cookie-option-info span { font-size: 0.8rem; color: var(--text-muted); }
.cookie-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle .slider {
  position: absolute; cursor: pointer; inset: 0; background: var(--border); border-radius: 24px; transition: 0.2s;
}
.cookie-toggle .slider::before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  background: var(--text-muted); border-radius: 50%; transition: 0.2s;
}
.cookie-toggle input:checked + .slider { background: var(--accent); }
.cookie-toggle input:checked + .slider::before { background: #fff; transform: translateX(20px); }
.cookie-toggle.disabled { opacity: 0.5; }
.cookie-toggle.disabled .slider { cursor: not-allowed; }
.cookie-modal-btns { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.cookie-modal-btn {
  padding: 10px 24px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; transition: all 0.2s; letter-spacing: 0.01em;
}
.cookie-modal-btn.primary {
  background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(129,140,248,0.3);
}
.cookie-modal-btn.primary:hover { box-shadow: 0 4px 16px rgba(129,140,248,0.45); transform: translateY(-1px); }
.cookie-modal-btn.secondary {
  background: transparent; color: var(--text-muted); border: 1px solid var(--border);
}
.cookie-modal-btn.secondary:hover { border-color: var(--text-muted); color: var(--text); }
