:root {
	--accent: #e7e9ff;
	--accent-subtle: rgba(231, 233, 255, 0.12);
	--accent-strong: #f5f6ff;
	--text-primary: #f5f5f5;
	--text-secondary: #c2c2c2;
	--text-muted: #7a7a7a;
	--background-primary: #050505;
	--background-secondary: #0b0b0b;
	--surface: #0c0c0c;
	--surface-elevated: #121212;
	--border-subtle: #1e1e1e;
	--border-strong: #2a2a2a;
	--success-green: #32d583;
	--success-green-dark: #1f9a6d;
	--space-footer-y: 26px;
	--space-footer-y-small: 20px;
	--footer-divider-color: #1f1f1f;
}

h1,
h2,
h3,
h4,
h5,
h6,
.main-title,
.how-to-title,
.results-header,
.step-title,
.header-title {
	text-wrap: balance;
}

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

body {
	font-family: "Instrument Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: var(--background-primary);
	color: var(--text-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	position: relative;
}

/* Polar/Resend Style Grid */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px),
		linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
	background-size: 28px 28px;
	opacity: 0.12;
	z-index: -2;
	pointer-events: none;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 35%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 35%, transparent 100%);
}

/* Subtle top glow */
body::after {
	content: "";
	position: fixed;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	width: 760px;
	height: 360px;
	background: radial-gradient(circle, rgba(231, 233, 255, 0.12) 0%, transparent 70%);
	z-index: -1;
	pointer-events: none;
	filter: blur(60px);
}

.page-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

.header {
	padding: 28px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.nav-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nav-logo {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	box-shadow: 0 0 0 1px var(--border-strong);
}

.nav-title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.nav-links {
	display: flex;
	gap: 24px;
	font-size: 14px;
	color: var(--text-secondary);
	font-weight: 500;
}

.nav-links a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.nav-links a:hover {
	color: var(--text-primary);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nav-secondary {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.nav-secondary:hover {
	color: var(--text-primary);
}

.nav-cta {
	background: var(--accent-strong);
	color: #0a0a0a;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.nav-cta:hover {
	opacity: 0.9;
}

.main-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 72px 0 56px;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: 56px;
	align-items: center;
}

.hero-copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hero-eyebrow {
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-secondary);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}
.hero-eyebrow::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	background: var(--accent);
	border-radius: 50%;
}

.main-title {
	font-size: 60px;
	font-weight: 700;
	line-height: 1.03;
	letter-spacing: -0.035em;
	color: var(--text-primary);
}

.subtitle {
	font-size: 18px;
	font-weight: 400;
	color: var(--text-secondary);
	max-width: 560px;
	line-height: 1.7;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
}

.primary-cta {
	background: var(--accent-strong);
	color: #0a0a0a;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 15px;
	transition: all 0.15s ease;
	border: 1px solid transparent;
}

.primary-cta:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.ghost-cta {
	background: transparent;
	border: 1px solid var(--border-strong);
	color: var(--text-primary);
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 12px;
	font-weight: 500;
	font-size: 15px;
	transition: all 0.15s ease;
}

.ghost-cta:hover {
	border-color: var(--text-secondary);
	background: rgba(255,255,255,0.03);
}

