/* Reset & base */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
}

/* Layout helpers */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 2.4rem 0;
}

.section-alt {
  background: #f1f5f9;
}

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

.section-header.small {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

/* Typography */

h1, h2, h3, h4 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 0.75rem;
}

.meta {
  color: #6b7280;
  font-size: 0.82rem;
}

.text-link {
  font-size: 0.9rem;
  color: #1d4ed8;
}

.text-link:hover {
  text-decoration: underline;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: #1e40af;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(30, 64, 175, 0.35);
}

.btn-primary:hover {
  background: #1e3a8a;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #e0e7ff;
  color: #1e3a8a;
  border-color: #c7d2fe;
}

.btn-secondary:hover {
  background: #c7d2fe;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #374151;
}

.btn-ghost:hover {
  background: #f3f4f6;
}

/* Top bar */

.top-bar {
  background: #020617;
  color: #e5e7eb;
  font-size: 0.875rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
}

.top-note {
  color: #9ca3af;
}

/* Header */

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #4f46e5, #0f172a);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.logo-text strong {
  font-size: 1rem;
}

.logo-text small {
  color: #6b7280;
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.2rem 0.1rem;
}

.main-nav a:hover {
  color: #2563eb;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, #eef2ff, #ffffff 50%, #e0f2fe 100%);
  border-bottom: 1px solid #e5e7eb;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  padding: 2.2rem 0 2.2rem;
  align-items: flex-start;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.45rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.7rem;
}

.hero-copy p {
  color: #475569;
  margin-bottom: 0.8rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.3rem;
  margin-bottom: 0.75rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.hero-points li + li {
  margin-top: 0.25rem;
}

/* Hero card */

.hero-card {
  background: #020617;
  color: #e5e7eb;
  border-radius: 1.1rem;
  padding: 1.3rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.55), rgba(129, 140, 248, 0.1));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.hero-card h2 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
}

.hero-list li + li {
  margin-top: 0.3rem;
}

.hero-list a {
  color: #e5e7eb;
}

.hero-list a:hover {
  text-decoration: underline;
}

.hero-note {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* AdSense block */

.adsense-block {
  max-width: 1120px;
  margin: 0.75rem auto;
  padding: 0 1.25rem;
}

.adsense-inline {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.adsense-sidebar {
  margin-top: 0.6rem;
}

/* Tool cards */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.12s ease, transform 0.08s ease, border-color 0.12s ease;
}

.tool-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  border-color: #c7d2fe;
}

.tool-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.tool-logo-wrapper {
  flex-shrink: 0;
}

.tool-logo {
  width: 36px;
  height: 36px;
  border-radius: 0.9rem;
  background: #1d4ed8;
  color: #eff6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.tool-logo-fallback {
  background: #0f172a;
}

.tool-heading h3 {
  margin: 0 0 0.1rem;
  font-size: 1.05rem;
}

.tool-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: #ecfdf3;
  color: #15803d;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}

.tool-tagline {
  font-size: 0.9rem;
  color: #4b5563;
}

.score-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #4b5563;
}

.score-category {
  font-size: 0.85rem;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

.tool-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.tool-meta li + li {
  margin-top: 0.15rem;
}

.tool-summary {
  font-size: 0.9rem;
  color: #374151;
  margin-top: 0.2rem;
}

.tool-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Two-column layout & content blocks */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.content-block {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #d1d5db;
  padding: 1.2rem 1.1rem;
}

.bullet-list {
  list-style: disc;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #374151;
}

.bullet-list li + li {
  margin-top: 0.25rem;
}

/* List cards (reviews / guides) */

.list-cards {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #d1d5db;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.list-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.list-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.list-card p {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Review page */

.breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: #4b5563;
}

.review-intro {
  background: #eff6ff;
  border-radius: 0.9rem;
  padding: 0.9rem 0.85rem;
  margin: 0.75rem 0 1rem;
  border: 1px solid #bfdbfe;
}

.review-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1d4ed8;
  margin-bottom: 0.25rem;
}

.review-toc {
  border-radius: 0.9rem;
  padding: 0.8rem 0.85rem;
  margin: 0 0 1.2rem;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
}

.review-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
}

.review-toc li + li {
  margin-top: 0.25rem;
}

.review-toc a {
  color: #1d4ed8;
}

.alt-list {
  list-style: disc;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.alt-list li + li {
  margin-top: 0.2rem;
}

/* Sidebar */

.sidebar {
  position: relative;
}

.sidebar-cta {
  width: 100%;
  margin-bottom: 0.4rem;
}

.sidebar-section {
  margin-top: 1.1rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.85rem;
}

.sidebar-section h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
}

.sidebar-list li + li {
  margin-top: 0.3rem;
}

.sidebar-list a {
  color: #1d4ed8;
}

/* Footer */

.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 1.9rem 0;
  margin-top: 1.6rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-nav a:hover {
  color: #e5e7eb;
}

.footer-meta {
  font-size: 0.75rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 52px;
    right: 1rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    flex-direction: column;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  }

  .main-nav.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .hero-inner {
    padding: 1.7rem 0 1.7rem;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .two-column {
    gap: 1.6rem;
  }

  .adsense-block {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.45rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
