/* ===================================================================
   NUSANTARA REPUBLIKA CUSTOMER SOLUTION - LIGHT MODERN DESIGN SYSTEM
   Theme: Putih Bersih Modern (Clean White) dengan Aksen Merah, Putih & Gold
   Font: Plus Jakarta Sans & JetBrains Mono
   =================================================================== */

:root {
  /* Colors - Clean White Base */
  --bg-dark: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-warm: #fef8f8;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-elevated: #f1f5f9;

  /* Brand Accents - Nusantara Merah, Putih & Gold */
  --primary-red: #dc2626;
  --primary-red-hover: #b91c1c;
  --primary-red-dim: rgba(220, 38, 38, 0.08);
  --primary-white: #ffffff;
  --primary-gold: #f59e0b;
  --primary-gold-light: #fbbf24;
  --primary-gold-dark: #b45309;
  --primary-crimson: #991b1b;
  
  --accent-emerald: #059669;
  --accent-amber: #d97706;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  --grad-red-gold: linear-gradient(135deg, #dc2626 0%, #e11d48 40%, #d97706 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #b45309 100%);
  --grad-badge: linear-gradient(135deg, #fee2e2 0%, #fef3c7 100%);

  /* Text Colors (High Contrast on White) */
  --text-main: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-dark: #0f172a;
  --text-light: #ffffff;

  /* Borders & Shadows */
  --border-subtle: #e2e8f0;
  --border-card: #e5e7eb;
  --border-gold: rgba(245, 158, 11, 0.4);
  --border-active: #dc2626;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-red-glow: 0 4px 20px rgba(220, 38, 38, 0.28);
  --shadow-gold-glow: 0 4px 20px rgba(245, 158, 11, 0.28);

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1340px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: #ffffff;
  /* Pola Kotak-Kotak Modern & Tajam (Cyber Blueprint Grid) */
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.065) 1px, transparent 1px),
    linear-gradient(to right, rgba(220, 38, 38, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(220, 38, 38, 0.04) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 128px 128px, 128px 128px;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Particle Canvas (Subtle on Light BG) */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* Ambient Glow Orbs (Soft Watercolor Effect) */
.ambient-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.12;
}

.glow-top {
  top: -150px;
  left: 15%;
  background: radial-gradient(circle, #fca5a5 0%, #fef08a 50%, transparent 80%);
}

.glow-middle {
  top: 1400px;
  right: -100px;
  background: radial-gradient(circle, #fed7aa 0%, #fecdd3 50%, transparent 80%);
}

.glow-bottom {
  top: 2900px;
  left: -150px;
  background: radial-gradient(circle, #fef08a 0%, #fee2e2 50%, transparent 80%);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

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

.text-gradient {
  background: var(--grad-red-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-center {
  text-align: center;
}

/* ===================================================================
   BUTTON SYSTEM: MERAH, PUTIH & GOLD (SESUAI REQUEST USER)
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* 1. BUTTON PRIMARY: Merah Solid, Teks Putih Bersih, dengan Border & Aksen Gold Mewah */
.btn-primary {
  background: var(--primary-red);
  color: var(--primary-white);
  font-weight: 700;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.3);
  position: relative;
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  border-color: var(--primary-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(220, 38, 38, 0.35), 0 0 15px rgba(245, 158, 11, 0.4);
}

.btn-primary svg {
  color: var(--primary-gold-light);
}

/* Button Glow Efek */
.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: var(--primary-gold);
  filter: blur(8px);
  opacity: 0.35;
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-glow:hover::after {
  opacity: 0.7;
  filter: blur(12px);
}

/* 2. BUTTON SECONDARY / OUTLINE: Latar Putih Bersih, Border Gold Mewah, Teks Merah */
.btn-secondary {
  background: var(--primary-white);
  color: var(--primary-red);
  border: 1.5px solid var(--primary-gold);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #fff5f5;
  border-color: var(--primary-red);
  color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary svg {
  color: var(--primary-gold);
}

/* 3. BUTTON GLASS / ALTERNATIVE: Putih dengan Border Halus & Teks Gelap */
.btn-glass {
  background: var(--primary-white);
  color: var(--text-dark);
  border: 1.5px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
  border-color: var(--primary-gold);
  color: var(--primary-red);
  background: #fdfaf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.btn-glass svg {
  color: var(--primary-red);
}

/* Top Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #fee2e2 0%, #fef3c7 100%);
  border-bottom: 1px solid #fde68a;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: #78350f;
  position: relative;
  z-index: 100;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge-pulse {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-gold);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.announcement-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.announcement-link:hover {
  text-decoration: underline;
  color: var(--primary-red-hover);
}

/* Navbar */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.18);
  border: 1.5px solid var(--primary-gold);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.50rem;
  letter-spacing: 0.08em;
  color: var(--primary-gold-dark);
  font-family: var(--font-code);
  font-weight: 700;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-link {
  color: #475569;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.35rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover {
  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-smooth);
  border-radius: 2px;
}

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

.nav-pill {
  background: #fef2f2;
  color: var(--primary-red);
  border: 1px solid #fecaca;
  font-size: 0.62rem;
  padding: 0.08rem 0.38rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-actions .btn {
  font-size: 0.82rem;
  padding: 0.46rem 0.9rem;
  gap: 0.4rem;
}

/* LANGUAGE SWITCHER (ID / EN) */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--primary-gold);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.38rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  gap: 0.2rem;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  line-height: 1.1;
}

.lang-btn:hover {
  color: var(--primary-red);
}

.lang-btn.active {
  background: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.lang-divider {
  font-size: 0.68rem;
  color: #cbd5e1;
  font-weight: 600;
  user-select: none;
}

/* Drawer Language Box */
.drawer-lang-box {
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.drawer-lang-label {
  font-size: 0.66rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drawer-lang-pills {
  display: flex;
  gap: 0.5rem;
}

.drawer-lang-btn {
  flex: 1;
  padding: 0.45rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.drawer-lang-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-red);
}

.drawer-lang-btn.active {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-gold);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  height: 2px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* HERO SECTION */
.hero-section {
  padding: 4.5rem 0 5rem;
  position: relative;
  background: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  position: relative;
}

/* Modern Prestige Badge (Pengganti Rectangle Bulat Merah) */
.hero-prestige-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 1.5px solid #f59e0b;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.16), 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.hero-prestige-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.28);
  border-color: #d97706;
}

.badge-gold-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

.badge-tag-highlight {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #b45309;
  font-family: var(--font-code);
}

.badge-divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #cbd5e1;
}

.badge-subtext {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-description strong {
  color: var(--text-dark);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: #cbd5e1;
}

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

.visual-card-wrapper {
  position: relative;
}

.visual-card-glow {
  position: absolute;
  inset: -15px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(245, 158, 11, 0.25) 100%);
  border-radius: var(--radius-lg);
  filter: blur(35px);
  opacity: 0.6;
  z-index: 0;
  animation: glowFloat 6s ease-in-out infinite alternate;
}

@keyframes glowFloat {
  0% { transform: scale(0.96) translate(0, 0); opacity: 0.4; }
  100% { transform: scale(1.02) translate(5px, -5px); opacity: 0.7; }
}

.visual-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 2px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.hero-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.visual-card:hover .hero-showcase-img {
  transform: scale(1.03);
}

/* Floating Live Chips */
.floating-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #fecdd3;
  backdrop-filter: blur(14px);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: var(--transition-smooth);
}

.floating-chip:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
}

.chip-top-left {
  top: 20px;
  left: 20px;
}

.chip-bottom-right {
  bottom: 25px;
  right: 20px;
}

.chip-center-stat {
  bottom: 25px;
  left: 20px;
  font-size: 0.8rem;
  font-family: var(--font-code);
  color: #475569;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.85rem;
}

.chip-center-stat strong {
  color: var(--primary-red);
}

.chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-emerald {
  background: #d1fae5;
  color: var(--accent-emerald);
}

.bg-violet {
  background: #fee2e2;
  color: var(--primary-red);
}

.chip-content {
  display: flex;
  flex-direction: column;
}

.chip-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}

.chip-subtitle {
  font-size: 0.72rem;
  color: #64748b;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-red);
  box-shadow: 0 0 10px var(--primary-red);
  animation: pulseDot 1.5s infinite;
}

/* ECOSYSTEM TICKER SECTION */
.ecosystem-section {
  padding: 2.2rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow: hidden;
}

.ecosystem-heading {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--primary-gold-dark);
  margin-bottom: 1.25rem;
}

.ecosystem-scroll-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ecosystem-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: scrollTicker 32s linear infinite;
}

