
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

:root {
  --bg1: #2E1A67;
  --bg2: #4B2E8C;
  --bg3: #1A1A40;
  --accent: #FF8C00;
  --accent2: #1ECBCB;
  --pink: #ff4d9a;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.landing {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 77, 154, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(30, 203, 203, 0.2), transparent 45%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 140, 0, 0.15), transparent 50%),
    radial-gradient(circle at top right, var(--bg1), var(--bg2), var(--bg3));
  position: relative;
}

/* Ambient glow blobs */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: glow-drift 18s ease-in-out infinite alternate;
}
.glow-1 {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  background: rgba(255, 140, 0, 0.35);
  top: -8%;
  left: -5%;
}
.glow-2 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: rgba(30, 203, 203, 0.3);
  bottom: 5%;
  right: -8%;
  animation-delay: -6s;
  animation-duration: 22s;
}
.glow-3 {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  background: rgba(255, 77, 154, 0.22);
  top: 40%;
  left: 40%;
  animation-delay: -12s;
  animation-duration: 26s;
}
@keyframes glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, -6%) scale(1.12); }
}

/* Bubble field */
#bubble-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bubble {
  position: absolute;
  bottom: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.12) 40%,
    rgba(255,255,255,0.04) 70%,
    transparent 100%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.15),
    0 0 18px rgba(30, 203, 203, 0.12);
  animation-name: bubble-rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
.bubble.warm {
  box-shadow:
    inset 0 0 18px rgba(255, 200, 120, 0.2),
    0 0 22px rgba(255, 140, 0, 0.18);
  border-color: rgba(255, 180, 80, 0.25);
}
.bubble.cool {
  box-shadow:
    inset 0 0 18px rgba(150, 255, 255, 0.18),
    0 0 22px rgba(30, 203, 203, 0.2);
  border-color: rgba(30, 203, 203, 0.28);
}
.bubble.pink {
  box-shadow:
    inset 0 0 18px rgba(255, 150, 200, 0.2),
    0 0 22px rgba(255, 77, 154, 0.18);
  border-color: rgba(255, 120, 180, 0.25);
}
@keyframes bubble-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0;
  }
  8% { opacity: var(--peak-opacity, 0.75); }
  50% {
    transform: translate3d(var(--drift, 40px), -50vh, 0) scale(1.05);
  }
  92% { opacity: var(--peak-opacity, 0.75); }
  100% {
    transform: translate3d(calc(var(--drift, 40px) * -0.4), -110vh, 0) scale(0.9);
    opacity: 0;
  }
}

/* Subtle sparkles */
.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,0.7);
  animation: twinkle 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Admin gateway — white circle top-right */
.admin-gateway {
  position: fixed;
  top: calc(16px + var(--safe-t));
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  z-index: 50;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  animation: pulse-ring 2.4s infinite;
}
.admin-gateway:hover {
  transform: scale(1.12);
  background: var(--accent);
  box-shadow: 0 6px 22px rgba(255, 140, 0, 0.45);
}
.admin-gateway:active { transform: scale(0.96); }
.admin-gateway::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(46, 26, 103, 0.15);
}
.admin-gateway:hover::after { background: rgba(255,255,255,0.35); }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.55), 0 4px 16px rgba(0,0,0,0.25); }
  70% { box-shadow: 0 0 0 12px rgba(255, 140, 0, 0), 0 4px 16px rgba(0,0,0,0.25); }
  100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0), 0 4px 16px rgba(0,0,0,0.25); }
}

.site-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(28px + var(--safe-t)) 16px calc(32px + var(--safe-b));
  text-align: center;
  position: relative;
  z-index: 2;
}
.logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.4));
  animation: logo-float 5s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (min-width: 768px) {
  .logo { width: 128px; height: 128px; }
  .site-wrap { padding: 48px 28px; }
  .admin-gateway { width: 36px; height: 36px; top: 20px; right: 22px; }
}

h1.hero-title {
  font-weight: 900;
  font-size: clamp(2.1rem, 8.5vw, 4.75rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  background: linear-gradient(105deg, var(--accent), #ffd28a 35%, var(--accent2) 70%, #a8f0ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shine 6s linear infinite;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 4px 24px rgba(255, 140, 0, 0.25));
}
@keyframes title-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  font-size: clamp(1rem, 3.5vw, 1.45rem);
  color: rgba(255,255,255,.92);
  max-width: 38rem;
  margin: 0 auto 2.25rem;
  line-height: 1.5;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.section-title {
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
}
.countdown-date {
  color: rgba(255,255,255,.7);
  margin-bottom: 1.1rem;
  font-size: .95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 2.75rem;
  width: 100%;
}
@media (min-width: 640px) {
  .countdown { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
}
.cd-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 16px 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cd-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 203, 203, 0.45);
}
.cd-num {
  font-size: clamp(1.7rem, 6vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.75));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cd-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 6px;
  color: rgba(255,255,255,.75);
}

.subscribe-box {
  max-width: 30rem;
  margin: 0 auto;
  width: 100%;
  padding: 22px 18px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
@media (min-width: 540px) {
  .subscribe-box { padding: 26px 24px; }
}

.alert {
  padding: 12px; border-radius: 12px; margin-bottom: 12px; font-weight: 600; font-size: .95rem;
}
.alert-err { background: rgba(220,38,38,.85); }
.alert-ok { background: rgba(5,150,105,.9); }

.sub-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 540px) {
  .sub-form { flex-direction: row; }
}
.input {
  flex: 1;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus {
  outline: none;
  border-color: rgba(30, 203, 203, 0.7);
  box-shadow: 0 0 0 3px rgba(30, 203, 203, 0.2);
}
.input::placeholder { color: rgba(255,255,255,.55); }

.btn {
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(105deg, var(--accent), #ffb347, var(--accent2));
  background-size: 180% auto;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.3);
  transition: transform .15s ease, box-shadow .2s ease, background-position .4s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background-position: 100% center;
  box-shadow: 0 12px 28px rgba(30, 203, 203, 0.28);
}
.btn:active { transform: translateY(0); }

.privacy { color: rgba(255,255,255,.45); font-size: .75rem; margin-top: 14px; }
.site-footer {
  margin-top: 2.5rem;
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}

/* Auth pages (login etc.) — keep base styles */
body:not(.landing) {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: radial-gradient(circle at top right, var(--bg1), var(--bg2), var(--bg3));
}
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 28px 20px;
  backdrop-filter: blur(12px);
  text-align: left;
  position: relative;
  z-index: 2;
}
@media (min-width: 480px) { .auth-card { padding: 32px; } }
.auth-card h1 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 0 .25rem;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-card .sub { text-align: center; color: rgba(255,255,255,.65); margin-bottom: 1.25rem; }
.auth-card label { display:block; font-size:.8rem; color:rgba(255,255,255,.7); margin-bottom:4px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .links { text-align:center; margin-top: 1rem; font-size: .9rem; }
.auth-card .links a { color: rgba(255,255,255,.75); }
.auth-card .btn { width: 100%; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .bubble, .glow, .logo, .hero-title, .admin-gateway, .sparkle {
    animation: none !important;
  }
}
