/* ============================================================
   GLOBAL — Fullscreen Milky Way Background
============================================================ */

:root {
  /* Presence Emerald System */
  --emerald: #00D6A1;
  --emerald-soft: rgba(0,214,161,0.28);
  --emerald-glow-1: rgba(0,214,161,0.45);
  --emerald-glow-2: rgba(0,214,161,0.30);
  --emerald-glow-3: rgba(0,214,161,0.18);

  /* Neutrals */
  --text-main: #ECEEF5;
  --text-muted: #8A8FA3;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--text-main);
  text-align: center;
  overflow-x: hidden;

  background-image: url("textures/milky_way_4k.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background: radial-gradient(
    circle at 50% 30%,
    rgba(0,0,20,0.30) 0%,
    rgba(0,0,15,0.55) 45%,
    rgba(0,0,10,0.75) 100%
  );
}

.milkyway,
.space {
  display: none !important;
}

/* ============================================================
   TITLE
============================================================ */

.title-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  margin-bottom: 20px;
}

.word {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.17em;
  color: #ffffff;
  text-transform: uppercase;
}

@keyframes stellarDissolve {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  40% {
    opacity: 0.8;
    transform: translateY(-4px) scale(1.03);
    filter: brightness(1.4);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1.08);
    filter: brightness(2);
  }
}

.word.human {
  animation: stellarDissolve 3s ease-out forwards;
  animation-delay: 1s;
}

.word.layer {
  animation: stellarDissolve 3s ease-out forwards;
  animation-delay: 2s;
}

.word.presence {
  color: #ffffff;
}

/* ============================================================
   SUBTITLE & TEXT
============================================================ */

h2 {
  margin-top: 10px;
  font-size: 20px;
  color: #C7CBD5;
}

.tagline {
  margin-top: 40px;
  font-size: 18px;
  color: #D5D8E3;
}

/* ============================================================
   LOGO MARK (SVG)
============================================================ */

.logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 40px 0 14px;
  position: relative;
}

.presence-mark {
  width: 92px;
  height: 92px;
  display: block;
}

/* Soft emerald halo behind logo */
.logo-halo {
  position: absolute;
  inset: -42px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(0,214,161,0.22) 0%,
    rgba(0,214,161,0.12) 35%,
    rgba(0,214,161,0.05) 60%,
    rgba(0,0,0,0.0) 100%
  );
  filter: blur(28px);
  opacity: 0.75;
  animation: haloFloat 9s ease-in-out infinite alternate;
}

@keyframes haloFloat {
  0% { transform: scale(0.96); opacity: 0.65; }
  100% { transform: scale(1.05); opacity: 0.85; }
}

/* ============================================================
   GLOBE
============================================================ */

.globe-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

.pulse {
  width: 320px;
  height: 320px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--emerald-soft),
    rgba(0,0,0,0.04)
  );
  animation: halo 10s ease-in-out infinite;
}

@keyframes halo {
  0%, 100% { transform: scale(0.92); opacity: 0.12; }
  50% { transform: scale(1.06); opacity: 0.22; }
}

#globe-container {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
}

/* ============================================================
   BUTTONS
============================================================ */

.button-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--emerald-soft);
  color: #E6FFF3;
  text-decoration: none;
  cursor: pointer;

  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);

  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.3s ease,
    box-shadow 0.4s ease,
    transform 0.35s ease;
}

.btn:hover {
  background: rgba(0, 0, 0, 0.78);
  border-color: var(--emerald);
  box-shadow:
    0 0 10px var(--emerald-glow-1),
    0 0 22px var(--emerald-glow-2),
    0 0 34px var(--emerald-glow-3),
    inset 0 0 12px rgba(0,214,161,0.18);
  color: #F6FFF9;
  transform: translateY(-2px);
}

.btn.secondary {
  background: rgba(255,255,255,0.06);
}

/* Small privacy button */
.btn.privacy {
  padding: 8px 20px;
  font-size: 14px;
  opacity: 0.9;
}

.privacy-row {
  margin-top: 10px;
  margin-bottom: 40px;
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
  margin-top: 80px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================================
   MOBILE TITLE LOGIC
============================================================ */

@media (max-width: 600px) {
  .word.human,
  .word.layer {
    display: none !important;
  }

  .word.presence {
    animation: stellarDissolve 3s ease-out forwards;
    animation-delay: 1s;
    font-size: 48px;
  }

  .title-flex {
    gap: 0;
  }
}
