/* ==========================================================================
   assets/css/style.css
   ========================================================================== */

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

:root {
  --sky-dark: #080c14;
  --sky-surface: #0d1320;
  --sky-card: #111827;
  --sky-border: #1e293b;
  --sky-text: #e2e8f0;
  --sky-muted: #94a3b8;
  --sky-white: #f8fafc;

  --easter-pink: #f472b6;
  --easter-blue: #7dd3fc;
  --easter-green: #86efac;
  --easter-yellow: #fde047;
  --easter-purple: #c084fc;

  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--sky-dark);
  color: var(--sky-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(125, 211, 252, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 211, 252, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}
.glow-blob--pink {
  width: 500px;
  height: 500px;
  background: rgba(244, 114, 182, 0.15);
  top: -10%;
  left: -5%;
}
.glow-blob--yellow {
  width: 400px;
  height: 400px;
  background: rgba(253, 224, 71, 0.1);
  bottom: 0;
  right: -5%;
}
.glow-blob--blue {
  width: 300px;
  height: 300px;
  background: rgba(125, 211, 252, 0.1);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.countdown-bar {
  background: linear-gradient(90deg, var(--easter-pink), var(--easter-purple));
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 10;
}
.countdown-timer {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-left: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--sky-border);
}
.topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sky-white);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.topbar__logo img {
  height: 36px;
  width: auto;
}
.topbar__links {
  display: flex;
  gap: 28px;
}
.topbar__links a {
  color: var(--sky-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.topbar__links a:hover {
  color: var(--easter-blue);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 60px;
  min-height: calc(100vh - 80px);
}
.hero__content {
  max-width: 500px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 114, 182, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--easter-pink);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--sky-white);
}
.hero__title span {
  background: linear-gradient(135deg, var(--easter-pink), var(--easter-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sky-muted);
  margin-bottom: 32px;
}

.hero__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.hero__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--sky-text);
}
.hero__feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.hero__feature-icon--pink {
  background: rgba(244, 114, 182, 0.12);
  color: var(--easter-pink);
}
.hero__feature-icon--green {
  background: rgba(134, 239, 172, 0.12);
  color: var(--easter-green);
}
.hero__feature-icon--purple {
  background: rgba(192, 132, 252, 0.12);
  color: var(--easter-purple);
}

.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.wheel-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}
.wheel-wrapper::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(244, 114, 182, 0.3),
    rgba(125, 211, 252, 0.3),
    rgba(134, 239, 172, 0.3),
    rgba(253, 224, 71, 0.3),
    rgba(244, 114, 182, 0.3)
  );
  filter: blur(4px);
  z-index: 0;
  animation: ring-rotate 8s linear infinite;
}
@keyframes ring-rotate {
  to {
    transform: rotate(360deg);
  }
}
.wheel-wrapper::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  z-index: 1;
}
.wheel-wrapper canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid var(--easter-pink);
  filter: drop-shadow(0 4px 12px rgba(244, 114, 182, 0.5));
}
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sky-dark);
  border: 3px solid var(--sky-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.spin-btn {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--easter-pink), var(--easter-purple));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 16px 48px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 24px rgba(244, 114, 182, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 300px;
}
.spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(244, 114, 182, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.prizes-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 48px 0 80px;
}
.prize-card {
  background: var(--sky-card);
  border: 1px solid var(--sky-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.prize-card:hover {
  border-color: rgba(244, 114, 182, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.prize-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  background: var(--sky-surface);
}
.prize-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sky-white);
  margin-bottom: 6px;
}
.prize-card__desc {
  font-size: 0.85rem;
  color: var(--sky-muted);
  line-height: 1.5;
}

.footer {
  border-top: 1px solid var(--sky-border);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--sky-muted);
}
.footer a {
  color: var(--easter-blue);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

.swal2-popup.swal-sky {
  background: var(--sky-card) !important;
  border: 1px solid var(--sky-border) !important;
  border-radius: 20px !important;
  color: var(--sky-white) !important;
  font-family: var(--font-body) !important;
}
.swal2-popup.swal-sky .swal2-title {
  color: var(--sky-white) !important;
  font-weight: 800;
}
.swal2-popup.swal-sky .swal2-html-container {
  color: var(--sky-muted) !important;
}
.swal2-popup.swal-sky .swal2-confirm {
  background: linear-gradient(135deg, var(--easter-pink), var(--easter-purple)) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 12px 32px !important;
  border: none !important;
}
.swal2-popup.swal-sky .swal2-cancel {
  background: transparent !important;
  color: var(--sky-muted) !important;
  border: 1px solid var(--sky-border) !important;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 50px 0 40px;
  }
  .hero__content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero__features {
    align-items: center;
  }
  .wheel-wrapper {
    width: 320px;
    height: 320px;
  }
  .prizes-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .topbar__links {
    display: none;
  }
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .wheel-wrapper {
    width: 280px;
    height: 280px;
  }
  .prizes-bar {
    grid-template-columns: 1fr;
  }
}

/* ── Trust badges ── */
.trust-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 0 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--sky-muted);
  font-weight: 500;
}
.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--easter-blue);
  flex-shrink: 0;
}

/* ── O Literal Easter Egg ── */
.hidden-egg {
  cursor: crosshair;
  opacity: 0.2;
  transition: opacity 0.3s;
}
.hidden-egg:hover {
  opacity: 1;
}

/* ── Fade-in animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-up--d1 {
  animation-delay: 0.1s;
}
.fade-up--d2 {
  animation-delay: 0.2s;
}
.fade-up--d3 {
  animation-delay: 0.35s;
}
.fade-up--d4 {
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
