/* assets/css/style.css */
/* Tema: Hitam Pekat dengan Aksen Gold Elegan */

:root {
  --page-bg: #000000;
  --page-text: #e2e8f0;
  --page-heading: #ffffff;
  --page-muted: #94a3b8;
  --page-link: #f4c95d;
  --btn-bg: #d4af37;
  --btn-text: #090909;
  --btn-hover: #b89120;
  --bs-primary: #d4af37;
  --bs-primary-rgb: 212, 175, 55;
}

html, body {
  background: var(--page-bg);
  color: var(--page-text);
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main, section, footer, header, nav {
  max-width: 100vw;
}

main > section, section[class*="surface-"] {
  clear: both;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .navbar-brand, .btn {
  font-family: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--page-heading);
  letter-spacing: -.01em;
}

p, li, span, strong, em, small, label, td, th, dd, dt, figcaption {
  color: inherit;
}

.muted, .text-muted {
  color: var(--page-muted) !important;
}

a:not(.btn) {
  color: var(--page-link);
}

a:not(.btn):hover, a:not(.btn):focus {
  color: var(--page-link);
  text-decoration: underline;
}

.container, .container-fluid {
  min-width: 0;
}

.row {
  min-width: 0;
}

.row > [class*="col-"] {
  min-width: 0;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Surface styles */
.surface-page {
  background: #000000 !important;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.08);
}

.surface-page.surface-page h1, 
.surface-page.surface-page h2, 
.surface-page.surface-page h3, 
.surface-page.surface-page h4, 
.surface-page.surface-page h5, 
.surface-page.surface-page h6, 
.surface-page.surface-page .heading {
  color: #ffffff;
}

.surface-page.surface-page :is(p, li, span, strong, em, small, label, td, th, dd, dt, figcaption):not(.badge):not(.badge-pill):not(.chip):not(.tag):not(.pill):not(.icon-circle):not(.icon-bubble) {
  color: #e2e8f0;
}

.surface-page.surface-page * :not(.badge):not(.badge-pill):not(.chip):not(.tag):not(.pill):not(.btn):not([class*="btn-"]):not(.icon-circle):not(.icon-bubble):not(.form-control):not(.form-select):not(input):not(textarea):not(select):not(option):not(.navbar-toggler):not([class*="surface-"]):not(a) {
  color: inherit;
}

.surface-page.surface-page .icon-circle, 
.surface-page.surface-page .icon-bubble {
  background-color: var(--btn-bg) !important;
  color: #090909 !important;
}

.surface-page.surface-page .form-control, 
.surface-page.surface-page .form-select, 
.surface-page.surface-page input, 
.surface-page.surface-page textarea, 
.surface-page.surface-page select {
  background-color: #111827 !important;
  color: #f3f4f6 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.surface-page.surface-page .form-control::placeholder, 
.surface-page.surface-page input::placeholder, 
.surface-page.surface-page textarea::placeholder {
  color: #9ca3af !important;
}

.surface-page.surface-page option {
  background-color: #111827 !important;
  color: #f3f4f6 !important;
}

.surface-page.surface-page .muted, 
.surface-page.surface-page .text-muted {
  color: var(--page-muted) !important;
}

.surface-page:is(.text-white, .text-dark, .text-body, .text-body-secondary, .text-secondary, .text-black, .text-light) {
  color: #e2e8f0 !important;
}

.surface-page.surface-page :is(p, li, span, strong, em, small, label, td, th, dd, dt, figcaption, h1, h2, h3, h4, h5, h6, div):is(.text-white, .text-dark, .text-body, .text-body-secondary, .text-secondary, .text-black, .text-light):not(.badge):not(.badge-pill):not(.chip):not(.tag):not(.pill):not(.btn):not([class*="btn-"]):not(.icon-circle):not(.icon-bubble):not([class*="surface-"]) {
  color: #e2e8f0 !important;
}

.surface-page.surface-page a:not(.btn) {
  color: var(--page-link);
}

.surface-page.surface-page a:not(.btn):hover, 
.surface-page.surface-page a:not(.btn):focus {
  color: var(--page-link);
  text-decoration: underline;
}

.surface-page:is(.card, .rounded-xl, .card-space, .list-panel, .list-group-item, .list-group, .note-card, .feature-card, .glass-card, .soft-panel, .info-card, .panel, .box, .tile, .table-responsive, .table, table, .details-panel, .accordion-item, .accordion, .alert, details, .timeline-item, .timeline, .step, .step-item, .stat, .stat-card, .price-card, .pricing-card, .testimonial, .media-frame, .image-frame, .hero-shell, .cta-box, .callout, .highlight, .feature, .benefit, .review) {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.surface-page:is(.card, .rounded-xl, .card-space, .list-panel, .list-group-item, .list-group, .note-card, .feature-card, .glass-card, .soft-panel, .info-card, .panel, .box, .tile, .table-responsive, .table, table, .details-panel, .accordion-item, .accordion, .alert, details, .timeline-item, .timeline, .step, .step-item, .stat, .stat-card, .price-card, .pricing-card, .testimonial, .media-frame, .image-frame, .hero-shell, .cta-box, .callout, .highlight, .feature, .benefit, .review) a:not(.btn) {
  color: inherit !important;
  text-decoration: underline;
}

.surface-page .table, 
.surface-page.table, 
.surface-page table, 
.surface-page.table-responsive .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e2e8f0;
  --bs-table-striped-bg: transparent;
  --bs-table-striped-color: #e2e8f0;
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.surface-page .table > :not(caption) > * > *, 
.surface-page.table > :not(caption) > * > * {
  background-color: transparent !important;
}

/* Badges / Pills */
.badge-pill, .chip, .tag, .pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .85rem;
  line-height: 1.2;
  font-weight: 600;
}

.surface-page .badge, 
.surface-page .badge-pill, 
.surface-page .chip, 
.surface-page .tag, 
.surface-page .pill {
  background: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.surface-page .badge i, 
.surface-page .badge-pill i, 
.surface-page .chip i, 
.surface-page .tag i, 
.surface-page .pill i {
  color: #ffffff !important;
}

.surface-page :is(.badge, .badge-pill, .chip, .tag, .pill):is(.bg-light, .bg-white, .bg-dark, .bg-secondary, .bg-body, .bg-body-tertiary, .text-muted, .text-white, .text-dark, .text-body, .text-body-secondary, .text-secondary) {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.surface-page :is(.badge, .badge-pill, .chip, .tag, .pill):is(.bg-light, .bg-white, .bg-dark, .bg-secondary, .bg-body, .bg-body-tertiary, .text-muted, .text-white, .text-dark, .text-body, .text-body-secondary, .text-secondary) i {
  color: #ffffff !important;
}

.surface-page.surface-page a.badge, 
.surface-page.surface-page a.badge-pill, 
.surface-page.surface-page a.chip, 
.surface-page.surface-page a.tag, 
.surface-page.surface-page a.pill {
  color: #ffffff !important;
  text-decoration: none !important;
}

.surface-page .btn-ghost {
  color: inherit !important;
  border-color: currentColor !important;
  background: transparent !important;
}

.surface-page .btn-ghost:hover, 
.surface-page .btn-ghost:focus {
  background: var(--btn-bg) !important;
  color: var(--btn-text) !important;
}

.surface-page.surface-page .accordion-button, 
.surface-page.surface-page .accordion-button.collapsed, 
.surface-page.surface-page .accordion-button:not(.collapsed) {
  color: inherit !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.surface-page.surface-page .accordion-button::after {
  background-image: none !important;
  width: 1.1em;
  height: 1.1em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

.surface-page.surface-page .accordion-button:not(.collapsed)::after {
  transform: rotate(-135deg);
  background-image: none !important;
}

.surface-page.surface-page button:not(.btn):not(.accordion-button):not(.navbar-toggler) {
  color: #e2e8f0;
}

/* Surface Dark & Soft & Light Styles (untuk penyesuaian tema hitam) */
.surface-dark {
  background: #090d16 !important;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.08);
}

.surface-soft {
  background: #0d111c !important;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.08);
}

.surface-light {
  background: #111827 !important;
  color: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.08);
}

.surface-accent {
  background: var(--btn-bg) !important;
  color: #090909;
  border-color: rgba(255, 255, 255, 0.08);
}

.surface-dark.surface-dark h1, .surface-dark.surface-dark h2, .surface-dark.surface-dark h3, .surface-dark.surface-dark h4, .surface-dark.surface-dark h5, .surface-dark.surface-dark h6,
.surface-soft.surface-soft h1, .surface-soft.surface-soft h2, .surface-soft.surface-soft h3, .surface-soft.surface-soft h4, .surface-soft.surface-soft h5, .surface-soft.surface-soft h6,
.surface-light.surface-light h1, .surface-light.surface-light h2, .surface-light.surface-light h3, .surface-light.surface-light h4, .surface-light.surface-light h5, .surface-light.surface-light h6 {
  color: #ffffff;
}

.surface-accent * :is(p, li, span, strong, em, small, label, dd, dt, figcaption, h1, h2, h3, h4, h5, h6, .heading) {
  color: #090909 !important;
}

/* Buttons */
.btn-brand {
  background: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  border: 0;
  border-radius: 2rem;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  transition: transform .22s, box-shadow .22s, filter .25s ease;
  position: relative;
  overflow: hidden;
}

.btn-brand:hover, .btn-brand:focus {
  background: var(--btn-hover) !important;
  color: var(--btn-text) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45);
  filter: saturate(1.08);
}

.btn-ghost {
  background: transparent !important;
  color: var(--page-link) !important;
  border: 1px solid var(--page-link) !important;
  border-radius: 2rem;
  transition: transform .22s, background .22s, color .22s;
  position: relative;
  overflow: hidden;
}

.btn-ghost:hover, .btn-ghost:focus {
  background: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  transform: translateY(-2px);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .btn:hover::after {
    left: 140%;
  }
}

/* Navbar */
.navbar.surface-page {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
}

.navbar.surface-page .navbar-brand, .navbar.surface-page .nav-link {
  color: #ffffff !important;
}

.navbar.surface-page .nav-link:hover {
  color: var(--page-link) !important;
  opacity: 1;
}

.navbar.surface-page .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar.surface-page .navbar-toggler-icon {
  filter: invert(1);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: visible !important;
  padding: 100px 0 72px;
  padding-top: clamp(2.5rem, 7vw, 100px);
  padding-bottom: clamp(4.5rem, 8vw, 7rem) !important;
  margin-bottom: 0 !important;
  background: linear-gradient(135deg, #000000 0%, #181406 60%, #000000 100%);
  z-index: 1;
}

.hero-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, transparent 70%);
  top: -80px;
  right: -100px;
  pointer-events: none;
  animation: fxFloat 9s ease-in-out infinite;
  will-change: transform;
}

.hero-orb2 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.09) 0%, transparent 70%);
  bottom: -60px;
  left: -60px;
  pointer-events: none;
  animation: fxFloat 12s ease-in-out infinite reverse;
  will-change: transform;
}

@keyframes fxFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: .85;
  }
  50% {
    transform: translate(14px, -12px) scale(1.06);
    opacity: 1;
  }
}

