/* ==========================================================================
   Redirect 1forcrvpn.store -> 1forcrkuota.com
   Halaman redirect statis dengan animasi modern.
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

:root {
  --bg: #04050e;
  --text: #eef1ff;
  --muted: #98a2c0;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 30px;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #fff;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 36px 20px 28px;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 50% -10%, #101438 0%, var(--bg) 55%);
  overflow-x: hidden;
  animation: page-in 0.7s ease both;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Latar belakang
   ========================================================================== */

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.blob--violet {
  top: -14vmax;
  left: -10vmax;
  background: radial-gradient(circle at 30% 30%, #7c3aed, transparent 65%);
  animation: float-a 18s ease-in-out infinite alternate;
}

.blob--cyan {
  bottom: -18vmax;
  right: -12vmax;
  background: radial-gradient(circle at 70% 70%, #0891b2, transparent 62%);
  animation: float-b 22s ease-in-out infinite alternate;
}

.blob--pink {
  top: 28%;
  left: 52%;
  width: 32vmax;
  height: 32vmax;
  opacity: 0.32;
  background: radial-gradient(circle, #db2777, transparent 60%);
  animation: float-c 26s ease-in-out infinite alternate;
}

@keyframes float-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(10vmax, 6vmax, 0) scale(1.15); }
}

@keyframes float-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(-9vmax, -5vmax, 0) scale(0.95); }
}

@keyframes float-c {
  from { transform: translate3d(-6vmax, 4vmax, 0) scale(0.9); }
  to { transform: translate3d(6vmax, -6vmax, 0) scale(1.1); }
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.overlay-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 0%, transparent 75%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 42%, rgba(0, 0, 0, 0.5) 100%);
}

/* ==========================================================================
   Kartu utama
   ========================================================================== */

.card {
  position: relative;
  width: min(640px, 100%);
  padding: clamp(34px, 5vw, 54px) clamp(22px, 4.5vw, 52px);
  text-align: center;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.028) 55%),
    rgba(8, 10, 28, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 30px 80px -30px rgba(2, 4, 20, 0.9),
    0 0 90px -30px rgba(124, 58, 237, 0.55);
  animation: card-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.9), rgba(34, 211, 238, 0.9), transparent);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.965);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbd5ff;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 24px -8px rgba(124, 58, 237, 0.9);
  animation: rise 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- Domain ---------- */

.old-domain {
  margin-top: 26px;
  font-size: clamp(13px, 2.4vw, 15px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 0.7s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.old-domain s {
  text-decoration-color: rgba(244, 114, 182, 0.75);
  text-decoration-thickness: 2px;
}

.new-domain {
  margin-top: 10px;
  font-size: clamp(30px, 7vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  background: linear-gradient(100deg, #ffffff 0%, #c4b5fd 25%, #67e8f9 50%, #f9a8d4 75%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(124, 58, 237, 0.35));
  animation:
    rise 0.7s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both,
    shimmer 6s linear 1.2s infinite;
}

@keyframes shimmer {
  to { background-position: 220% 0; }
}

.subtitle {
  max-width: 46ch;
  margin: 18px auto 0;
  font-size: clamp(14px, 2.6vw, 15.5px);
  line-height: 1.75;
  color: var(--muted);
  animation: rise 0.7s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.subtitle strong {
  color: #e0e7ff;
  font-weight: 700;
}

/* ---------- Countdown ---------- */

.countdown {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 30px auto 4px;
  animation: rise 0.7s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.countdown::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.38), transparent 70%);
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.countdown__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 8;
}

.countdown__progress {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.65));
}

.countdown__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.countdown__value small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Tombol ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #6d28d9, #4f46e5 45%, #0e7490);
  background-size: 160% 160%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 14px 34px -12px rgba(99, 102, 241, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background-position 0.5s ease;
  animation: rise 0.7s 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta:hover {
  transform: translateY(-3px);
  background-position: 100% 100%;
  box-shadow:
    0 22px 44px -14px rgba(99, 102, 241, 1),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.cta:active {
  transform: translateY(-1px) scale(0.985);
}

.cta:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}

.cta__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.cta:hover .cta__icon {
  transform: translateX(4px);
}

.note {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(154, 163, 199, 0.85);
  animation: rise 0.7s 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ==========================================================================
   Footer & overlay fade
   ========================================================================== */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(152, 162, 192, 0.75);
  animation: rise 0.7s 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.footer__sep {
  opacity: 0.6;
}

.fade-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: radial-gradient(1200px 800px at 50% -10%, #101438 0%, var(--bg) 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

body.leaving .fade-overlay {
  opacity: 1;
}

/* ==========================================================================
   Responsif & aksesibilitas
   ========================================================================== */

@media (max-width: 420px) {
  .cta {
    width: 100%;
  }

  .countdown {
    width: 116px;
    height: 116px;
  }

  .countdown__value {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