.hero-meta {
	font-size: 13px;
	color: var(--text-muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.hero-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.metric-card {
	background: linear-gradient(180deg, rgba(20, 20, 20, 0.85) 0%, rgba(9, 9, 9, 0.95) 100%);
	border: 1px solid var(--border-subtle);
	border-radius: 14px;
	padding: 22px;
	text-align: left;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.metric-title {
	font-size: 20px;
	font-weight: 600;
}

.metric-subtitle {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 6px;
}

#fileInput {
	display: none;
}

.progress-container {
	display: none;
	width: 100%;
	max-width: 480px;
	margin-top: 32px;
	text-align: center;
}

.progress-big-percent {
	font-size: 56px;
	font-weight: 700;
	color: var(--accent-strong);
	line-height: 1;
	margin-bottom: 8px;
	font-variant-numeric: tabular-nums;
	letter-spacing: -2px;
	min-height: 62px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.progress-spinner {
	display: inline-block;
	width: 32px;
	height: 32px;
	border: 3px solid rgba(231, 233, 255, 0.15);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.progress-filename {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 4px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.progress-format {
	font-size: 12px;
	color: var(--primary-blue);
	margin-bottom: 16px;
	font-weight: 500;
	min-height: 16px;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 12px;
	position: relative;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--accent), #a8adff, var(--accent));
	background-size: 200% 100%;
	width: 0;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 4px;
}

.progress-bar.indeterminate .progress-fill {
	width: 100% !important;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.03) 0%,
		rgba(231, 233, 255, 0.2) 40%,
		rgba(231, 233, 255, 0.2) 60%,
		rgba(255, 255, 255, 0.03) 100%
	);
	background-size: 200% 100%;
	animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.progress-details {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 20px;
}

.progress-count {
	font-size: 13px;
	color: var(--text-secondary);
}

.progress-eta {
	font-size: 12px;
	color: var(--text-muted);
	font-variant-numeric: tabular-nums;
}

/* Phase step indicators */
.progress-phases {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: 4px;
}

.progress-phase {
	display: flex;
	align-items: center;
	gap: 6px;
	opacity: 0.35;
	transition: opacity 0.3s ease;
}

.progress-phase.active {
	opacity: 1;
}

.progress-phase.done {
	opacity: 0.6;
}

.phase-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--text-muted);
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.progress-phase.active .phase-dot {
	background: var(--accent);
	box-shadow: 0 0 8px rgba(231, 233, 255, 0.4);
}

.progress-phase.done .phase-dot {
	background: #6ee06e;
}

.phase-label {
	font-size: 12px;
	color: var(--text-muted);
	transition: color 0.3s ease;
}

.progress-phase.active .phase-label {
	color: var(--text-primary);
	font-weight: 500;
}

.progress-phase.done .phase-label {
	color: var(--text-secondary);
}

.results-container {
	display: none;
	width: 100%;
	max-width: 600px;
	margin-top: 32px;
	text-align: left;
}

.results-header {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 16px;
	text-align: center;
}

.results-list {
	list-style: none;
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid var(--border-subtle);
	border-radius: 14px;
	padding: 8px;
}

.result-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	border-bottom: 1px solid var(--border-subtle);
}

.result-item:last-child {
	border-bottom: none;
}

.result-item-name {
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 16px;
}

.copy-button {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--text-primary);
	border: none;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
	flex-shrink: 0;
}

.copy-button:hover {
	background-color: rgba(255, 255, 255, 0.12);
}

.guide-link-container {
	text-align: center;
	margin-bottom: 20px;
}

.guide-link {
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 999px;
	display: inline-block;
	line-height: 1;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	outline: 0;
}

.guide-link-success {
	background: linear-gradient(180deg, var(--success-green) 0%, var(--success-green-dark) 100%);
	color: #f5fffb;
	box-shadow: 0 12px 28px rgba(50, 213, 131, 0.35);
}

.guide-link-success:hover {
	transform: translateY(-1px);
}

.support-section {
	display: none;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border-subtle);
	border-radius: 18px;
	padding: 20px 24px;
	margin: 24px 0;
	text-align: center;
	animation: fadeInUp 0.5s ease-out;
}

.support-section.show {
	display: block;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.support-message {
	font-size: 15px;
	color: var(--text-secondary);
	margin-bottom: 14px;
	line-height: 1.5;
}

.support-message .emoji {
	font-size: 18px;
}

.support-stats {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 16px;
}

.support-contact {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 16px;
}

.support-contact a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid rgba(231, 233, 255, 0.3);
	transition: border-color 0.2s ease;
}

.support-contact a:hover {
	border-color: var(--accent);
}

/* ── Confetti canvas ── */
#confettiCanvas {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 20;
}

/* ── Animated checkmark ── */
.success-checkmark {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.checkmark-svg {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	stroke-width: 2;
	stroke: var(--success-green);
	stroke-miterlimit: 10;
}

.checkmark-circle {
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	stroke: var(--success-green);
	animation: checkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	stroke: var(--success-green);
	stroke-width: 3;
	stroke-linecap: round;
	animation: checkStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes checkStroke {
	100% { stroke-dashoffset: 0; }
}

/* ── Convert Another button ── */
.convert-another-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	padding: 10px 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border-strong);
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
}

