/* landing.css - Modern SaaS Style */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --dark: #0f172a;
  --card-bg: #1e293b;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #334155;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- NAVBAR --- */
nav {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}
.nav-links a:hover {
  color: white;
}
.nav-cta {
  display: flex;
  gap: 15px;
}

/* --- HERO SECTION --- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.badge-pill {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* --- BENTO GRID (FEATURES) --- */
.features {
  padding: 60px 0;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 20px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

/* Spesifik Grid Spans */
.span-2 {
  grid-column: span 2;
}
.row-2 {
  grid-row: span 2;
}

/* Card Content Styling */
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.bento-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.bento-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* WIDGETS VISUAL (CSS Only UI Representations) */
.widget-visual {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Widget: Bulk Loading */
.bulk-ui {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bulk-bar {
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
}
.bulk-fill {
  height: 100%;
  width: 70%;
  background: #10b981;
  animation: loadBulk 2s infinite ease-in-out;
}
@keyframes loadBulk {
  0% {
    width: 0;
  }
  50% {
    width: 80%;
  }
  100% {
    width: 100%;
  }
}

/* Widget: ID Card Mini */
.id-mini {
  position: absolute;
  width: 120px;
  height: 180px;
  background: white;
  border-radius: 8px;
  top: 20px;
  right: 20px;
  transform: rotate(10deg);
  box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.3);
}
.id-mini::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--secondary);
  border-radius: 8px 8px 50% 50%;
}
.id-mini::after {
  content: "";
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #ddd;
  border-radius: 50%;
  border: 3px solid white;
}

/* --- FOOTER & LEGAL --- */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 20px;
  margin-top: 60px;
  background: #0b1120;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a,
.legal-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  background: none;
  border: none;
  padding: 0;
}
.footer-col a:hover,
.legal-btn:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: #4b5563;
}

/* --- MODALS (LEGAL) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--card-bg);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  font-size: 1.2rem;
  color: white;
}
.close-modal {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.6;
}
.modal-body h3 {
  color: white;
  margin: 15px 0 5px;
}

/* --- FAQ SECTION (Tambahan di landing.css) --- */
.faq-section {
  padding: 80px 0;
  background: #0b1120;
} /* Sedikit lebih gelap dari bg body */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  overflow: hidden;
}

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

/* Bagian Judul (Pertanyaan) */
summary {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* Hilangkan panah default browser */
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

/* Custom Icon Panah */
summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform 0.3s;
  font-weight: 300;
}

/* Saat Dibuka */
details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
  color: var(--primary);
}

/* Bagian Isi (Jawaban) */
.faq-answer {
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.2);
}

/* Hilangkan marker default di Safari/Chrome lama */
summary::-webkit-details-marker {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .nav-links {
    display: none;
  }
}
