/* ==========================================================================
   HUMANIZEBOX - PURE CSS3 STYLESHEET
   Brand Palette:
   - Background (Dark): Rich Night Blue (#0B0F19)
   - Primary Accent: Deep Sunset Rose (#F43F5E)
   - Secondary Accent: Bright Amber / Coral (#FB923C)
   - Text Headings: Pure Bright White (#FFFFFF)
   - Text Body: Soft Slate (#A1A1AA)
   - Signature Gradient: linear-gradient(135deg, #F43F5E 0%, #FB923C 100%)
   ========================================================================== */

:root {
  --bg-dark: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #162032;
  --bg-surface: #0f172a;
  --primary-accent: #f43f5e;
  --secondary-accent: #fb923c;
  --text-heading: #ffffff;
  --text-body: #a1a1aa;
  --text-muted: #71717a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(244, 63, 94, 0.25);
  --signature-gradient: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
  --signature-gradient-hover: linear-gradient(135deg, #fb5570 0%, #fba052 100%);
  --glow-shadow: 0 10px 30px -10px rgba(244, 63, 94, 0.35);
  --card-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. STRICT NO-OVERFLOW GLOBAL RESETS */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-body);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.gradient-text {
  background: var(--signature-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

.badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--signature-gradient);
  color: #ffffff;
  box-shadow: var(--glow-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: var(--signature-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(244, 63, 94, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-heading);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   2. NAVBAR COMPONENT (ZERO-OVERFLOW GUARANTEE)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  flex-shrink: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--signature-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* Desktop Nav Links (5 exact links, flex-wrap: nowrap) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
  position: relative;
  padding: 6px 2px;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--signature-gradient);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: var(--transition);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Mobile Slide-in Drawer */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #0f1626;
  border-left: 1px solid var(--border-glow);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 1100;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-close-btn {
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.mobile-nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(244, 63, 94, 0.12);
  border-left: 3px solid var(--primary-accent);
}

.mobile-drawer-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   3. HERO SECTION (3D CANVAS & HIGH CONVERSION ENGINE)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(244, 63, 94, 0.18) 0%,
    rgba(251, 146, 60, 0.08) 50%,
    rgba(11, 15, 25, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-metrics-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* 3D Visual & Interactive Sandbox Container */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    180deg,
    rgba(22, 32, 50, 0.7) 0%,
    rgba(15, 23, 42, 0.9) 100%
  );
  border: 1px solid var(--border-glow);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(244, 63, 94, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* HTML5 Canvas 3D Floating Mesh */
#hero3DCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  cursor: grab;
}

#hero3DCanvas:active {
  cursor: grabbing;
}

/* Interactive Playground Card on Top of Canvas */
.hero-sandbox-card {
  position: relative;
  z-index: 2;
  margin: 18px;
  padding: 20px;
  background: rgba(11, 15, 25, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sandbox-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.sandbox-tab-btn {
  background: transparent;
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.sandbox-tab-btn.active {
  background: var(--signature-gradient);
  color: #ffffff;
}

.sandbox-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
}

.sandbox-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.sandbox-io {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sandbox-input-area {
  position: relative;
}

.sandbox-textarea {
  width: 100%;
  height: 95px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-heading);
  font-size: 0.875rem;
  resize: none;
  line-height: 1.5;
}

.sandbox-textarea:focus {
  border-color: var(--primary-accent);
}

.sandbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sandbox-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
}

.meter-bar {
  width: 90px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  width: 99.4%;
  height: 100%;
  background: linear-gradient(90deg, #f43f5e, #10b981);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.sandbox-output-box {
  background: rgba(244, 63, 94, 0.04);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.875rem;
  color: #f3f4f6;
  min-height: 60px;
  line-height: 1.5;
}

/* ==========================================================================
   4. TRUST BANNER & ENGINE INTEGRATIONS
   ========================================================================== */
.trust-banner-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.4);
}

.trust-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detector-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.detector-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
}

.detector-chip.bypassed {
  border-color: rgba(16, 185, 129, 0.3);
  color: #e2e8f0;
}

.detector-chip.bypassed span.check {
  color: #10b981;
}

/* ==========================================================================
   5. COMPREHENSIVE TOOLS OVERVIEW (5 DEDICATED SECTIONS & HOW-TO GUIDES)
   ========================================================================== */
.tools-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  margin-top: 14px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.7;
}

