@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

* {
  font-family: 'Sora', sans-serif;
}

.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-brands, .fa-regular {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p, a, span, li, input, textarea, button {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
}

/* ===== CRM HERO ===== */
.service-hero {
 background: linear-gradient(135deg, #00142873, #003a8c, #0078d483);
  color: white;
}
.logo-3d img {
 transform: scale(1.1);   
}

/* ===== SHARED ===== */
.crm-section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}
.crm-section-intro h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 14px;
  background:linear-gradient(135deg, #001428ad, #003a8c, #0078d4d5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.crm-section-intro p {
  font-size: 17px;
  color: #475569;
  line-height: 1.6;
}

.crm-buttons { display: flex; flex-direction: column; gap: 15px; }
.crm-buttons button {
  background: transparent;
  border: 1px solid #334155;
  color: #24243e;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: .3s;
  font-size: 14px;
}
.crm-buttons button:hover { transform: translateX(6px); }

/* ===== SALES SECTION ===== */
.crm-sales-section {
  padding: 120px 10%;
  background: #f8faff;
  color: #1f2937;
}
.crm-sales-container {
  display: flex;
  align-items: flex-start;
  gap: 70px;
}
/*  SALES FUNNEL  */

.pipeline-board {
  width: 50%;
  background: white;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 0 40px rgba(0,120,212,0.2);
}
.pipeline-header {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 28px;
  color: #1f2937;
}

/* FUNNEL WRAP */
.funnel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

/* EACH STAGE ROW */
.funnel-stage {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.funnel-stage.show {
  opacity: 1;
  transform: translateY(0);
}

/* BAR WRAP  */
.funnel-bar-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

/* THE BAR ITSELF */
.funnel-bar {
  height: 52px;
  width: 0;                          
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  transition: width 1.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}

.funnel-label {
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.funnel-count {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}

/* META TEXT below each bar */
.funnel-meta {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

/* ARROW between stages */
.funnel-arrow {
  font-size: 14px;
  color: #cbd5f5;
  margin: 4px 0;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.funnel-arrow.show {
  opacity: 1;
}

/* RIGHT TEXT */
.crm-sales-text { width: 50%; }
.crm-sales-text h2 { font-size: 26px; margin-bottom: 20px; }
.crm-sales-text p  { line-height: 1.7; color: #24243e; margin-bottom: 30px; }

/* ===== MARKETING SECTION ===== */
.crm-marketing-section {
  padding: 70px 10%;
  background: #f8faff;
  color: #1f2937;
}
.crm-marketing-container {
  display: flex;
  align-items: center;
  gap: 70px;
}

/* LEFT TEXT */
.crm-marketing-text { width: 50%; }
.crm-marketing-text h2 { font-size: 26px; margin-bottom: 20px; }
.crm-marketing-text p  { line-height: 1.7; color: #24243e; margin-bottom: 30px; }

/* CAMPAIGN DASHBOARD SCREEN */

.campaign-screen {
  width: 50%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0,120,212,0.2);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  font-family: inherit;
}
.campaign-screen.show {
  opacity: 1;
  transform: translateY(0);
}

/* TOP NAVBAR */
.cs-navbar {
  background: #1e293b;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cs-navbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-nav-icon { font-size: 16px; }
.cs-nav-breadcrumb {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}
.cs-sep { color: #64748b; margin: 0 4px; }
.cs-navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-date-range {
  font-size: 11px;
  color: #94a3b8;
}
.cs-new-btn {
  background: linear-gradient(135deg, #003a8c, #0078d483);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* MAIN BODY */
.cs-body {
  display: flex;
  height: 340px;
}

/* SIDEBAR */
.cs-sidebar {
  width: 130px;
  background: #f8faff;
  border-right: 1px solid #e2e8f0;
  padding: 12px 0;
  flex-shrink: 0;
  overflow-y: auto;
}
.cs-sidebar-title {
  font-size: 9px;
  font-weight: 800;
  color: #302b63;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 12px 10px;
}
.cs-folder {
  font-size: 11px;
  color: #475569;
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.cs-folder span {
  background: #e2e8f0;
  color: #64748b;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}
.cs-folder:hover { background: #e8eaf6; }
.cs-folder.active {
  background: linear-gradient(90deg, rgba(48,43,99,0.1), transparent);
  color: #302b63;
  font-weight: 700;
  border-left: 3px solid #302b63;
}
.cs-folder.active span { background: #302b63; color: white; }
.cs-add-folder {
  font-size: 11px;
  color: linear-gradient(135deg, #003a8c, #0078d483);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

/* RIGHT CONTENT */
.cs-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* TABLE HEADER */
.cs-table-header {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 7px 10px;
}
.cs-col-campaign {
  flex: 2;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cs-col {
  flex: 1;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* TABLE ROWS */
.cs-row {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.2s;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s;
}
.cs-row.show { opacity: 1; transform: translateX(0); }
.cs-row:hover { background: #f8faff; }
.cs-row:first-of-type { background: rgba(48,43,99,0.04); }

.cs-col-campaign {
  flex: 2;
  font-size: 12px;
  color: #1f2937;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cs-col {
  flex: 1;
  font-size: 12px;
  color: #475569;
  text-align: center;
}
.cs-col.strong { font-weight: 700; color: #1f2937; }

/* Colored dots */
.cs-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cs-row-dot.blue   { background: #3b82f6; }
.cs-row-dot.purple { background: #9333ea; }
.cs-row-dot.green  { background: #22c55e; }
.cs-row-dot.orange { background: #f59e0b; }
.cs-row-dot.red    { background: #ef4444; }

/* Badges */
.cs-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.cs-badge.green  { background: #dcfce7; color: #16a34a; }
.cs-badge.yellow { background: #fef9c3; color: #ca8a04; }

/* DETAIL PANEL */
.cs-detail-panel {
  background: #f8faff;
  border-top: 2px solid #e2e8f0;
  padding: 10px 12px;
  flex-shrink: 0;
}
.cs-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cs-detail-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f0c29;
}
.cs-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cs-action-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
}
.cs-action-btn.stats {
 background: linear-gradient(135deg, #003a8c, #0078d483);
  color: white;
  border: none;
}
.cs-published {
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
}
.cs-detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}
.cs-tab {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  padding: 4px 14px;
  cursor: pointer;
}
.cs-tab.active {
  color: #302b63;
  border-bottom: 2px solid #302b63;
}
.cs-detail-stats {
  display: flex;
  gap: 0;
}
.cs-ds {
  flex: 1;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  padding: 0 8px;
}
.cs-ds:last-child { border-right: none; }
.cs-ds-val {
  font-size: 16px;
  font-weight: 800;
 background: linear-gradient(135deg, #003a8c, #0078d483);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-ds-label {
  font-size: 9px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .campaign-screen { width: 100%; }
  .cs-body { height: auto; flex-direction: column; }
  .cs-sidebar { width: 100%; height: auto; display: flex; flex-wrap: wrap; padding: 8px; border-right: none; border-bottom: 1px solid #e2e8f0; }
  .cs-folder { width: auto; padding: 4px 10px; }
}

/* ===== SERVICE SECTION ===== */
.crm-service-section {
  padding:70px 10%;
  background: #f8faff;
  color: #1f2937;
}
.crm-service-container {
  display: flex;
  align-items: flex-start;
  gap: 70px;
}

/* Ticket Board */
.ticket-board {
  width: 50%;
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 40px rgba(0,120,212,0.2);
}
.ticket-header {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
  color: #1f2937;
}
.ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8faff;
  margin-bottom: 12px;
  border-left: 3px solid #302b63;
  opacity: 0;
  transform: translateX(-20px);
  transition: .5s;
}
.ticket-item.show {
  opacity: 1;
  transform: translateX(0);
}
.ticket-id    { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.ticket-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 3px; }
.ticket-customer { font-size: 11px; color: #64748b; }
.ticket-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.ticket-badge.open     { background: #fee2e2; color: #dc2626; }
.ticket-badge.progress { background: #fef9c3; color: #ca8a04; }
.ticket-badge.resolved { background: #dcfce7; color: #16a34a; }

/* RIGHT TEXT */
.crm-service-text { width: 50%; }
.crm-service-text h2 { font-size: 26px; margin-bottom: 20px; }
.crm-service-text p  { line-height: 1.7; color: #24243e; margin-bottom: 30px; }

/* ===== AI INSIGHTS SECTION ===== */
.crm-insights-section {
  padding:70px 10%;
  background: #f8faff;
  color: #1f2937;
}
.crm-insights-container {
  display: flex;
  align-items: center;
  gap: 70px;
}

/* LEFT TEXT */
.crm-insights-text { width: 50%; }
.crm-insights-text h2 { font-size: 26px; margin-bottom: 20px; }
.crm-insights-text p  { line-height: 1.7; color: #24243e; margin-bottom: 30px; }

/* RIGHT*/
.ai-cards-wrap {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-score-card {
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  border-left: 3px solid #302b63;
  opacity: 0;
  transform: translateX(30px);
  transition: .5s;
}
.ai-score-card.show {
  opacity: 1;
  transform: translateX(0);
}
.ai-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0014289f, #003a8c, #0078d48f);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 17px;
  flex-shrink: 0;
}
.ai-info { flex: 1; }
.ai-label { font-size: 11px; color: #64748b; margin-bottom: 4px; }
.ai-value { font-size: 14px; font-weight: 700; }
.ai-value.high { color: #dc2626; }
.ai-value.good { color: #16a34a; }
.ai-action {
  font-size: 12px;
  color: #302b63;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== TABLET (601px – 1024px) ===== */
@media (max-width: 1024px) {

  /* HERO */
  .service-hero {
    padding: 60px 6% 50px;
    text-align: center;
  }
  .hero-content h1 { font-size: 32px; }
  .hero-content p  { font-size: 15px; }


  /* SERVICE CARDS */
  .service-cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px;
    margin-top: 28px;
  }
  .service-hero .service-cards .service-card {
    width: 80% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  /* LOGO BADGE */
  .logo-3d { padding: 12px 24px; }
  .logo-3d img { transform: scale(1.1); }
  .logo-3d span { font-size: 13px; }

  /* SECTION INTRO */
  .crm-section-intro { margin: 0 auto 50px; }
  .crm-section-intro h2 { font-size: 30px; }

  /* SECTIONS PADDING */
  .crm-sales-section,
  .crm-marketing-section,
  .crm-service-section,
  .crm-insights-section {
    padding: 60px 6%;
  }

  /* CONTAINERS */
  .crm-sales-container,
  .crm-marketing-container,
  .crm-service-container,
  .crm-insights-container {
    gap: 36px;
  }

  /* CAMPAIGN SCREEN */
  .campaign-screen { width: 50%; }

  /* PIPELINE BOARD */
  .pipeline-board { padding: 24px; }
  .funnel-bar { height: 44px; }
}


/* ===== MOBILE (max-width: 600px) ===== */
@media (max-width: 600px) {

  /* HERO */
  .service-hero {
    padding: 40px 5% 44px;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 24px;
    line-height: 1.3;
  }
  .hero-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* SERVICE CARDS*/
  .service-cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px;
    margin-top: 28px;
  }
  .service-hero .service-cards .service-card {
    width: 80% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  /* LOGO BADGE */
  .logo-3d {
    padding: 10px 18px;
    gap: 10px;
    border-radius: 12px;
    margin-bottom: 18px;
  }
  .logo-3d img {
    height: 26px;
    transform: scale(1.1);
  }
  .logo-3d span { font-size: 11px; font-weight: 600; }

  /* SECTION INTRO */
  .crm-section-intro {
    margin: 0 auto 36px;
    padding: 0 4px;
  }
  .crm-section-intro h2 {
    font-size: 22px;
    line-height: 1.3;
  }
  .crm-section-intro p { font-size: 14px; }

  /* ALL SECTIONS PADDING */
  .crm-sales-section,
  .crm-marketing-section,
  .crm-service-section,
  .crm-insights-section {
    padding: 44px 5%;
  }

  /* ALL CONTAINERS — stack */
  .crm-sales-container,
  .crm-marketing-container,
  .crm-service-container,
  .crm-insights-container {
    flex-direction: column !important;
    gap: 28px;
  }

  /* ALL HALVES — full width */
  .pipeline-board,
  .crm-sales-text,
  .crm-marketing-text,
  .campaign-screen,
  .ticket-board,
  .crm-service-text,
  .crm-insights-text,
  .ai-cards-wrap {
    width: 100% !important;
  }

  /* FUNNEL */
  .pipeline-board {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .funnel-bar {
    height: 42px;
    padding: 0 12px;
  }
  .funnel-label { font-size: 12px; }
  .funnel-count { font-size: 11px; }
  .funnel-meta  { font-size: 10px; }

  /* CRM TEXT */
  .crm-sales-text h2,
  .crm-marketing-text h2,
  .crm-service-text h2,
  .crm-insights-text h2 {
    font-size: 20px;
    line-height: 1.3;
  }
  .crm-sales-text p,
  .crm-marketing-text p,
  .crm-service-text p,
  .crm-insights-text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  /* CRM BUTTONS */
  .crm-buttons { gap: 10px; }
  .crm-buttons button {
    font-size: 13px;
    padding: 10px 12px;
  }
/* CAMPAIGN SCREEN — mobile */
.campaign-screen {
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.82);
  transform-origin: top center;
  margin-bottom: -40px; 
}
.cs-body {
  height: auto;
  flex-direction: column;
}
.cs-sidebar {
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  padding: 6px;
  border-right: none;
  border-bottom: 1px solid #e2e8f0;
}
.cs-folder { padding: 3px 8px; font-size: 9px; }
.cs-table-header { display: none; }
.cs-row { padding: 6px 8px; }
.cs-col { font-size: 10px; }
.cs-col-campaign { font-size: 10px; }
.cs-detail-stats { flex-wrap: wrap; }
.cs-ds {
  flex: 1 1 45%;
  border-right: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 5px 4px;
}
.cs-ds-val { font-size: 13px; }
.cs-navbar { padding: 8px 12px; }
.cs-nav-breadcrumb { font-size: 10px; }
.cs-new-btn { font-size: 10px; padding: 4px 10px; }

/* TICKET BOARD — mobile */
.ticket-board {
  padding: 16px 12px;
  border-radius: 12px;
  transform: scale(0.88);
  transform-origin: top center;
  margin-bottom: -30px;
}
.ticket-item {
  padding: 10px 12px;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ticket-badge { 
  align-self: center;
  font-size: 9px;
  padding: 3px 8px;
}
.ticket-title { font-size: 11px; }
.ticket-id { font-size: 9px; }
.ticket-customer { font-size: 9px; }

  /* AI SCORE CARDS */
  .ai-score-card {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 12px;
  }
  .ai-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 8px;
  }
  .ai-label  { font-size: 10px; }
  .ai-value  { font-size: 13px; }
  .ai-action { font-size: 11px; }
}