/* ===================================================================
   S2 DIGITAL AGENCY - STYLESHEET
   Style: Chuyên Nghiệp, Tinh Gọn, Giao Diện Sáng, Màu Đỏ Chủ Đạo
   Theme: Light Theme + Dominant Red Accent (#DC2626 / #E53935)
   =================================================================== */

:root {
  /* Màu đỏ chủ đạo & biến thể */
  --primary-red: #DC2626;          /* Đỏ chuẩn mạnh mẽ, chuyên nghiệp */
  --primary-red-hover: #B91C1C;    /* Đỏ đậm khi hover */
  --primary-red-dark: #991B1B;     /* Đỏ thẫm */
  --primary-red-light: #FEE2E2;   /* Đỏ nhạt nền badge */
  --primary-red-soft: #FEF2F2;    /* Nền đỏ phớt rất nhẹ */
  --primary-gradient: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
  --red-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.35);

  /* Màu giao diện sáng (Light Theme) */
  --bg-body: #F8FAFC;              /* Nền tổng thể trang */
  --bg-white: #FFFFFF;             /* Nền khối nội dung trắng tinh */
  --bg-gray-subtle: #F1F5F9;       /* Nền khối xen kẽ nhẹ */
  --bg-dark: #0F172A;              /* Màu nền footer & thanh điểm nhấn */

  /* Màu chữ & Độ tương phản chuẩn */
  --text-main: #0F172A;            /* Màu chữ chính đen than đậm nét */
  --text-muted: #475569;           /* Màu chữ phụ xám dễ đọc */
  --text-light: #94A3B8;           /* Màu chữ mờ */
  --text-white: #FFFFFF;

  /* Đường viền & Đổ bóng tinh tế */
  --border-color: #E2E8F0;
  --border-red: rgba(220, 38, 38, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.1);
  --shadow-hover: 0 16px 36px -4px rgba(220, 38, 38, 0.12);

  /* Font & Bo góc */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Chuyển động */
  --transition: all 0.25s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

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

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utilities */
.highlight-red {
  color: var(--primary-red);
  position: relative;
}

.section {
  padding: 90px 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}

.sub-title {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.35rem;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  box-shadow: var(--red-shadow);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-outline:hover {
  background: var(--primary-red-soft);
  color: var(--primary-red-hover);
  border-color: var(--primary-red-hover);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* ================= TOPBAR ================= */
.topbar {
  background: #111827;
  color: #E2E8F0;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid #1F2937;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.divider {
  color: #4B5563;
}

.topbar-link {
  color: #F3F4F6;
}

.topbar-link:hover {
  color: #F87171;
}

/* ================= HEADER & NAV ================= */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  color: var(--text-white);
  border-radius: var(--radius-md);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.logo-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary-red);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

/* ================= HERO SECTION ================= */
.hero-section {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-red-soft);
  border: 1px solid var(--primary-red-light);
  color: var(--primary-red);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px rgba(220, 38, 38, 0.6); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: 3.1rem;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-highlights {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Hero Visual Preview Card */
.hero-visual {
  position: relative;
}

.hero-card-preview {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.preview-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--primary-red-light);
  background: var(--primary-red-soft);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-red);
  margin: 4px 0 2px;
}

.stat-trend {
  font-size: 0.75rem;
  color: #16A34A;
  font-weight: 600;
}

.preview-live-terminal {
  background: #0F172A;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: monospace;
  font-size: 0.8rem;
  color: #CBD5E1;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 6px;
}
.terminal-line:last-child {
  margin-bottom: 0;
}

.terminal-tag {
  color: #F87171;
  font-weight: 700;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.floating-badge strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.floating-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-red-soft);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-top-right {
  top: -18px;
  right: -15px;
  border-left: 4px solid var(--primary-red);
}

.badge-bottom-left {
  bottom: -20px;
  left: -15px;
  border-left: 4px solid #10B981;
}

/* Metrics Bar */
.hero-metrics-container {
  margin-top: 60px;
}

.hero-metrics-bar {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.metric-col {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border-color);
}
.metric-col:last-child {
  border-right: none;
}

.metric-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1.1;
  margin-bottom: 6px;
}

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

/* ================= DỊCH VỤ CỐT LÕI ================= */
.services-section {
  background: var(--bg-body);
}

.service-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.tab-btn {
  padding: 10px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary-red);
  color: var(--text-white);
  border-color: var(--primary-red);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-hover);
}

