/* ============================================================
   DarkLust AI — Page Specific Styles
   Features:
   - Centered, well-padded hero introduction with high contrast
   - Examples preview thumbnail showing ONLY the result image
   - Pop-up modal displaying side-by-side two 1:1 original vs result squares
   - Clean active bots and support sections
   ============================================================ */

/* ================= HERO (Proper Padding & Alignment) ================= */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 90px 24px 110px;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  text-align: center; /* Center-aligned for balanced hero presence */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy {
  max-width: 760px;
  margin-inline: auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
  background: rgba(26, 14, 40, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 30px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose-core);
  box-shadow: 0 0 0 0 rgba(255, 42, 109, 0.7);
  animation: pulseCore 2.2s ease-out infinite;
}
@keyframes pulseCore {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 109, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 42, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 109, 0); }
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  margin-bottom: 24px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
}
.hero .lede {
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 60ch;
  margin-inline: auto;
  color: #f1e9f7; /* High contrast, crisp visibility */
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 42px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 60px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 42, 109, 0.4);
}
.hero-stats div span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-full);
  z-index: 2;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--rose-core);
  transform: translateX(-50%);
  animation: cueRoll 2s var(--ease) infinite;
  box-shadow: 0 0 10px var(--rose-core);
}
@keyframes cueRoll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ================= FEATURES ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 42, 109, 0.4);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}
.feature-card:hover::before { opacity: 1; }
.feature-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 42, 109, 0.14);
  border: 1px solid rgba(255, 42, 109, 0.35);
  color: var(--rose-light);
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(255, 42, 109, 0.22);
}
.feature-card .icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 21px; margin-bottom: 12px; color: #fff; }
.feature-card p {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* ================= HOW IT WORKS ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  padding: 40px 34px;
  border-radius: var(--radius-md);
}
.step:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 42, 109, 0.35);
  box-shadow: var(--shadow-md);
}
.step .num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 4px 18px rgba(255, 42, 109, 0.4);
  margin-bottom: 24px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; color: #fff; }
.step p { color: var(--text-body); font-size: 15px; line-height: 1.7; }

/* ================= HOME CTA ================= */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 84px 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(255, 42, 109, 0.28), transparent 70%),
    radial-gradient(50% 90% at 80% 100%, rgba(147, 51, 234, 0.25), transparent 70%),
    var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 18px; color: #fff; }
.cta-banner p {
  color: var(--text-body);
  max-width: 56ch;
  margin: 0 auto 38px;
  font-size: 17.5px;
  line-height: 1.7;
}
.cta-banner .btn { margin: 0 8px 10px; }

/* ================= PAGE HERO (INNER PAGES) ================= */
.page-hero { padding: 84px 0 24px; position: relative; text-align: center; }
.page-hero h1 {
  font-size: clamp(32px, 5.2vw, 48px);
  margin-bottom: 18px;
  line-height: 1.15;
  color: #fff;
}
.page-hero .lede { max-width: 66ch; margin-inline: auto; color: var(--text-body); }

/* ================= ACTIVE BOTS (REDESIGNED) ================= */
.bots-wrap { position: relative; }
.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 440px));
  gap: 26px;
  justify-content: center;
}
.bot-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.bot-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}
.bot-card .bot-avatar {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 42, 109, 0.45);
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.3);
  background: #190e28;
}
.bot-card .bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bot-card .bot-info {
  flex: 1;
  min-width: 0;
}
.bot-card .bot-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 6px;
}
.bot-card .bot-username {
  display: block;
  font-family: var(--font-body);
  font-weight: 800; /* Bold username below name */
  font-size: 16px;
  color: var(--rose-light);
  letter-spacing: -0.01em;
}
.bot-card .bot-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 5px;
}
.bot-card .bot-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 42, 109, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 42, 109, 0.35);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.bot-card .bot-btn svg { width: 18px; height: 18px; }
.bot-card:hover .bot-btn {
  background: var(--grad-primary);
  border-color: transparent;
  transform: scale(1.1) rotate(-45deg);
  box-shadow: 0 0 16px rgba(255, 42, 109, 0.5);
}

/* ================= EXAMPLES: RESULT-ONLY THUMBNAIL GALLERY ================= */
.cats-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  padding: 14px 0;
  margin-bottom: 24px;
  background: rgba(9, 5, 14, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.cats-scroll {
  display: flex;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 6px;
  scrollbar-width: none;
}
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-body);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.cat-chip:hover {
  color: #fff;
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}
.cat-chip[aria-selected="true"] {
  background: var(--grad-primary);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px -6px rgba(255, 42, 109, 0.5);
}

/* Card shows ONLY the Result image */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
  gap: 30px;
  justify-content: center;
  width: 100%;
}
.preset-thumb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.preset-thumb-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.preset-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Clean aesthetic square preview */
  overflow: hidden;
  background: #11071c;
}
.preset-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.preset-thumb-card:hover .preset-thumb-wrap img {
  transform: scale(1.04);
}
.preset-thumb-wrap .result-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 42, 109, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.preset-thumb-wrap .click-inspect-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 4, 11, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.3s var(--ease);
}
.preset-thumb-card:hover .click-inspect-overlay {
  opacity: 1;
}

