@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
	--page-bg: #ffffff;
	--panel-bg: #ffffff;
	--panel-border: rgba(24, 52, 47, 0.12);
	--text-primary: #173634;
	--accent: #1f6661;
	--accent-strong: #143d3a;
	--shadow-soft: 0 10px 28px rgba(24, 52, 47, 0.08);
	--shadow-strong: 0 30px 90px rgba(11, 28, 28, 0.22);
	--device-width: min(88vw, 418px);
	--device-ratio: 2.09;
	--device-radius: 56px;
	--screen-top: 14px;
	--screen-side: 14px;
	--screen-bottom: 14px;
	--screen-radius: 44px;
	--device-body: linear-gradient(145deg, #d8d4cf 0%, #6a6965 14%, #15171a 54%, #4a4947 100%);
	--device-frame-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
	--device-button-color: linear-gradient(180deg, #6e6c6a 0%, #27292d 100%);
	--cutout-width: 122px;
	--cutout-height: 30px;
	--cutout-top: 18px;
	--cutout-radius: 999px;
	--cutout-left: 50%;
	--cutout-transform: translateX(-50%);
	--reflection-opacity: 0.55;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: 'Manrope', sans-serif;
	color: var(--text-primary);
	background: var(--page-bg);
	overflow-x: hidden;
}

body[data-device='android'] {
	--device-width: min(88vw, 424px);
	--device-ratio: 2.16;
	--device-radius: 50px;
	--screen-top: 13px;
	--screen-side: 13px;
	--screen-bottom: 13px;
	--screen-radius: 38px;
	--device-body: linear-gradient(145deg, #f6f4ef 0%, #d7d2cb 16%, #86827d 42%, #313338 100%);
	--device-button-color: linear-gradient(180deg, #b7b3ad 0%, #5c5c60 100%);
	--cutout-width: 16px;
	--cutout-height: 16px;
	--cutout-top: 22px;
	--cutout-radius: 999px;
	--cutout-left: 50%;
	--cutout-transform: translateX(-50%);
	--reflection-opacity: 0.38;
}

.phone-demo {
	position: relative;
	z-index: 1;
	width: min(100%);
	/* margin: 0 auto; */
	padding: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 24px;
}

.phone-demo__controls {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.device-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	min-width: 140px;
	min-height: 52px;
	border: 1px solid var(--panel-border);
	border-radius: 999px;
	background: var(--panel-bg);
	box-shadow: var(--shadow-soft);
	color: var(--text-primary);
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
	text-align: center;
	font: inherit;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1rem;
	font-weight: 700;
}

.device-button:hover,
.device-button:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(31, 102, 97, 0.24);
	box-shadow: 0 26px 52px rgba(20, 61, 58, 0.16);
	outline: none;
}

.device-button.is-active {
	background: linear-gradient(145deg, rgba(22, 59, 57, 0.95), rgba(31, 102, 97, 0.92));
	color: #f7faf9;
	border-color: transparent;
	box-shadow: 0 30px 65px rgba(20, 61, 58, 0.3);
}

.device-button--secondary {
	background: #eef7f6;
	color: var(--accent-strong);
	border-color: rgba(31, 102, 97, 0.2);
}

.phone-demo__preview-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: calc(100vh - 116px);
	position: relative;
}

.phone-preview {
	position: relative;
	width: var(--device-width);
	height: calc(var(--device-width) * var(--device-ratio));
	filter: drop-shadow(0 40px 80px rgba(8, 16, 17, 0.28));
	transform: none;
	transition: transform 220ms ease, filter 220ms ease;
	z-index: 1;
}

.phone-preview:hover {
	transform: translateY(-4px);
	filter: drop-shadow(0 48px 95px rgba(8, 16, 17, 0.3));
}

body[data-device='iphone'] .phone-preview::after {
	content: '';
	position: absolute;
	top: 194px;
	right: -4px;
	width: 4px;
	height: 112px;
	border-radius: 0 999px 999px 0;
	background: var(--device-button-color);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
	z-index: 0;
}

.phone-preview__frame {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 10px;
	border-radius: var(--device-radius);
	background: var(--device-body);
	box-shadow: var(--device-frame-shadow), var(--shadow-strong);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.15);
	transform: translateZ(0);
}

.phone-preview__frame::before {
	content: '';
	position: absolute;
	inset: 7px;
	border-radius: calc(var(--device-radius) - 7px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	pointer-events: none;
	z-index: 4;
}

.phone-preview__screen {
	position: absolute;
	top: var(--screen-top);
	right: var(--screen-side);
	bottom: var(--screen-bottom);
	left: var(--screen-side);
	border-radius: var(--screen-radius);
	overflow: hidden;
	background: #020304;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
	z-index: 1;
}

.phone-preview__screen iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #ffffff;
	border-radius: inherit;
}

.phone-preview__cutout {
	position: absolute;
	top: var(--cutout-top);
	left: var(--cutout-left);
	width: var(--cutout-width);
	height: var(--cutout-height);
	transform: var(--cutout-transform);
	border-radius: var(--cutout-radius);
	background: #030405;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	z-index: 3;
	pointer-events: none;
}

body[data-device='android'] .phone-preview__cutout {
	box-shadow: 0 0 0 4px #050708;
	background: #121416;
}

.phone-preview__reflection {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.03) 28%, transparent 56%);
	opacity: var(--reflection-opacity);
	pointer-events: none;
	z-index: 2;
	mix-blend-mode: screen;
}

.phone-preview__button {
	position: absolute;
	left: -4px;
	width: 4px;
	border-radius: 999px 0 0 999px;
	background: var(--device-button-color);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
	z-index: 0;
}

.phone-preview__button--top {
	top: 148px;
	height: 52px;
}

.phone-preview__button--mid {
	top: 226px;
	height: 84px;
}

.phone-preview__button--low {
	top: 330px;
	height: 84px;
}

body[data-device='android'] .phone-preview__button {
	left: auto;
	right: -4px;
	border-radius: 0 999px 999px 0;
}

body[data-device='android'] .phone-preview__button--top {
	top: 194px;
	height: 98px;
}

body[data-device='android'] .phone-preview__button--mid,
body[data-device='android'] .phone-preview__button--low {
	display: none;
}

@media (max-width: 1080px) {
	.phone-demo__preview-wrap {
		min-height: auto;
		padding: 8px 0 0;
	}
	}

@media (max-width: 720px) {
	.phone-demo {
		width: min(100%, calc(100% - 20px));
		padding: 20px 0 28px;
	}

	.device-button {
		min-width: 128px;
	}

	.phone-preview {
		transform: none;
	}

	.phone-preview:hover {
		transform: translateY(-2px);
	}
	}

@media (max-width: 480px) {
	.phone-demo {
		width: min(100%, calc(100% - 16px));
	}

	.phone-demo__controls {
		gap: 10px;
	}
	}