/* 
Mouse Bound Web v1.0
Authored by Jake Caputo
*/

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

:root {
	--brand-start: #1e59cf;
	--brand-end: #1e6ecf;
	--surface: rgba(255, 255, 255, 0.08);
	--surface-border: rgba(255, 255, 255, 0.12);
	--text-muted: rgba(255, 255, 255, 0.7);
}

html { scroll-behavior: smooth; }

body {
	background: #F2F5FB;
	color: white;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
}

/* Blue top section */
.blue-cover {
	background: linear-gradient(180deg, #1e59cf 0%, #1e6ecf 100%);
}

/* Hero */
.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem 1.5rem;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: -20%;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
	pointer-events: none;
}

.logo-wrap {
	position: relative;
	display: inline-block;
	margin-bottom: 1.5rem;
}

.logo-svg {
	width: 100%;
	max-width: 280px;
	height: auto;
	filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
	position: relative;
}

.logo-twinkle {
	position: absolute;
	color: #fff;
	font-size: var(--size, 14px);
	opacity: 0;
	pointer-events: none;
	animation: twinkle var(--duration) var(--delay) ease-in-out infinite;
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 215, 0, 0.4);
}

@keyframes twinkle {
	0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
	15% { opacity: 1; transform: scale(1) rotate(15deg); }
	30% { opacity: 0.8; transform: scale(0.7) rotate(-10deg); }
	45% { opacity: 1; transform: scale(1.1) rotate(10deg); }
	60% { opacity: 0.6; transform: scale(0.5) rotate(-5deg); }
	75% { opacity: 0; transform: scale(0.2) rotate(0deg); }
}

.hero h1 {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: 300;
	letter-spacing: 1px;
	margin-bottom: 0.75rem;
	position: relative;
	line-height: 1.9rem;
}

h2 {
	line-height: 1.9rem;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #1a2a4a;
	text-align: center;
}

.hero .subtitle {
	color: var(--text-muted);
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	font-weight: 300;
	max-width: 500px;
	margin-bottom: 2.5rem;
	position: relative;
}

.app-store-badge {
	display: inline-block;
	position: relative;
	transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
	transform: scale(1.05);
	opacity: 0.9;
}

.app-store-badge img {
	height: 54px;
	width: auto;
}

/* Pixie Dust */
.pixie-dust-wrap {
	position: relative;
	display: inline-block;
}

.pixie-dust-container {
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
	height: 90px;
	pointer-events: none;
	overflow: visible;
}

.pixie-sparkle,
.pixie-dot {
	position: absolute;
	top: 0;
	opacity: 0;
	will-change: transform, opacity;
}

.pixie-sparkle {
	color: #FFD700;
	font-size: 10px;
	text-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
	animation: sparkle-fall var(--duration) var(--delay) ease-in infinite;
}

.pixie-dot {
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	background: var(--color);
	box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
	animation: dot-fall var(--duration) var(--delay) ease-in infinite;
}

@keyframes sparkle-fall {
	0% { opacity: 0; transform: translateY(0) scale(0.3); }
	10% { opacity: 1; transform: translateY(4px) scale(1); }
	25% { opacity: 1; transform: translateY(18px) scale(0.6); }
	40% { opacity: 0.9; transform: translateY(32px) scale(1); }
	55% { opacity: 0.7; transform: translateY(46px) scale(0.6); }
	70% { opacity: 0.4; transform: translateY(58px) scale(0.9); }
	85% { opacity: 0.15; transform: translateY(68px) scale(0.5); }
	100% { opacity: 0; transform: translateY(78px) scale(0.3); }
}

@keyframes dot-fall {
	0% { opacity: 0; transform: translateY(0) scale(0.5); }
	8% { opacity: 1; transform: translateY(6px) scale(1); }
	20% { opacity: 1; transform: translateY(16px) scale(0.3); }
	35% { opacity: 0.9; transform: translateY(30px) scale(1); }
	50% { opacity: 0.7; transform: translateY(44px) scale(0.3); }
	65% { opacity: 0.4; transform: translateY(58px) scale(0.8); }
	80% { opacity: 0.15; transform: translateY(72px) scale(0.3); }
	100% { opacity: 0; transform: translateY(85px) scale(0.2); }
}

