/*
Theme Name: XPU Coming Soon
Theme URI: https://xpu.store
Author: XPU
Description: A minimal coming soon theme for xpu.store.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: xpu-coming-soon
*/

:root {
  color-scheme: dark;
  --background: #07090d;
  --surface: rgba(255, 255, 255, 0.055);
  --text: #f4f7fb;
  --muted: #99a2b3;
  --accent: #8aa4ff;
  --line: rgba(255, 255, 255, 0.12);
  --glow: rgba(116, 145, 255, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(91, 115, 220, 0.16), transparent 34rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(88, 112, 210, 0.11);
  filter: blur(5rem);
  content: "";
  opacity: 0;
  animation: atmosphere 9s ease-in-out infinite alternate;
}

.site-shell::before {
  top: -18rem;
  left: -12rem;
}

.site-shell::after {
  right: -14rem;
  bottom: -20rem;
  animation-delay: 2s;
}

.coming-soon {
  position: relative;
  width: min(100%, 42rem);
  padding: clamp(2.25rem, 7vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  text-align: center;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(1rem);
  overflow: hidden;
  animation: panel-reveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.coming-soon::before {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.07) 50%, transparent 58%);
  content: "";
  transform: translateX(-60%);
  animation: light-sweep 7s 1.2s ease-in-out infinite;
  pointer-events: none;
}

.brand {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1;
  text-shadow: 0 0 2.5rem var(--glow);
  opacity: 0;
  animation: cinematic-rise 1.1s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.message {
  margin: 1.5rem 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: cinematic-rise 1s 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tagline {
  max-width: 31rem;
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  line-height: 1.8;
  opacity: 0;
  animation: cinematic-rise 1s 1.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact {
  position: relative;
  display: inline-block;
  margin-top: 2.25rem;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4rem;
  transition: color 180ms ease;
  opacity: 0;
  filter: blur(1rem);
  animation: smoke-reveal 1.8s 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact:hover,
.contact:focus-visible {
  color: var(--accent);
}

.contact::before,
.contact::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 8rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(142, 159, 218, 0.18);
  content: "";
  filter: blur(1.2rem);
  opacity: 0;
  pointer-events: none;
  animation: smoke-drift 2.8s 2.65s ease-out forwards;
}

.contact::after {
  animation-delay: 2.95s;
  animation-direction: reverse;
}

@keyframes panel-reveal {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cinematic-rise {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
    filter: blur(0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes smoke-reveal {
  0% {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.96);
    filter: blur(1rem);
  }
  55% {
    opacity: 0.55;
    filter: blur(0.3rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes smoke-drift {
  0% {
    opacity: 0;
    transform: translate(-50%, -20%) scale(0.45);
  }
  35% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate(-15%, -120%) scale(1.8);
  }
}

@keyframes atmosphere {
  from { opacity: 0.25; transform: scale(0.9); }
  to { opacity: 0.75; transform: scale(1.15); }
}

@keyframes light-sweep {
  0%, 62% { transform: translateX(-65%); }
  100% { transform: translateX(65%); }
}

@media (max-width: 32rem) {
  .site-shell {
    padding: 1rem;
  }

  .coming-soon {
    border-radius: 1.15rem;
  }
}

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