/* ============================================================
   NANA4D — style.css (FINAL)
   Tema: Dark Violet
   Includes: FAQ readability fix, provider fallback,
             logo 3:1, smooth scroll, responsive
   ============================================================ */

:root {
  --bg: #0d0716;
  --bg-alt: #150a24;
  --card: #1b0f2e;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --violet-3: #6d28d9;
  --text: #ede9fe;
  --muted: #a89ec4;
  --border: rgba(139, 92, 246, 0.18);
  --glow: 0 0 40px rgba(139, 92, 246, 0.35);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 7, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  display: block;
  width: 180px;      /* rasio 3:1 */
  height: 60px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--violet-2); }
.btn-nav {
  background: linear-gradient(135deg, var(--violet), var(--violet-3));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 90px 0 70px;
  background:
    radial-gradient(ellipse at top left, rgba(139,92,246,.22), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(109,40,217,.25), transparent 55%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-block;
  border: 1px solid var(--border);
  background: rgba(139,92,246,.1);
  color: var(--violet-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}
.gradient {
  background: linear-gradient(135deg, var(--violet-2), #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-3));
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--glow);
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(139,92,246,.05);
  transition: background .2s, border-color .2s;
  display: inline-block;
}
.btn-ghost:hover {
  background: rgba(139,92,246,.15);
  border-color: var(--violet);
}

.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-size: 24px;
  color: var(--violet-2);
}
.hero-stats span {
  font-size: 13px;
  color: var(--muted);
}

.hero-card {
  position: relative;
  background: linear-gradient(160deg, #1e1133, #150a24);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 30px;
  box-shadow: 0 30px 80px rgba(109,40,217,.3);
}
.card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--violet), transparent 60%);
  filter: blur(24px);
  opacity: .35;
  z-index: -1;
}
.hero-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}
.hero-card .domain {
  color: var(--violet-2);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-card li {
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 50px;
}

/* ============================================================
   GRID
   ============================================================ */
.grid {
  display: grid;
  gap: 22px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   CARD (KATEGORI)
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--violet);
  box-shadow: 0 20px 50px rgba(139,92,246,.2);
}
.card .icon {
  font-size: 38px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   PROVIDER
   ============================================================ */
.provider {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.provider:hover {
  transform: translateY(-5px);
  border-color: var(--violet);
  box-shadow: 0 20px 50px rgba(139,92,246,.2);
}
.provider h4 {
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--text);
}
.provider p {
  color: var(--muted);
  font-size: 13px;
}

/* Provider logo (teks fallback lama) */
.provider-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet), var(--violet-3));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--glow);
  color: #fff;
}

/* Provider logo (gambar) */
.provider-logo.provider-logo-img {
  width: 120px;
  height: 120px;
  padding: 10px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
  position: relative;
}

.provider-logo.provider-logo-img img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

/* Fallback inisial kalau gambar gagal load */
.provider-logo.provider-logo-img::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #6d28d9;
  z-index: 0;
  letter-spacing: 1px;
}

/* ============================================================
   FEATURE
   ============================================================ */
.feature {
  background: linear-gradient(160deg, #1b0f2e, #150a24);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 26px;
  text-align: center;
  transition: transform .25s, border-color .25s;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: var(--violet);
}
.feature-icon {
  font-size: 30px;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: rgba(139,92,246,.12);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}
.feature h4 { margin-bottom: 8px; }
.feature p {
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   FAQ — FIXED READABILITY
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

/* Paksa background gelap untuk details & summary */
.faq-item,
details.faq-item {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover,
details.faq-item:hover {
  border-color: var(--violet);
  box-shadow: 0 10px 30px rgba(139,92,246,.15);
}

.faq-item summary,
details.faq-item summary {
  background: var(--card) !important;   /* paksa, jangan putih */
  color: var(--text) !important;        /* paksa teks terang */
  padding: 16px 50px 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  display: block;
  outline: none;
}

/* Hilangkan marker default browser */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

/* Ikon + / − */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--violet-2);
  font-size: 22px;
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--violet-2);
}
.faq-item[open] summary {
  color: var(--violet-2) !important;
  border-bottom: 1px solid var(--border);
}

.faq-item p,
details.faq-item p {
  background: var(--card);
  color: var(--muted);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.faq-item p strong {
  color: var(--violet-2);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(139,92,246,.25), transparent 60%),
    var(--bg-alt);
}
.cta-inner h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-inner p {
  color: var(--muted);
  margin-bottom: 26px;
}
.cta strong { color: var(--violet-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0a0512;
  border-top: 1px solid var(--border);
  padding: 50px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h5 {
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text);
}
.footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer a:hover { color: var(--violet-2); }
.footer .muted {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}
.footer .logo-img {
  width: 150px;   /* rasio 3:1 */
  height: 50px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.disclaimer {
  margin-top: 6px;
  font-size: 12px;
  opacity: .7;
}

/* ============================================================
   SCROLL OFFSET (untuk sticky navbar)
   ============================================================ */
section[id] {
  scroll-margin-top: 80px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .logo-img { width: 140px; height: 46px; }
  .section-title { font-size: 26px; }
  .cta-inner h2 { font-size: 26px; }
}