.ecosystem-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.tech-tag:hover {
  background: #fff1f2;
  border-color: var(--primary-gold);
  color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* GENERIC SECTION HEADERS */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary-red);
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.08);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.65;
}

/* LIVE WORKFLOW VISUALIZER */
.workflow-section {
  background: transparent;
}

.workflow-canvas-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.6rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 1rem;
}

.canvas-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.canvas-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.canvas-dot.red { background: #ef4444; }
.canvas-dot.yellow { background: #f59e0b; }
.canvas-dot.green { background: #10b981; }

.canvas-title {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  margin-left: 0.4rem;
}

.canvas-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Workflow Flow Grid & Nodes */
.workflow-flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 3rem 2rem;
  gap: 0.8rem;
  background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.workflow-node {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.15rem;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  min-height: 190px;
  display: flex;
  flex-direction: column;
}

.workflow-node:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-md);
}

.workflow-node.active-node {
  border-color: var(--primary-red);
  background: #fff5f5;
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.2), 0 0 0 1px var(--primary-gold);
  transform: scale(1.03);
}

.workflow-node.completed-node {
  border-color: var(--accent-emerald);
  background: #f0fdf4;
}

.node-badge {
  font-family: var(--font-code);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary-gold-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.node-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.bg-emerald-dim {
  background: #dcfce7;
  color: var(--accent-emerald);
}

.bg-cyan-dim {
  background: #fef3c7;
  color: #b45309;
}

.bg-violet-dim {
  background: #fee2e2;
  color: var(--primary-red);
}

.node-body h4 {
  font-size: 0.96rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.node-body p {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.node-meta {
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary-red);
  background: #fee2e2;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: auto;
}

.node-indicator {
  font-size: 0.7rem;
  font-family: var(--font-code);
  color: #94a3b8;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

/* Connectors */
.flow-connector {
  width: 44px;
  height: 4px;
  background: #e2e8f0;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.flow-pulse {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-red), var(--primary-gold));
  border-radius: 4px;
}

.flow-connector.active-connector .flow-pulse {
  animation: flowLine 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flowLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Console Output (Sleek Dark Terminal for contrast & readability) */
.canvas-console {
  background: #0f172a;
  padding: 1.2rem 1.6rem;
  border-top: 1px solid #1e293b;
  font-family: var(--font-code);
}

.console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
}

.console-speed {
  color: var(--primary-gold-light);
}

.console-body {
  font-size: 0.8rem;
  color: #fef08a;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
}

/* TOOLS SUITE TABS */
.tools-tab-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tool-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.tool-tab-btn:hover {
  background: #fff5f5;
  color: var(--primary-red);
  border-color: var(--primary-gold);
}

.tool-tab-btn.active {
  background: #dc2626;
  border-color: var(--primary-gold);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.25);
}

.tool-panel {
  display: none;
  animation: fadeInTab 0.35s ease;
}

.tool-panel.active {
  display: block;
}

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

/* Generator Panel */
.generator-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.panel-card-title {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.panel-card-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-select, input[type="text"], input[type="tel"], textarea {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--text-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.form-select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.generator-result {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
}

.result-title {
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: var(--primary-red);
  font-weight: 700;
}

.result-body {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: #1e293b;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: auto;
  max-height: 380px;
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.result-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.result-hint {
  font-size: 0.8rem;
  color: #64748b;
}

/* ROI CALCULATOR */
.calculator-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2rem;
}

.calc-inputs-card, .calc-results-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.slider-group {
  margin-bottom: 1.6rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.slider-header label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.slider-val {
  font-family: var(--font-code);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-red);
}

.styled-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-red);
  border: 2px solid var(--primary-gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  transition: transform 0.15s ease;
}

.styled-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* ROI Results Card */
.calc-results-card {
  border-color: #fecdd3;
  background: radial-gradient(circle at top right, #fff1f2 0%, #ffffff 80%);
  display: flex;
  flex-direction: column;
}

.roi-glow-badge {
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-gold-dark);
  margin-bottom: 1.25rem;
}

.roi-metric-highlight {
  background: #ffffff;
  border: 1.5px solid #fecdd3;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.05);
  margin-bottom: 1.75rem;
}

.roi-label {
  font-size: 0.85rem;
  color: #64748b;
}

.roi-big-number {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--primary-red);
  margin: 0.4rem 0;
  letter-spacing: -0.02em;
}

.roi-subtext {
  font-size: 0.82rem;
  color: #64748b;
}

.roi-subtext strong {
  color: var(--primary-gold-dark);
}

.roi-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.roi-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.roi-box-icon {
  font-size: 1.35rem;
}

.roi-box-content {
  display: flex;
  flex-direction: column;
}

.roi-box-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.roi-box-title {
  font-size: 0.72rem;
  color: #64748b;
}

.roi-action {
  margin-top: auto;
}

/* CHATBOT DEMO PANEL */
.bot-demo-container {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.bot-info-sidebar h3 {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.bot-info-sidebar p {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.preset-prompts-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.preset-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.prompt-chip {
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.prompt-chip:hover {
  background: #fff1f2;
  border-color: var(--primary-gold);
  color: var(--primary-red);
}

.bot-capabilities {
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.capability-item {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cap-check {
  color: var(--primary-red);
  font-weight: 800;
}

/* Chat Window */
.bot-chat-window {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 490px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--primary-gold);
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--accent-emerald);
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.agent-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.agent-role {
  font-size: 0.72rem;
  color: #64748b;
}

.btn-chat-reset {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.btn-chat-reset:hover {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.chat-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: msgPop 0.25s ease;
}

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

.msg-assistant {
  align-self: flex-start;
}

.msg-user {
  align-self: flex-end;
}

.msg-bubble {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
}

.msg-assistant .msg-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.msg-user .msg-bubble {
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 500;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.msg-time {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.3rem;
  padding: 0 0.3rem;
}

.msg-user .msg-time {
  text-align: right;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
}

.typing-indicator span:not(.typing-text) {
  width: 6px;
  height: 6px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.typing-text {
  font-size: 0.75rem;
  color: #64748b;
  margin-left: 0.5rem;
  font-family: var(--font-code);
}

.chat-input-area {
  display: flex;
  padding: 0.85rem 1.1rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  gap: 0.65rem;
}

.chat-input-area input {
  flex-grow: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.88rem;
}

/* QUIZ TAB */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.quiz-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.quiz-header {
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-question-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.quiz-question-block h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.88rem;
}

.quiz-opt:hover {
  background: #fff5f5;
  border-color: var(--primary-gold);
}

.quiz-opt input[type="radio"] {
  accent-color: var(--primary-red);
  width: 18px;
  height: 18px;
}

.quiz-result-box {
  animation: fadeInTab 0.4s ease;
}

.quiz-score-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}

.score-circle {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #ffffff;
  border: 2px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.score-title h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.score-title p {
  font-size: 0.88rem;
  color: #64748b;
}

.recommended-action-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.recommendation-badge {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-red);
  margin: 0.5rem 0 0.85rem;
}

.quiz-action-btns {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* SERVICES SECTION */
.services-section {
  background: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

.service-card.featured-service {
  border: 2px solid var(--primary-gold);
  background: radial-gradient(circle at top left, #fff1f2 0%, #ffffff 80%);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.35rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-emerald-glow {
  background: #dcfce7;
  color: var(--accent-emerald);
}

.bg-cyan-glow {
  background: #fef3c7;
  color: #b45309;
}

.bg-violet-glow {
  background: #fee2e2;
  color: var(--primary-red);
}

.bg-amber-glow {
  background: #ffedd5;
  color: #c2410c;
}

.service-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-featured {
  color: var(--primary-red);
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.service-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}

.service-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.service-features li {
  font-size: 0.82rem;
  color: #475569;
  position: relative;
  padding-left: 1.25rem;
}

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

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

/* CASE STUDIES SECTION */
.case-studies-section {
  background: #ffffff;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.case-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-client {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.case-tag {
  font-size: 0.72rem;
  font-family: var(--font-code);
  color: var(--primary-red);
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.comparison-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.comp-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.comp-col li {
  font-size: 0.82rem;
  line-height: 1.5;
}

.comp-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.comp-col.before {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.comp-col.before .comp-label {
  color: #b91c1c;
}

.comp-col.before li {
  color: #7f1d1d;
}

.comp-col.after {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.comp-col.after .comp-label {
  color: #92400e;
}

.comp-col.after li {
  color: #78350f;
}

.comp-col.after strong {
  color: #b45309;
}

/* PRICING SECTION */
.pricing-section {
  background: transparent;
}

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

.pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

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

.pricing-featured {
  border: 2px solid var(--primary-gold);
  background: radial-gradient(circle at top center, #fff1f2 0%, #ffffff 80%);
  box-shadow: 0 12px 35px rgba(220, 38, 38, 0.12);
  transform: scale(1.03);
}

.pricing-featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.95rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  border: 1.5px solid var(--primary-gold);
}

.pricing-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.pricing-desc {
  font-size: 0.82rem;
  color: #64748b;
  min-height: 40px;
  margin-bottom: 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-price .currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-red);
}

.pricing-price .amount {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.pricing-price .period {
  font-size: 0.8rem;
  color: #64748b;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

.pricing-list li {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.p-check {
  color: var(--primary-red);
  font-weight: 800;
}

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

/* FAQ SECTION */
.faq-section {
  background: #ffffff;
}

.faq-container {
  max-width: 820px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--primary-gold);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.35rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-red);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.6rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.35rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
}

/* CTA BANNER */
.cta-section {
  padding: 4rem 0 6rem;
  background: radial-gradient(circle at center, #fff1f2 0%, #ffffff 80%);
}

.cta-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  padding: 4.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(220, 38, 38, 0.1);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, rgba(245, 158, 11, 0.15) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* FOOTER (Elegant Deep Charcoal footer that grounds the white theme) */
.footer {
  background: #090d16;
  border-top: 1px solid #1e293b;
  color: #cbd5e1;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer .brand-name {
  color: #ffffff;
}

.footer-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 1.25rem 0 1.5rem;
  max-width: 320px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-code);
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--primary-gold-light);
  padding-left: 4px;
}

.footer-contact-info {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-contact-info a {
  color: #f1f5f9;
  text-decoration: none;
}

.footer-socials {
  display: flex;
  gap: 0.65rem;
}

.social-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--primary-red);
  border-color: var(--primary-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: #ffffff;
}

/* MODAL SYSTEM */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 620px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-content {
  background: #ffffff;
  border: 2px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.modal-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-red);
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.modal-title {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-top: 0.35rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.btn-close-modal:hover {
  color: var(--primary-red);
}

.modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* ===================================================================
   FLOATING LIVE CHAT WIDGET (SEBELAH KANAN)
   =================================================================== */
.livechat-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1200;
}

/* Floating Launcher Pill Button */
.livechat-launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 2px solid var(--primary-gold);
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.livechat-launcher-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--primary-red);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.25), 0 0 15px rgba(245, 158, 11, 0.35);
}

.launcher-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--primary-gold);
  flex-shrink: 0;
}

.launcher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.launcher-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.launcher-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.launcher-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1.2;
}

.launcher-sub {
  font-size: 0.7rem;
  color: #15803d;
  font-weight: 700;
  line-height: 1.1;
}

.launcher-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--primary-gold);
  margin-left: 0.2rem;
  flex-shrink: 0;
}

.launcher-pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-gold);
  animation: launcherPulse 2.4s infinite;
  pointer-events: none;
}

@keyframes launcherPulse {
  0% { transform: scale(0.98); opacity: 0.8; }
  100% { transform: scale(1.15, 1.35); opacity: 0; }
}

.launcher-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary-red);
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.45);
  animation: badgeBounce 1.8s infinite ease-in-out;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Live Chat Floating Window */
.livechat-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 375px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border: 2px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 25px rgba(245, 158, 11, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.livechat-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.livechat-header {
  background: var(--primary-red);
  color: #ffffff;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary-gold);
  flex-shrink: 0;
}

.livechat-agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.livechat-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--primary-gold-light);
  flex-shrink: 0;
}

