/* ============================================
   KELULUSAN DIGITAL — Premium Redesign
   Aesthetic: Luxury Dark / Aurora Night
   Font: Syne (display) + DM Sans (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg-base:       #04070f;
  --bg-mid:        #070d1a;
  --indigo:        #4361ee;
  --violet:        #7209b7;
  --pink:          #f72585;
  --cyan:          #4cc9f0;
  --gold:          #f4c542;
  --text-primary:  #f0f4ff;
  --text-muted:    #8896b3;
  --text-dim:      #3f4e6b;
  --glass-bg:      rgba(255,255,255,0.03);
  --glass-border:  rgba(255,255,255,0.07);
  --radius-lg:     24px;
  --radius-pill:   100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── AURORA BACKGROUND ── */
.aurora-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora-layer::before,
.aurora-layer::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: aurora-drift 12s ease-in-out infinite alternate;
}
.aurora-layer::before {
  width: 700px; height: 500px;
  background: radial-gradient(circle, var(--violet) 0%, var(--indigo) 60%, transparent 100%);
  top: -150px; left: -100px;
}
.aurora-layer::after {
  width: 600px; height: 500px;
  background: radial-gradient(circle, var(--pink) 0%, var(--violet) 55%, transparent 100%);
  bottom: -100px; right: -80px;
  animation-delay: -6s;
}
@keyframes aurora-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.1); }
}

/* Noise grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
}

/* ── GRID LINES ── */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(67,97,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,97,238,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── WRAPPER ── */
.wrapper {
  flex: 1;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fade-up 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LOGO / ICON AREA ── */
.logo-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--indigo), var(--violet), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1),
              0 20px 60px rgba(114,9,183,0.4),
              0 0 80px rgba(247,37,133,0.15);
  animation: logo-pulse 3s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 20px 60px rgba(114,9,183,0.4), 0 0 80px rgba(247,37,133,0.15); }
  50%      { box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 20px 70px rgba(114,9,183,0.55), 0 0 120px rgba(247,37,133,0.25); }
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(67,97,238,0.12);
  border: 1px solid rgba(67,97,238,0.3);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: #93c5fd;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* ── HEADING ── */
h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 14px;
  background: linear-gradient(160deg, #ffffff 0%, #c4d3ff 40%, #f9a8d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 7vw, 2.5rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -1px;
  margin-bottom: 14px;
  background: linear-gradient(160deg, #ffffff 0%, #c4d3ff 40%, #f9a8d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SUBTITLE ── */
.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 44px;
  max-width: 480px;
  line-height: 1.6;
}

/* ── GLASS PANEL ── */
.glass-panel {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  padding: 36px 28px 32px;
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 32px 64px rgba(0,0,0,0.6);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.panel-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 24px;
}

/* ── COUNTDOWN ── */
.grid-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown-box {
  background: rgba(4,7,15,0.6);
  padding: 18px 8px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.countdown-box:hover {
  border-color: rgba(255,255,255,0.12);
}
.countdown-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(67,97,238,0.06) 0%, transparent 100%);
  pointer-events: none;
}

.countdown-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  display: block;
}

/* accent colours per unit */
#countdown_days   { color: var(--cyan); }
#countdown_hours  { color: #a5b4fc; }
#countdown_mins   { color: #f9a8d4; }
#countdown_secs   { color: var(--pink); }

.sep {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1.4rem;
  font-weight: 700;
  padding-top: 4px;
  margin-top: -6px;
}

.countdown-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-top: 8px;
  display: block;
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  width: 100%;
}
.divider span { flex: 1; height: 1px; background: var(--glass-border); }
.divider p { font-size: 11px; color: var(--text-dim); white-space: nowrap; }

/* ── CTA BUTTON ── */
.btn-cek {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 50%, var(--pink) 100%);
  color: #fff;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 18px 36px;
  border-radius: 16px;
  letter-spacing: 0.2px;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease,
              opacity 0.2s;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 12px 32px rgba(114,9,183,0.35),
    0 4px 12px rgba(247,37,133,0.2);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-cek::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.btn-cek:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.15) inset,
    0 20px 48px rgba(114,9,183,0.45),
    0 8px 20px rgba(247,37,133,0.3);
}
.btn-cek:active { transform: translateY(0) scale(0.99); }

.btn-arrow {
  transition: transform 0.2s;
  font-size: 18px;
}
.btn-cek:hover .btn-arrow { transform: translateX(4px); }

/* ── INFO STRIP ── */
.info-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-dim);
}
.info-item span:first-child { font-size: 14px; }

/* ── TOAST ── */
#alertToast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: rgba(7,13,26,0.95);
  border: 1px solid rgba(244,197,66,0.4);
  padding: 16px 20px;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(244,197,66,0.1) inset,
    0 24px 60px rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  width: 92%;
  max-width: 380px;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
#alertToast.show {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(244,197,66,0.12);
  border: 1px solid rgba(244,197,66,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.toast-content h4 { color: var(--gold); font-size: 13px; font-weight: 600; }
.toast-content p  { color: var(--text-muted); font-size: 11.5px; margin-top: 3px; line-height: 1.5; }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 10;
  background: rgba(4,7,15,0.8);
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
  padding: 20px;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.3px;
}
footer a { color: var(--text-muted); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .wrapper { padding: 40px 16px 30px; }
  .glass-panel { padding: 24px 16px 22px; }
  .grid-countdown { gap: 8px; }
  .info-strip { gap: 16px; }
}
@media (min-width: 600px) {
  .btn-cek { width: auto; min-width: 280px; }
}