/* Sosense — under-construction page.
   Deliberately dark-only: the aurora treatment is the design. */

:root {
  --bg: #07080b;
  --fg: #eef2f6;
  --muted: #7f8b99;
  --teal: #5eead4;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --hairline: rgba(255, 255, 255, 0.09);
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
  position: relative;
}

/* ─── ambient layers ─────────────────────────────────────── */

.aurora,
.grid-lines,
.vignette,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora { z-index: 0; }

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  width: 44rem;
  height: 44rem;
  top: -16rem;
  left: -12rem;
  background: radial-gradient(circle, var(--teal), transparent 65%);
  animation: drift-1 26s ease-in-out infinite;
}

.orb-2 {
  width: 40rem;
  height: 40rem;
  bottom: -14rem;
  right: -10rem;
  background: radial-gradient(circle, var(--violet), transparent 65%);
  animation: drift-2 32s ease-in-out infinite;
}

.orb-3 {
  width: 32rem;
  height: 32rem;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, var(--blue), transparent 65%);
  opacity: 0.32;
  animation: drift-3 38s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(6rem, 4rem, 0) scale(1.12); }
}

@keyframes drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-5rem, -5rem, 0) scale(1.15); }
}

@keyframes drift-3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-7rem, 3rem, 0) scale(0.88); }
}

/* faint blueprint grid — a nod to "under construction" */
.grid-lines {
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 78%);
}

.vignette {
  z-index: 2;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 30%, rgba(7, 8, 11, 0.85) 100%);
}

.grain {
  z-index: 3;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── content ────────────────────────────────────────────── */

.stage {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 46rem;
  margin: auto 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  margin-bottom: 2.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(238, 242, 246, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ping {
  position: relative;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  75%, 100% { transform: scale(3); opacity: 0; }
}

.wordmark {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(3.5rem, 15vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
  background: linear-gradient(100deg, #ffffff 0%, #d7e6f5 22%, var(--teal) 46%, var(--blue) 62%, var(--violet) 80%, #ffffff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep 9s ease-in-out infinite;
}

@keyframes sweep {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* thin progress-like hairline under the wordmark */
.rule {
  width: min(18rem, 60%);
  height: 1px;
  margin: 2.5rem auto;
  background: linear-gradient(90deg, transparent, var(--hairline) 20%, var(--hairline) 80%, transparent);
  position: relative;
  overflow: hidden;
}

.rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: scan 3.6s ease-in-out infinite;
}

@keyframes scan {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.tagline {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.1875rem);
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: 0.002em;
}

.foot {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 3rem;
  font-size: 0.8125rem;
  color: rgba(127, 139, 153, 0.85);
}

.foot a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--fg);
  outline: none;
}

.sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* ─── entrance ───────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

[data-reveal="1"] { animation-delay: 0.05s; }
[data-reveal="2"] { animation-delay: 0.18s; }
[data-reveal="3"] { animation-delay: 0.34s; }
[data-reveal="4"] { animation-delay: 0.46s; }
[data-reveal="5"] { animation-delay: 0.62s; }

/* the wordmark also runs `sweep`, so its reveal is opacity-only */
.wordmark[data-reveal] { animation: fade 0.9s ease forwards, sweep 9s ease-in-out 0.9s infinite; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .ping::after,
  .rule::after,
  .wordmark {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    animation: none !important;
  }

  .wordmark { background-position: 30% center; }
}

@media (max-width: 30rem) {
  .rule { margin: 2rem auto; }
  .foot { padding-top: 2.5rem; }
  .orb { filter: blur(70px); }
}
