:root {
  --bg-1: #05060f;
  --bg-2: #12081f;
  --bg-3: #060a1c;

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.24);

  --text-light: #f6f7fb;
  --text-muted: #a9adc7;

  --gold: #f5d18c;
  --gold-2: #d89b4a;

  --primary: #5b8dfb;
  --primary-dark: #3457d5;
  --secondary: #b565f7;
  --secondary-dark: #8b2fe0;
  --livechat: #2ee292;
  --livechat-dark: #15a34a;

  --radius-card: 18px;
  --radius-btn: 10px;
  --shadow-card: 0 30px 70px -20px rgba(0, 0, 0, 0.75);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-1);
  color: var(--text-light);
  position: relative;
  overflow-x: hidden;
}

/* --- background bergerak halus: beberapa blob warna yang perlahan berpindah --- */
.bg-decor {
  position: fixed;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(560px 480px at 12% 8%, rgba(91, 141, 251, 0.38), transparent 60%),
    radial-gradient(560px 480px at 88% 15%, rgba(181, 101, 247, 0.34), transparent 60%),
    radial-gradient(620px 540px at 50% 100%, rgba(46, 226, 146, 0.22), transparent 60%),
    radial-gradient(500px 420px at 70% 70%, rgba(245, 209, 140, 0.14), transparent 65%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3));
  background-size: 140% 140%;
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  filter: blur(4px);
}

@keyframes drift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 70% 60%, 0 0; }
  100% { background-position: 8% 12%, 90% 8%, 45% 92%, 60% 75%, 0 0; }
}

/* butiran halus di atas gradient supaya tidak terasa "flat" */
.bg-decor::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 38px 26px 26px;
  text-align: center;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  animation: card-in 0.55s ease both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-wrap {
  width: 108px;
  height: 108px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  padding: 4px;
  /* background: linear-gradient(135deg, var(--gold), var(--gold-2)); */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(245, 209, 140, 0.25), 0 12px 30px -8px rgba(245, 209, 140, 0.5);
  animation: ring-glow 3.2s ease-in-out infinite;
}

@keyframes ring-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245, 209, 140, 0.25), 0 12px 30px -8px rgba(245, 209, 140, 0.5); }
  50% { box-shadow: 0 0 0 3px rgba(245, 209, 140, 0.18), 0 16px 38px -6px rgba(245, 209, 140, 0.75); }
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(6, 8, 20, 0.9);
  display: block;
}

.logo-fallback {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.logo-fallback::before {
  content: "★";
  font-size: 34px;
  color: #1a1508;
  border: 3px solid rgba(6, 8, 20, 0.9);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(120deg, #fff 30%, var(--gold) 65%, #fff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine-text 5s linear infinite;
}

@keyframes shine-text {
  to { background-position: -220% center; }
}

.brand-desc {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 0 6px;
}

.btn-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: btn-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             btn-focus-bounce 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.09s + 0.15s),
                    calc(var(--i, 0) * 0.15s + 1.1s);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

/* bounce tak berhenti (infinite) di seluruh tombol supaya mata pengunjung tertuju ke sana.
   Pakai properti `translate` (bukan `transform`) supaya tidak bentrok dengan animasi
   masuk/hover yang sudah memakai `transform`. */
@keyframes btn-focus-bounce {
  0%, 40%, 100% { translate: 0 0; }
  10% { translate: 0 -10px; }
  20% { translate: 0 0; }
  30% { translate: 0 -5px; }
}

.btn:hover {
  animation-play-state: paused;
}

/* masuk dengan pantulan (bounce/overshoot) alih-alih fade rata */
@keyframes btn-in {
  0%   { opacity: 0; transform: translateY(26px) scale(0.9); }
  55%  { opacity: 1; transform: translateY(-8px) scale(1.03); }
  75%  { opacity: 1; transform: translateY(3px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* kilau yang menyapu tombol saat hover */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.btn:hover::before {
  left: 130%;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(255, 255, 255, 0.14);
  transition: opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.015);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px) scale(0.97);
}

/* efek ripple saat diklik, titik ditentukan lewat JS (--ripple-x/--ripple-y) */
.btn .ripple {
  position: absolute;
  z-index: 0;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-out {
  to {
    transform: translate(-50%, -50%) scale(22);
    opacity: 0;
  }
}

.btn-icon {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover .btn-icon {
  transform: scale(1.1) rotate(-6deg);
}

.btn-icon img {
  width: 19px;
  height: 19px;
  display: block;
  animation: icon-bounce 2.2s ease-in-out calc(var(--i, 0) * 0.15s + 1s) infinite;
}

/* mantulan halus & berulang di ikon tiap tombol, jalan terus supaya tombol terasa "hidup" */
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.btn:hover .btn-icon img {
  animation-play-state: paused;
}

.btn-text {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  text-align: left;
}

.btn-arrow {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  font-size: 20px;
  opacity: 0.75;
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 20px -10px rgba(91, 141, 251, 0.65);
}

.btn-primary:hover {
  box-shadow: 0 16px 26px -10px rgba(91, 141, 251, 0.8);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  box-shadow: 0 12px 20px -10px rgba(181, 101, 247, 0.6);
}

.btn-secondary:hover {
  box-shadow: 0 16px 26px -10px rgba(181, 101, 247, 0.75);
}

.btn-livechat {
  background: linear-gradient(135deg, var(--livechat), var(--livechat-dark));
  box-shadow: 0 12px 20px -10px rgba(46, 226, 146, 0.6);
  animation: btn-in 0.45s ease forwards,
             pulse-glow 2.6s ease-in-out 1.2s infinite,
             btn-focus-bounce 2.6s ease-in-out 1.1s infinite;
}

.btn-livechat:hover {
  box-shadow: 0 16px 26px -10px rgba(46, 226, 146, 0.8);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 12px 20px -10px rgba(46, 226, 146, 0.6), 0 0 0 0 rgba(46, 226, 146, 0.55); }
  50% { box-shadow: 0 12px 20px -10px rgba(46, 226, 146, 0.6), 0 0 0 10px rgba(46, 226, 146, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn-livechat, .btn-icon img, .card, .bg-decor, .logo-wrap, .brand-name {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
  }
  .btn::before {
    display: none;
  }
}

.footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.8;
}

@media (max-width: 360px) {
  .card {
    padding: 30px 18px 20px;
    border-radius: 22px;
  }
}
