/* ========================================================
   MADDEV HOSTING • ADVENTSKALENDER 2026 LAUNCH PAGE
   ULTRA-KNALLIG, FESTLICH & HYPER-MODERN
   ======================================================== */

:root {
  --bg-deep: #050811;
  --bg-card: rgba(11, 19, 36, 0.72);
  --bg-card-hover: rgba(16, 27, 52, 0.85);
  
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.45);
  --blue: #0070f3;
  --blue-glow: rgba(0, 112, 243, 0.4);
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.5);
  --amber: #f59e0b;
  --red: #ff2e63;
  --red-glow: rgba(255, 46, 99, 0.45);
  --emerald: #10b981;
  --purple: #a855f7;

  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 240, 255, 0.35);

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: #f1f5f9;
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================
   AURORA BOREALIS BACKGROUND
   ======================================================== */
.aurora-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.5;
  animation: floatAurora 18s ease-in-out infinite alternate;
}

.blob-cyan {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #00f0ff, rgba(0, 240, 255, 0));
  top: -100px;
  left: 15%;
  animation-duration: 22s;
}

.blob-gold {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f59e0b, rgba(245, 158, 11, 0));
  top: 30%;
  right: -80px;
  opacity: 0.35;
  animation-duration: 26s;
  animation-delay: -5s;
}

.blob-magenta {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #ff2e63, rgba(255, 46, 99, 0));
  bottom: -150px;
  left: 20%;
  opacity: 0.3;
  animation-duration: 28s;
  animation-delay: -10s;
}

.blob-blue {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #0070f3, rgba(0, 112, 243, 0));
  top: 10%;
  right: 25%;
  opacity: 0.4;
  animation-duration: 20s;
  animation-delay: -3s;
}

@keyframes floatAurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-50px, -30px) scale(0.95); }
}

/* ========================================================
   CANVAS LAYERS
   ======================================================== */
#snow-canvas, #sparkle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

#sparkle-canvas {
  z-index: 20;
}

/* ========================================================
   FESTIVE FAIRY LIGHTS GARLAND
   ======================================================== */
.fairy-lights-garland {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  pointer-events: none;
  z-index: 99;
}

.garland-wire {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
}

.fairy-bulb {
  position: absolute;
  top: 14px;
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 45% 45%;
  transform: translate(-50%, 0);
  box-shadow: 0 2px 8px currentColor;
  animation: bulbFlicker 3s infinite ease-in-out;
}

.fairy-bulb::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 2px;
  width: 6px;
  height: 3px;
  background: #2d3748;
  border-radius: 2px;
}

.b-cyan { background: #00f0ff; color: #00f0ff; box-shadow: 0 0 14px #00f0ff; animation-delay: 0s; }
.b-gold { background: #ffd166; color: #ffd166; box-shadow: 0 0 14px #ffd166; animation-delay: 0.5s; }
.b-red { background: #ff2e63; color: #ff2e63; box-shadow: 0 0 14px #ff2e63; animation-delay: 1s; }
.b-emerald { background: #10b981; color: #10b981; box-shadow: 0 0 14px #10b981; animation-delay: 1.5s; }
.b-purple { background: #c084fc; color: #c084fc; box-shadow: 0 0 14px #c084fc; animation-delay: 2s; }

@keyframes bulbFlicker {
  0%, 100% { opacity: 0.95; filter: brightness(1.2); }
  50% { opacity: 0.45; filter: brightness(0.8); }
}

/* ========================================================
   APP LAYOUT
   ======================================================== */
.app-layout {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 2rem;
  max-width: 1320px;
  margin: 0 auto;
}

/* ========================================================
   TOP NAVBAR (ONLY LOGO & BRANDING)
   ======================================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2.2rem 0 1.5rem;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.brand-container:hover {
  transform: translateY(-1px);
}

.brand-icon-box {
  width: 46px;
  height: 46px;
  background: #090e1a;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  padding: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-container:hover .brand-icon-box {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.45);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.3));
}

.brand-text {
  font-family: var(--font-main);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.brand-container:hover .brand-text {
  color: var(--cyan);
}

/* ========================================================
   MAIN HERO (CENTERED & COUNTDOWN-FOCUSED)
   ======================================================== */
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 3rem 0;
  position: relative;
  z-index: 5;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.title-line-1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.85);
}

.title-gradient {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.8vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 40%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(0, 240, 255, 0.4));
}

.launch-date-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 3.2rem;
}

/* ========================================================
   THE 4-CARD BENTO COUNTDOWN
   ======================================================== */
.countdown-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 960px;
  margin-bottom: 2rem;
}

.countdown-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 2.2rem 1.2rem 1.6rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.countdown-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--cyan);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 45px rgba(0, 240, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.card-glass-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  transition: transform 0.75s ease;
  pointer-events: none;
}

.countdown-card:hover .card-glass-shine {
  transform: skewX(-20deg) translateX(100%);
}

.card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-label-top {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.number-display {
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 7.5vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 28px var(--cyan-glow), 0 0 55px rgba(0, 112, 243, 0.35);
  transition: transform 0.15s ease;
}

.card-unit-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}

/* Seconds Highlight Card (Pulse effect) */
.countdown-card.highlight-seconds {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 35px rgba(251, 191, 36, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.countdown-card.highlight-seconds .number-display {
  color: #ffffff;
  text-shadow: 0 0 28px var(--gold-glow), 0 0 55px rgba(245, 158, 11, 0.35);
}

.countdown-card.highlight-seconds .card-unit-label {
  color: var(--gold);
}

.countdown-card.highlight-seconds:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 50px rgba(251, 191, 36, 0.5);
}

.card-glow-reflection {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: radial-gradient(ellipse, var(--cyan-glow), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.countdown-card.highlight-seconds .card-glow-reflection {
  background: radial-gradient(ellipse, var(--gold-glow), transparent 70%);
}

/* Tick flash animation */
.tick-pulse {
  animation: tickPop 0.25s ease-out;
}

@keyframes tickPop {
  0% { transform: scale(1.08); filter: brightness(1.4); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* ========================================================
   FOOTER
   ======================================================== */
.app-footer {
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: #64748b;
}

.footer-left strong {
  color: #cbd5e1;
}

.footer-right a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--cyan);
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 900px) {
  .countdown-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .countdown-card {
    padding: 1.6rem 0.8rem 1.2rem;
  }
  .number-display {
    font-size: 2.8rem;
  }
  .hero-title {
    margin-bottom: 0.6rem;
  }
  .hero-container {
    padding: 2rem 0;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}