.service-card.featured {
  border: 2px solid var(--primary-red);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary-red);
  color: var(--text-white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-red-soft);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--primary-red);
  color: var(--text-white);
  transform: scale(1.05);
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-red);
  margin-bottom: 6px;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-bullets {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-bullets li {
  font-size: 0.83rem;
  color: var(--text-main);
  position: relative;
  padding-left: 16px;
  line-height: 1.5;
}

.service-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-red);
  font-weight: 700;
}

/* ================= SPOTLIGHT: AI & OPENCLAW ================= */
.ai-spotlight {
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ai-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-red-soft);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ai-feature-content h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.ai-feature-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Simulation Chat Card */
.ai-simulation-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.sim-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.sim-badge-online {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #16A34A;
}

.pulse-green {
  width: 8px;
  height: 8px;
  background: #16A34A;
  border-radius: 50%;
  box-shadow: 0 0 8px #16A34A;
}

.sim-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.sim-chat-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.msg-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 90%;
}

.msg-bubble.user {
  background: #E2E8F0;
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-bubble.bot {
  background: var(--bg-white);
  border: 1px solid var(--primary-red-light);
  color: var(--text-main);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.msg-sender {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 4px;
}

.msg-time {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 6px;
  text-align: right;
}

.msg-action-log {
  background: #DCFCE7;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #15803D;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-benefits-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.sim-stat-item {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sim-stat-item strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary-red);
}

/* ================= CRM & ERP SECTION ================= */
.crm-section {
  background: var(--bg-body);
}

.crm-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.crm-module-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
}

.crm-module-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-hover);
}

.module-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-red-light);
  line-height: 1;
  margin-bottom: 12px;
}

.module-title {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.module-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

.module-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-checklist li {
  font-size: 0.86rem;
  color: var(--text-main);
  position: relative;
  padding-left: 20px;
}

.module-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-red);
  font-weight: 700;
}

/* ================= BẢNG GIÁ ================= */
.pricing-section {
  background: var(--bg-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-md);
}

.pricing-card.popular {
  background: var(--bg-white);
  border: 2px solid var(--primary-red);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-red);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.plan-target {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.plan-price .currency {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.plan-price .amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-red);
}

.plan-price .period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.pricing-footer {
  margin-top: auto;
}

/* ================= QUY TRÌNH 5 BƯỚC ================= */
.process-section {
  background: var(--bg-body);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.step-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.step-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.step-circle {
  width: 52px;
  height: 52px;
  background: var(--primary-red-soft);
  color: var(--primary-red);
  border: 2px solid var(--primary-red-light);
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step-item:hover .step-circle {
  background: var(--primary-red);
  color: var(--text-white);
}

.step-title {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ================= ĐÁNH GIÁ KHÁCH HÀNG ================= */
.testimonials-section {
  background: var(--bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #F59E0B;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-red);
  color: var(--text-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.client-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.client-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================= LIÊN HỆ & FORM ================= */
.contact-section {
  background: var(--bg-body);
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.contact-info {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: var(--text-white);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-title {
  color: var(--text-white);
  font-size: 2.2rem;
  margin: 12px 0 16px;
  line-height: 1.25;
}

.contact-desc {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item .icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item small {
  display: block;
  font-size: 0.78rem;
  color: #94A3B8;
}

.contact-item strong {
  font-size: 1rem;
  color: #FFFFFF;
}

.contact-perks {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #FCA5A5;
}

.contact-form-box {
  padding: 48px;
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.form-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-body);
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-red);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-privacy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ================= FOOTER ================= */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid #1E293B;
}

.footer .logo-name {
  color: #FFFFFF;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 18px 0 20px;
  color: #94A3B8;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-red);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #F87171;
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  background: #070D18;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748B;
}

/* ================= FLOATING CONTACT ================= */
.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-zalo {
  background: #0068FF;
  font-weight: 700;
  font-size: 0.85rem;
}

.float-call {
  background: var(--primary-red);
  animation: call-pulse 2s infinite;
}

@keyframes call-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.float-top {
  background: #475569;
  opacity: 0;
  visibility: hidden;
}

.float-top.show {
  opacity: 1;
  visibility: visible;
}

/* ================= MODAL THÀNH CÔNG ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.modal-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge, .hero-btn-group, .hero-highlights {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-grid, .contact-card {
    grid-template-columns: 1fr;
  }
  .crm-showcase-grid, .pricing-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .header-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 20px;
    display: none;
  }
  .nav-menu.active {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .metric-col {
    border-right: none;
  }
  .services-grid, .crm-showcase-grid, .pricing-grid, .testimonials-grid, .process-steps {
    grid-template-columns: 1fr;
  }
  .pricing-card.popular {
    transform: none;
  }
  .contact-info, .contact-form-box {
    padding: 30px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

