/* Strategery — holding page.
   One screen: a tile wordmark, the announcement, a tagline. */

:root {
	--ink:        #0a0e20;
	--ink-2:      #131a38;
	--ink-3:      #1d2650;
	--porcelain:  #eef2ff;
	--muted:      #9aa5d1;
	--teal:       #2ee6c5;
	--coral:      #ff5470;
	--violet:     #8b7dff;

	/* The four enemy colors from the map art, shared with the landing page. */
	--green:      #43b047;
	--orange:     #f5b400;
	--blue:       #1e7ad0;
	--red:        #e5312b;

	--font: "Avenir Next", "Avenir", Mulish, -apple-system, BlinkMacSystemFont,
	        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--porcelain);
	font-family: var(--font);
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

/* Two soft lights behind the board, so the page isn't a flat slab of navy. */
.glow {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(58vw 46vw at 22% 12%, rgba(46, 230, 197, .17), transparent 62%),
		radial-gradient(52vw 44vw at 82% 84%, rgba(139, 125, 255, .20), transparent 64%);
}

/* Faint board grid, barely there. */
.grid-lines {
	position: fixed;
	inset: -2px;
	z-index: 0;
	pointer-events: none;
	opacity: .32;
	background-image:
		linear-gradient(to right,  rgba(154, 165, 209, .10) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(154, 165, 209, .10) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image:       radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
	-webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
}

/* ── Blobs from the map ──
   Four blurred, slowly morphing blobs and two faint regions with pegs, the
   same shapes the landing page uses, kept low enough to read as texture. */
.blobs {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.blob {
	position: absolute;
	width: 240px; height: 240px;
	opacity: .12;
	filter: blur(10px);
	border-radius: 58% 42% 55% 45% / 47% 55% 45% 53%;
	animation: morph 16s ease-in-out infinite alternate, drift 26s ease-in-out infinite alternate;
}
.blob.green  { background: var(--green);  left: -7vw;  top: 10vh; }
.blob.orange { background: var(--orange); right: 6vw;  top: 64vh; width: 180px; height: 180px; animation-delay: -5s, -7s; }
.blob.blue   { background: var(--blue);   right: -5vw; top: 4vh;  width: 280px; height: 280px; animation-delay: -9s, -12s; }
.blob.red    { background: var(--red);    left: 14vw;  top: 76vh; width: 160px; height: 160px; animation-delay: -3s, -16s; }

.region-wrap {
	position: absolute;
	width: 200px; height: 200px;
	opacity: .10;
	animation: bob 7s ease-in-out infinite;
}
.region-wrap.a { left: 5vw;  bottom: 9vh; color: var(--blue); }
.region-wrap.b { right: 6vw; top: 12vh;   color: var(--green); animation-delay: -3.5s; }

.card-blob { display: block; width: 100%; height: 100%; overflow: visible; }
.card-blob .region { fill: currentColor; stroke: rgba(0, 0, 0, .45); stroke-width: 3; stroke-linejoin: round; }
.card-blob .peg    { fill: rgba(255, 255, 255, .34); }
.card-blob .peg.on { fill: rgba(0, 0, 0, .42); stroke: rgba(255, 255, 255, .28); stroke-width: 2; }

@media (max-width: 700px) {
	.region-wrap { display: none; }   /* too close to the wordmark on a phone */
	.blob { opacity: .09; }
}

main {
	position: relative;
	z-index: 1;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 3.4vw, 32px);
	padding: clamp(32px, 7vw, 72px) 20px;
	text-align: center;
}

/* ── Eyebrow ── */

.eyebrow {
	margin: 0;
	font-size: clamp(11px, 1.5vw, 13px);
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--teal);
	animation: rise .7s cubic-bezier(.2, .8, .3, 1) both;
}

/* ── Tile wordmark ── */

.wordmark {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(3px, .9vw, 11px);
	margin: 0;
	padding: 0;
	list-style: none;
	perspective: 900px;
}

.slot {
	animation: bob 5.2s ease-in-out infinite;
	animation-delay: calc(1s + var(--i) * 130ms);
}