.tool-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  margin-bottom: 48px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-article-card:hover {
  border-color: var(--border-glow);
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.55),
    0 0 25px rgba(244, 63, 94, 0.12);
}

.tool-article-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tool-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-accent);
  background: rgba(244, 63, 94, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.tool-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.tool-deep-dive {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 24px;
}

.tool-features-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.tool-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: #d1d5db;
}

.tool-features-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary-accent);
  margin-top: 2px;
}

/* How to Use Step-by-Step Card */
.how-to-card {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}

.how-to-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.how-to-steps {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-to-steps li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.55;
}

.how-to-steps li::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--signature-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.how-to-steps li strong {
  color: #ffffff;
}

/* Code Snippet Box for API and Code Humanizer */
.code-preview-block {
  margin-top: 18px;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
}

.code-copy-btn {
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.code-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.code-content {
  padding: 16px;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.code-keyword {
  color: #f43f5e;
}
.code-string {
  color: #34d399;
}
.code-func {
  color: #60a5fa;
}
.code-comment {
  color: #6b7280;
  font-style: italic;
}

/* Visual Comparison Box for Image Tool */
.image-comparison-box {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.comparison-panel {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-badge {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.comparison-badge.synthetic {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.comparison-badge.humanized {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comparison-visual-slot {
  height: 90px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
  background-size: cover;
}

.comparison-panel.synthetic .comparison-visual-slot {
  background: linear-gradient(135deg, #1f2937, #111827);
  border: 1px dashed rgba(239, 68, 68, 0.3);
}

.comparison-panel.humanized .comparison-visual-slot {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.1);
}

/* ==========================================================================
   6. FAQS SECTION (ACCORDION & SCHEMA STRUCTURE)
   ========================================================================== */
.faqs-section {
  padding: 90px 0;
  background: rgba(15, 23, 42, 0.3);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.faqs-container {
  max-width: 880px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(244, 63, 94, 0.3);
}

.faq-item.active {
  border-color: var(--border-glow);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(244, 63, 94, 0.1);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.faq-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-tag {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--secondary-accent);
  background: rgba(251, 146, 60, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.faq-question-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-body);
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--signature-gradient);
  color: #ffffff;
}

.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.3s ease;
}

.faq-item.active .faq-answer-pane {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

/* ==========================================================================
   7. HIGH CONVERSION CTA SECTION
   ========================================================================== */
.cta-banner-section {
  padding: 100px 0;
  position: relative;
}

.cta-banner-box {
  background: linear-gradient(
    135deg,
    rgba(244, 63, 94, 0.15) 0%,
    rgba(251, 146, 60, 0.12) 50%,
    rgba(17, 24, 39, 0.9) 100%
  );
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(244, 63, 94, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-banner-box h2 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner-box p {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto 32px;
}

.cta-button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   8. FOOTER SECTION
   ========================================================================== */
.site-footer {
  background: #080c14;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col-bio {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
}

.footer-bio-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 420px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--primary-accent);
  border-radius: 2px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  font-size: 0.9rem;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* ==========================================================================
   9. MODALS (CONTACT US, PRIVACY, TERMS, DISCLAIMER, ABOUT)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

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

.modal-dialog {
  background: #0f1626;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(244, 63, 94, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
}

.modal-close-btn {
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

.modal-body h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-top: 18px;
  margin-bottom: 8px;
}

.modal-body p {
  margin-bottom: 14px;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.modal-input,
.modal-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.9rem;
}

.modal-input:focus,
.modal-textarea:focus {
  border-color: var(--primary-accent);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS (STRICT NO-OVERFLOW UNDER 992px)
   ========================================================================== */
@media (max-width: 991px) {
  /* HIDE DESKTOP NAV LINKS ON SCREENS BELOW 992px */
  .nav-menu {
    display: none;
  }

  /* SHOW HAMBURGER BUTTON */
  .hamburger-btn {
    display: flex;
  }

  .nav-cta .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-metrics-strip {
    justify-content: center;
    gap: 20px;
  }

  .tool-article-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-col-bio {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 70px;
  }

  .navbar {
    height: 70px;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-visual-wrapper {
    min-height: 420px;
  }

  .hero-sandbox-card {
    margin: 10px;
    padding: 14px;
  }

  .tool-article-card {
    padding: 24px 18px;
  }

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

  .image-comparison-box {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col-bio {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .modal-dialog {
    max-height: 90vh;
  }
}
