*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  background: #050505;
  color: #c9a96e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ── Background ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #050505;
}

/* ── Smoke ── */
.smoke-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.smoke {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  filter: blur(12px);
  animation: rise linear infinite;
}

.smoke::before {
  content: '';
  display: block;
  width: 100%;
  padding-bottom: 250%;
  background: radial-gradient(ellipse at center,
    rgba(190, 185, 180, 0.22) 0%,
    rgba(160, 155, 150, 0.12) 25%,
    rgba(130, 125, 120, 0.06) 50%,
    transparent 70%);
  border-radius: 50%;
}

.smoke:nth-child(1) {
  animation-duration: 9s;
  animation-delay: 0s;
  width: 220px;
  bottom: -300px;
}

.smoke:nth-child(2) {
  animation-duration: 12s;
  animation-delay: 1.5s;
  width: 300px;
  bottom: -350px;
  left: 47%;
}

.smoke:nth-child(3) {
  animation-duration: 10s;
  animation-delay: 3s;
  width: 180px;
  bottom: -250px;
  left: 53%;
}

.smoke:nth-child(4) {
  animation-duration: 13s;
  animation-delay: 0.5s;
  width: 260px;
  bottom: -320px;
  left: 50%;
}

.smoke:nth-child(5) {
  animation-duration: 8s;
  animation-delay: 4s;
  width: 200px;
  bottom: -280px;
  left: 49%;
}

.smoke:nth-child(6) {
  animation-duration: 11s;
  animation-delay: 2s;
  width: 240px;
  bottom: -300px;
  left: 51%;
}

.smoke:nth-child(7) {
  animation-duration: 14s;
  animation-delay: 5s;
  width: 160px;
  bottom: -220px;
  left: 48%;
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0) scale(0.4) rotate(0deg);
  }
  10% {
    opacity: 0.5;
  }
  30% {
    opacity: 0.4;
    transform: translateX(calc(-50% + 20px)) translateY(-30vh) scale(0.8) rotate(8deg);
  }
  60% {
    opacity: 0.25;
    transform: translateX(calc(-50% - 25px)) translateY(-60vh) scale(1.1) rotate(-5deg);
  }
  85% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    transform: translateX(calc(-50% + 10px)) translateY(-110vh) scale(1.4) rotate(12deg);
  }
}

/* ── Ambient glow ── */
.glow {
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 148, 63, 0.06) 0%, transparent 60%);
  z-index: 1;
  animation: pulse 8s ease-in-out infinite;
}

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

/* ── Ember glow at bottom center ── */
.ember {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e85d15;
  box-shadow:
    0 0 6px 2px rgba(232, 93, 21, 0.8),
    0 0 20px 6px rgba(232, 93, 21, 0.4),
    0 0 40px 12px rgba(200, 80, 20, 0.2);
  z-index: 3;
  animation: ember-glow 3s ease-in-out infinite;
}

.ember::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80px;
  background: linear-gradient(to top, rgba(80, 60, 40, 0.6), rgba(60, 45, 30, 0.3), transparent);
}

@keyframes ember-glow {
  0%, 100% {
    box-shadow:
      0 0 6px 2px rgba(232, 93, 21, 0.8),
      0 0 20px 6px rgba(232, 93, 21, 0.4),
      0 0 40px 12px rgba(200, 80, 20, 0.2);
  }
  50% {
    box-shadow:
      0 0 8px 3px rgba(255, 120, 30, 0.9),
      0 0 25px 8px rgba(255, 100, 20, 0.5),
      0 0 50px 15px rgba(220, 90, 20, 0.25);
  }
}

/* ── Content ── */
.content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 80px;
}

/* ── Logo SVG ── */
.logo {
  width: 120px;
  height: 120px;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 0.3s forwards;
}

.logo {
  object-fit: contain;
}

/* ── Tagline ── */
.tagline {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 100;
  letter-spacing: 0.05em;
  color: #b8943f;
  line-height: 1.2;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 0.8s forwards;
}

/* ── Subtitle ── */
.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 200;
  letter-spacing: 0.2em;
  color: rgba(201, 169, 110, 0.5);
  margin-top: -0.5rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 1.2s forwards;
}

/* ── CTA Link ── */
.cta {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  color: rgba(201, 169, 110, 0.7);
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 1.6s forwards;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Footer ── */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(201, 169, 110, 0.35);
  letter-spacing: 0.08em;
}

footer a {
  color: rgba(201, 169, 110, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #d4b578;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .tagline {
    letter-spacing: 0.02em;
  }

  .logo {
    width: 90px;
    height: 90px;
  }

  .ember {
    bottom: 50px;
  }

  .ember::before {
    height: 50px;
  }

  footer {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    padding: 0.6rem 1rem;
  }
}
