:root {
 --bg: #05060a;
 --fg: #f4f6fb;
 --muted: #9aa3b8;
 --violet: #8b5cf6;
 --cyan: #22d3ee;
 --gold: #f5c46b;
 --sine: cubic-bezier(0.45, 0, 0.55, 1);
 --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
 --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
 margin: 0;
 min-height: 100vh;
 background: var(--bg);
 color: var(--fg);
 font-family: var(--font);
 line-height: 1.5;
 overflow-x: hidden;
 -webkit-font-smoothing: antialiased;
}

/* ---------- Animated background ---------- */
.bg {
 position: fixed;
 inset: 0;
 overflow: hidden;
 z-index: 0;
 pointer-events: none;
}

.bg::after {
 content: "";
 position: absolute;
 inset: 0;
 background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 6, 10, 0.85) 100%);
}

/* Orbs: softness is baked into the gradient, motion is transform only */
.orb {
 position: absolute;
 border-radius: 50%;
 will-change: transform;
}

.orb-1 {
 width: 56vmax; height: 56vmax;
 left: -17vmax; top: -19vmax;
 background: radial-gradient(closest-side, rgba(139, 92, 246, 0.55), rgba(139, 92, 246, 0.22) 45%, rgba(139, 92, 246, 0) 100%);
 animation: drift1 38s var(--sine) infinite alternate;
}

.orb-2 {
 width: 50vmax; height: 50vmax;
 right: -15vmax; bottom: -17vmax;
 background: radial-gradient(closest-side, rgba(34, 211, 238, 0.5), rgba(34, 211, 238, 0.2) 45%, rgba(34, 211, 238, 0) 100%);
 animation: drift2 44s var(--sine) infinite alternate;
}

.orb-3 {
 width: 36vmax; height: 36vmax;
 left: 36%; top: 40%;
 background: radial-gradient(closest-side, rgba(245, 196, 107, 0.28), rgba(245, 196, 107, 0.1) 45%, rgba(245, 196, 107, 0) 100%);
 animation: drift3 52s var(--sine) infinite alternate;
}

/* Grid: the mask sits on the wrapper, the oversized grid translates by exactly one period */
.grid-mask {
 position: absolute;
 inset: 0;
 overflow: hidden;
 -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
 mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.grid {
 position: absolute;
 inset: -56px;
 background-image:
 linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
 linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
 background-size: 56px 56px;
 will-change: transform;
 animation: gridmove 28s linear infinite;
}

/* ---------- Content ---------- */
.stage {
 position: relative;
 z-index: 1;
 min-height: 100vh;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 text-align: center;
 padding: 4rem 1.5rem 5rem;
}

.eyebrow {
 margin: 0 0 1.5rem;
 font-size: clamp(0.7rem, 1.4vw, 0.9rem);
 letter-spacing: 0.42em;
 text-transform: uppercase;
 color: var(--muted);
 animation: rise 1.6s 0.1s var(--ease-out) both;
}

.coming-soon {
 position: relative;
 isolation: isolate;
 margin: 0;
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 0 0.25em;
 font-weight: 800;
 line-height: 0.95;
 letter-spacing: -0.03em;
 text-transform: uppercase;
 font-size: clamp(3.5rem, 13vw, 11rem);
}

/* Two stacked glows cross-fade by opacity and scale only */
.coming-soon::before,
.coming-soon::after {
 content: "";
 position: absolute;
 inset: -12% -6%;
 z-index: -1;
 pointer-events: none;
 will-change: opacity, transform;
}

.coming-soon::before {
 background: radial-gradient(closest-side, rgba(139, 92, 246, 0.42), rgba(139, 92, 246, 0) 100%);
 animation: glow-violet 10s var(--sine) infinite alternate;
}

.coming-soon::after {
 background: radial-gradient(closest-side, rgba(34, 211, 238, 0.4), rgba(34, 211, 238, 0) 100%);
 animation: glow-cyan 10s var(--sine) infinite alternate;
}

.coming-soon .word {
 display: inline-block;
 background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold), var(--violet));
 background-size: 200% 100%;
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
 -webkit-text-fill-color: transparent;
 animation: shimmer 16s linear infinite, rise 1.8s var(--ease-out) both;
}

