/* 🛠️ MANDATORY CSS RESET */
* {
  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,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}
img,
svg,
canvas,
iframe,
textarea,
input,
select,
button {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* DESIGN SYSTEM VARIABLES */
:root {
  --bg-dark: #0b0f19;
  --bg-surface: #121826;
  --bg-surface-elevated: #192236;
  --bg-surface-hover: #222e48;
  --accent-rose: #f43f5e;
  --accent-amber: #fb923c;
  --gradient-signature: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
  --gradient-glow: radial-gradient(
    circle,
    rgba(244, 63, 94, 0.15) 0%,
    rgba(251, 146, 60, 0.05) 50%,
    transparent 70%
  );
  --text-heading: #ffffff;
  --text-body: #a1a1aa;
  --text-muted: #71717a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(244, 63, 94, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* TYPOGRAPHY HELPERS */
.gradient-text {
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.font-mono-nums {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* CONTAINER WRAPPERS */
.page-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
         SECTION 1: NAVBAR
         ========================================================================== */
.navbar-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.brand-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-signature);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}
.brand-box-accent {
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

/* DESKTOP NAV LINKS */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-item a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
}
.nav-item a:hover {
  color: var(--text-heading);
}
/* Active Link with Gradient Underline */
.nav-item a.active {
  color: var(--text-heading);
  font-weight: 600;
}
.nav-item a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--gradient-signature);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}

/* MOBILE HAMBURGER BUTTON */
.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--text-heading);
  line-height: 0;
  transition: var(--transition);
}
.hamburger-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.2);
}

/* MOBILE DRAWER */
.mobile-drawer {
  display: none;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px;
  transition: var(--transition);
}
.mobile-drawer.active {
  display: block;
}
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav-item a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-nav-item a:hover,
.mobile-nav-item a.active {
  color: var(--text-heading);
  background: var(--bg-surface-elevated);
}
.mobile-nav-item a.active {
  border-left: 3px solid var(--accent-rose);
}

/* ==========================================================================
         SECTION 2: HERO & COMPACT HEADER
         ========================================================================== */
.hero-section {
  position: relative;
  padding: 48px 0 28px 0;
  text-align: center;
  overflow: hidden;
}
.hero-glow-bg {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 350px;
  background: var(--gradient-glow);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto;
  text-wrap: balance;
}

/* ==========================================================================
         SECTION 3: 3-COLUMN AD LAYOUT & INTERACTIVE TOOL
         ========================================================================== */
.tool-section-wrapper {
  padding: 24px 0 60px 0;
  position: relative;
}
.tool-grid-layout {
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr minmax(160px, 200px);
  gap: 24px;
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

/* AD SPACES (DESKTOP & MOBILE) */
.ad-space-container {
  background: var(--bg-surface);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  position: sticky;
  top: 96px;
}
.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}
.ad-box-graphic {
  width: 100%;
  max-width: 160px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}
.ad-box-graphic svg {
  opacity: 0.3;
}
.ad-box-graphic span {
  font-size: 11px;
  color: var(--text-muted);
}

/* CENTER TOOL BOX */
/ai-tools/ai-image-humanizer.html-tool {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* TOOL CONTROLS BAR */
.controls-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: end;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.control-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.control-label .value-badge {
  font-size: 11.5px;
  color: var(--accent-amber);
  font-weight: 700;
}
.control-select {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.control-select:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

/* RANGE SLIDER */
.intensity-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  outline: none;
  cursor: pointer;
  margin: 8px 0;
}
.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-signature);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.5);
  border: 2px solid #ffffff;
  transition: transform 0.1s ease;
}
.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.slider-preset-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.slider-preset-labels span {
  cursor: pointer;
  transition: color 0.15s ease;
}
.slider-preset-labels span:hover {
  color: var(--text-heading);
}

/* IMAGE UPLOAD DROPZONE */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(25, 34, 54, 0.4);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.upload-dropzone:hover,
.upload-dropzone.drag-active {
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.05);
}
.upload-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-rose);
  margin-bottom: 4px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.upload-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
}
.upload-desc {
  font-size: 13.5px;
  color: var(--text-body);
  max-width: 440px;
  line-height: 1.5;
}
.browse-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-heading);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.browse-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}
.upload-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.demo-ai-quicklink {
  color: var(--accent-amber);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.demo-ai-quicklink:hover {
  color: #ffaa5b;
}

/* ACTION BUTTON (HUMANIZE IMAGE NOW) */
.action-btn-wrap {
  margin-top: 24px;
}
.humanize-action-btn {
  width: 100%;
  background: var(--gradient-signature);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 18px 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.35);
  user-select: none;
}
.humanize-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(244, 63, 94, 0.45);
}
.humanize-action-btn:active {
  transform: translateY(0);
}
.humanize-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* PROCESSING STATE OVERLAY */
.processing-card {
  display: none;
  margin-top: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.processing-card.active {
  display: block;
}
.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0 12px 0;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-signature);
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.8);
}
.processing-status-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-heading);
}
.processing-step-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
         PREVIEW BOX & BEFORE/AFTER SPLIT COMPARISON SLIDER
         ========================================================================== */
