/* ==========================================================================
   BUILDNEX.AI — EXPLORE FACE AI INTERACTIVE SHOWCASE (MATCHING REFERENCE UI)
   ========================================================================== */

/* ── Hero Section ───────────────────────────────────────────────────────── */
.fai-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 .fai-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);
}

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

.fai-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 .fai-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.fai-hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  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 .fai-hero-title {
  color: #f8fafc;
}

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

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

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

/* ==========================================================================
   INTERACTIVE 3-COLUMN FEATURE SHOWCASE (REFERENCE DESIGN IMPLEMENTATION)
   ========================================================================== */
.fai-showcase-section {
  padding: 8px 24px 90px;
  background: #ffffff;
  position: relative;
}

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

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

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

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

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

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

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

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

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

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

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

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

.fai-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 #000000;
  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 .fai-tab-item {
  color: #94a3b8;
}

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

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

.fai-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 .fai-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);
}

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

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

.fai-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;
}

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

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

.fai-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;
}

.fai-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 .fai-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 ──────────────────────────────────────── */
.fai-showcase-content {
  display: flex;
  flex-direction: column;
}

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

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

.fai-content-title {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.18;
  color: #0f172a;
  margin-bottom: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

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

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

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

.fai-content-desc a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.fai-feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

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

.fai-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;
}

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

/* ── 5-in-1 Unified Workflow Progression Strip ───────────────────────────── */
.fai-unified-stage-card {
  max-width: 1240px;
  margin: 40px auto 0;
  background: #f8fafc;
  border-radius: 20px;
  padding: 36px;
  border: 1px solid #e2e8f0;
}

body.dark-mode .fai-unified-stage-card {
  background: #131d31;
  border-color: rgba(255, 255, 255, 0.08);
}

.fai-unified-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 30px;
}

body.dark-mode .fai-unified-title {
  color: #f8fafc;
}

.fai-unified-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .fai-unified-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fai-unified-steps-grid {
    grid-template-columns: 1fr;
  }
}

.fai-unified-step-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 16px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.25s ease;
}

body.dark-mode .fai-unified-step-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

.fai-unified-step-item:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.1);
}

.fai-step-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 12px;
}

.fai-unified-step-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

body.dark-mode .fai-unified-step-item h5 {
  color: #f8fafc;
}

.fai-unified-step-item p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* ── CTA Banner ─────────────────────────────────────────────────────────── */
.fai-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 60px 32px;
  border-radius: 24px;
  text-align: center;
  max-width: 1240px;
  margin: 60px auto 0;
  position: relative;
  overflow: hidden;
}

.fai-cta-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.fai-cta-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.fai-cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fai-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.fai-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
}

.fai-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

body.dark-mode .fai-btn-secondary {
  background: #1e293b;
  color: #f8fafc !important;
  border-color: #334155;
}

.fai-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

body.dark-mode .fai-btn-secondary:hover {
  background: #334155;
}