/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep:    #040a14;
  --bg-mid:     #0a1628;
  --card-bg:    #0f1e35;
  --card-border:#1a2e4a;
  --accent:     #38bdf8;
  --accent-dim: rgba(56,189,248,0.15);
  --text:       #e2e8f0;
  --text-muted: #7a91ad;
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Ambient glow background */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 1100px;
  height: 58px;
  background: rgba(9, 18, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56,189,248,0.12);
  border-radius: 16px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(56,189,248,0.3);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== SIDEBAR ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1001;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg-mid);
  border-left: 1px solid var(--card-border);
  padding: 24px 20px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar.active {
  right: 0;
}

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

.sidebar-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.sidebar-close:hover {
  color: var(--text);
}

.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.sidebar a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.sidebar a svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* ===== MAIN CONTENT ===== */
.container {
  max-width: 800px;
  margin: 120px auto 60px;
  padding: 0 20px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.page-title {
  text-align: center;
  margin-bottom: 36px;
  animation: fadeUp 0.6s ease both;
}

.page-title h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.page-title h1 span {
  color: var(--accent);
}

.page-title p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp 0.6s 0.15s ease both;
  counter-reset: faq-counter; /* Menyiapkan penomoran otomatis */
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.faq-item:hover {
  border-color: rgba(56,189,248,0.3);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}

/* CSS Counter untuk nomor otomatis */
.faq-question span:first-child::before {
  counter-increment: faq-counter;
  content: counter(faq-counter) ". ";
  color: var(--accent);
  font-weight: 700;
}

.faq-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  color: var(--accent);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(4, 10, 20, 0.4);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  padding: 0 22px;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 14px 22px 20px 22px;
  border-top: 1px solid var(--card-border);
}

/* ===== FOOTER ===== */
footer {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(to bottom, transparent, var(--bg-mid));
  border-top: 1px solid var(--card-border);
  position: relative;
  z-index: 1;
  margin-top: auto;
}

footer h2 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 14px;
}

footer p {
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.8;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-links span {
  color: var(--card-border);
}

.footer-copy {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
