/* -------------------------------------------------------
  Modern Digital Reseller WA Tools CSS
  - Added Glassmorphism
  - Added Smooth Animations & Click Effects
  - Modernized Typoghraphy & Cards
-------------------------------------------------------- */

:root {
  --bg: #0b0f17;
  --panel: rgba(17, 24, 39, 0.6);
  --panel-glass: rgba(255, 255, 255, 0.03);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #22c55e;
  --brand-hover: #16a34a;
  --brand-glow: rgba(34, 197, 94, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 12px 35px rgba(34, 197, 94, 0.15);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
  --pad: clamp(16px, 2vw, 24px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(1000px circle at 15% 0%, rgba(34, 197, 94, 0.08), transparent 50%),
    radial-gradient(1000px circle at 85% 90%, rgba(59, 130, 246, 0.08), transparent 50%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.text-danger { color: #ef4444; }
.text-success { color: #22c55e; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }
.gradient-text {
  background: linear-gradient(135deg, #4ade80, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
a:hover { color: #fff; }

.container {
  width: min(var(--container), calc(100% - 2*var(--pad)));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(34,197,94,.2), rgba(34,197,94,.05));
  border: 1px solid rgba(34,197,94,.4);
  border-radius: 12px;
  box-shadow: 0 0 15px var(--brand-glow);
}
.brand-text strong { font-size: 16px; display: block; line-height: 1.2;}
.brand-text small { color: var(--brand); font-size: 12px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a:not(.btn):hover { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.3); }
.highlight-link { color: #fbbf24 !important; font-weight: 700 !important; }

/* Buttons & Effects */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn:active { transform: scale(0.95); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}
.btn-glow { animation: pulseGlow 2s infinite; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; border-color: var(--muted); color: var(--muted); }
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* Hero Section */
.hero { padding: 60px 0 40px; position: relative; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
.hero .lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.trust-indicators { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap;}

.hero-image-wrap { position: relative; perspective: 1000px;}
.glow-backdrop {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; height: 80%;
  background: var(--brand);
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
}
.dashboard-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease;
}
.tilt-effect:hover .dashboard-img { transform: translateY(-10px) rotateX(2deg) rotateY(-2deg); }

/* --- Modern Stat Grid CSS --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: rgba(11, 15, 23, 0.4);
}
.stat {
  padding: 20px 12px;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
}
.stat:hover {
  background: rgba(255, 255, 255, 0.04);
}
.stat:last-child {
  border-right: none;
}
.stat-kicker {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.stat-value {
  font-size: 20px;
  font-weight: 900;
  margin: 8px 0 4px;
}
.stat-note {
  font-size: 11px;
  color: rgba(229, 231, 235, 0.5);
}

/* Promo Card Reseller */
.pricing-card-promo {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: 24px;
  position: relative;
  padding: 3px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(251, 191, 36, 0.15);
  transition: transform 0.3s;
}
.pricing-card-promo:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(251, 191, 36, 0.25); }
.promo-badge {
  position: absolute;
  top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.4);
  z-index: 10;
  white-space: nowrap; /* Mencegah badge terpotong di HP */
}
.card-content { background: var(--bg); border-radius: 20px; padding: 40px; }
.card-header { text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 24px; }
.card-header h3 { margin: 0 0 10px; font-size: 24px; color: #fff; }

.price-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px; /* Jarak proporsional */
}
.price-strike { text-decoration: line-through; color: var(--muted); font-size: 18px; }
.price-main { font-size: 42px; font-weight: 900; color: #fbbf24; white-space: nowrap; /* Mencegah Rp dan Harga terpisah baris */ }
.price-main small { font-size: 16px; color: var(--muted); font-weight: 500; }
.modern-check { list-style: none; padding: 0; margin: 0 0 24px; }
.modern-check li { padding-left: 32px; position: relative; margin-bottom: 12px; color: #d1d5db; }
.modern-check li:before {
  content: "✅"; position: absolute; left: 0; top: 2px; font-size: 16px;
}

/* Products Section */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); border-top: 1px solid var(--border); }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 32px; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--panel-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  /* Perbaikan Layout Card Sejajar */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-8px); border-color: rgba(34,197,94,0.4); box-shadow: var(--shadow-glow); }
.product-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.product-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.product-icon { width: 100%; height: 100%; object-fit: contain; }
.product-title-wrap { display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 18px; }

/* Perbaikan Agar Teks Push Tag Ke Bawah */
.card p { color: var(--muted); font-size: 14px; margin: 0 0 16px; flex-grow: 1; } 

.tag-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  margin-top: auto; /* Mendorong otomatis ke posisi terbawah card */
}
.tag { font-size: 11px; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,0.1); color: #e5e7eb; font-weight: 600; }

/* Developer Meta Style */
.dev-meta {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #4ade80;
  background: rgba(11, 15, 23, 0.7);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
}
.dev-meta span { opacity: 0.9; }

/* Grid Layout for Calculator & Table */
.grid-layout-calc {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 32px;
  align-items: start; /* CRITICAL FOR STICKY CSS TO WORK */
}
/* Prevent grid breakout from table overflow */
.grid-layout-calc > div {
  min-width: 0;
}

.card-glass {
  background: var(--panel-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
}

/* Calculator Form - Sticky Implementation */
.mini-form {
  position: sticky;
  top: 100px;
  z-index: 10;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 12px;
  width: 24px; height: 24px;
  object-fit: contain;
  pointer-events: none;
}
.input-with-icon select { padding-left: 44px; }

select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 23, 0.8);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
  cursor: pointer;
}
select:focus { border-color: var(--brand); }
select option { background: #0f172a; color: #fff; padding: 10px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }

/* Toggle */
.toggle-row { display: flex; gap: 12px; align-items: center; margin: 24px 0 20px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { display: none; }
.slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 999px; cursor: pointer; transition: 0.3s;
}
.slider:before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: 0.3s;
}
input:checked + .slider { background: var(--brand); }
input:checked + .slider:before { transform: translateX(20px); }
.toggle-title { font-size: 14px; font-weight: 600; }
.toggle-desc { font-size: 12px; color: var(--muted); }

/* Result Box */
.calc-result {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.calc-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 6px 0; }
.calc-line span { color: var(--muted); }
.divider { border: 0; border-top: 1px dashed var(--border); margin: 8px 0; }
.profit-line { font-size: 16px; font-weight: 800; }

/* Pricing Table */
.pricing-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; color: var(--muted);
  cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s;
}
.chip[aria-pressed="true"] { background: rgba(34,197,94,0.15); border-color: var(--brand); color: var(--brand); }
.pricing-table-wrap { overflow-x: auto; padding: 0; }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.pricing-table th { background: rgba(0,0,0,0.3); padding: 14px 16px; text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tbody tr { transition: background 0.2s; }
.pricing-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.tbl-product-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tbl-icon { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }

/* CTA & FAQ */
.glass-panel { background: var(--panel-glass); border: 1px solid var(--border); border-radius: 24px; padding: 48px 24px; backdrop-filter: blur(10px); }
.faq details { background: var(--panel-glass); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 16px; transition: all 0.3s; }
.faq details[open] { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.02); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; outline: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; transition: 0.3s; }
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-body { margin-top: 12px; color: var(--muted); font-size: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; background: rgba(0,0,0,0.4); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }

/* Mobile Nav */
.nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: 0.3s; }

/* Social Proof Toast Container */
#social-proof-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-proof {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border-radius: 50px;
  padding: 10px 20px 10px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  animation: slideInUp 0.5s forwards, slideOutDown 0.5s forwards 4s;
}
.toast-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.toast-text { font-size: 12px; line-height: 1.4; color: #d1d5db; }
.toast-text strong { color: #fff; }

/* Lightbox / Image Pop-up CSS */
.clickable-img {
  cursor: zoom-in;
}

.lightbox-modal {
  display: none; 
  position: fixed;
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 23, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lightbox-modal.show {
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6), 0 0 30px rgba(34,197,94,0.15);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  object-fit: contain;
}

.lightbox-modal.show .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: #d1d5db;
  font-size: 45px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--brand);
}

