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

:root {
  --coffee-dark: hsl(25, 40%, 12%);
  --coffee-medium: hsl(25, 30%, 25%);
  --coffee-light: hsl(30, 25%, 35%);
  --cream: hsl(40, 35%, 94%);
  --cream-dark: hsl(35, 25%, 88%);
  --bg-start: hsl(40, 30%, 97%);
  --bg-end: hsl(35, 20%, 92%);
  --text-main: hsl(25, 30%, 12%);
  --text-muted: hsl(25, 15%, 45%);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Decorative floating dots === */
.decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float-dot linear infinite;
}

.dot-1 {
  width: 12px; height: 12px;
  top: 80px; left: 40px;
  background: hsla(30, 25%, 35%, 0.2);
  animation-duration: 4s;
}

.dot-2 {
  width: 8px; height: 8px;
  top: 160px; right: 80px;
  background: hsla(25, 30%, 25%, 0.15);
  animation-duration: 5s;
  animation-delay: 1s;
}

.dot-3 {
  width: 16px; height: 16px;
  bottom: 128px; left: 25%;
  background: hsla(30, 25%, 35%, 0.1);
  animation-duration: 6s;
  animation-delay: 2s;
}

.dot-4 {
  width: 8px; height: 8px;
  bottom: 192px; right: 33%;
  background: hsla(25, 40%, 12%, 0.1);
  animation-duration: 4.5s;
  animation-delay: 0.5s;
}

@keyframes float-dot {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-15px); opacity: 1; }
}

/* === Main Container === */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  padding: 0 24px;
  position: relative;
  z-index: 1;

  /* Entry animation */
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 0.8s ease-out forwards;
}

/* === Logo === */
.logo {
  width: 224px;
  height: auto;
  margin-bottom: 40px;
  opacity: 0;
  transform: scale(0.9);
  animation: scale-in 0.6s ease-out 0.2s forwards;
}

@media (min-width: 768px) {
  .logo {
    width: 288px;
  }
}

/* === Divider === */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  transform: scaleX(0);
  animation: divider-in 0.5s ease-out 0.4s forwards;
}

.divider .line {
  width: 48px;
  height: 1px;
  background: hsla(30, 25%, 35%, 0.4);
}

.divider .circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsla(25, 30%, 25%, 0.5);
}

/* === Typography === */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.6s ease-out 0.5s forwards;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
}

.subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.6s ease-out 0.6s forwards;
}

@media (min-width: 768px) {
  .subtitle {
    font-size: 1.25rem;
  }
}

/* === Loading dots === */
.loading-dots {
  display: flex;
  gap: 12px;
  opacity: 0;
  animation: fade-in 0.6s ease-out 0.8s forwards;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
  background: hsla(30, 25%, 35%, 0.6);
  animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
  background: hsla(25, 30%, 25%, 0.6);
  animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
  background: hsla(25, 40%, 12%, 0.6);
  animation-delay: 0.6s;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* === Footer === */
footer {
  position: absolute;
  bottom: 24px;
  text-align: center;
  opacity: 0;
  animation: fade-in 0.6s ease-out 1s forwards;
}

footer p {
  font-size: 0.875rem;
  color: hsla(25, 15%, 45%, 0.7);
}

/* === Keyframes === */
@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes divider-in {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}
