:root {
  --bg: #0a0a0f;
  --card: rgba(15, 5, 10, 0.85);
  --cardBorder: rgba(64, 185, 209, 0.4);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.85);
  --shadow: rgba(0, 0, 0, 0.5);
  --primary: linear-gradient(135deg, #40B9D1 0%, #5CC9DD 50%, #40B9D1 100%);
  --primaryHover: linear-gradient(135deg, #5CC9DD 0%, #40B9D1 50%, #5CC9DD 100%);
  --accent: #40B9D1;
  --glow: rgba(64, 185, 209, 0.6);
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes glow-pulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(64, 185, 209, 0.4), 
                0 0 40px rgba(64, 185, 209, 0.2),
                0 18px 50px rgba(0, 0, 0, 0.5); 
  }
  50% { 
    box-shadow: 0 0 35px rgba(64, 185, 209, 0.6), 
                0 0 70px rgba(64, 185, 209, 0.3),
                0 18px 50px rgba(0, 0, 0, 0.5); 
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes logo-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(64, 185, 209, 0.6))
            drop-shadow(0 0 40px rgba(64, 185, 209, 0.4))
            drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
  }
  50% { 
    filter: drop-shadow(0 0 30px rgba(64, 185, 209, 0.8))
            drop-shadow(0 0 60px rgba(64, 185, 209, 0.6))
            drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 20% 20%, rgba(64, 185, 209, 0.25), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(64, 185, 209, 0.2), transparent 60%),
    radial-gradient(900px 700px at 50% 90%, rgba(64, 185, 209, 0.15), transparent 55%),
    linear-gradient(135deg, #0a0a0f 0%, #0a1115 50%, #0a0a0f 100%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

.bg__video,
.bg__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  opacity: 0.75;
  pointer-events: none;
  will-change: auto;
}

.bg__video {
  background: transparent;
}

.dice-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0f 0%, #0a1115 50%, #0a0a0f 100%);
}

.dice {
  position: absolute;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  will-change: transform, left, top;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.7)) brightness(1.2);
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 560px) {
  .dice {
    max-width: 80px;
    max-height: 80px;
  }
}

@keyframes moveDice1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(100px, 50px) rotate(90deg); }
  50% { transform: translate(50px, 100px) rotate(180deg); }
  75% { transform: translate(-50px, 50px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes moveDice2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-80px, 80px) rotate(90deg); }
  50% { transform: translate(-40px, -60px) rotate(180deg); }
  75% { transform: translate(60px, -40px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes moveDice3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(70px, -70px) rotate(90deg); }
  50% { transform: translate(-90px, -50px) rotate(180deg); }
  75% { transform: translate(-60px, 80px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes diceShake {
  0% { transform: rotate(0deg) scale(1); }
  10% { transform: rotate(45deg) scale(1.2) translateY(-20px); }
  20% { transform: rotate(-30deg) scale(0.9) translateY(10px); }
  30% { transform: rotate(60deg) scale(1.3) translateY(-30px); }
  40% { transform: rotate(-45deg) scale(0.8) translateY(15px); }
  50% { transform: rotate(90deg) scale(1.4) translateY(-40px); }
  60% { transform: rotate(-60deg) scale(0.9) translateY(20px); }
  70% { transform: rotate(120deg) scale(1.2) translateY(-25px); }
  80% { transform: rotate(-30deg) scale(1) translateY(10px); }
  90% { transform: rotate(45deg) scale(1.1) translateY(-10px); }
  100% { transform: rotate(0deg) scale(1) translateY(0); }
}

@keyframes diceRoll {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(1080deg); }
}

.bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 104, 222, 0.05), rgba(9, 104, 222, 0.15));
}

/* Header */
.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(15px) saturate(1.5);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 2px solid rgba(64, 185, 209, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(64, 185, 209, 0.5);
  box-shadow: 
    0 0 25px rgba(64, 185, 209, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.4);
  animation: sparkle 3s ease-in-out infinite;
}

.brand__name {
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 20px;
  background: linear-gradient(135deg, #40B9D1 0%, #5CC9DD 50%, #40B9D1 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.hero__logo {
  max-width: min(550px, 100%);
  width: 100%;
  display: block;
  filter: drop-shadow(0 0 25px rgba(64, 185, 209, 0.7))
          drop-shadow(0 0 50px rgba(64, 185, 209, 0.5))
          drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite, logo-glow 2.5s ease-in-out infinite;
  margin-bottom: -20px;
}

.card {
  width: min(550px, 100%);
  padding: 16px 16px 32px 16px;
  border-radius: 20px;
  background: var(--card);
  border: 2px solid var(--cardBorder);
  box-shadow: 
    0 0 25px rgba(64, 185, 209, 0.4),
    0 0 50px rgba(64, 185, 209, 0.2),
    0 18px 60px rgba(0, 0, 0, 0.6);
  animation: glow-pulse 3s ease-in-out infinite;
  backdrop-filter: blur(15px) saturate(1.5);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(64, 185, 209, 0.15) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
}

.card__image {
  margin: 0;
  width: 100%;
  display: block;
  border-radius: 16px;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.footer__image {
  width: min(750px, 100%);
  display: block;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, #40B9D1 0%, #5CC9DD 50%, #40B9D1 100%);
  background-size: 200% auto;
  color: #fff;
  border-color: rgba(64, 185, 209, 0.6);
  box-shadow: 
    0 4px 15px rgba(64, 185, 209, 0.5),
    0 0 25px rgba(64, 185, 209, 0.3);
  animation: sparkle 2s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #5CC9DD 0%, #40B9D1 50%, #5CC9DD 100%);
  box-shadow: 
    0 6px 25px rgba(64, 185, 209, 0.7),
    0 0 40px rgba(64, 185, 209, 0.5);
  transform: translateY(-3px);
  border-color: rgba(64, 185, 209, 0.9);
}

.btn--ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(64, 185, 209, 0.4);
  color: #fff;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(64, 185, 209, 0.1);
}

.btn--ghost:hover {
  background: linear-gradient(135deg, rgba(64, 185, 209, 0.25), rgba(64, 185, 209, 0.15));
  border-color: rgba(64, 185, 209, 0.7);
  box-shadow: 
    0 6px 20px rgba(64, 185, 209, 0.4),
    inset 0 0 30px rgba(64, 185, 209, 0.2);
  transform: translateY(-3px);
}


/* Footer */
.footer {
  border-top: 2px solid rgba(64, 185, 209, 0.4);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(15px) saturate(1.5);
  padding: 20px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.footer__links {
  display: inline-flex;
  gap: 16px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(92, 201, 221, 0.95);
  text-decoration: none;
  border-bottom: 2px solid rgba(64, 185, 209, 0.4);
  transition: all 0.3s ease;
  font-weight: 600;
  padding-bottom: 2px;
}

.footer__links a:hover {
  color: #5CC9DD;
  border-bottom-color: #40B9D1;
  text-shadow: 0 0 15px rgba(64, 185, 209, 0.6);
}

/* Responsive */
@media (max-width: 560px) {
  .card {
    padding: 12px 12px 20px 12px;
  }

  .hero__logo {
    max-width: min(550px, 100%);
  }

  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn {
    padding: 14px 18px;
    font-size: 14px;
  }

  .card__image {
    margin-bottom: 20px;
  }

  .footer__image {
    width: 100%;
  }
}