/* Animations */
@keyframes slideInUp { to { transform: translateY(0); opacity: 1; } }
@keyframes slideOutDown { to { transform: translateY(20px); opacity: 0; } }
@keyframes pulseGlow { 
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); } 
  70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); } 
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } 
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Background Animation */
.bg-stars {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 150px 150px, #fff, transparent), radial-gradient(1.5px 1.5px at 90px 300px, rgba(34,197,94,0.5), transparent);
  background-size: 400px 400px;
  animation: animStars 150s linear infinite;
  opacity: 0.2;
}
@keyframes animStars { 100% { background-position: 0 -2000px; } }

/* Mobile Responsiveness & Fixes */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .trust-indicators { justify-content: center; }
  
  /* Kalkulator & Tabel Terpisah Rapi di HP (Menghilangkan Sticky) */
  .grid-layout-calc { grid-template-columns: 1fr; width: 100%; }
  .mini-form {
    position: static;
    top: auto;
    z-index: 1;
    width: 100%;
  }

  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; position: absolute; left: var(--pad); right: var(--pad); top: 70px;
    flex-direction: column; background: rgba(15,23,42,0.95); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; backdrop-filter: blur(10px);
  }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(3n) { border-right: none; }
}

@media (max-width: 768px) {
  .lightbox-content { max-width: 95%; }
  .lightbox-close { top: 15px; right: 25px; font-size: 35px; }
}

@media (max-width: 520px) {
  /* Fix Harga di HP Agar Rapih */
  .price-main { font-size: 36px; }
  .promo-badge { font-size: 12px; padding: 6px 14px; }
  .price-strike { font-size: 16px; margin-right: 0;}
  .price-wrap { gap: 8px; flex-direction: column; }

  /* Produk Menjadi 1 Kolom Full di Ukuran Smartphone Kecil */
  .grid-2 { grid-template-columns: 1fr; }
  .card-content { padding: 24px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(3n) { border-right: 1px solid var(--border); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .dev-meta { font-size: 10px; gap: 8px; }
}