.scroll-hint {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	color: var(--text-muted);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	animation: bounce 2s ease infinite;
}

@keyframes bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(8px); }
}

/* Phone Showcase */
.phone-showcase {
	padding: 8rem 1.5rem 0;
	max-width: 900px;
	margin: 0 auto;
}

	.spacer {
		height: 8rem;
	}

.phone-row {
	display: flex;
	justify-content: center;
	gap: 10px;
	align-items: flex-start;
}

.phone-frame {
	position: relative;
	width: 220px;
	overflow: hidden;
	flex-shrink: 0;
	transition: top 0.25s ease-in-out;
	top: 0;
}

/* Base offset for middle phone handled by data-base-offset + parallax script */

.phone-frame img {
	width: 100%;
}

.phone-notch {
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 22px;
	background: #0a0a0a;
	border-radius: 0 0 14px 14px;
	z-index: 2;
}

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

.phone-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.25);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

/* Hide placeholder when image loads */
.phone-screen[src]:not([src=""]) ~ .phone-placeholder {
	display: none;
}

@media (max-width: 720px) {
	.phone-row { gap: 1rem; }
	.phone-frame { width: 160px; border-radius: 24px; border-width: 3px; }
	.phone-notch { width: 60px; height: 16px; border-radius: 0 0 10px 10px; top: 6px; }
}

@media (max-width: 520px) {
	.phone-showcase { overflow: hidden; padding: 5rem 0 3rem;}
	.phone-row { gap: 1rem; }
	.phone-frame { width: 150px; transform: none !important; }
}

@media (max-width: 480px) {
	.phone-row { transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); touch-action: pan-y; }
	.phone-row.dragging { transition: none; }
	.phone-frame { width: 220px; transform: none !important; }
}

/* Features */
.features {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.5rem 6rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem 2rem;
}

.feature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	position: relative;
}

.feature-icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	z-index: 2;
}

	.feature-icon:before {
		z-index: 1;
		content: "";
		height: 2px;
		width: 100%;
		display: block;
		background-color: #dae2f4;
		position: absolute;
		top:25px;
	}
	
	.feature-icon:after {
		content: "";
		display: block;
		position: absolute;
		width: 52px;
		height: 52px;
		background: #e2e9f6;
		border: 2px solid #dae2f4;
		border-radius: 26px;
		z-index: 2;
	}

.feature-icon img {
	width: 24px;
	height: 24px;
	position: relative;
	z-index: 3;
}

.feature h3 {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 0.35rem;
	color: #1a2a4a;
}

.feature p {
	color: #4a5568;
	font-size: 0.95rem;
}

.feature .tag {
	display: inline-flex;
	align-items: center;
	height: 20px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: #dae2f4;
	color: #1e59cf;
	padding: 0 0.6rem;
	border-radius: 4px;
	margin-left: 0.5rem;
	vertical-align: middle;
	position: relative;
	top: -2px;
}

/* Feature Comparison */
.comparison {
	max-width: 750px;
	margin: 0 auto;
	padding: 0 1.5rem 8rem;
}

.comparison > p {
	color: #4a5568;
	font-size: 0.9rem;
	text-align: center;
	margin-bottom: 2rem;
}

.comparison-table {
	width: 100%;
	border-collapse: collapse;
	max-width: 640px;
	margin: auto;
}

.comparison-table thead th {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0 0 0.75rem;
	border-bottom: 2px solid rgba(30, 89, 207, 0.15);
}

.comparison-table thead th:first-child {
	text-align: left;
	color: #4a5568;
}

.comparison-table thead th:nth-child(2),
.comparison-table thead th:nth-child(3) {
	text-align: center;
	width: 90px;
}

.comparison-table .col-free {
	color: #4a5568;
}

.comparison-table .col-deluxe {
	color: #1e59cf;
}

.comparison-table tbody td {
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba(30, 89, 207, 0.2);
	font-size: 0.85rem;
	color: #1a2a4a;
}

.comparison-table tbody td:first-child {
	padding-right: 1rem;
}

.comparison-table tbody td:nth-child(2),
.comparison-table tbody td:nth-child(3) {
	text-align: center;
}

.comparison-table .check {
	color: #1e59cf;
	font-weight: 700;
	font-size: 1.1rem;
}

