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

:root {
  --bg-deep: #08060b;
  --bg-mid: #110d17;
  --ember: #ff7f00;
  --ember-hot: #f2a93b;
  --gold: #c9a84c;
  --gold-dim: #7a6a30;
  --ash: #b0a89e;
  --light: #e8e4df;
  --dim: #6e6860;
}

/* ─── Base ─── */
html {
  font-size: 16px;
}

body {
  font-family: "Raleway", "Segoe UI", sans-serif;
  background: var(--bg-deep);
  color: var(--light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Subtle radial warmth from center-bottom (bonfire feel) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 50% 85%,
      rgba(212, 136, 58, 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 90% 60% at 50% 100%,
      rgba(201, 168, 76, 0.05) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

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

.fog {
  position: absolute;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    rgba(180, 170, 155, 0.015) 40%,
    transparent 80%
  );
  animation: drift linear infinite;
  opacity: 0.6;
}

.fog-1 {
  top: 30%;
  left: -50%;
  animation-duration: 55s;
}

.fog-2 {
  top: 50%;
  left: -80%;
  animation-duration: 70s;
  animation-direction: reverse;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

/* ─── Embers ─── */
.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.ember {
  position: absolute;
  bottom: -5%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 6px 2px rgba(255, 127, 0, 0.6);
  opacity: 0;
  animation: rise linear infinite;
}

/* Distribute embers across the viewport */
.ember:nth-child(1) {
  left: 5%;
  animation-duration: 7s;
  animation-delay: 0s;
}
.ember:nth-child(2) {
  left: 15%;
  animation-duration: 9s;
  animation-delay: 1.2s;
}
.ember:nth-child(3) {
  left: 25%;
  animation-duration: 8s;
  animation-delay: 3s;
}
.ember:nth-child(4) {
  left: 35%;
  animation-duration: 11s;
  animation-delay: 0.5s;
}
.ember:nth-child(5) {
  left: 45%;
  animation-duration: 7.5s;
  animation-delay: 2s;
}
.ember:nth-child(6) {
  left: 50%;
  animation-duration: 10s;
  animation-delay: 4s;
}
.ember:nth-child(7) {
  left: 55%;
  animation-duration: 8.5s;
  animation-delay: 1s;
}
.ember:nth-child(8) {
  left: 65%;
  animation-duration: 9.5s;
  animation-delay: 3.5s;
}
.ember:nth-child(9) {
  left: 75%;
  animation-duration: 7s;
  animation-delay: 2.5s;
}
.ember:nth-child(10) {
  left: 85%;
  animation-duration: 10s;
  animation-delay: 0.8s;
}
.ember:nth-child(11) {
  left: 20%;
  animation-duration: 12s;
  animation-delay: 5s;
}
.ember:nth-child(12) {
  left: 40%;
  animation-duration: 8s;
  animation-delay: 6s;
}
.ember:nth-child(13) {
  left: 60%;
  animation-duration: 9s;
  animation-delay: 4.5s;
}
.ember:nth-child(14) {
  left: 70%;
  animation-duration: 11s;
  animation-delay: 2.2s;
}
.ember:nth-child(15) {
  left: 92%;
  animation-duration: 8s;
  animation-delay: 1.8s;
}

@keyframes rise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  60% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-110vh) translateX(40px) scale(0.2);
    opacity: 0;
  }
}

/* ─── Bonfire glow (bottom-center pulse) ─── */
.bonfire-glow {
  position: fixed;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(242, 169, 59, 0.07),
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes pulse {
  from {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.12);
  }
}

/* ─── Main Content ─── */
.container {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: 24px;
  z-index: 10;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 56px 40px 56px;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    0 8px 60px rgba(0, 0, 0, 0.45),
    0 0 100px rgba(212, 136, 58, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.content {
  text-align: center;
  animation: fadeUp 1.4s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Prelude ─── */
.prelude {
  font-family: "Cinzel", "Georgia", serif;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
  margin-bottom: 0;
}

/* ─── Divider ─── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px auto 0;
  width: 220px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.divider::after {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.divider-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.4);
}

/* ─── Coming Soon Section ─── */
.coming-soon-section {
  margin: 0 0 44px;
  padding: 0 28px 44px;
  position: relative;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.coming-soon-text {
  font-family: "Cinzel", serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--ember-hot);
  margin-bottom: 18px;
  animation: flicker 5s ease-in-out infinite;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(255, 127, 0, 0.5),
      0 0 30px rgba(255, 107, 26, 0.35),
      0 0 60px rgba(255, 107, 26, 0.15);
  }
  50% {
    opacity: 0.85;
    text-shadow:
      0 0 6px rgba(255, 127, 0, 0.3),
      0 0 20px rgba(255, 107, 26, 0.15);
  }
}

.message {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ash);
  letter-spacing: 0.5px;
  line-height: 1.7;
  font-style: italic;
}

.praise {
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gold-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 20px;
}

/* ─── Social Links ─── */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.link-sep {
  color: var(--gold-dim);
  font-size: 0.7rem;
  user-select: none;
}

.social-link {
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  padding: 6px 2px;
  position: relative;
  transition:
    color 0.35s ease,
    text-shadow 0.35s ease;
}

.social-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.social-link:hover {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(201, 168, 76, 0.35);
}

.social-link:hover::after {
  width: 100%;
}

/* ─── Footer ─── */
.footer-text {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.footer-text p {
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--dim);
  letter-spacing: 1.5px;
  font-style: italic;
}

.toprak-bottom-link {
  position: absolute;
  left: 50%;
  bottom: -2rem;
  transform: translateX(-50%);
  font-family: "Raleway", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #5a8c00;
  text-decoration: none;
  letter-spacing: 0.6px;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.toprak-bottom-link:hover {
  color: #6aa300;
  text-shadow: 0 0 10px rgba(90, 140, 0, 0.35);
}

.toprak-footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 6px;
}

.toprak-footer-link {
  font-family: "Raleway", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #5a8c00;
  text-decoration: none;
  letter-spacing: 0.6px;
  text-transform: none;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.toprak-footer-link:hover {
  color: #6aa300;
  text-shadow: 0 0 10px rgba(90, 140, 0, 0.35);
}

.tooltip {
  position: relative;
  display: inline-block;
  color: var(--gold);
  cursor: pointer;
}

.tooltip::after {
  content: attr(data-tooltip);
  font-style: normal;
  position: absolute;
  left: 50%;
  bottom: 140%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(10, 8, 12, 0.95);
  color: var(--light);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(201, 168, 76, 0.12);
}

.tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%) translateY(8px);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(10, 8, 12, 0.95);
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.tooltip:hover::after,
.tooltip:hover::before,
.tooltip:focus::after,
.tooltip:focus::before,
.tooltip:active::after,
.tooltip:active::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip:focus-visible {
  outline: 1px solid rgba(201, 168, 76, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

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

  .card {
    padding: 40px 20px;
  }

  .coming-soon-section {
    padding: 32px 16px;
  }

  .coming-soon-text {
    letter-spacing: 5px;
  }

  .social-links {
    gap: 14px;
  }

  .bonfire-glow {
    width: 300px;
    height: 220px;
  }
}