.convert-another-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-primary);
	border-color: var(--text-secondary);
}

/* ── Live stats counter ── */
.live-counter {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--text-muted);
	margin-top: 4px;
	font-variant-numeric: tabular-nums;
}

.counter-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--success-green);
	box-shadow: 0 0 6px rgba(50, 213, 131, 0.5);
	animation: counterPulse 2s ease-in-out infinite;
	flex-shrink: 0;
}

@keyframes counterPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.coffee-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.12);
	color: var(--text-primary);
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.coffee-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.coffee-button .coffee-icon {
	font-size: 18px;
}

.trust-strip {
	background: linear-gradient(180deg, rgba(15, 15, 15, 0.9) 0%, rgba(9, 9, 9, 0.95) 100%);
	border: 1px solid var(--border-subtle);
	border-radius: 20px;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.trust-label {
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.trust-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 500;
}

.adapter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.pill {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-strong);
	color: var(--text-primary);
	font-size: 13px;
	font-weight: 600;
}

.code-sample-section {
	max-width: 900px;
	margin: 56px auto 12px;
	padding: 0 32px;
	text-align: center;
}

.code-sample-header {
	margin-bottom: 18px;
}

.code-sample-title {
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 8px;
}

.code-sample-subtitle {
	color: var(--text-secondary);
	font-size: 15px;
}

.code-sample {
	background: var(--surface);
	border: 1px solid var(--border-subtle);
	border-radius: 16px;
	padding: 18px 20px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 14px;
	color: var(--text-primary);
	text-align: left;
	overflow-x: auto;
}

.code-sample-footnote {
	margin-top: 10px;
	font-size: 12px;
	color: var(--text-muted);
}

.testimonial-section {
	max-width: 820px;
	margin: 60px auto 20px;
	padding: 0 20px;
}

.testimonial-card {
	background: linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(10, 10, 10, 0.95) 100%);
	border: 1px solid var(--border-subtle);
	border-radius: 22px;
	padding: 32px;
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.testimonial-quote {
	font-size: 18px;
	line-height: 1.6;
	color: var(--text-primary);
	margin-bottom: 16px;
}

.testimonial-attribution {
	font-size: 13px;
	color: var(--text-muted);
}

.how-to-section {
	width: 100%;
	max-width: 900px;
	margin: 64px auto 12px;
	padding: 0 32px;
}

.how-to-title {
	text-align: center;
	font-size: 30px;
	font-weight: 600;
	margin-bottom: 40px;
}

.steps-timeline {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	padding-top: 20px;
}

.step-item {
	display: flex;
	gap: 32px;
	position: relative;
	padding-bottom: 64px;
}

.step-item:last-child {
	padding-bottom: 0;
}

.step-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	width: 48px;
}

.step-number {
	width: 48px;
	height: 48px;
	background-color: var(--text-primary);
	color: var(--background-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 18px;
	z-index: 2;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.step-line {
	width: 2px;
	background-color: var(--border-subtle);
	flex-grow: 1;
	margin-top: 16px;
	margin-bottom: -16px;
}

.step-item:last-child .step-line {
	display: none;
}

.step-content {
	padding-top: 10px;
	flex-grow: 1;
}

.step-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 12px;
}

.step-list {
	list-style: none;
	padding: 0;
}

.step-list li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 12px;
	color: var(--text-secondary);
	line-height: 1.6;
	font-size: 15px;
}

.step-list li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--text-muted);
	font-weight: 700;
}

.converter-section {
	margin: 12px auto 80px;
	width: 100%;
	max-width: 1050px;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
	align-items: flex-start;
}

.upload-card {
	background: linear-gradient(180deg, rgba(17, 17, 17, 0.95) 0%, rgba(9, 9, 9, 0.98) 100%);
	border-radius: 18px;
	padding: 36px;
	border: 1px solid var(--border-subtle);
	text-align: left;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	position: relative;
	overflow: visible;
}

.upload-card:hover {
	border-color: var(--border-strong);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.upload-header {
	margin-bottom: 24px;
}

.upload-header h3 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--text-primary);
}

.upload-header p {
	font-size: 13px;
	color: var(--text-muted);
}