.comparison-table .dash {
	color: #c0c8d4;
	font-size: 1rem;
}

.comparison-table .limit {
	color: #8a94a6;
	font-size: 0.75rem;
	font-weight: 500;
}

.comparison-cta {
	text-align: center;
	margin-top: 1.5rem;
}

.comparison-cta a {
	display: inline-block;
	background: #1e59cf;
	color: white;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.6rem 1.75rem;
	border-radius: 24px;
	transition: background 0.2s, transform 0.2s;
}

.comparison-cta a:hover {
	background: #1a4fba;
	transform: translateY(-1px);
}

@media (max-width: 480px) {
	.comparison-table tbody td { font-size: 0.8rem; }
	.comparison-table thead th:nth-child(2),
	.comparison-table thead th:nth-child(3) { width: 70px; }
}

/* Resort Section */
.resort-section {
	text-align: center;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem 2rem;
}

.resort-section p {
	color: #4a5568;
	font-size: 0.9rem;
	margin-bottom: 1.25rem;
}

.resort-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	padding: 20px 0;
}

.resort-pill {
	background: rgba(30, 89, 207, 0.08);
	border: 1px solid rgba(30, 89, 207, 0.15);
	border-radius: 20px;
	padding: 0.3rem 0.8rem;
	font-size: 0.7rem;
	color: #4a5568;
	white-space: nowrap;
	transition: all .2s linear;
	top:0;
	position: relative;
}

	.resort-pill:hover {
		color: #211d22;
		top: -2px;
		border-color: #1e59cf;
	}

/* Resort Photo Cloud */
.resort-cloud {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: auto auto;
	gap: 1rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.resort-cloud-item {
	position: relative;
	will-change: transform;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.resort-cloud-item:after {
	content:"";
	height: 100%;
	width: 100%;
	z-index: 2;
	position: absolute;
	transition: all .1s linear;
	border: 0px solid #1e59cf;
	top: 0;
	left: 0;
	border-radius: 14px;
}

	.resort-cloud-item:hover:after {
		border-width: 5px;
	}

.resort-cloud-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 3 / 2;
}

.resort-cloud-item span {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 0.75rem;
	font-weight: 600;
	color: white;
	background: rgba(0, 0, 0, 0.75);
	padding: 3px 10px;
	border-radius: 6px;
	white-space: nowrap;
}

@media (max-width: 700px) {
	.resort-cloud {
		grid-template-columns: repeat(2, 1fr);
	}
	.resort-cloud-item span {
		font-size: 0.65rem;
		padding: 2px 7px;
	}
}

/* CTA */
.cta {
	text-align: center;
	padding: 4rem 1.5rem 3rem;
}

.cta h2 {
	font-size: 1.75rem;
}

.cta p {
	color: #4a5568;
	margin-bottom: 2rem;
}

/* Footer */
.footer {
	text-align: center;
	padding: 3rem 1.5rem 2.5rem;
	border-top: 1px solid rgba(30, 89, 207, 0.1);
	max-width: 600px;
	margin: 0 auto;
}

.footer-links {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	margin-bottom: 1rem;
}

.footer-links a {
	color: #4a5568;
	text-decoration: none;
	font-size: 0.85rem;
	transition: color 0.2s;
}
.footer-links a:hover { color: #1e59cf; }

.footer .copy {
	color: #8a94a6;
	font-size: 0.75rem;
}

.footer .disclaimer {
	color: #a0a8b8;
	font-size: 0.7rem;
	margin-top: 1rem;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.features { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 480px) {
	.features { grid-template-columns: 1fr; }
	.feature { flex-direction: row; align-items: stretch; gap: 0; border-radius: 8px; background: white; border: 2px solid #dae2f4;}
	.feature-icon { width: 20px; height: 1.9rem; padding: 0; border-radius: 0; align-items: flex-start; margin: .75rem 0 0 .75rem; position: absolute;}
	.feature-icon:before, .feature-icon:after { display: none; }
	.feature-icon img { width: 20px; height: 20px; margin: auto; }
	.feature-desc {  padding: 0.75rem; flex: 1; }
	.feature-desc h3 {  padding-left: 30px; line-height: 1.9rem}
	.feature .tag { position: absolute; top: 0; right: 0; border-radius: 0 0 0 4px; }
}
