/* ==========================================================================
   AI AGENT — EXACT 1:1 CLONE & INTERACTIVE WEB ENGINE
   ========================================================================== */

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

html, body {
  width: 100%;
  height: 100%;
  background-color: #0b111e;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  color: #ffffff;
}

/* Ambient Backdrop Glow */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 10%, rgba(0, 163, 255, 0.12) 0%, transparent 70%);
}

.main-landing-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* ==========================================================================
   DESKTOP SCREEN VIEW (Laptop / PC / Widescreen)
   ========================================================================== */
.desktop-screen-view {
  display: flex;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0;
}

.desktop-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  aspect-ratio: 2754 / 1536;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.desktop-canvas-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Mobile screen view hidden on desktop */
.mobile-screen-view {
  display: none;
}

/* ==========================================================================
   HOTSPOTS & INTERACTIVE BUTTONS
   ========================================================================== */
.hotspot-btn {
  position: absolute;
  display: block;
  text-decoration: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.hotspot-btn:hover {
  transform: scale(1.02);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.35);
}

.hotspot-btn:active {
  transform: scale(0.98);
}

/* Secret Admin Tap Zone */
.admin-trigger-zone {
  position: absolute;
  cursor: pointer;
  z-index: 25;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.d-admin-trigger-tr {
  right: 1.5%;
  top: 1.5%;
  width: 4.5%;
  height: 6.5%;
  border-radius: 50%;
}

.d-admin-trigger-tl {
  left: 5.0%;
  top: 4.5%;
  width: 4.0%;
  height: 6.5%;
  border-radius: 50%;
}

/* Desktop Hotspots */
.d-btn-demo {
  left: 78.07%;
  top: 4.88%;
  width: 15.25%;
  height: 6.97%;
  border-radius: 999px;
}
.d-btn-demo:hover {
  box-shadow: 0 0 22px rgba(37, 211, 102, 0.65);
}

.d-nav-ai {
  left: 51.13%;
  top: 6.18%;
  width: 8.71%;
  height: 4.17%;
  border-radius: 999px;
}

.d-nav-kardi {
  left: 60.57%;
  top: 6.18%;
  width: 7.26%;
  height: 4.17%;
  border-radius: 999px;
}

.d-nav-kontak {
  left: 68.55%;
  top: 6.18%;
  width: 7.63%;
  height: 4.17%;
  border-radius: 999px;
}

.d-badge-cs {
  left: 6.25%;
  top: 24.87%;
  width: 15.50%;
  height: 7.62%;
  border-radius: 999px;
}
.d-badge-cs:hover {
  box-shadow: 0 0 20px rgba(0, 163, 255, 0.6);
}

.d-badge-sales {
  left: 6.14%;
  top: 36.20%;
  width: 15.61%;
  height: 6.05%;
  border-radius: 999px;
}
.d-badge-sales:hover {
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.6);
}

.d-badge-admin {
  left: 6.10%;
  top: 47.33%;
  width: 14.96%;
  height: 4.69%;
  border-radius: 999px;
}
.d-badge-admin:hover {
  box-shadow: 0 0 20px rgba(187, 0, 255, 0.6);
}

.d-btn-recruit {
  left: 5.95%;
  top: 76.82%;
  width: 30.68%;
  height: 8.01%;
  border-radius: 999px;
}
.d-btn-recruit:hover {
  box-shadow: 0 0 25px rgba(0, 163, 255, 0.65);
}

/* ==========================================================================
   MOBILE SCREEN VIEW (HP Android / iPhone / Portrait)
   ========================================================================== */
.mobile-screen-view {
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  padding: 0;
}