.upload-area {
	border: 1px dashed var(--border-strong);
	border-radius: 14px;
	padding: 52px 24px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	background: var(--background-secondary);
}

.upload-area:hover,
.upload-area.drag-active {
	border-color: var(--text-secondary);
	background: var(--surface-elevated);
}

.upload-icon-large {
	width: 48px;
	height: 48px;
	color: var(--text-muted);
	margin-bottom: 16px;
}

.upload-text {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.upload-subtext {
	font-size: 12px;
	color: var(--text-muted);
}

.faq-section {
	max-width: 800px;
	margin: 80px auto;
	padding: 0 20px;
}

.faq-list {
	border-top: 1px solid var(--border-subtle);
}

.faq-item {
	border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
	padding: 24px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: var(--text-primary);
	text-align: left;
	background: none;
	border: none;
	width: 100%;
}

.faq-question:hover {
	color: var(--accent);
}

.faq-chevron {
	width: 20px;
	height: 20px;
	color: var(--text-muted);
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 16px;
}

.faq-item.active .faq-chevron {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	color: var(--text-secondary);
	line-height: 1.6;
	font-size: 15px;
}

.faq-answer p {
	padding-bottom: 24px;
}

.faq-item.active .faq-answer {
	max-height: 300px;
}

.device-grid-section {
	text-align: center;
	padding: 90px 20px;
	background-color: var(--background-secondary);
	margin-top: 60px;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	border-top: 1px solid var(--border-subtle);
	border-bottom: 1px solid var(--border-subtle);
}

.app-store-section {
	margin: 84px 0;
	padding: 90px 24px;
	border-radius: 28px;
	background: radial-gradient(circle at top, rgba(231, 233, 255, 0.16), transparent 55%),
		linear-gradient(180deg, rgba(16, 16, 16, 0.96) 0%, rgba(8, 8, 8, 0.98) 100%);
	border: 1px solid var(--border-subtle);
	box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

.app-store-inner {
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
}

.app-store-title {
	font-size: 38px;
	font-weight: 650;
	margin-bottom: 14px;
}

.app-store-subtitle {
	font-size: 17px;
	color: var(--text-secondary);
	max-width: 680px;
	margin: 0 auto 36px;
	line-height: 1.6;
}

.app-store-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.app-store-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 28px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-store-button.primary {
	background: var(--accent-strong);
	color: #0b0b0f;
	box-shadow: 0 12px 26px rgba(231, 233, 255, 0.2);
}

.app-store-button.secondary {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text-primary);
	border: 1px solid var(--border-strong);
}

.app-store-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	max-width: 820px;
	margin: 0 auto;
}

.app-store-card {
	padding: 22px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 16px;
	border: 1px solid var(--border-subtle);
	backdrop-filter: blur(10px);
}

.app-store-card-title {
	font-weight: 600;
	margin-bottom: 6px;
}

.app-store-card-desc {
	font-size: 13px;
	color: var(--text-muted);
}

.device-grid-title {
	font-size: 40px;
	font-weight: 600;
	margin-bottom: 16px;
}

.device-grid-subtitle {
	font-size: 17px;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto 56px;
	line-height: 1.5;
}

.device-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 40px 24px;
	max-width: 900px;
	margin: 0 auto;
	justify-items: center;
	justify-content: center;
}

.device-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.2s ease;
}

.device-item:hover {
	transform: translateY(-4px);
}

.device-icon-circle {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background-color: var(--surface-elevated);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	overflow: hidden;
	border: 1px solid var(--border-subtle);
}

.device-icon-circle svg {
	width: 40px;
	height: 40px;
	color: var(--text-primary);
}

.device-name {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
}

.device-version {
	font-size: 12px;
	color: var(--text-muted);
}

.drag-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 12, 15, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.drag-overlay.active {
	opacity: 1;
	pointer-events: all;
}

.drag-content {
	transform: scale(0.9);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	text-align: center;
}

.drag-overlay.active .drag-content {
	transform: scale(1);
}

.drag-icon {
	width: 80px;
	height: 80px;
	color: var(--accent);
	margin-bottom: 24px;
}

.drag-title {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 8px;
}

.drag-subtitle {
	font-size: 16px;
	color: var(--text-secondary);
}

