/* ============================================
   KelolaCredit - Global Stylesheet
   Design: Premium Black + Gold / Amber
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --black:       #050505;
  --black-soft:  #0e0e0e;
  --black-card:  #141414;
  --black-border:#1e1e1e;
  --gold:        #D9A441;
  --gold-light:  #F2C14E;
  --gold-bright: #FFD84D;
  --gold-glow:   rgba(217,164,65,0.25);
  --text-white:  #F5F5F5;
  --text-muted:  #9A9A9A;
  --text-dark:   #7A7A7A;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-gold: 0 0 24px rgba(217,164,65,0.18);
  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
  --transition:  0.28s cubic-bezier(.4,0,.2,1);
  --font-main:   'Inter', 'Segoe UI', sans-serif;
  --max-w:       1140px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--text-white);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); font-size: 1rem; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(217,164,65,0.12); border: 1px solid rgba(217,164,65,0.3);
  color: var(--gold); padding: 4px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---------- Particles / Background FX ---------- */
.bg-canvas {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(217,164,65,0.07) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(217,164,65,0.04) 0%, transparent 60%),
              var(--black);
  z-index: -1;
  pointer-events: none;
}
.bg-canvas::after {
  content:'';
  position:absolute; bottom:0; left:0; right:0;
  height: 260px;
  background: linear-gradient(to top, rgba(217,164,65,0.06) 0%, transparent 100%);
  border-radius: 50% 50% 0 0 / 20% 20% 0 0;
}

/* ---------- Animated particles (JS-driven canvas) ---------- */
#particles-canvas {
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none;
  opacity: 0.55;
}

/* ---------- LOGO SVG ---------- */
.logo-wrap {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px; flex-shrink: 0;
}
.logo-text-main {
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 60%, #b8832a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text-tag {
  display: block;
  font-size: 0.6rem; font-weight: 500;
  color: var(--text-dark); letter-spacing: 0.08em;
  -webkit-text-fill-color: var(--text-dark);
}

/* ---------- HEADER / NAVBAR ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--black-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.6); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

/* Nav */
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block; padding: 6px 14px; border-radius: 8px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
  background: rgba(217,164,65,0.08);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
}
.nav-toggle span:nth-child(2) { width: 70%; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 100%; }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--black-border);
    padding: 0.75rem 1.25rem 1.25rem;
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 500px; }
  .nav-links a { padding: 10px 12px; font-size: 1rem; }
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb-bar {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; font-size: 0.82rem; color: var(--text-dark);
}
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--black-border); }
.breadcrumb a { color: var(--text-dark); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--gold); font-weight: 600; }

/* ---------- HERO SECTION ---------- */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  text-align: center;
}
.hero-badge { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .gold { color: var(--gold-bright); }
.hero p.lead {
  font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem;
  color: var(--text-muted);
}
.hero-cta-group {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-main);
  font-size: 0.95rem; font-weight: 600;
  padding: 12px 28px; border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #050505;
  box-shadow: 0 4px 20px rgba(217,164,65,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(217,164,65,0.5);
  color: #050505;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: rgba(217,164,65,0.08);
  transform: translateY(-2px);
  color: var(--gold-bright);
}

/* ---------- SECTION COMMONS ---------- */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { margin-top: 0.75rem; font-size: 1rem; }
.divider {
  width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px; margin: 1rem auto 0;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(217,164,65,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.card-icon {
  width: 52px; height: 52px;
  background: rgba(217,164,65,0.1);
  border: 1px solid rgba(217,164,65,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.5rem; color: var(--text-white); font-size: 1.1rem; }
.card p  { font-size: 0.9rem; }

/* Cards grid */
.cards-grid { display: grid; gap: 1.25rem; }
.cards-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- INFO BOX ---------- */
.info-box {
  background: rgba(217,164,65,0.06);
  border: 1px solid rgba(217,164,65,0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.info-box.warning {
  background: rgba(255,180,0,0.07);
  border-color: rgba(255,180,0,0.25);
}
.info-box.danger {
  background: rgba(220,50,50,0.07);
  border-color: rgba(220,50,50,0.2);
}
.info-box h4 { color: var(--gold-bright); margin-bottom: 0.5rem; }
.info-box p  { font-size: 0.9rem; }

/* ---------- STEPS / ORDERED LIST ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1.25rem; }
.step-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
}
.step-item:hover { border-color: rgba(217,164,65,0.35); }
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #050505; font-weight: 700; font-size: 0.9rem;
}
.step-body h4 { color: var(--text-white); margin-bottom: 0.3rem; }
.step-body p  { font-size: 0.9rem; }

/* ---------- FAQ ACCORDION ---------- */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(217,164,65,0.4); }
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 1.1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; font-family: var(--font-main);
  font-size: 0.97rem; font-weight: 600; color: var(--text-white);
  transition: color var(--transition);
}
.faq-q:hover { color: var(--gold-bright); }
.faq-q .faq-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.9rem;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-q .faq-icon {
  background: var(--gold); color: #050505;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.38s ease, padding 0.28s;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted); font-size: 0.92rem; line-height: 1.7;
}

/* ---------- CONTACT CHANNEL CARDS ---------- */
.channel-card {
  display: flex; flex-direction: column;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.channel-card:hover {
  border-color: rgba(217,164,65,0.45);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}
.channel-card .ch-icon {
  font-size: 2.2rem; margin-bottom: 0.75rem;
}
.channel-card h3 { color: var(--text-white); font-size: 1.05rem; margin-bottom: 0.4rem; }
.channel-card .ch-val {
  font-size: 1.35rem; font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}
.channel-card p { font-size: 0.85rem; }

/* ---------- TABLE ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td {
  padding: 0.85rem 1rem; text-align: left;
  border-bottom: 1px solid var(--black-border);
}
.data-table th {
  color: var(--gold); font-weight: 600;
  background: rgba(217,164,65,0.06);
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.data-table td { color: var(--text-muted); }
.data-table tr:hover td { color: var(--text-white); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--black-border); }

/* ---------- HIGHLIGHT BOX ---------- */
.highlight {
  background: linear-gradient(135deg, rgba(217,164,65,0.1), rgba(217,164,65,0.04));
  border: 1px solid rgba(217,164,65,0.25);
  border-radius: var(--radius-lg); padding: 2rem 2.5rem;
  text-align: center;
}
.highlight h2 { color: var(--gold-bright); margin-bottom: 0.75rem; }

/* ---------- INTERNAL LINK SECTION ---------- */
.related-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.related-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius); padding: 10px 18px;
  color: var(--text-muted); font-size: 0.9rem;
  transition: all var(--transition);
}
.related-link:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(217,164,65,0.07);
}
.related-link svg { flex-shrink: 0; }

/* ---------- DISCLAIMER ---------- */
.disclaimer {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem; font-size: 0.82rem;
  color: var(--text-dark); margin: 2rem 0;
}
.disclaimer strong { color: var(--text-muted); }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--black-border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand p { font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }
.footer-col h5 { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li a { color: var(--text-muted); font-size: 0.88rem; transition: color var(--transition); }
.footer-col li a:hover { color: var(--gold-bright); }

.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--black-border);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-dark);
}
.footer-bottom a { color: var(--text-dark); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- HERO WAVE ---------- */
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px; pointer-events: none; overflow: hidden;
}
.hero-wave svg { display: block; width: 100%; height: 100%; }

/* ---------- GLOW DIVIDER ---------- */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem 0;
  opacity: 0.4;
}

/* ---------- RESPONSIVE HELPERS ---------- */
@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; justify-content: center; }
}