.mobile-canvas-wrapper {
  position: relative;
  width: 100%;
  width: 100vw;
  max-width: 100%;
  aspect-ratio: 1536 / 2752;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.mobile-canvas-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

  /* Secret Admin Tap Zone Mobile */
  .m-admin-trigger-tr {
    right: 2%;
    top: 1%;
    width: 7%;
    height: 4%;
    border-radius: 50%;
  }

  .m-admin-trigger-tl {
    left: 5%;
    top: 3%;
    width: 7%;
    height: 4%;
    border-radius: 50%;
  }

  /* Mobile Hotspots */
  .m-btn-demo {
    left: 66.86%;
    top: 3.27%;
    width: 26.76%;
    height: 4.22%;
    border-radius: 999px;
  }

  .m-nav-ai {
    left: 45.70%;
    top: 11.41%;
    width: 16.93%;
    height: 3.31%;
    border-radius: 999px;
  }

  .m-nav-kardi {
    left: 64.13%;
    top: 11.41%;
    width: 13.15%;
    height: 3.31%;
    border-radius: 999px;
  }

  .m-nav-kontak {
    left: 78.78%;
    top: 11.41%;
    width: 14.97%;
    height: 3.31%;
    border-radius: 999px;
  }

  .m-badge-cs {
    left: 6.71%;
    top: 20.49%;
    width: 32.29%;
    height: 5.85%;
    border-radius: 999px;
  }

  .m-badge-sales {
    left: 6.58%;
    top: 27.25%;
    width: 32.42%;
    height: 5.70%;
    border-radius: 999px;
  }

  .m-badge-admin {
    left: 6.51%;
    top: 34.52%;
    width: 31.97%;
    height: 4.58%;
    border-radius: 999px;
  }

  .m-btn-recruit {
    left: 6.32%;
    top: 51.09%;
    width: 58.72%;
    height: 4.76%;
    border-radius: 999px;
  }
}

/* ==========================================================================
   RESPONSIVE MODAL SYSTEM (CYBER GLASSMORPHISM)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 24, 0.56) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-card {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(255, 255, 255, 0.25) !important;
  max-height: 90vh;
  overflow-y: auto;
}

/* Mobile Modal Optimization */

  .modal-title {
    font-size: 1.25rem !important;
  }
  .modal-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #090e17 !important; /* Hitam pekat & sangat tegas */
  font-weight: 600 !important; /* Huruf lebih tebal & berbobot */
  margin-bottom: 20px;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-badge {
  display: inline-block;
  background: #070d18 !important;
  border: 2px solid #00d2ff !important;
  color: #00d2ff !important;
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.8px !important;
  padding: 6px 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.55), 0 0 10px rgba(0, 163, 255, 0.35) !important;
  text-shadow: 0 0 6px rgba(0, 210, 255, 0.7) !important;
  margin-bottom: 8px;
}

.admin-badge {
  background: rgba(255, 170, 0, 0.15);
  border-color: rgba(255, 170, 0, 0.5);
  color: #ffaa00;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}
.modal-close-btn:hover {
  color: #ffffff;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a !important;
  margin-bottom: 12px;
  line-height: 1.3;
}

.modal-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #090e17 !important; /* Hitam pekat & sangat tegas */
  font-weight: 600 !important; /* Huruf lebih tebal & berbobot */
  margin-bottom: 20px;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Interactive Tabs Section */
.interactive-section {
  background: rgba(255, 255, 255, 0.15) !important; /* Sedikit lebih padat agar latar tidak silau */
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.interactive-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  padding-bottom: 10px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #334155 !important;
  font-size: 0.85rem;
  font-weight: 600 !important;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #0f172a !important;
}
.tab-btn.active {
  background: #0066ff !important;
  border-color: #0066ff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3) !important;
  font-weight: 700 !important;
}

.tab-content {
  font-size: 0.96rem !important;
  line-height: 1.68 !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  min-height: 54px;
}

/* Modal Actions */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #0066ff, #00d2ff);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 163, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 163, 255, 0.6);
}

.btn-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Admin Modal & Form Styling */
.modal-admin-card {
  max-width: 440px;
}

.modal-editor-card {
  max-width: 720px;
  background: rgba(255, 255, 255, 0.42) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(255, 255, 255, 0.3) !important;
  color: #0f172a !important;
}

/* White Theme Inner Elements for Editor */
.modal-editor-card .modal-title {
  color: #0f172a !important;
  font-weight: 800;
}

.modal-editor-card .modal-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #090e17 !important; /* Hitam pekat & sangat tegas */
  font-weight: 600 !important; /* Huruf lebih tebal & berbobot */
  margin-bottom: 20px;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.modal-editor-card .modal-close-btn {
  color: #64748b !important;
}
.modal-editor-card .modal-close-btn:hover {
  color: #0f172a !important;
}

.modal-editor-card .admin-badge {
  background: rgba(0, 102, 255, 0.1) !important;
  border: 1px solid rgba(0, 102, 255, 0.3) !important;
  color: #0066ff !important;
}