.preset-thumb-meta {
  padding: 22px 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}
.preset-thumb-meta .info-block .cat-txt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 4px;
  display: block;
}
.preset-thumb-meta .info-block .preset-name {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
}
.preset-thumb-meta .action-pill {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rose-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================= 1:1 SQUARE POP-UP MODAL (Side-by-Side Comparison) ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(7, 4, 11, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-dialog {
  width: min(940px, 100%);
  max-height: min(94svh, 920px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease);
  position: relative;
  padding: 36px 40px;
}
.modal-backdrop.open .modal-dialog { transform: none; }

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}
.modal-header-row .cat-tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 4px;
  display: block;
}
.modal-header-row h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  color: #fff;
}
.modal-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.modal-close-btn:hover {
  background: var(--rose-core);
  border-color: transparent;
  transform: rotate(90deg);
}
.modal-close-btn svg { width: 18px; height: 18px; }

/* 2 Different Original vs Result 1:1 Squares */
.modal-squares-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}
.modal-square-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #11071c;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}
.modal-square-card .square-aspect {
  width: 100%;
  aspect-ratio: 1 / 1; /* 1:1 square ratio */
  position: relative;
  overflow: hidden;
}
.modal-square-card .square-aspect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-square-card .pill-label {
  position: absolute;
  top: 14px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.modal-square-card.orig .pill-label {
  left: 14px;
  background: rgba(9, 5, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1e9f7;
}
.modal-square-card.res .pill-label {
  right: 14px;
  background: var(--grad-primary);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 42, 109, 0.5);
}

.modal-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.modal-footer-row .footer-desc {
  font-size: 15px;
  color: var(--text-body);
  max-width: 48ch;
}

/* ================= DOCS & SUPPORT ================= */
.doc-body {
  margin-top: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: clamp(32px, 5.5vw, 64px);
  box-shadow: var(--shadow-sm);
}
.doc-body h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  color: #fff;
}
.doc-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body p { margin-bottom: 18px; line-height: 1.75; font-size: 16px; color: var(--text-body); }
.doc-body ul { padding-left: 24px; margin-bottom: 20px; }
.doc-body ul li { position: relative; padding-left: 8px; margin-bottom: 12px; color: var(--text-body); }
.doc-body ul li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--grad-primary);
}

.support-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 48px;
}
.support-card { padding: 40px 36px; border-radius: var(--radius-lg); }
.support-card h2 { font-size: 24px; margin-bottom: 14px; color: #fff; }
.support-card > p { margin-bottom: 26px; font-size: 15.5px; color: var(--text-body); }
.support-points { display: grid; gap: 18px; margin-bottom: 30px; }
.support-points div { display: flex; gap: 16px; align-items: flex-start; }
.support-points .sp-ic {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 42, 109, 0.14);
  border: 1px solid rgba(255, 42, 109, 0.3);
  color: var(--rose-light);
}
.support-points .sp-ic svg { width: 22px; height: 22px; }
.support-points h3 { font-size: 17px; margin-bottom: 4px; color: #fff; }
.support-points p { font-size: 14.5px; color: var(--text-muted); }

.support-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 36px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 42, 109, 0.25), transparent 60%),
    radial-gradient(70% 100% at 0% 100%, rgba(147, 51, 234, 0.22), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.support-cta .big-ic {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 42, 109, 0.16);
  border: 1px solid rgba(255, 42, 109, 0.4);
  color: var(--rose-light);
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(255, 42, 109, 0.3);
}
.support-cta .big-ic svg { width: 32px; height: 32px; }
.support-cta h2 { font-size: 26px; margin-bottom: 12px; color: #fff; }
.support-cta p { font-size: 15.5px; margin-bottom: 26px; color: var(--text-body); }
.support-cta .tg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 42, 109, 0.16);
  border: 1px dashed rgba(244, 114, 182, 0.6);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}
.support-cta .btn { width: 100%; justify-content: center; }

.support-faq {
  margin-top: 32px;
  padding: 16px 36px 28px;
  border-radius: var(--radius-lg);
}
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
}
.faq-q .chev {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .chev { transform: rotate(180deg); color: var(--rose-light); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { color: var(--text-body); font-size: 15px; padding: 0 4px 22px; line-height: 1.7; }

/* ================= RESPONSIVE MOBILE FIXES ================= */
@media (max-width: 900px) {
  .support-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .modal-squares-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 680px) {
  .hero-inner { padding: 60px 16px 80px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 16px 32px; }

  .examples-grid {
    grid-template-columns: 1fr;
  }
  .modal-dialog {
    padding: 24px 20px;
  }
  .modal-footer-row {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-footer-row .btn { width: 100%; }
  .modal-footer-row .footer-desc { text-align: center; }

  .bots-grid {
    grid-template-columns: 1fr;
  }
  .bot-card {
    padding: 20px 22px;
  }
}
