/* ============================================================
       MANDATORY CSS RESET & ANTI-OVERFLOW RULES
       ============================================================ */
* {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  background: #0b0f19;
  color: #a1a1aa;
  font-family: system-ui, sans-serif;
}
img,
svg,
canvas,
iframe,
textarea,
input,
select,
button {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ============================================================
       COLOR PALETTE VARIABLES
       ============================================================ */
:root {
  --bg-dark: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #161f33;
  --bg-surface-card: #141c2e;
  --border-subtle: #1f293d;
  --border-bright: #334155;
  --text-white: #ffffff;
  --text-soft: #a1a1aa;
  --text-muted: #64748b;
  --accent-rose: #f43f5e;
  --accent-amber: #fb923c;
  --accent-cyan: #38bdf8;
  --accent-green: #10b981;
  --accent-purple: #a855f7;
  --gradient-sunset: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
  --glow-sunset: 0 0 25px rgba(244, 63, 94, 0.25);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography Utilities */
.text-gradient {
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
       SECTION 1: NAVBAR (HEADER)
       ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-sunset);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}
.logo-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}
.logo-text {
  color: var(--text-white);
}
.logo-box {
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.5));
}

/* Desktop Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}
.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text-white);
}
.nav-link.active {
  color: var(--text-white);
  font-weight: 600;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-sunset);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.7);
}

/* Hamburger Button (<992px) */
.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--text-white);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.hamburger-btn:hover {
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.1);
}
.hamburger-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  width: 100%;
  background: #0d1322;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem 1.75rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}
.mobile-drawer.active {
  display: block;
  animation: slideDown 0.25s ease-out forwards;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-white);
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.3);
}
.mobile-nav-link.active {
  font-weight: 600;
  border-left: 3px solid var(--accent-rose);
}

/* ============================================================
       SECTION 2: HERO & COMPACT HEADER
       ============================================================ */
.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
}
.hero-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 240px;
  background: radial-gradient(
    ellipse at center,
    rgba(244, 63, 94, 0.15) 0%,
    rgba(251, 146, 60, 0.05) 50%,
    transparent 70%
  );
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #fda4af;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.175rem);
  color: var(--text-soft);
  max-width: 760px;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}
.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(22, 31, 51, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  max-width: 750px;
  margin: 0 auto;
  font-size: 0.85rem;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-soft);
}
.hero-meta-item strong {
  color: var(--text-white);
}
.hero-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--accent-rose);
}

/* ============================================================
       SECTION 3: AUTO-SCROLL & 3-COLUMN AD PLAYGROUND LAYOUT
       ============================================================ */
.playground-section {
  padding: 1.5rem 0 3.5rem;
}

/* 3-Column Layout: minmax(160px, 200px) 1fr minmax(160px, 200px) */
.playground-grid {
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr minmax(160px, 200px);
  gap: 1.5rem;
  align-items: start;
}

