:root {
	--bg: #0b0e14;
	--text: #eef1f6;
	--text-dim: #9aa3b2;
	--accent: #6ea8ff;
	--accent-rgb: 110, 168, 255;
	--card: rgba(255, 255, 255, 0.04);
	--card-border: rgba(255, 255, 255, 0.09);
	--card-hover: rgba(255, 255, 255, 0.08);
	--glow-1: #1c3a6e;
	--glow-2: #143024;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

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

body {
	background: var(--bg);
	color: var(--text);
	font-family: "Inter", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
	pointer-events: none;
}

.sport-golf {
	--accent: #4ade80;
	--accent-rgb: 74, 222, 128;
	--glow-1: #1a4a32;
	--glow-2: #0f2830;
}

.sport-beach {
	--accent: #fbbf24;
	--accent-rgb: 251, 191, 36;
	--glow-1: #4a3014;
	--glow-2: #2a1810;
}

.bg-glow {
	position: fixed;
	z-index: 0;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.35;
	pointer-events: none;
}

/* Ambient light that eases toward the cursor (added/animated by inline JS). */
.cursor-glow {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 60%);
	mix-blend-mode: screen;
	filter: blur(10px);
	will-change: transform;
}

.bg-glow-1 {
	width: 55vw;
	height: 55vw;
	background: var(--glow-1);
	top: -20vw;
	right: -15vw;
}

.bg-glow-2 {
	width: 45vw;
	height: 45vw;
	background: var(--glow-2);
	bottom: -20vw;
	left: -12vw;
}

.page {
	position: relative;
	z-index: 2;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	padding: clamp(1.25rem, 3vh, 2.5rem) clamp(1.25rem, 5vw, 4rem);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.brand-link {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: inherit;
	text-decoration: none;
}

.brand-link:hover .brand-name {
	color: var(--accent);
}

.page--sub {
	flex: 1;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 0.55rem;
	overflow: hidden;
	flex-shrink: 0;
}

.brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.brand-name {
	font-family: "Sora", sans-serif;
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.01em;
}

.showcase {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
	max-width: 72rem;
	width: 100%;
	margin: 0 auto;
}

.phone {
	position: relative;
	justify-self: center;
	width: clamp(220px, 26vw, 300px);
	padding: 0.5rem;
	border-radius: 2.7rem;
	background:
		linear-gradient(145deg, #54565f 0%, #2b2d35 26%, #17181e 62%, #0d0e12 100%);
	box-shadow:
		0 2px 3px rgba(0, 0, 0, 0.6),
		0 30px 70px -18px rgba(0, 0, 0, 0.78),
		0 12px 26px -14px rgba(0, 0, 0, 0.65),
		inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
		inset 0 -2px 4px rgba(0, 0, 0, 0.65),
		inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	transform: perspective(1100px) rotateX(0deg) rotateY(0deg);
	transform-style: preserve-3d;
	will-change: transform;
}

/* Titanium side buttons (volume rocker left, power right). */
.phone::before,
.phone::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 3px;
	border-radius: 2px 0 0 2px;
	background: linear-gradient(270deg, #3a3c44, #1a1b21);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.phone::before {
	left: -2px;
	top: 23%;
	height: 92px;
	border-radius: 0 2px 2px 0;
	background: linear-gradient(90deg, #3a3c44, #1a1b21);
}

.phone::after {
	right: -2px;
	top: 30%;
	height: 62px;
}

.phone-screen {
	position: relative;
	aspect-ratio: 9 / 19.5;
	border-radius: 2.2rem;
	overflow: hidden;
	background: #05070b;
	box-shadow:
		inset 0 0 0 2px #000,
		inset 0 0 0 3px rgba(255, 255, 255, 0.04);
}

/* Dynamic-island pill with a faint camera lens. */
.phone-screen::before {
	content: "";
	position: absolute;
	z-index: 3;
	top: 1.4%;
	left: 50%;
	transform: translateX(-50%);
	width: 32%;
	height: 3.2%;
	min-height: 13px;
	border-radius: 999px;
	background:
		radial-gradient(circle at 78% 50%, #11151d 0 22%, transparent 26%),
		#000;
}

/* Cursor-tracking glass specular highlight. */
.phone-screen::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	background:
		radial-gradient(58% 48% at var(--sheen-x, 28%) var(--sheen-y, 10%), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 32%);
	mix-blend-mode: screen;
	opacity: 0.55;
}

.phone-media {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Branded loading screen shown before the hero video paints. */
.phone-splash {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.95rem;
	background:
		radial-gradient(125% 75% at 50% 30%, rgba(var(--accent-rgb), 0.22), transparent 60%),
		linear-gradient(180deg, #0e131b 0%, #070a0f 100%);
}

.phone-splash-logo {
	width: 4.2rem;
	height: 4.2rem;
	border-radius: 1.15rem;
	overflow: hidden;
	display: grid;
	place-items: center;
	box-shadow:
		0 10px 30px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.06);
	animation: splash-breathe 2.4s ease-in-out infinite;
}

.phone-splash-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.phone-splash-name {
	font-family: "Sora", sans-serif;
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	color: var(--text);
}

.phone-splash-bar {
	position: relative;
	width: 42%;
	height: 3px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.1);
}

.phone-splash-bar::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 40%;
	border-radius: inherit;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	animation: splash-slide 1.4s ease-in-out infinite;
}

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

@keyframes splash-breathe {
	0%, 100% { transform: scale(1); opacity: 0.95; }
	50% { transform: scale(1.04); opacity: 1; }
}

.copy h1 {
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: clamp(1.75rem, 4.2vw, 3rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.copy .accent {
	color: var(--accent);
}

.body-text {
	margin-top: clamp(1rem, 2.5vh, 1.5rem);
	color: var(--text-dim);
	font-size: clamp(0.9rem, 1.3vw, 1.05rem);
	line-height: 1.65;
	max-width: 34rem;
}

.body-text + .body-text {
	margin-top: 0.85rem;
}

.store-links {
	margin-top: clamp(1.5rem, 3vh, 2rem);
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.store-btn {
	position: relative;
	z-index: 0;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.75rem 1.1rem;
	border: 1px solid var(--card-border);
	border-radius: 0.75rem;
	background: var(--card);
	color: var(--text);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Cursor-tracking spotlight (position fed by inline JS), painted behind text. */
.store-btn::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: var(--mx, 50%);
	top: var(--my, 50%);
	width: 150px;
	height: 150px;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(var(--accent-rgb), 0.5), transparent 60%);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.store-btn:hover {
	background: var(--card-hover);
	border-color: rgba(255, 255, 255, 0.18);
	transform: translateY(-1px);
}

.store-btn:hover::after {
	opacity: 0.4;
}

.store-btn-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.footer {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: clamp(1.5rem, 4vh, 2.5rem);
	color: var(--text-dim);
	font-size: 0.85rem;
}

.footer-link {
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 1px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-link:hover {
	border-color: var(--accent);
	color: var(--text);
}

.dot {
	opacity: 0.5;
}

@media (max-width: 820px) {
	.showcase {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.phone {
		order: -1;
	}

	.body-text {
		margin-left: auto;
		margin-right: auto;
	}

	.store-links {
		justify-content: center;
	}
}

@media (max-height: 700px) and (min-width: 821px) {
	.phone {
		width: clamp(200px, 22vw, 260px);
	}

	.copy h1 {
		font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	}
}

a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.phone-splash-logo,
	.phone-splash-bar::after {
		animation: none;
	}
}
