/* ==========================================================================
   BUILDNEX.AI — AI TEMPLATE DESIGNER INTERACTIVE SHOWCASE
   ========================================================================== */

/* ── Hero Section ───────────────────────────────────────────────────────── */
.td-hero-section {
  position: relative;
  padding: 80px 24px 5px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(15, 23, 42, 0) 70%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

body.dark-mode .td-hero-section {
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%),
    linear-gradient(180deg, #090e1a 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.td-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.td-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 20px;
}

body.dark-mode .td-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.td-hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.16;
  color: #0f172a;
  margin-bottom: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

body.dark-mode .td-hero-title {
  color: #f8fafc;
}

.td-hero-title .gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.td-hero-desc {
  font-size: 1.12rem;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 0px;
}

body.dark-mode .td-hero-desc {
  color: #94a3b8;
}

/* ==========================================================================
   INTERACTIVE 3-COLUMN FEATURE SHOWCASE
   ========================================================================== */
.td-showcase-section {
  padding: 8px 24px 90px;
  background: #ffffff;
  position: relative;
}

body.dark-mode .td-showcase-section {
  background: #0f172a;
}

.td-showcase-container {
  max-width: 1420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1200px) {
  .td-showcase-container {
    grid-template-columns: 220px 1fr;
    gap: 28px;
  }
}

@media (max-width: 992px) {
  .td-showcase-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── Tab Content Panels Container ────────────────────────────────────────── */
.td-tab-panels {
  position: relative;
  width: 100%;
}

.td-tab-panel {
  display: none;
  grid-template-columns: 1.55fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 1200px) {
  .td-tab-panel {
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 992px) {
  .td-tab-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.td-tab-panel.active {
  display: grid;
  animation: tdFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tdFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Left Column: Vertical Tabs ─────────────────────────────────────────── */
.td-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.td-tab-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  width: 100%;
  text-align: left;
}

body.dark-mode .td-tab-item {
  color: #94a3b8;
}

.td-tab-item:hover {
  color: #0f172a;
  background: #f8fafc;
}

body.dark-mode .td-tab-item:hover {
  color: #f8fafc;
  background: #1e293b;
}

.td-tab-item.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

body.dark-mode .td-tab-item.active {
  background: #1e293b;
  color: #f8fafc;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.td-tab-item i {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.td-tab-item.active i {
  color: #2563eb;
  transform: translateX(3px);
}

.td-tab-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-left: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.td-tab-footer-link:hover {
  gap: 12px;
  color: #1d4ed8;
}

/* ── Middle Column: Media Showcase ──────────────────────────────────────── */
.td-showcase-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.td-media-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  padding: 0;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.td-showcase-img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 18px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.dark-mode .td-showcase-img {
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ── Right Column: Content Details ──────────────────────────────────────── */
.td-showcase-content {
  display: flex;
  flex-direction: column;
}

.td-content-kicker {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

body.dark-mode .td-content-kicker {
  color: #94a3b8;
}

.td-content-title {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

body.dark-mode .td-content-title {
  color: #f8fafc;
}

.td-content-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 24px;
}

body.dark-mode .td-content-desc {
  color: #cbd5e1;
}

.td-feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #334155;
}

body.dark-mode .td-feature-checklist li {
  color: #cbd5e1;
}

.td-feature-checklist i {
  color: #10b981;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.td-learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
}

.td-learn-more-btn:hover {
  gap: 12px;
  color: #1d4ed8;
}

/* ── Template Section & Feature List with Carousel ───────────────────────── */
.template-section {
  padding: 12px 19px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.template-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .template-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.template-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.template-content-title {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 800;
  color: #0b1727;
  line-height: 1.2;
  margin: 0 0 8px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.feature-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e8f0fe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feature-item-title {
  font-size: 1.16rem;
  font-weight: 800;
  color: #0b1727;
  line-height: 1.3;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}

.feature-item-desc {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

.template-carousel-wrap {
  width: 100%;
  position: relative;
}

.template-carousel-box {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.15);
}

/* ── Dark Mode Overrides for Added Sections ───────────────────────────────── */
body.dark-mode .template-section {
  background: #0b1329 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .template-content-title,
body.dark-mode .dms-main-title,
body.dark-mode .feature-item-title {
  color: #f8fafc !important;
}

body.dark-mode .feature-item-desc {
  color: #94a3b8 !important;
}

body.dark-mode .feature-icon-box {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #60a5fa !important;
}

body.dark-mode #smart-document-management,
body.dark-mode .pw-section {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .pw-row-title {
  color: #f8fafc !important;
}

body.dark-mode .pw-list li span {
  color: #94a3b8 !important;
}

body.dark-mode .pw-list li span strong {
  color: #f8fafc !important;
}

body.dark-mode .td-benefits-grid-section {
  background: #090e1a !important;
}

body.dark-mode .td-benefit-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .td-bcard-title {
  color: #f8fafc !important;
}

body.dark-mode .td-bcard-desc {
  color: #94a3b8 !important;
}

/* ==========================================================================
   AI TEMPLATE & ERP DASHBOARD 4-CARD + CENTER IMAGE SHOWCASE
   ========================================================================== */
.ai-temp-showcase-section {
  padding: 85px 24px 10px;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.04) 0%, rgba(248, 250, 252, 1) 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.ai-temp-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 50px;
}

.ai-temp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 14px;
}

.ai-temp-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.ai-temp-desc {
  font-size: 1.08rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 auto;
}

/* 3-Column Layout: Left (2 cards) | Center (Image) | Right (2 cards) */
.ai-temp-main-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.38fr 1fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .ai-temp-main-grid {
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .ai-temp-main-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.ai-temp-col-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}

/* Card Styling */
.ai-temp-card {
  background: #ffffff;
  padding: 0px 12px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ai-temp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.12);
}

.ai-temp-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ai-temp-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ai-temp-icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

.ai-temp-icon-purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.ai-temp-icon-green {
  background: #ecfdf5;
  color: #059669;
}

.ai-temp-icon-amber {
  background: #fffbeb;
  color: #d97706;
}

.ai-temp-card-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 2px;
}

.ai-temp-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ai-temp-card-body {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 16px;
}

.ai-temp-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.ai-temp-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

.ai-temp-card-list li i {
  color: #2563eb;
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.ai-temp-card-list li strong {
  color: #0f172a;
}

/* Center Image Column */
.ai-temp-center-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ai-temp-img-wrapper {
  background: #ffffff;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-temp-img-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px -15px rgba(37, 99, 235, 0.2);
}

.ai-temp-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

.ai-temp-img-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ai-temp-img-badge i {
  color: #10b981;
}

/* Dark Mode Overrides */
body.dark-mode .ai-temp-showcase-section {
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08) 0%, rgba(9, 14, 26, 1) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .ai-temp-title {
  color: #f8fafc;
}

body.dark-mode .ai-temp-desc {
  color: #94a3b8;
}

body.dark-mode .ai-temp-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .ai-temp-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

body.dark-mode .ai-temp-card-kicker {
  color: #94a3b8;
}

body.dark-mode .ai-temp-card-title {
  color: #f8fafc;
}

body.dark-mode .ai-temp-card-body {
  color: #94a3b8;
}

body.dark-mode .ai-temp-card-list li {
  color: #cbd5e1;
}

body.dark-mode .ai-temp-card-list li strong {
  color: #f8fafc;
}

body.dark-mode .ai-temp-img-wrapper {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}