/* ==========================================================================
   NASUHA KORDA DEBORAMI (Depok • Bogor • Sukabumi)
   Design System: "Clean Editorial & Royal Trust" — Responsive Zero-Clip Edition
   ========================================================================== */

:root {
  --royal-950: #030924;
  --royal-900: #061356;
  --royal-800: #0d2175;
  --royal-700: #173499;
  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-300: #fcd34d;
  --ivory-50: #f8fafc;
  --slate-900: #0f172a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-900);
  background-color: var(--ivory-50);
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.font-serif-editorial {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Subtle Islamic Geometric & Royal Gradient Surface */
.royal-surface {
  background:
    radial-gradient(circle at 14% 18%, rgba(56, 189, 248, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 86% 12%, rgba(251, 191, 36, 0.13) 0%, transparent 38%),
    radial-gradient(circle at 50% 92%, rgba(14, 165, 233, 0.12) 0%, transparent 48%),
    linear-gradient(165deg, #040b2e 0%, #061356 52%, #030824 100%);
  position: relative;
}

.royal-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  opacity: 0.55;
}

/* Glass Cards */
.glass-dark {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.glass-dark-strong {
  background: rgba(8, 20, 72, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Navbar Transition */
.site-navbar {
  transition: background-color 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.site-navbar.scrolled {
  background: rgba(3, 9, 36, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px -10px rgba(2, 6, 23, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  color: #090d16;
  box-shadow: 0 10px 26px -6px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 32px -6px rgba(245, 158, 11, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-royal {
  background: linear-gradient(135deg, #061356 0%, #0d2585 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px -8px rgba(6, 19, 86, 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-royal:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(6, 19, 86, 0.58);
}

/* Editorial Cards */
.editorial-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px -14px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.editorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -16px rgba(6, 19, 86, 0.14);
  border-color: rgba(14, 165, 233, 0.28);
}

/* Symmetrical Condition Grid Cards (Clean on Mobile & Desktop) */
.condition-tab {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #1e293b;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.condition-tab:hover {
  border-color: #94a3b8;
  background: #ffffff;
  transform: translateY(-2px);
}

.condition-tab.active {
  background: linear-gradient(135deg, #061356 0%, #0e298d 100%);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 14px 28px -10px rgba(6, 19, 86, 0.45);
  transform: translateY(-2px);
}

.condition-tab .tab-icon-wrap {
  background: #e2e8f0;
  color: #061356;
  transition: all 0.22s ease;
}

.condition-tab.active .tab-icon-wrap {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.condition-tab .tab-sub {
  color: #64748b;
  transition: color 0.22s ease;
}

.condition-tab.active .tab-sub {
  color: #bae6fd;
}

.condition-tab .tab-dot {
  background: #cbd5e1;
  transition: all 0.22s ease;
}

.condition-tab.active .tab-dot {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.9);
}

/* Custom Vertical Reel Studio Frame — Zero Cropping */
.reel-shell {
  width: 100%;
  max-width: 296px;
  border-radius: 22px;
  overflow: hidden;
  background: #020617;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 50px -14px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(251, 191, 36, 0.14);
}

.reel-frame {
  aspect-ratio: 9 / 16;
  width: 100%;
  background: #020617;
  position: relative;
  overflow: hidden;
}

.reel-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
  display: block;
  cursor: pointer;
}

.reel-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: rgba(251, 191, 36, 0.95);
  color: #030924;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 9px rgba(251, 191, 36, 0.22), 0 12px 28px rgba(0, 0, 0, 0.6);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, background-color 0.2s ease;
  cursor: pointer;
}

.reel-play-btn:hover {
  transform: scale(1.07);
  background: #fcd34d;
}

.reel-shell.is-playing .reel-center-trigger {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
}

.reel-shell:hover.is-playing .reel-center-trigger {
  opacity: 0.92;
  pointer-events: auto;
  transform: scale(1);
}

.reel-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  overflow: hidden;
  cursor: pointer;
}

.reel-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #fbbf24 100%);
  border-radius: 9999px;
  transition: width 0.12s linear;
}

/* Poster Frame — Full Uncropped Portrait */
.poster-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.65);
  background: #050814;
  position: relative;
}

.poster-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .poster-frame:hover img {
    transform: scale(1.025);
  }
}

/* Form Gateway Interactive Styling */
.gateway-input {
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gateway-input:hover,
.gateway-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
  background: #ffffff;
  outline: none;
}

.gateway-pill {
  transition: all 0.2s ease;
  cursor: pointer;
}

.gateway-pill:hover {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

.gateway-pill.selected {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(56, 189, 248, 0.45);
}

/* FAQ Accordion — Zero Clipping on Resize or Narrow Mobile */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background-color: #061356;
  color: #fbbf24;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0b132b;
}
::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}