/* Ad Spaces */
.ad-slot-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 90px;
}
.ad-unit {
  background: linear-gradient(180deg, #121a2c 0%, #0d1424 100%);
  border: 1px dashed rgba(244, 63, 94, 0.35);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.ad-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ad-content {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.ad-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-rose);
}
.ad-icon-box svg {
  width: 28px;
  height: 28px;
}
.ad-title {
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.ad-desc {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.45;
}
.ad-cta-button {
  display: inline-block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}
.ad-cta-button:hover {
  background: var(--gradient-sunset);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}
.ad-dimension {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* CENTER TOOL CONTAINER (/ai-tools/ai-api-humanizer.html-docs-tool) */
.tool-container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  position: relative;
}

/* Endpoint Selector Tabs */
.endpoint-tabs-wrapper {
  margin-bottom: 1.5rem;
}
.section-mini-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.endpoint-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: #0b101d;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}
.endpoint-tab {
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.2s ease;
  text-align: center;
}
.endpoint-tab:hover {
  background: rgba(255, 255, 255, 0.04);
}
.endpoint-tab.active {
  background: var(--bg-surface-elevated);
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.endpoint-method {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.method-post {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.endpoint-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.endpoint-path {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Endpoint Header Card */
.endpoint-overview-card {
  background: #0e1526;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.endpoint-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.endpoint-badge-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.endpoint-badge-title h3 {
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 700;
}
.endpoint-category-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.25);
  font-weight: 600;
}
.endpoint-desc-text {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Code Snippets Section */
.snippet-section {
  margin-bottom: 1.75rem;
}
.snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: #0b101d;
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-btn:hover {
  color: var(--text-white);
}
.lang-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-bright);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-color: var(--accent-rose);
}
.copy-btn svg {
  width: 14px;
  height: 14px;
}

.code-editor-box {
  background: #080d18;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.code-pre {
  padding: 1.15rem;
  margin: 0;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.825rem;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.6;
  max-height: 320px;
}
/* Syntax colors */
.token-kw {
  color: #f43f5e;
  font-weight: 600;
}
.token-str {
  color: #34d399;
}
.token-var {
  color: #38bdf8;
}
.token-fn {
  color: #fb923c;
}
.token-comment {
  color: #64748b;
  font-style: italic;
}

/* Interactive Request Tester (Playground) */
.playground-box {
  background: #0e1526;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.35rem;
  margin-bottom: 2rem;
}
.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}
.playground-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.playground-tag {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.input-group {
  margin-bottom: 1.15rem;
}
.input-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.input-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.url-input-wrap {
  display: flex;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  overflow: hidden;
  background: #080d18;
  transition: border-color 0.2s ease;
}
.url-input-wrap:focus-within {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}
.url-method-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.05em;
  border-right: 1px solid var(--border-subtle);
}
.url-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.65rem 0.9rem;
  color: var(--text-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  width: 100%;
}
.auth-input-field {
  width: 100%;
  background: #080d18;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: var(--text-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.auth-input-field:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}
.json-textarea {
  width: 100%;
  min-height: 155px;
  background: #080d18;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.825rem;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}
.json-textarea:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

/* Action Button */
.submit-request-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--gradient-sunset);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.4);
}
.submit-request-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.55);
}
.submit-request-btn:active {
  transform: translateY(0);
}
.submit-request-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.submit-request-btn svg {
  width: 18px;
  height: 18px;
}
.spinner-icon {
  animation: spin 1s linear infinite;
  display: none;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* JSON Response Viewer Box */
.response-container {
  margin-top: 1.5rem;
  background: #080d18;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.response-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #0d1322;
  border-bottom: 1px solid var(--border-subtle);
}
.response-badges-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.latency-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  border: 1px solid var(--border-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.latency-badge svg {
  width: 13px;
  height: 13px;
  color: var(--accent-amber);
}
.content-type-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.response-pre {
  padding: 1.15rem;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.825rem;
  color: #e2e8f0;
  overflow-x: auto;
  max-height: 380px;
  line-height: 1.55;
}
/* Syntax highlighting */
.json-key {
  color: #38bdf8;
  font-weight: 600;
}
.json-string {
  color: #34d399;
}
.json-number {
  color: #fb923c;
}
.json-boolean {
  color: #f43f5e;
  font-weight: 700;
}
.json-null {
  color: #94a3b8;
  font-style: italic;
}

/* Rate Limits & Authentication Table */
.rate-limits-wrapper {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.table-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.table-caption {
  font-size: 0.825rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
  background: #0c1220;
}
.custom-table th {
  background: #111a2c;
  color: var(--text-white);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.custom-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}
.custom-table tr:last-child td {
  border-bottom: none;
}
.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.badge-free {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}
.badge-pro {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ============================================================
       SECTION 4: DEDICATED SEO CONTENT (800+ WORDS)
       ============================================================ */
.seo-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #0b0f19 0%, #0e1424 50%, #0b0f19 100%);
}
.seo-article {
  max-width: 900px;
  margin: 0 auto;
}
.seo-article h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.seo-article h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--text-white);
  margin: 2.25rem 0 0.85rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.seo-article p {
  font-size: 0.975rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 1.15rem;
}
.seo-article ul,
.seo-article ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-soft);
}
.seo-article li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.seo-article strong {
  color: var(--text-white);
}
.seo-callout-box {
  background: rgba(22, 31, 51, 0.7);
  border-left: 4px solid var(--accent-rose);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.seo-callout-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #e2e8f0;
}
.seo-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0 2rem;
}
.seo-step-card {
  background: #111827;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.35rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.seo-step-card:hover {
  border-color: rgba(244, 63, 94, 0.35);
  transform: translateY(-2px);
}
.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-sunset);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.45rem;
}
.step-desc {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ============================================================
       SECTION 5: FAQS ACCORDION
       ============================================================ */
.faqs-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}
.faqs-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}
.faqs-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.faqs-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
}
.accordion-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: var(--border-bright);
}
.faq-item.active {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.faq-question-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  transition: color 0.15s ease;
}
.faq-question-btn:hover {
  color: #fda4af;
}
.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-rose);
  transition: transform 0.25s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s cubic-bezier(0, 1, 0, 1),
    opacity 0.25s ease,
    padding 0.25s ease;
  opacity: 0;
  padding: 0 1.5rem;
}
.faq-item.active .faq-answer-pane {
  max-height: 500px;
  opacity: 1;
  padding: 0 1.5rem 1.35rem 1.5rem;
  transition:
    max-height 0.35s ease-in-out,
    opacity 0.3s ease,
    padding 0.25s ease;
}
.faq-answer-text {
  font-size: 0.925rem;
  color: var(--text-soft);
  line-height: 1.65;
}
.faq-answer-text code {
  background: #080d18;
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: #f43f5e;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85em;
}

/* ============================================================
       SECTION 6: MANDATORY FOOTER
       ============================================================ */
.site-footer {
  background: #070b14;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-col-1 .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1.15rem;
}
.footer-bio-text {
  font-size: 0.925rem;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 1.25rem;
}
.footer-compliance-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.compliance-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-link-item a {
  font-size: 0.92rem;
  color: var(--text-soft);
  transition:
    color 0.15s ease,
    transform 0.15s ease;
  display: inline-block;
}
.footer-link-item a:hover {
  color: var(--text-white);
  transform: translateX(3px);
}
.footer-bottom-bar {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================================
       RESPONSIVE BREAKPOINTS & ANTI-OVERFLOW ADJUSTMENTS
       ============================================================ */
@media (max-width: 1024px) {
  .playground-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2rem;
  }
  .tool-container {
    order: 1;
    max-width: 100%;
  }
  .ad-slot-wrapper {
    position: static;
    order: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .ad-unit {
    min-height: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-col-1 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .nav-links {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .endpoint-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ad-slot-wrapper {
    grid-template-columns: 1fr;
  }
  .endpoint-tabs {
    grid-template-columns: 1fr;
  }
  .tool-container {
    padding: 1.15rem 1rem;
    border-radius: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .playground-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .response-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
