:root {
      --bg-main: #0b0f17;
      --bg-card: #131b2e;
      --bg-card-hover: #18233c;
      --bg-pill: rgba(255, 255, 255, 0.03);
      --bg-pill-hover: rgba(16, 185, 129, 0.08);
      
      --accent: #10b981;
      --text-main: #f3f4f6;
      --text-muted: #9ca3af;
      --border: #1e293b;
      --border-hover: #334155;

      --badge-live-bg: rgba(245, 158, 11, 0.1);
      --badge-live-border: rgba(245, 158, 11, 0.25);
      --badge-live-color: #fbbf24;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    }

    body {
      background-color: var(--bg-main);
      color: var(--text-main);
      padding: 40px 20px;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
    }

    /* Section Header */
    .section-header {
      margin-bottom: 28px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .section-title {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .section-title h2 {
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .dot {
      width: 10px;
      height: 10px;
      background: var(--accent);
      border-radius: 50%;
      box-shadow: 0 0 10px var(--accent);
    }

    .endpoint-count {
      font-size: 0.875rem;
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.05);
      padding: 4px 12px;
      border-radius: 9999px;
      border: 1px solid var(--border);
    }

    /* Grid Layout */
    .serp-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
      gap: 24px;
    }

    /* Function Card */
    .card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.2s ease;
    }

    .card:hover {
      border-color: var(--border-hover);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
      transform: translateY(-2px);
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
    }

    .card-title {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-main);
      text-decoration: none;
      transition: color 0.15s ease;
    }

    .card-title:hover {
      color: var(--accent);
    }

    .badge-live {
      font-size: 0.65rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      background: var(--badge-live-bg);
      border: 1px solid var(--badge-live-border);
      color: var(--badge-live-color);
    }

    .card-desc {
      font-size: 0.875rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 24px;
    }

    .endpoints-label {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
      font-weight: 700;
      margin-bottom: 10px;
    }

    /* Endpoints Links Grid */
    .endpoints-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .endpoint-item {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: var(--bg-pill);
      border: 1px solid var(--border);
      color: #e5e7eb;
      font-size: 0.8125rem;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 8px;
      text-decoration: none;
      transition: all 0.15s ease;
    }

    .endpoint-item:hover {
      border-color: var(--accent);
      color: #fff;
      background: var(--bg-pill-hover);
    }

    .endpoint-item svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
      opacity: 0.85;
    }

    @media (max-width: 768px) {
      .serp-grid { grid-template-columns: 1fr; }
    }



    /* =========================
   SEO TOOLS HERO
   ========================= */

.hero {
  position: relative;
  overflow: hidden;

  padding: 72px 64px;
  margin-bottom: 32px;

  border: 1px solid var(--border);
  border-radius: 20px;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(16, 185, 129, 0.08),
      transparent 35%
    ),
    var(--bg-card);
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -140px;
  bottom: -180px;

  border-radius: 50%;
  background: rgba(16, 185, 129, 0.06);
  filter: blur(20px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 22px;
  padding: 6px 12px;

  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;

  background: rgba(16, 185, 129, 0.08);
  color: #34d399;

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 16px;

  color: var(--text-muted);

  font-size: 0.85rem;
  font-weight: 600;
}

.hero-brand span {
  color: var(--accent);
}

.hero h1 {
  margin-bottom: 18px;

  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 850;
}

.hero h1 span {
  color: var(--accent);
}

.hero-description {
  max-width: 760px;

  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 14px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: rgba(255, 255, 255, 0.025);

  color: #d1d5db;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-stat strong {
  color: var(--text-main);
}


/* =========================
   CATEGORY NAVIGATION
   ========================= */

.categories {
  margin-bottom: 64px;
  padding: 26px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: rgba(19, 27, 46, 0.72);
}

.categories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  margin-bottom: 20px;
}

.categories-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.categories-title h2 {
  font-size: 1rem;
  font-weight: 800;
}

.categories-title .dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.tools-count {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.toc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.toc-btn {
  display: flex;
  align-items: center;
  gap: 11px;

  min-height: 58px;
  padding: 12px 14px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--bg-pill);

  color: #d1d5db;
  text-decoration: none;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.toc-btn:hover {
  border-color: var(--accent);
  background: var(--bg-pill-hover);
  transform: translateY(-1px);
}

.toc-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
  flex: 0 0 32px;

  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);

  font-size: 16px;
}

.toc-btn .label {
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 700;
}


/* =========================
   SECTION ANCHORS
   ========================= */

.tool-section {
  scroll-margin-top: 30px;
  margin-bottom: 72px;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1000px) {
  .toc-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .hero {
    padding: 42px 26px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .categories {
    padding: 18px;
  }

  .categories-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .toc-buttons {
    grid-template-columns: 1fr;
  }
}