/*
Theme Name: Tesylon Pearl Coming Soon
Theme URI: https://tesylonpearl.com/
Author: Tesylon Pearl
Description: A custom WordPress coming soon theme with animated center popups and a video background.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: tesylon-pearl-coming-soon
*/

:root {
  --tp-ink: #06101a;
  --tp-ink-deep: #020711;
  --tp-white: #ffffff;
  --tp-muted: #d7e3ea;
  --tp-soft: rgba(255, 255, 255, 0.12);
  --tp-line: rgba(255, 255, 255, 0.22);
  --tp-cyan: #30e1f4;
  --tp-blue: #3779ff;
  --tp-footer-height: clamp(42px, 6vh, 58px);
  --tp-phrase-duration: 1167ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--tp-ink-deep);
  color: var(--tp-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.tp-coming-soon {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--tp-ink-deep);
}

.tp-bg-video {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center bottom;
  background: var(--tp-ink-deep);
  filter: brightness(1.1) contrast(1.15) saturate(0.9);
}
.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 120, 255, 0.06);
  pointer-events: none;
}
.tp-video-fallback {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 50% 48%, rgba(48, 225, 244, 0.18), transparent 34%),
    linear-gradient(140deg, #06101a 0%, #0b2731 48%, #020711 100%);
}



.tp-coming-soon::before,
.tp-coming-soon::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
}

.tp-coming-soon::before {
  background:
    linear-gradient(0deg, rgba(2, 7, 17, 0.58), rgba(2, 7, 17, 0.08) 42%, rgba(2, 7, 17, 0.18)),
    linear-gradient(90deg, rgba(2, 7, 17, 0.35), transparent 46%, rgba(2, 7, 17, 0.3));
}

.tp-coming-soon::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(48, 225, 244, 0.1), transparent 32%),
    linear-gradient(180deg, transparent calc(100% - var(--tp-footer-height) - 70px), rgba(2, 7, 17, 0.56) 100%);
  filter: saturate(1.05);
}

.tp-status-badge {
  position: fixed;
  top: clamp(14px, 3vw, 32px);
  right: clamp(14px, 3vw, 32px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 7, 17, 0.48);
  color: var(--tp-white);
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.tp-status-badge span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--tp-cyan);
  box-shadow: 0 0 18px rgba(48, 225, 244, 0.9);
  animation: tpPulse 1.5s ease-in-out infinite;
}

.tp-stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
  padding-bottom: calc(var(--tp-footer-height) + clamp(24px, 6vh, 64px));
}

.tp-popup-shell {
  position: relative;
  width: min(100%, 980px);
  min-height: clamp(250px, 42vh, 440px);
}

.tp-popup,
.tp-final {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}

.tp-popup {
  opacity: 0;
  transform: scale(0.35);
  filter: blur(10px);
}

.tp-popup.is-active {
  animation: tpPhrase var(--tp-phrase-duration) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-popup span {
  display: inline-block;
  max-width: 100%;
  color: var(--tp-white);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 0.96;
  overflow-wrap: anywhere;
  text-shadow:
    0 0 40px rgba(48, 225, 244, 0.6),
    0 0 82px rgba(48, 225, 244, 0.24),
    0 10px 42px rgba(0, 0, 0, 0.5);
}

.tp-final {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-final.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tp-final__content {
  display: grid;
  justify-items: center;
  gap: clamp(20px, 3vh, 32px);
  width: min(100%, 920px);
}

.tp-final h2 {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5rem);
  font-weight: 850;
  line-height: 1.08;
  text-shadow: 0 8px 46px rgba(0, 0, 0, 0.62);
}

.tp-final h2 span {
  display: inline-block;
  color: var(--tp-cyan);
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(48, 225, 244, 0.15);
}

.tp-final p {
  max-width: 680px;
  margin: 0;
  color: var(--tp-muted);
  font-size: clamp(1.12rem, 2.4vw, 1.75rem);
  font-weight: 750;
  line-height: 1.35;
}

.tp-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--tp-line);
  border-radius: 999px;
  background: var(--tp-soft);
  color: var(--tp-white);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.tp-pill::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--tp-cyan);
  box-shadow: 0 0 20px rgba(48, 225, 244, 0.9);
  content: "";
  animation: tpPulse 1.5s ease-in-out infinite;
}

.tp-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
}

.tp-tags li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.tp-tags li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--tp-cyan);
  content: "";
}

.tp-contact-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 22px;
  min-height: var(--tp-footer-height);
  align-content: center;
  align-items: center;
  justify-content: center;
  padding: 6px clamp(10px, 3vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(2, 7, 17, 0.2), rgba(2, 7, 17, 0.88) 30%, rgba(2, 7, 17, 0.98));
  text-align: center;
  backdrop-filter: blur(16px);
}

.tp-contact-footer a {
  color: var(--tp-cyan);
  font-weight: 800;
  text-decoration: none;
}

.tp-contact-footer a:hover,
.tp-contact-footer a:focus-visible {
  color: #a7f7ff;
}

.tp-contact-footer address,
.tp-contact-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.58rem, 1.25vw, 0.78rem);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.tp-contact-footer address {
  font-style: normal;
}

.tp-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes tpPhrase {
  0% {
    opacity: 0;
    transform: scale(0.35);
    filter: blur(10px);
  }

  28%,
  70% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
    filter: blur(6px);
  }
}

@keyframes tpPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.52;
    transform: scale(1.35);
  }
}

@media (max-width: 680px) {
  :root {
    --tp-footer-height: 58px;
  }

  .tp-stage {
    padding-inline: 18px;
  }

  .tp-bg-video {
    object-fit: cover;
    object-position: center bottom;
    filter: brightness(0.52) saturate(0.9) contrast(1.04);
  }

  .tp-coming-soon::before {
    background:
      linear-gradient(0deg, rgba(2, 7, 17, 0.78), rgba(2, 7, 17, 0.28) 42%, rgba(2, 7, 17, 0.36)),
      linear-gradient(90deg, rgba(2, 7, 17, 0.5), rgba(2, 7, 17, 0.18) 46%, rgba(2, 7, 17, 0.46));
  }

  .tp-coming-soon::after {
    background:
      radial-gradient(circle at 50% 50%, rgba(48, 225, 244, 0.06), transparent 34%),
      linear-gradient(180deg, rgba(2, 7, 17, 0.18), rgba(2, 7, 17, 0.72) 100%);
  }

  .tp-popup-shell {
    min-height: 360px;
  }

  .tp-final__content {
    gap: 18px;
  }

  .tp-pill {
    max-width: 100%;
    min-height: 42px;
    padding-inline: 16px;
    font-size: 0.78rem;
  }

  .tp-tags {
    gap: 10px 18px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