.tile {
	--face:   linear-gradient(170deg, #ffffff 0%, #dde4ff 100%);
	--edge:   #97a3d8;
	--letter: var(--ink);

	display: grid;
	place-items: center;
	width:  clamp(24px, 7.6vw, 78px);
	height: clamp(27px, 8.4vw, 86px);
	border-radius: clamp(5px, 1.4vw, 14px);
	background: var(--face);
	color: var(--letter);
	font-size: clamp(14px, 4.4vw, 46px);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	box-shadow:
		0 clamp(3px, .55vw, 6px) 0 var(--edge),
		0 14px 26px rgba(0, 0, 0, .45),
		inset 0 2px 0 rgba(255, 255, 255, .9);
	animation: drop .62s cubic-bezier(.18, 1.1, .35, 1) both;
	animation-delay: calc(var(--i) * 65ms);
	transition: transform .18s ease;
	cursor: default;
	user-select: none;
}

/* The two letters that turn "strategy" into "strategery". The whole joke of
   the name lives in them, so they get the loud treatment. */
.tile.extra {
	--face:   linear-gradient(170deg, #ff6d85 0%, #e8365a 100%);
	--edge:   #a71f3c;
	--letter: #fff;
}

.slot:hover .tile,
.slot:focus-within .tile { transform: translateY(-7px) rotate(-3deg); }

.tile.nudge { animation: wobble .5s ease; }

/* ── Headline ── */

.soon {
	margin: 0;
	font-size: clamp(46px, 15vw, 148px);
	font-weight: 900;
	line-height: .88;
	letter-spacing: -.035em;
	text-transform: uppercase;
	color: var(--porcelain);
	background: linear-gradient(96deg, var(--teal) 0%, #b9c6ff 42%, var(--violet) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: rise .8s cubic-bezier(.2, .8, .3, 1) .78s both;
}

.soon span { display: block; }

.tagline {
	margin: 0;
	max-width: 30ch;
	font-size: clamp(16px, 2.5vw, 24px);
	font-weight: 600;
	line-height: 1.4;
	color: var(--muted);
	animation: rise .8s cubic-bezier(.2, .8, .3, 1) 1.15s both;
}

.tagline b {
	color: var(--coral);
	font-weight: 800;
}

.caption {
	margin: -8px 0 0;
	font-size: clamp(11px, 1.6vw, 13px);
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--muted);
	animation: rise .8s cubic-bezier(.2, .8, .3, 1) .6s both;
}

.caption .pip {
	color: var(--coral);
	font-weight: 800;
}

/* ── Countdown ── */

.countdown {
	display: flex;
	gap: clamp(8px, 2.2vw, 20px);
	margin: -4px 0 0;
	animation: rise .8s cubic-bezier(.2, .8, .3, 1) .9s both;
}

.countdown .unit {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: clamp(64px, 12vw, 104px);
	padding: clamp(10px, 1.8vw, 16px) clamp(8px, 1.4vw, 14px);
	border-radius: 14px;
	background: var(--ink-2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px rgba(0, 0, 0, .35);
}

.countdown .num {
	font-size: clamp(28px, 6.4vw, 58px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
	color: var(--teal);
}

.countdown .lbl {
	font-size: clamp(10px, 1.3vw, 12px);
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}

.when {
	margin: -6px 0 0;
	font-size: clamp(13px, 1.9vw, 17px);
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--porcelain);
	animation: rise .8s cubic-bezier(.2, .8, .3, 1) 1.02s both;
}

/* ── Footer ── */

footer {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	padding: 0 20px 26px;
	text-align: center;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(154, 165, 209, .65);
	animation: rise .8s ease 1.2s both;
}

/* ── Motion ── */

@keyframes drop {
	from { opacity: 0; transform: translateY(-90px) rotate(-9deg) scale(.86); }
	to   { opacity: 1; transform: none; }
}

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

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

@keyframes morph {
	0%   { border-radius: 58% 42% 55% 45% / 47% 55% 45% 53%; }
	50%  { border-radius: 42% 58% 45% 55% / 55% 45% 58% 42%; }
	100% { border-radius: 50% 50% 60% 40% / 40% 60% 45% 55%; }
}
@keyframes drift {
	from { transform: translate(0, 0) rotate(0); }
	to   { transform: translate(40px, 30px) rotate(20deg); }
}

@keyframes wobble {
	0%, 100% { transform: rotate(0) translateY(0); }
	25%      { transform: rotate(-8deg) translateY(-10px); }
	60%      { transform: rotate(6deg)  translateY(-3px); }
}

@media (max-width: 360px) {
	main { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ── Utility pages (verify, reset) ── */

.card-main { justify-content: center; }

.card {
	width: min(440px, 100%);
	padding: clamp(24px, 5vw, 40px);
	border-radius: 18px;
	background: rgba(19, 26, 56, .85);
	border: 1px solid rgba(154, 165, 209, .18);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	text-align: left;
	animation: rise .6s cubic-bezier(.2, .8, .3, 1) both;
}

.card h1 { margin: 0 0 8px; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.card p  { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }
.card p.ok  { color: var(--teal); font-weight: 700; }
.card p.bad { color: var(--coral); font-weight: 700; }

.card label { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card input[type=password], .card input[type=text], .card input[type=email] {
	width: 100%; padding: 12px 14px; border-radius: 10px;
	border: 1px solid rgba(154, 165, 209, .3); background: var(--ink); color: var(--porcelain);
	font: inherit; font-size: 16px;
}
.card input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.card button {
	margin-top: 20px; width: 100%; padding: 13px; border: 0; border-radius: 10px;
	background: var(--teal); color: var(--ink); font: inherit; font-weight: 900; font-size: 16px; cursor: pointer;
}
.card button:hover { filter: brightness(1.08); }