.reveal-on-scroll {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.device-item {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.device-grid.is-visible .device-item {
	opacity: 1;
	transform: translateY(0);
}

.device-grid.is-visible .device-item:nth-child(1) {
	transition-delay: 0.1s;
}

.device-grid.is-visible .device-item:nth-child(2) {
	transition-delay: 0.2s;
}

.device-grid.is-visible .device-item:nth-child(3) {
	transition-delay: 0.3s;
}

.device-grid.is-visible .device-item:nth-child(4) {
	transition-delay: 0.4s;
}

.device-grid.is-visible .device-item:nth-child(5) {
	transition-delay: 0.5s;
}

.features-section {
	max-width: 1000px;
	margin: 80px auto;
	padding: 0 20px;
	text-align: center;
}

.features-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	margin-top: 40px;
}

.feature-card {
	background: linear-gradient(180deg, rgba(17, 17, 17, 0.95) 0%, rgba(9, 9, 9, 0.98) 100%);
	border-radius: 20px;
	padding: 32px 26px;
	text-align: left;
	transition: transform 0.2s ease;
	flex: 1;
	min-width: 280px;
	max-width: 400px;
	border: 1px solid var(--border-subtle);
}

.feature-card:hover {
	transform: translateY(-4px);
}

.feature-icon {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	color: var(--accent);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.feature-icon svg {
	width: 24px;
	height: 24px;
}

.feature-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 12px;
}

.feature-desc {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
}

.cta-section {
	background: radial-gradient(circle at top, rgba(231, 233, 255, 0.14), transparent 55%),
		linear-gradient(180deg, rgba(18, 18, 18, 0.95) 0%, rgba(8, 8, 8, 0.98) 100%);
	padding: 96px 20px;
	text-align: center;
	color: #fff;
	margin-top: 80px;
	border-radius: 28px;
	margin-left: 20px;
	margin-right: 20px;
	border: 1px solid var(--border-subtle);
}

.cta-content {
	max-width: 800px;
	margin: 0 auto;
}

.cta-title {
	font-size: 42px;
	font-weight: 650;
	margin-bottom: 24px;
	color: #fff;
	letter-spacing: -0.02em;
}

.cta-description {
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 40px;
	opacity: 0.85;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	font-weight: 400;
	color: var(--text-secondary);
}

.cta-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--accent-strong);
	color: #0b0c0f;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
	transform: scale(1.02);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.cta-button svg {
	width: 18px;
	height: 18px;
	stroke-width: 2.5;
}

.site-footer {
	text-align: center;
	font-size: 13px;
	color: var(--text-muted);
	margin-top: auto;
	padding: var(--space-footer-y) 0 calc(var(--space-footer-y) - 10px);
	position: relative;
}

.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 960px;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--footer-divider-color) 12%, var(--footer-divider-color) 88%, transparent);
}

@supports (padding: max(0px)) {
	.site-footer {
		padding-bottom: calc(var(--space-footer-y) + env(safe-area-inset-bottom));
	}
}

.site-footer a {
	color: var(--text-primary);
	font-weight: 600;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer .heart {
	color: var(--accent);
	padding: 0 2px;
}

.site-footer .coffee-link {
	color: var(--text-secondary);
}

.hero-visual-container {
	margin-top: 0;
	perspective: 1000px;
	display: flex;
	justify-content: center;
}

.iphone-mockup {
	width: 280px;
	height: 560px;
	background: #000;
	border-radius: 40px;
	box-shadow: 0 0 0 3px #2b2b2b,
		0 22px 46px -12px rgba(0, 0, 0, 0.55);
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	transform: rotateX(10deg) rotateY(-10deg) rotateZ(2deg);
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: transform;
}

.iphone-mockup:hover {
	transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1.02);
}

.dynamic-island {
	position: absolute;
	top: 11px;
	left: 50%;
	transform: translateX(-50%);
	width: 120px;
	height: 35px;
	background: #000;
	border-radius: 20px;
	z-index: 10;
	border: 1px solid #333;
}

.iphone-screen {
	width: 100%;
	height: 100%;
	background: #000;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-align: left;
	position: relative;
	border-radius: 36px;
}

