:root {
  --bg-obsidian: #06060c;
  --bg-card: rgba(14, 15, 26, 0.84);
  --bg-card-solid: #0e0f1a;
  --bg-elevated: rgba(21, 23, 38, 0.88);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(139, 110, 255, 0.28);
  --brand-violet: #7c5cff;
  --brand-indigo: #638aff;
  --brand-glow: rgba(124, 92, 255, 0.34);
  --emerald-mint: #34d399;
  --amber-warn: #f59e0b;
  --rose-danger: #ef4444;
  --blue-wp: #60a5fa;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
}

.font-mono-code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Hero Brand Gradient Headline Accent ("Lebih Hemat" style) */
.text-brand-gradient {
  background: linear-gradient(90deg, #8b6eff 0%, #638aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Brand Rounded Logo Tile */
.brand-logo-tile {
  background: linear-gradient(135deg, #7c5cff 0%, #638aff 100%);
  box-shadow:
    0 8px 22px rgba(124, 92, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Soft Radial Violet-Indigo Ambient Lighting */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 45% at 50% 8%, rgba(124, 92, 255, 0.16) 0%, rgba(99, 138, 255, 0.05) 45%, transparent 75%),
    radial-gradient(circle at 14% 85%, rgba(124, 92, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 88% 82%, rgba(99, 138, 255, 0.08) 0%, transparent 52%);
}

/* Architectural Dark Grid Lines (Matching Reference Hero Grid) */
.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 26%, black 30%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 26%, black 30%, transparent 82%);
}

/* Glassmorphism Surfaces */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-subcard {
  background: rgba(11, 12, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-subcard:hover {
  border-color: rgba(124, 92, 255, 0.28);
  background: rgba(18, 20, 34, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Inputs */
.glass-input {
  background: rgba(9, 10, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-input::placeholder {
  color: #64748b;
}

.glass-input:focus {
  outline: none;
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

/* Primary Electric Violet -> Periwinkle Blue CTA Button */
.btn-brand,
.btn-emerald {
  background: linear-gradient(95deg, #7c5cff 0%, #638aff 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow:
    0 8px 26px rgba(124, 92, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: filter 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.btn-brand:hover:not(:disabled),
.btn-emerald:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow:
    0 12px 32px rgba(124, 92, 255, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-brand:disabled,
.btn-emerald:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Secondary Dark Button (like "Lihat demo" / "Masuk" in reference) */
.btn-dark-pill {
  background: rgba(16, 17, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #e2e8f0;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-dark-pill:hover {
  background: rgba(25, 27, 44, 0.95);
  border-color: rgba(124, 92, 255, 0.4);
  color: #ffffff;
}

/* Progress Bar Smooth Transition */
.quota-bar-track {
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.quota-bar-fill {
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s ease, box-shadow 0.35s ease;
}

.quota-bar-brand,
.quota-bar-emerald {
  background: linear-gradient(90deg, #7c5cff 0%, #638aff 100%);
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.5);
}

.quota-bar-amber {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.quota-bar-danger {
  background: linear-gradient(90deg, #ef4444 0%, #f43f5e 100%);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

/* Notice Banner */
.amber-notice {
  background: rgba(124, 92, 255, 0.07);
  border: 1px solid rgba(124, 92, 255, 0.24);
  border-left: 3px solid #7c5cff;
}

/* Provider Badges */
.badge-envato {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-worldpressit {
  background: rgba(124, 92, 255, 0.15);
  color: #b4a5ff;
  border: 1px solid rgba(124, 92, 255, 0.35);
}

.badge-freepik {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Modal Backdrop & Entrance */
.modal-backdrop {
  background: rgba(4, 4, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.22s ease;
}

.modal-panel {
  animation: modalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Floating Support Button (Brand Violet-Indigo Pulse) */
.wa-float-btn {
  background: linear-gradient(135deg, #7c5cff 0%, #638aff 100%);
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.4);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.wa-float-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.55);
}

.wa-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid rgba(124, 92, 255, 0.55);
  animation: waPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.28);
    opacity: 0;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

/* Spinner */
.spin-anim {
  animation: spinCircle 0.85s linear infinite;
}

@keyframes spinCircle {
  to {
    transform: rotate(360deg);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #07070e;
}

::-webkit-scrollbar-thumb {
  background: #23253a;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #383b5c;
}

/* ========================================================================= */
/* BRAND LOGO MARQUEE SLIDER (Sliding Kanan ke Kiri Tanpa Henti)             */
/* ========================================================================= */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
}

.marquee-mask {
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 42s linear infinite;
}

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

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

.brand-marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  user-select: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-marquee-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 110, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.2);
}

.brand-marquee-pill:active {
  transform: translateY(0);
}

/* ========================================================================= */
/* USE CASE SECTION (COCOK UNTUK SIAPA)                                     */
/* ========================================================================= */
.usecase-card {
  position: relative;
  border-radius: 18px;
  background: rgba(14, 15, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.usecase-card:hover {
  transform: translateY(-4px);
  border-color: var(--uc-accent, rgba(139, 110, 255, 0.55));
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55), 0 0 24px -6px var(--uc-accent, rgba(124, 92, 255, 0.35));
}

.usecase-visual {
  position: relative;
  width: 100%;
  height: 140px;
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.04) 0%, rgba(6, 6, 12, 0.96) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.usecase-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--uc-accent, rgba(255, 255, 255, 0.25));
  color: #f1f5f9;
  backdrop-filter: blur(8px);
}

.usecase-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.usecase-chip:hover {
  background: rgba(139, 110, 255, 0.16);
  border-color: rgba(139, 110, 255, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.uc-float {
  animation: ucFloat 3.5s ease-in-out infinite alternate;
}

@keyframes ucFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .wa-pulse-ring,
  .modal-panel,
  .spin-anim,
  .uc-float {
    animation: none !important;
  }
  .marquee-track {
    animation: none !important;
    overflow-x: auto;
  }
  .quota-bar-fill {
    transition: none !important;
  }
}
