/*
Theme Name: OneOffice Coming Soon
Theme URI: https://oneofficesolution.com
Author: One Office Solution
Description: Temporary branded coming-soon holding page for OneOfficeSolution.com. Activate to show the coming-soon screen on every URL; switch back to the main OneOffice Solution theme at launch.
Version: 1.0.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oneoffice-coming-soon
*/

:root {
	--oos-navy: #24364a;
	--oos-navy-deep: #141f2b;
	--oos-blue: #1f2a8f;
	--oos-blue-glow: #3b4ce0;
	--oos-teal: #0fb5c4;
	--oos-ink: #e8eef5;
	--oos-muted: #9fb1c4;
	--oos-font: "DM Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	min-height: 100svh;
	font-family: var(--oos-font);
	color: var(--oos-ink);
	background:
		radial-gradient(120vmax 80vmax at 50% 120%, var(--oos-navy) 0%, var(--oos-navy-deep) 60%),
		var(--oos-navy-deep);
	overflow-x: hidden;
}

/* ---------- Animated background scene ---------- */

.scene {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.blob {
	position: absolute;
	width: 58vmax;
	height: 58vmax;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
	will-change: transform;
}

.blob--blue {
	top: -20vmax;
	left: -14vmax;
	background: radial-gradient(circle, var(--oos-blue-glow) 0%, transparent 65%);
	animation: oos-drift-a 34s ease-in-out infinite alternate;
}

.blob--teal {
	bottom: -24vmax;
	right: -16vmax;
	background: radial-gradient(circle, var(--oos-teal) 0%, transparent 62%);
	opacity: 0.32;
	animation: oos-drift-b 28s ease-in-out infinite alternate;
}

.blob--navy {
	top: 30%;
	left: 55%;
	width: 44vmax;
	height: 44vmax;
	background: radial-gradient(circle, #2e4a6b 0%, transparent 60%);
	opacity: 0.55;
	animation: oos-drift-c 40s ease-in-out infinite alternate;
}

@keyframes oos-drift-a {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(9vmax, 7vmax) scale(1.12); }
}

@keyframes oos-drift-b {
	from { transform: translate(0, 0) scale(1.05); }
	to   { transform: translate(-8vmax, -6vmax) scale(0.94); }
}

@keyframes oos-drift-c {
	from { transform: translate(0, 0); }
	to   { transform: translate(-10vmax, 6vmax); }
}

.cursor-glow {
	position: fixed;
	top: 0;
	left: 0;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(15, 181, 196, 0.14) 0%, transparent 60%);
	mix-blend-mode: screen;
	will-change: transform;
}

/* Floating product icons — outer .float gets JS parallax, inner svg bobs on CSS */

.float {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: var(--s);
	height: var(--s);
	color: rgba(255, 255, 255, 0.15);
	will-change: transform;
}

.float svg {
	width: 100%;
	height: 100%;
	animation: oos-bob var(--d, 10s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes oos-bob {
	from { transform: translateY(-10px) rotate(-4deg); }
	to   { transform: translateY(12px) rotate(5deg); }
}

/* Slow roaming drift — a middle layer between the parallax (.float) and the bob (svg). */

.wander {
	width: 100%;
	height: 100%;
	animation: oos-wander-a var(--wd, 55s) ease-in-out var(--wdelay, 0s) infinite alternate;
	will-change: transform;
}

.wander--b { animation-name: oos-wander-b; }
.wander--c { animation-name: oos-wander-c; }

@keyframes oos-wander-a {
	0%   { transform: translate(0, 0); }
	33%  { transform: translate(7vw, -6vh); }
	66%  { transform: translate(12vw, 4vh); }
	100% { transform: translate(3vw, 10vh); }
}

@keyframes oos-wander-b {
	0%   { transform: translate(0, 0); }
	33%  { transform: translate(-8vw, 5vh); }
	66%  { transform: translate(-3vw, -8vh); }
	100% { transform: translate(-12vw, -2vh); }
}

@keyframes oos-wander-c {
	0%   { transform: translate(0, 0); }
	33%  { transform: translate(5vw, 7vh); }
	66%  { transform: translate(-6vw, 10vh); }
	100% { transform: translate(-2vw, -6vh); }
}

/* ---------- Content ---------- */

.stage {
	position: relative;
	z-index: 1;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 56px 20px 40px;
	gap: 26px;
}

.stage > * {
	animation: oos-rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes oos-rise {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: translateY(0); }
}

.chip-wrap {
	perspective: 900px;
	animation-delay: 0.05s;
}

.chip {
	display: inline-block;
	background: #fff;
	padding: 24px 36px;
	border-radius: 18px;
	box-shadow:
		0 24px 70px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.07),
		0 0 90px rgba(15, 181, 196, 0.12);
	will-change: transform;
}

.chip img {
	display: block;
	width: min(300px, 68vw);
	height: auto;
}

.headline {
	margin: 0;
	font-size: clamp(2.4rem, 8vw, 4.6rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: linear-gradient(100deg, #ffffff 25%, #7fd9e8 42%, var(--oos-teal) 50%, #ffffff 68%);
	background-size: 240% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: oos-rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) 0.15s both,
		oos-sheen 6s linear 1s infinite;
}

@keyframes oos-sheen {
	from { background-position: 0% 0; }
	to   { background-position: -240% 0; }
}

.offer {
	margin: 0;
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	font-weight: 500;
	line-height: 1.45;
	color: var(--oos-muted);
	animation-delay: 0.25s;
}

.rotator {
	display: inline-flex;
	overflow: hidden;
	height: 1.45em;
	vertical-align: bottom;
}

.rot-word {
	display: inline-block;
	font-weight: 700;
	line-height: 1.45;
	color: var(--oos-teal);
	transition: transform 0.32s ease, opacity 0.32s ease;
}

.rot-word.is-out {
	transform: translateY(-120%);
	opacity: 0;
}

.rot-word.is-prep {
	transition: none;
	transform: translateY(120%);
	opacity: 0;
}

.tags {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 680px;
	animation: none;
}

.tags li {
	padding: 0.5em 1.1em;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(6px);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--oos-ink);
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
	animation: oos-rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
	animation-delay: calc(0.35s + var(--i, 0) * 0.07s);
	cursor: default;
}

.tags li:hover {
	transform: translateY(-4px);
	border-color: var(--oos-teal);
	background: rgba(15, 181, 196, 0.14);
	box-shadow: 0 8px 24px rgba(15, 181, 196, 0.22);
}

.foot {
	margin: 18px 0 0;
	font-size: 0.9rem;
	color: var(--oos-muted);
	animation-delay: 0.9s;
}

.foot a {
	color: var(--oos-teal);
	text-decoration: none;
	border-bottom: 1px solid rgba(15, 181, 196, 0.4);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.foot a:hover {
	color: #7fd9e8;
	border-color: #7fd9e8;
}

@media (max-width: 640px) {
	.float--dim { display: none; }
	.chip { padding: 18px 24px; border-radius: 14px; }
	.stage { gap: 20px; }
}

/* Honor reduced motion — unless the visitor explicitly forces it with ?motion=on
   (JS adds .oos-motion-force to <html>). */
@media (prefers-reduced-motion: reduce) {
	html:not(.oos-motion-force) *,
	html:not(.oos-motion-force) *::before,
	html:not(.oos-motion-force) *::after {
		animation-duration: 0.001s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001s !important;
	}
	html:not(.oos-motion-force) .headline { background-position: 50% 0; }
}