.status-bar {
	display: flex;
	justify-content: space-between;
	padding: 16px 26px 0;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	position: relative;
	z-index: 5;
	height: 54px;
}

.maps-header {
	height: 200px;
	background: linear-gradient(to bottom right, #333 0%, #111 100%);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
	margin-top: -54px;
}

.maps-header::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100px;
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.maps-title {
	font-size: 32px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 4px;
	position: relative;
	z-index: 2;
}

.maps-subtitle {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 600;
	position: relative;
	z-index: 2;
}

.maps-content {
	padding: 0;
	display: flex;
	flex-direction: column;
	background: #000;
	flex-grow: 1;
}

.maps-card {
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	border-bottom: 1px solid #1c1c1e;
	background: #000;
	box-shadow: none;
	border-radius: 0;
}

.maps-card:last-child {
	border-bottom: none;
}

.maps-icon {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 24px;
	flex-shrink: 0;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.maps-info {
	flex-grow: 1;
	min-width: 0;
}

.maps-name {
	font-size: 17px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 4px;
}

.maps-meta {
	font-size: 13px;
	color: #8e8e93;
}

.home-indicator {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 130px;
	height: 5px;
	background: #000;
	border-radius: 3px;
	z-index: 10;
}

.iphone-slider {
	position: relative;
	width: 100%;
	height: 100%;
}

.iphone-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	animation: slideCycle 40s infinite;
	display: flex;
	flex-direction: column;
	background: #fff;
}

.iphone-slide:nth-child(1) {
	animation-delay: 0s;
}

.iphone-slide:nth-child(2) {
	animation-delay: 4s;
}

.iphone-slide:nth-child(3) {
	animation-delay: 8s;
}

.iphone-slide:nth-child(4) {
	animation-delay: 12s;
}

.iphone-slide:nth-child(5) {
	animation-delay: 16s;
}

.iphone-slide:nth-child(6) {
	animation-delay: 20s;
}

.iphone-slide:nth-child(7) {
	animation-delay: 24s;
}

.iphone-slide:nth-child(8) {
	animation-delay: 28s;
}

.iphone-slide:nth-child(9) {
	animation-delay: 32s;
}

.iphone-slide:nth-child(10) {
	animation-delay: 36s;
}

@keyframes slideCycle {
	0% {
		opacity: 0;
		transform: scale(0.98);
		z-index: 1;
	}

	2% {
		opacity: 1;
		transform: scale(1);
		z-index: 2;
	}

	10% {
		opacity: 1;
		transform: scale(1);
		z-index: 2;
	}

	12% {
		opacity: 0;
		transform: scale(1.02);
		z-index: 1;
	}

	100% {
		opacity: 0;
		transform: scale(1.02);
		z-index: 1;
	}
}

@media (max-width: 980px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.hero-metrics {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.converter-section {
		grid-template-columns: 1fr;
		max-width: 520px;
		gap: 40px;
	}

	.nav-links {
		display: none;
	}
}

@media (max-width: 768px) {
	.page-container {
		padding: 0 20px;
	}

	.main-title {
		font-size: 38px;
	}

	.subtitle {
		font-size: 16px;
	}

	.hero-metrics {
		grid-template-columns: 1fr;
	}

	.how-to-section {
		margin: 44px auto 10px;
	}

	.trust-strip {
		padding: 16px 18px;
	}

	.code-sample-section {
		padding: 0 20px;
	}

	.site-footer {
		padding: var(--space-footer-y-small) 0 calc(var(--space-footer-y-small) - 8px);
	}

	.step-item {
		gap: 20px;
		padding-bottom: 48px;
	}

	.step-number {
		width: 36px;
		height: 36px;
		font-size: 15px;
	}

	.step-left {
		width: 36px;
	}

	.step-title {
		font-size: 16px;
	}

	.device-grid-section {
		padding: 60px 20px;
	}

	.device-grid-title {
		font-size: 32px;
	}

	.device-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
	}

	.device-item:last-child:nth-child(odd) {
		grid-column: span 2;
	}

	.cta-section {
		padding: 60px 20px;
		margin-top: 60px;
		border-radius: 24px;
	}

	.cta-title {
		font-size: 32px;
	}

	.cta-description {
		font-size: 16px;
	}
}