.livechat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.livechat-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.livechat-agent-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.livechat-agent-status {
  font-size: 0.72rem;
  color: #fef08a;
  font-weight: 600;
}

.livechat-btn-header {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.livechat-btn-header:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

.livechat-body {
  flex-grow: 1;
  padding: 1.1rem;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.livechat-time-divider {
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.livechat-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  animation: msgPop 0.25s ease;
}

.livechat-msg.incoming {
  align-self: flex-start;
}

.livechat-msg.outgoing {
  align-self: flex-end;
}

.livechat-bubble {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.livechat-msg.incoming .livechat-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-top-left-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.livechat-msg.outgoing .livechat-bubble {
  background: var(--primary-red);
  color: #ffffff;
  border: 1px solid var(--primary-gold);
  border-top-right-radius: 3px;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.25);
}

.livechat-msg-time {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.3rem;
  padding: 0 0.25rem;
}

.livechat-msg.outgoing .livechat-msg-time {
  text-align: right;
}

.livechat-quick-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.livechat-chip {
  background: #ffffff;
  border: 1.5px solid var(--primary-gold);
  color: var(--primary-gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.livechat-chip:hover {
  background: #fff5f5;
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateX(3px);
}

.livechat-typing {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  background: #f8fafc;
}

.livechat-typing span:not(.typing-label) {
  width: 6px;
  height: 6px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.livechat-typing span:nth-child(2) { animation-delay: 0.2s; }
.livechat-typing span:nth-child(3) { animation-delay: 0.4s; }

.typing-label {
  font-size: 0.72rem;
  color: #64748b;
  margin-left: 0.4rem;
  font-family: var(--font-code);
}

.livechat-footer {
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}

.livechat-footer input {
  flex-grow: 1;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-smooth);
}

.livechat-footer input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  background: #ffffff;
}

.livechat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-red);
  border: 1.5px solid var(--primary-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.livechat-send-btn:hover {
  background: var(--primary-red-hover);
  transform: scale(1.05);
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toast {
  background: #ffffff;
  border: 1.5px solid var(--primary-gold);
  color: var(--text-dark);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .workflow-flow-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flow-connector {
    width: 4px;
    height: 30px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pricing-featured {
    transform: none;
  }

  .calculator-grid,
  .generator-grid,
  .bot-demo-container,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================================================================
   MOBILE APP DOCK & DRAWER (APK-STYLE SYSTEM)
   =================================================================== */
.mobile-app-dock {
  display: none; /* Hidden on desktop */
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1290;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-app-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 1300;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-app-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.15rem 1.25rem;
  background: var(--primary-red);
  color: #ffffff;
  border-bottom: 2px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-logo-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--primary-gold-light);
  flex-shrink: 0;
}

.drawer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drawer-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
}

.drawer-title {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.drawer-badge {
  font-size: 0.65rem;
  color: #fef08a;
  font-weight: 600;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.drawer-body {
  padding: 1.25rem 1.15rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-group-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  padding-left: 0.35rem;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: var(--transition-smooth);
}

.drawer-item:hover, .drawer-item:active {
  background: #fff1f2;
  border-color: #fecdd3;
  color: var(--primary-red);
}

.drawer-icon {
  font-size: 1.05rem;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-label {
  flex-grow: 1;
}

.drawer-arrow {
  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: 700;
}

.drawer-pill {
  background: #fef2f2;
  color: var(--primary-red);
  border: 1px solid #fecaca;
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.drawer-quick-card {
  background: #fff5f5;
  border: 1.5px solid var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.drawer-card-badge {
  display: inline-block;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.drawer-quick-card h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.drawer-quick-card p {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.drawer-contact-box {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #64748b;
}

.drawer-contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-contact-line a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 700;
}

/* MOBILE APP BOTTOM DOCK */
.mobile-app-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1.5px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 0.25rem 0.5rem calc(0.25rem + env(safe-area-inset-bottom, 0px));
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  background: transparent;
  border: none;
  text-decoration: none;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  flex: 1;
  max-width: 72px;
}

.dock-item svg {
  stroke: #64748b;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.dock-item.active {
  color: var(--primary-red);
}

.dock-item.active svg {
  stroke: var(--primary-red);
  transform: translateY(-1px);
}

.dock-item.active::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-gold);
}

/* Center Highlight: Tools AI */
.dock-item-highlight {
  position: relative;
}

.dock-icon-highlight {
  width: 36px;
  height: 36px;
  background: var(--primary-red);
  border: 1.5px solid var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  margin-top: -10px;
  transition: transform 0.2s ease;
}

.dock-icon-highlight svg {
  stroke: #ffffff !important;
}

.dock-item-highlight:active .dock-icon-highlight {
  transform: scale(0.92);
}

/* Chat trigger in dock */
.dock-chat-icon-wrap {
  position: relative;
}

.dock-chat-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: var(--primary-red);
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  display: none;
}

.dock-chat-badge.show {
  display: block;
  animation: badgeBounce 1.8s infinite;
}

/* ===================================================================
   RESPONSIVE MEDIA QUERIES (OPTIMISASI MOBILE APK ANTI-TIMPANG TINDIH)
   =================================================================== */
@media (max-width: 768px) {
  html {
    font-size: 13.5px; /* Base scale down for native APK feel */
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    max-width: 100vw;
    overflow-x: hidden;
  }

  .container {
    padding: 0 0.85rem !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  /* Show Bottom App Dock */
  .mobile-app-dock {
    display: flex;
  }

  /* CRITICAL: HIDE STANDALONE FLOATING LAUNCHER TO PREVENT OVERLAP & DUPLICATION */
  .livechat-launcher-btn {
    display: none !important;
  }

  .livechat-wrapper {
    position: static;
  }

  /* Live Chat Window as Mobile Bottom Sheet Docked Above the App Dock */
  .livechat-window {
    position: fixed;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: min(500px, calc(100vh - 110px));
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    z-index: 1100;
  }

  .toast-container {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
  }

  /* Top Navbar */
  .nav-menu {
    display: none !important; /* Replaced by slide-in mobile app drawer */
  }

  .navbar {
    height: 56px;
  }

  .mobile-toggle {
    display: flex;
  }

  #btnQuickDemo {
    display: none; /* Keep top bar clean */
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .nav-actions .btn-primary {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
  }

  /* Compact APK Buttons */
  .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  .btn-lg {
    padding: 0.55rem 1rem !important;
    font-size: 0.82rem !important;
  }

  .btn-sm {
    padding: 0.32rem 0.6rem !important;
    font-size: 0.72rem !important;
  }

  /* Compact Sections */
  .section {
    padding: 2.25rem 0 !important;
  }

  .section-header {
    margin-bottom: 1.35rem !important;
  }

  .section-tag {
    font-size: 0.62rem !important;
    padding: 0.18rem 0.48rem !important;
    margin-bottom: 0.35rem !important;
  }

  .section-title {
    font-size: 1.35rem !important;
    margin-bottom: 0.4rem !important;
  }

  .section-subtitle {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 1.75rem 0 2.5rem !important;
  }

  .hero-prestige-badge {
    padding: 0.22rem 0.55rem !important;
    font-size: 0.68rem !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-prestige-badge .badge-subtext {
    display: none !important;
  }

  .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.65rem !important;
  }

  .hero-description {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.15rem !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    gap: 0.55rem !important;
    width: 100% !important;
  }

  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
    margin-top: 1.25rem !important;
  }

  .stat-box {
    padding: 0.55rem 0.4rem !important;
    border-radius: 8px !important;
  }

  .stat-number {
    font-size: 1.35rem !important;
  }

  .stat-label {
    font-size: 0.64rem !important;
  }

  .stat-divider {
    display: none !important;
  }

  /* Visualizer Simulator Compact */
  .visualizer-card {
    padding: 1.15rem 0.85rem !important;
    border-radius: 12px !important;
  }

  .workflow-node {
    padding: 0.65rem 0.55rem !important;
  }

  .node-title {
    font-size: 0.75rem !important;
  }

  .node-desc {
    font-size: 0.66rem !important;
  }

  /* Tools Suite Horizontal Scrolling Pills */
  .tools-tab-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding: 0.2rem 0.4rem 0.7rem !important;
    gap: 0.45rem !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    margin-bottom: 1.25rem !important;
  }

  .tools-tab-nav::-webkit-scrollbar {
    display: none;
  }

  .tool-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.45rem 0.8rem !important;
    font-size: 0.76rem !important;
    border-radius: 8px !important;
  }

  /* Generator Grid & Code Output (Fix for "lewat baris" / horizontal overflow) */
  .generator-grid {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.15rem 0.85rem !important;
    gap: 1.15rem !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }

  .generator-controls {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .generator-result {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0.85rem 0.65rem !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .result-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.55rem !important;
  }

  .result-title {
    font-size: 0.72rem !important;
    max-width: 60% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .result-body {
    font-size: 0.72rem !important;
    padding: 0.75rem 0.6rem !important;
    max-height: 260px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  .result-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    margin-top: 0.75rem !important;
    padding-top: 0.65rem !important;
    text-align: center !important;
  }

  .result-hint {
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }

  .result-footer .btn {
    width: 100% !important;
  }

  .panel-card-title {
    font-size: 0.95rem !important;
  }

  .panel-card-desc {
    font-size: 0.74rem !important;
  }

  .slider-header label {
    font-size: 0.76rem !important;
  }

  .slider-val {
    font-size: 0.76rem !important;
  }

  .roi-big-number {
    font-size: 1.7rem !important;
  }

  /* Calculator Mobile */
  .calculator-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 1.15rem !important;
  }

  .calc-inputs-card, .calc-results-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 1.15rem 0.85rem !important;
    border-radius: 12px !important;
  }

  /* Bot Demo Mobile */
  .bot-demo-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .bot-chat-window {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 420px !important;
    border-radius: 12px !important;
  }

  /* Quiz Mobile */
  .quiz-container, .quiz-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 1.15rem 0.85rem !important;
    border-radius: 12px !important;
  }

  /* Services & Features Compact */
  .service-card {
    padding: 1.2rem 1rem !important;
    border-radius: 12px !important;
  }

  .service-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .service-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.45rem !important;
  }

  .service-desc {
    font-size: 0.76rem !important;
    margin-bottom: 0.85rem !important;
  }

  .service-features li {
    font-size: 0.74rem !important;
  }

  /* Case Studies / Before & After Compact */
  .case-card {
    padding: 1.1rem !important;
    border-radius: 12px !important;
  }

  .case-header {
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.65rem !important;
  }

  .case-client {
    font-size: 0.85rem !important;
  }

  .case-tag {
    font-size: 0.64rem !important;
    padding: 0.18rem 0.45rem !important;
  }

  .comparison-body {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .comp-col {
    padding: 0.75rem !important;
    border-radius: 8px !important;
  }

  .comp-label {
    font-size: 0.66rem !important;
    margin-bottom: 0.4rem !important;
  }

  .comp-col li {
    font-size: 0.74rem !important;
    line-height: 1.4 !important;
  }

  /* Compact Tables */
  table, .comparison-table {
    font-size: 0.74rem !important;
  }

  table th, table td,
  .comparison-table th, .comparison-table td {
    padding: 0.45rem 0.55rem !important;
    font-size: 0.72rem !important;
  }

  /* Pricing Compact Cards */
  .pricing-grid {
    gap: 1.15rem !important;
  }

  .pricing-card {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
  }

  .pricing-name {
    font-size: 0.84rem !important;
  }

  .pricing-desc {
    font-size: 0.74rem !important;
  }

  .pricing-price {
    margin: 0.75rem 0 !important;
  }

  .pricing-price .amount {
    font-size: 1.75rem !important;
  }

  .pricing-price .currency {
    font-size: 0.88rem !important;
  }

  .pricing-price .period {
    font-size: 0.66rem !important;
  }

  .pricing-list {
    gap: 0.45rem !important;
    margin-bottom: 1.15rem !important;
  }

  .pricing-list li {
    font-size: 0.74rem !important;
  }

  .p-check {
    font-size: 0.75rem !important;
  }

  /* FAQ Accordion Compact */
  .faq-question {
    padding: 0.75rem 0.9rem !important;
    font-size: 0.8rem !important;
  }

  .faq-answer {
    padding: 0 0.9rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  /* ===================================================================
     CTA CARD BANNER (DIOPTIMALKAN KECIL & KOMPAK SEPERTI APK)
     =================================================================== */
  .cta-section {
    padding: 1.75rem 0 2.5rem !important;
  }

  .cta-card {
    padding: 1.35rem 0.95rem !important;
    border-radius: 14px !important;
    border-width: 1.5px !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.08) !important;
  }

  .cta-title {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }

  .cta-subtitle {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.1rem !important;
  }

  .cta-btn-group {
    flex-direction: column !important;
    gap: 0.55rem !important;
    width: 100% !important;
  }

  .cta-btn-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Modals */
  .modal-dialog {
    max-width: calc(100vw - 20px) !important;
    margin: 10px auto !important;
    padding: 1.15rem !important;
    border-radius: 14px !important;
  }

  .modal-header h3 {
    font-size: 1.05rem !important;
  }

  .modal-form .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .modal-form label {
    font-size: 0.74rem !important;
  }

  .modal-form input, .modal-form select, .modal-form textarea {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.78rem !important;
  }

  .floating-chip {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12.8px; /* Extra compact for standard phone viewports */
  }

  .brand-name {
    font-size: 0.8rem;
  }

  .brand-tagline {
    display: none; /* Hide tagline on tiny screens so logo never wraps */
  }

  .hero-title {
    font-size: 1.38rem !important;
  }

  .cta-title {
    font-size: 1.15rem !important;
  }
}