.coming-soon .word:nth-child(2) {
 animation-delay: -2s, 0.3s;
}

.name {
 position: relative;
 margin: 1.5rem 0 0;
 font-weight: 300;
 font-size: clamp(1.6rem, 4.2vw, 3.2rem);
 letter-spacing: 0.32em;
 text-transform: uppercase;
 color: var(--fg);
 animation: rise 1.8s 0.5s var(--ease-out) both;
}

.name::after {
 content: "";
 display: block;
 height: 1px;
 width: min(60vw, 420px);
 margin: 1.4rem auto 0;
 background: linear-gradient(90deg, transparent, var(--cyan), transparent);
 transform: scaleX(0);
 animation: line 2s 1s var(--ease-out) forwards;
}

.tagline {
 margin: 1.6rem 0 0;
 max-width: 36rem;
 font-size: clamp(1rem, 2vw, 1.25rem);
 color: var(--muted);
 animation: rise 1.6s 0.9s var(--ease-out) both;
}

.keywords {
 list-style: none;
 margin: 2.5rem 0 0;
 padding: 0;
 max-width: 46rem;
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 0.75rem;
}

.keywords li {
 padding: 0.55rem 1.1rem;
 border: 1px solid rgba(255, 255, 255, 0.14);
 border-radius: 999px;
 background: rgba(20, 22, 32, 0.6);
 font-size: 0.85rem;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 color: #dfe4f1;
 animation:
 fadein 1.4s var(--ease-out) both,
 float 9s var(--sine) infinite;
 animation-delay:
 calc(1.1s + var(--i) * 0.14s),
 calc(var(--i) * -1.5s);
 transition:
 border-color 0.6s var(--ease-out),
 box-shadow 0.6s var(--ease-out),
 color 0.6s var(--ease-out);
}

.keywords li:hover {
 border-color: var(--cyan);
 color: #fff;
 box-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
}

.foot {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 1.25rem;
 margin: 0;
 font-size: 0.75rem;
 letter-spacing: 0.12em;
 color: #5d667c;
}

/* ---------- Keyframes ---------- */
@keyframes rise {
 from { opacity: 0; transform: translate3d(0, 24px, 0); }
 to { opacity: 1; transform: none; }
}

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

/* Gradient starts and ends on violet and the tile is 200% wide, so 0% to 200% is one exact period */
@keyframes shimmer {
 from { background-position: 0% 0; }
 to { background-position: 200% 0; }
}

@keyframes glow-violet {
 from { opacity: 1; transform: scale(1); }
 to { opacity: 0.1; transform: scale(1.08); }
}

@keyframes glow-cyan {
 from { opacity: 0.1; transform: scale(1.08); }
 to { opacity: 1; transform: scale(1); }
}

@keyframes line {
 from { transform: scaleX(0); }
 to { transform: scaleX(1); }
}

@keyframes float {
 0%, 100% { transform: translate3d(0, 0, 0); }
 50% { transform: translate3d(0, -6px, 0); }
}

/* 56px equals the grid period, so the loop is seamless */
@keyframes gridmove {
 from { transform: translate3d(0, 0, 0); }
 to { transform: translate3d(56px, 56px, 0); }
}

@keyframes drift1 {
 from { transform: translate3d(0, 0, 0) scale(1); }
 to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); }
}

@keyframes drift2 {
 from { transform: translate3d(0, 0, 0) scale(1); }
 to { transform: translate3d(-12vmax, -9vmax, 0) scale(1.2); }
}

@keyframes drift3 {
 from { transform: translate3d(-8vmax, 4vmax, 0) scale(0.9); }
 to { transform: translate3d(8vmax, -6vmax, 0) scale(1.1); }
}

/* ---------- Responsive + accessibility ---------- */
@media (max-width: 600px) {
 .eyebrow { letter-spacing: 0.25em; }
 .name { letter-spacing: 0.2em; }
 .keywords li { font-size: 0.75rem; padding: 0.5rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after {
 animation-duration: 0.01ms !important;
 animation-iteration-count: 1 !important;
 animation-delay: 0s !important;
 transition-duration: 0.01ms !important;
 }
 .name::after { transform: none; }
}
