* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,180,230,0.35), transparent 35%),
    radial-gradient(circle at 80% 18%, rgba(150,230,255,0.35), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(200,170,255,0.28), transparent 42%),
    linear-gradient(180deg, #78e0ff 0%, #b3f1ff 38%, #ebfcff 72%, #ffffff 100%);
  background-size: 200% 200%;
  animation: bgShift 18s ease infinite;
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.night {
  background:
    radial-gradient(circle at 30% 20%, rgba(120,180,255,0.20), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(200,150,255,0.18), transparent 40%),
    linear-gradient(180deg, #091726 0%, #132c44 45%, #1b3f62 100%);
}

/* Glows */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  animation: pulse 7s ease-in-out infinite;
}

.glow.one {
  width: 280px;
  height: 280px;
  background: rgba(77,214,255,0.42);
  top: 4%;
  left: 4%;
}

.glow.two {
  width: 340px;
  height: 340px;
  background: rgba(255,176,223,0.28);
  bottom: 2%;
  right: 2%;
  animation-delay: 1.2s;
}

.glow.three {
  width: 220px;
  height: 220px;
  background: rgba(194,169,255,0.24);
  top: 24%;
  right: 18%;
  animation-delay: 2s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.34; }
  50% { transform: scale(1.08); opacity: 0.48; }
}

/* Moon + stars */
.moon {
  position: absolute;
  top: 60px;
  right: 80px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0f4ff, #bcdcff);
  box-shadow:
    0 0 40px rgba(180,220,255,0.5),
    0 0 80px rgba(120,180,255,0.3);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  animation: moonGlow 6s ease-in-out infinite;
}

body.night .moon {
  opacity: 1;
}

@keyframes moonGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  animation: twinkle 2.5s infinite;
}

body.night .star {
  opacity: 1;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* Clouds */
.cloud {
  position: absolute;
  display: flex;
  gap: 64px;
  z-index: 1;
  pointer-events: none;
  animation-name: slideLeft;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0.96;
}

.cloud span {
  position: relative;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #def8ff 34%,
    #ffd7f1 66%,
    #e7ddff 100%
  );
  box-shadow:
    0 10px 22px rgba(67,149,186,0.10),
    inset 0 4px 12px rgba(255,255,255,0.82),
    0 0 18px rgba(255,180,230,0.24);
}

.cloud span::before,
.cloud span::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud span::before {
  width: 55%;
  height: 90%;
  left: 12%;
  top: -38%;
}

.cloud span::after {
  width: 38%;
  height: 65%;
  right: 12%;
  top: -24%;
}

body.night .cloud span {
  background: linear-gradient(135deg, #20344d 0%, #2d4d73 55%, #3b608c 100%);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.20),
    inset 0 2px 8px rgba(255,255,255,0.08),
    0 0 18px rgba(120,180,255,0.16);
}

.row1 {
  top: 10%;
  animation-duration: 30s;
}

.row2 {
  top: 38%;
  animation-duration: 48s;
}

.row3 {
  bottom: 10%;
  animation-duration: 60s;
  opacity: 0.88;
}

@keyframes slideLeft {
  0% { transform: translateX(110vw); }
  100% { transform: translateX(-170vw); }
}

/* Main layout */
.scene {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 920px;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 780px;
  text-align: center;
  padding: 34px 28px 30px;
  border-radius: 30px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 50px rgba(25,96,130,0.14),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

body.night .card {
  background: rgba(20,40,60,0.68);
  border-color: rgba(255,255,255,0.14);
}

/* Logo */
.logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
  animation: popFloat 5s ease-in-out infinite;
}

.logo-wrap::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.90), transparent 70%),
    radial-gradient(circle, rgba(255,180,230,0.35), transparent 60%),
    radial-gradient(circle, rgba(120,220,255,0.35), transparent 70%);
  filter: blur(14px);
  z-index: -1;
}

.logo {
  width: min(408px, 82vw);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: breathe 5s ease-in-out infinite;
  filter:
    drop-shadow(0 14px 26px rgba(0,95,145,0.22))
    drop-shadow(0 0 22px rgba(120,220,255,0.55))
    drop-shadow(0 0 18px rgba(255,170,220,0.45));
}

/* Text */
.brand {
  margin: 8px 0 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1;
  font-weight: 900;
  background: linear-gradient(120deg, #ffffff 10%, #bff3ff 40%, #ffd6f0 65%, #ffffff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

.tagline,
.details {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.tagline {
  margin-top: 14px;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.5;
  font-weight: 800;
  color: #155974;
}

.details {
  margin-top: 12px;
  font-size: clamp(0.96rem, 1.8vw, 1.06rem);
  line-height: 1.6;
  font-weight: 700;
  color: #155974;
}

body.night .tagline,
body.night .details {
  color: #e6f7ff;
}

.status {
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(255,255,255,0.90);
  color: #0c5875;
  font-weight: 800;
  font-size: 0.96rem;
  box-shadow: 0 8px 20px rgba(18, 92, 122, 0.10);
}

body.night .status {
  background: rgba(255,255,255,0.14);
  color: #e6f7ff;
}

/* Toggle */
.toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #0c5875;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease;
}

.toggle:hover {
  transform: scale(1.05);
}

body.night .toggle {
  background: rgba(20,40,60,0.88);
  color: #ffffff;
}

/* Extra candy sparkle feel */
.card,
.logo,
.brand {
  will-change: transform;
}

@keyframes popFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@media (max-width: 700px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 26px 18px;
    border-radius: 24px;
  }

  .logo {
    width: min(320px, 84vw);
  }

  .moon {
    width: 60px;
    height: 60px;
    right: 20px;
    top: 20px;
  }

  .toggle {
    top: 14px;
    left: 14px;
    padding: 9px 12px;
  }
}