:root {
  --sky-gradient-top: #6DD5FA;
  --sky-gradient-bottom: #FFFFFF;
  --text-primary: #334155;
  --text-shadow: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--sky-gradient-top) 0%, var(--sky-gradient-bottom) 100%);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  user-select: none;
}

.sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Sun */
.sun-container {
  position: absolute;
  top: 10%;
  right: 20%;
  font-size: 10rem;
  z-index: 2;
  /* Below moving clouds */
  filter: drop-shadow(0 0 60px rgba(253, 224, 71, 0.9));
  animation: sunBreathing 6s ease-in-out infinite alternate, sunRotate 120s linear infinite;
}

.sun {
  display: inline-block;
}

@keyframes sunBreathing {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 50px rgba(253, 224, 71, 0.7));
    opacity: 0.9;
  }

  100% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 80px rgba(253, 224, 71, 1));
    opacity: 1;
  }
}

@keyframes sunRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Clouds */
#clouds-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.cloud {
  position: absolute;
  animation-name: floatCloud;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
  display: inline-block;
}

@keyframes floatCloud {
  0% {
    transform: translateX(-200px) translateY(0);
  }

  50% {
    transform: translateX(calc(50vw)) translateY(-10px);
  }

  100% {
    transform: translateX(calc(100vw + 200px)) translateY(0);
  }
}

/* Overlay Content */
.content-overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4rem 6rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.5);
  animation: fadeIn 2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

h1 {
  font-size: 4.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  letter-spacing: -0.05em;
  filter: drop-shadow(0 2px 4px var(--text-shadow));
}

p {
  font-size: 1.3rem;
  color: var(--text-primary);
  opacity: 0.8;
  font-weight: 400;
  margin-bottom: 2.5rem;
}

/* Loading Dots */
.loader-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.loader-dots span {
  display: block;
  width: 12px;
  height: 12px;
  background-color: #64748b;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loader-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Invitation Link */
.invitation {
  margin-top: 2.5rem;
  font-size: 1.1rem;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
  /* Slight delay to appear after the rest */
}

.invitation a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #0284c7;
  /* Sky blue matching the global aesthetic */
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.invitation a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #0284c7;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.invitation a:hover {
  color: #0369a1;
}

.invitation a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Ground & Trees */
.ground {
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 15vh;
  z-index: 8;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}

#trees-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  overflow: hidden;
}

.tree {
  display: inline-block;
  transform-origin: bottom center;
}

@keyframes sway {
  0% {
    transform: rotate(-6deg);
  }

  100% {
    transform: rotate(6deg);
  }
}

/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/s/outfit/v15/QGYvz_MVcBeNP4NJuktqQ4E.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/s/outfit/v15/QGYvz_MVcBeNP4NJtEtq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/s/outfit/v15/QGYvz_MVcBeNP4NJuktqQ4E.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/s/outfit/v15/QGYvz_MVcBeNP4NJtEtq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}