.preview-container {
  display: none;
  margin-top: 24px;
}
.preview-container.active {
  display: block;
}
.preview-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.preview-badge-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
}
.preview-badge-status svg {
  stroke: #10b981;
}
.preview-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* BEFORE / AFTER SPLIT VIEWER */
.split-viewer-wrapper {
  position: relative;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  max-height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000000;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  user-select: none;
  touch-action: pan-y;
}
.split-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.split-image-after {
  z-index: 1;
}
.split-before-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  width: 50%;
}
.split-before-layer .split-image {
  width: 840px;
  max-width: none !important;
}

/* SPLIT DIVIDER LINE & HANDLE */
.split-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow:
    0 0 16px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(244, 63, 94, 0.5);
  pointer-events: none;
}
.split-handle-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-signature);
  border: 3px solid #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: ew-resize;
  z-index: 4;
  transition: transform 0.15s ease;
}
.split-handle-thumb:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.split-handle-thumb svg {
  width: 20px;
  height: 20px;
}

/* OVERLAY BADGES */
.badge-tag-before,
.badge-tag-after {
  position: absolute;
  top: 16px;
  z-index: 5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.badge-tag-before {
  left: 16px;
  background: rgba(11, 15, 25, 0.8);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.badge-tag-after {
  right: 16px;
  background: rgba(244, 63, 94, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}

/* NATIVE RANGE SLIDER FOR SPLIT COMPARISON */
.split-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
  padding: 0;
}

/* IMAGE DETAILS CARDS */
.image-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.detail-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail-card-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-card-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
}
.detail-card-sub {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
}

/* PREVIEW ACTION BUTTONS */
.preview-actions-bar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.download-btn {
  background: var(--gradient-signature);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35);
}
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.45);
}
.reset-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-heading);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.reset-btn:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
         SECTION 4: DEDICATED SEO CONTENT ARTICLE (800+ WORDS)
         ========================================================================== */
.seo-article-section {
  padding: 60px 0 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.5);
}
.seo-article-wrapper {
  max-width: 960px;
  margin: 0 auto;
}
.article-kicker {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-rose);
  margin-bottom: 12px;
}
.article-main-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 24px;
}
.article-lead-p {
  font-size: 17px;
  line-height: 1.75;
  color: #d4d4d8;
  margin-bottom: 28px;
}
.article-h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: 44px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-h3 {
  font-size: 18px;
  font-weight: 600;
  color: #f4f4f5;
  margin: 28px 0 12px 0;
}
.article-p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 20px;
}
.article-p strong {
  color: #f4f4f5;
}

/* 4-STEP GUIDE GRID */
.steps-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.step-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: var(--transition);
}
.step-item-card:hover {
  border-color: rgba(244, 63, 94, 0.4);
  transform: translateY(-2px);
}
.step-number {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  display: inline-block;
}
.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
}

/* TECHNICAL COMPARISON TABLE */
.tech-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.tech-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-heading);
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.tech-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
}
.tech-table tr:last-child td {
  border-bottom: none;
}
.tech-table td strong {
  color: var(--text-heading);
}

/* ==========================================================================
         SECTION 5: FAQS ACCORDION (EXACTLY 10 QUESTIONS)
         ========================================================================== */
.faq-section {
  padding: 70px 0 90px 0;
  border-top: 1px solid var(--border-subtle);
}
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.faq-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.faq-sub {
  font-size: 15px;
  color: var(--text-body);
}
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active {
  border-color: rgba(244, 63, 94, 0.4);
  background: var(--bg-surface-elevated);
}
.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.faq-question-btn:hover {
  color: #ffffff;
}
.faq-icon-arrow {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-rose);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}
.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer-content {
  padding: 0 24px 22px 24px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-body);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

/* ==========================================================================
         SECTION 6: MANDATORY FOOTER (STRICT 3-COLUMN CONTROL)
         ========================================================================== */
.site-footer {
  background: #070a12;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px 0;
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 48px;
  margin-bottom: 50px;
}
/* Column 1: Site Bio */
.footer-col-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
}
.footer-bio-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}
/* Column 2: Tools */
.footer-col-tools h4,
.footer-col-legal h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links-list li a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.footer-links-list li a:hover {
  color: var(--text-heading);
  padding-left: 4px;
}
/* Bottom Copyright Bar */
.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
         RESPONSIVE MEDIA QUERIES (ANTI-OVERFLOW GUARANTEE)
         ========================================================================== */
@media (max-width: 1024px) {
  .tool-grid-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .ad-space-container {
    position: static;
    width: 100%;
    min-height: auto;
    padding: 20px;
    margin-top: 20px;
  }
  .ad-box-graphic {
    max-width: 100%;
    height: 90px;
    flex-direction: row;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .steps-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .nav-links-desktop {
    display: none;
  }
  .hamburger-btn {
    display: inline-flex;
  }
  .controls-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .image-details-grid {
    grid-template-columns: 1fr;
  }
  .preview-actions-bar {
    grid-template-columns: 1fr;
  }
  .split-before-layer .split-image {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /ai-tools/ai-image-humanizer.html-tool {
    padding: 20px 16px;
  }
  .hero-title {
    font-size: 26px;
  }
  .upload-dropzone {
    padding: 32px 16px;
  }
}