.modal-editor-card .editor-tab-btn {
  background: rgba(255, 255, 255, 0.20) !important; /* Lebih transparan kaca */
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}
.modal-editor-card .editor-tab-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}
.modal-editor-card .editor-tab-btn.active {
  background: #0066ff !important;
  border-color: #0066ff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.modal-editor-card .form-label {
  color: #334155 !important;
  font-weight: 700;
}

.modal-editor-card .form-label {
  color: #334155 !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.modal-editor-card .form-input,
.modal-editor-card .form-textarea {
  background: rgba(255, 255, 255, 0.20) !important; /* Senada 100% dgn tab, lebih transparan */
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  text-shadow: none !important;
}

.modal-editor-card .form-input:focus,
.modal-editor-card .form-textarea:focus {
  border-color: #0066ff !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.18), inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  outline: none;
}
.modal-editor-card .form-input:focus,
.modal-editor-card .form-textarea:focus {
  border-color: #0066ff !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15) !important;
}

.modal-editor-card .btn-secondary {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  color: #1e293b !important;
  font-weight: 600;
}
.modal-editor-card .btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.modal-editor-card .btn-primary {
  background: linear-gradient(90deg, #0066ff, #0099ff) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.35) !important;
}
.modal-editor-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5) !important;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-textarea {
  width: 100%;
  background: #070c16;
  border: 1.5px solid #1e293b;
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.error-msg {
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-top: 8px;
}

.success-alert {
  background: rgba(37, 211, 102, 0.2);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #25d366;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 14px;
}

.editor-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.editor-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.editor-tab-btn.active {
  background: #0066ff;
  color: #ffffff;
  border-color: #00d2ff;
}

/* Modal Header Right Layout */
.modal-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-editor-card .admin-badge {
  background: #070d18 !important;
  border: 2px solid #00d2ff !important;
  color: #00d2ff !important; /* Biru neon cerah */
  font-weight: 900 !important;
  font-size: 1.02rem !important;
  letter-spacing: 1px !important;
  padding: 8px 22px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 22px rgba(0, 210, 255, 0.65), 0 0 12px rgba(0, 163, 255, 0.4) !important;
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.75) !important;
  display: inline-block !important;
  margin-bottom: 10px !important;
}

.modal-editor-card .modal-close-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  border: 1.5px solid #0f172a !important; /* Lingkaran hitam tipis rapi & kecil */
  background: transparent !important; /* Full transparan */
  color: #0f172a !important; /* Huruf X warna hitam */
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.modal-editor-card .modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.12) !important;
  color: #000000 !important;
  border-color: #000000 !important;
  transform: scale(1.08) !important;
}

/* Custom Sleek Scrollbar for Modal Card */
.modal-editor-card::-webkit-scrollbar {
  width: 6px;
}
.modal-editor-card::-webkit-scrollbar-track {
  background: transparent;
}
.modal-editor-card::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}
.modal-editor-card::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-track {
  background: transparent;
}
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}
.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}

/* ==========================================================================
   FALLBACK UNTUK HP / BROWSER JADUL (Low-end Hardware / Tanpa Backdrop-Filter)
   ========================================================================== */
@supports not (backdrop-filter: blur(1px)) {
  .modal-overlay {
    background: rgba(8, 16, 28, 0.88) !important;
  }
  .modal-card {
    background: #f8fafc !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  }
  .modal-editor-card {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
  }
  .interactive-section,
  .modal-editor-card .editor-tab-btn:not(.active),
  .modal-editor-card .form-input,
  .modal-editor-card .form-textarea,
  .modal-editor-card .btn-secondary {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
  }
}

/* Automatic Responsive Switching via CSS */
@media screen and (min-width: 850px) and (orientation: landscape), screen and (min-width: 1000px) {
  .mobile-screen-view {
    display: none !important;
  }
  .desktop-screen-view {
    display: flex !important;
  }
}

@media screen and (max-width: 849px), screen and (orientation: portrait) and (max-width: 999px) {
  .desktop-screen-view {
    display: none !important;
  }
  .mobile-screen-view {
    display: flex !important;
  }
}

/* Seamless Mobile Background */
@media screen and (max-width: 849px), screen and (orientation: portrait) and (max-width: 999px) {
  html {
    background-color: #042048 !important;
  }
  body {
    background: #ebf4fd !important;
  }
  .ambient-backdrop {
    display: none !important;
  }
  .main-landing-container {
    background: #ebf4fd !important;
  }
}

.mobile-bottom-fill {
  width: 100%;
  background: #ebf4fd;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 20px 28px 20px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
}