.hero-section h1 {
  font-size: clamp(1.85rem, 2.65vw, 2.65rem) !important;
  font-weight: 800;
  line-height: 1.3 !important;
  letter-spacing: -0.02em;
}

.hero-section .hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
  opacity: .92;
  line-height: 1.75 !important;
}

/* Cards & Styling */
.feature-card {
  border-radius: 1.2rem;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  }
}

.stat-card {
  border-radius: 1.2rem;
}

.icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  flex-shrink: 0;
  background-color: var(--btn-bg) !important;
  color: #090909 !important;
}

/* Marquee Ticker */
.marquee-outer {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.marquee-outer::before, .marquee-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.marquee-outer::before {
  left: 0;
  background: linear-gradient(to right, #000000, transparent);
}

.marquee-outer::after {
  right: 0;
  background: linear-gradient(to left, #000000, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  white-space: nowrap;
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.step-item {
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  opacity: .18;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
  transition: transform .2s;
}

.back-top:hover {
  transform: translateY(-3px);
}

.section-pad {
  padding: 72px 0;
}

.stats-band {
  padding: 40px 0;
}

/* Accordion */
.accordion-item {
  background-color: transparent !important;
  color: inherit !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.accordion-button {
  color: #ffffff !important;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .footer-brand-col p {
  font-size: .93rem;
  opacity: .85;
}

footer .footer-nav-col h6 {
  font-size: .82rem;
  letter-spacing: .08em;
  opacity: .6;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

footer .footer-nav-col a {
  display: block;
  margin-bottom: .35rem;
  font-size: .92rem;
  text-decoration: none;
}

footer .footer-nav-col a:hover {
  color: var(--page-link);
}

/* Floating Widget Daftar & Masuk */
.floating-widget-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 400px;
  display: flex;
  gap: 12px;
}

.floating-widget-btn {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, filter 0.2s;
}

.floating-widget-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.floating-widget-btn-register {
  background-color: #eab308;
  color: #000000 !important;
  border: none;
}

.floating-widget-btn-login {
  background-color: #16a34a;
  color: #ffffff !important;
  border: none;
}
