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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background: var(--color-background);
	color: var(--color-text);
	line-height: 1.6;
	min-height: 100vh;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

button {
	font-family: inherit;
}

.hidden {
	display: none !important;
}

.fade-in {
	animation: fadeIn 0.6s ease-out;
}

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

.wrap {
	width: min(var(--content-width), calc(100% - 40px));
	margin: 0 auto;
}

/* ---------- Nav ---------- */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 40;
	height: var(--nav-height);
	display: flex;
	align-items: center;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	background: rgba(254, 239, 244, 0.82);
	border-bottom: 1px solid rgba(232, 191, 199, 0.45);
}

.site-nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(var(--content-width), calc(100% - 40px));
}

html.i18n-pending body {
	opacity: 0;
}

html[dir="rtl"] .hero,
html[dir="rtl"] .feature-row {
	direction: rtl;
}

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

.lang-picker {
	position: relative;
}

.lang-btn {
	height: 40px;
	padding: 0 14px;
	border-radius: var(--radius-pill);
	border: 1.5px solid var(--color-connect-border);
	background: #fff;
	color: var(--color-text);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	max-width: 160px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lang-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 240px;
	max-height: 360px;
	overflow: auto;
	background: #fff;
	border-radius: var(--radius-sheet);
	box-shadow: var(--shadow-float);
	padding: 8px;
	z-index: 50;
}

html[dir="rtl"] .lang-menu {
	right: auto;
	left: 0;
}

.lang-option {
	display: block;
	width: 100%;
	text-align: start;
	background: transparent;
	border: none;
	border-radius: 12px;
	padding: 10px 12px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text);
	cursor: pointer;
}

.lang-option:hover,
.lang-option[aria-selected="true"] {
	background: var(--color-background);
	color: var(--color-primary);
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--color-text);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
}

.nav-brand img {
	width: 40px;
	height: 40px;
	max-width: none;
	border-radius: 12px;
	object-fit: cover;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.btn:active {
	transform: translateY(0);
}

.btn-pill {
	height: 44px;
	padding: 0 22px;
	border-radius: var(--radius-pill);
	color: #fff;
	background: var(--gradient-cta);
	box-shadow: 0 8px 20px rgba(244, 37, 106, 0.28);
}

.btn-lg {
	height: 52px;
	padding: 0 28px;
	font-size: 18px;
}

.btn-ghost {
	height: 44px;
	padding: 0 20px;
	border-radius: var(--radius-pill);
	color: var(--color-text);
	background: transparent;
	border: 1.5px solid var(--color-primary);
	box-shadow: none;
}

.btn-ghost:hover {
	background: rgba(244, 37, 106, 0.06);
}

.store-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.store-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 168px;
	height: 52px;
	padding: 0 16px 0 14px;
	border-radius: 10px;
	background: #020617;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
	color: #fff;
}

.store-badge svg,
.store-badge img {
	width: 28px;
	height: 28px;
	min-width: 28px;
	max-width: none;
	flex-shrink: 0;
	display: block;
	overflow: visible;
	object-fit: contain;
}

.store-badge small {
	display: block;
	font-size: 9px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.8;
	line-height: 1.2;
}

.store-badge strong {
	display: block;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.15;
}

/* ---------- Hero ---------- */

.hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
	padding: 56px 0 72px;
}

.hero-copy h1 {
	font-family: var(--font-display);
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.1;
	margin: 12px 0 16px;
}

.hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	background: #fff;
	border: 1px solid var(--color-connect-border);
	color: var(--color-primary);
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
}

.hero-kicker img {
	width: 14px;
	height: 14px;
	color: var(--color-primary);
}

.hero-tagline {
	font-size: 20px;
	color: var(--color-text-muted);
	margin-bottom: 16px;
}

.hero-lead {
	font-size: 16px;
	color: #3f3f46;
	max-width: 460px;
	margin-bottom: 28px;
}

/* ---------- Phone mock ---------- */

.hero-visual {
	display: flex;
	justify-content: center;
	position: relative;
}

.phone {
	width: 280px;
	height: 574px;
	padding: 10px;
	border-radius: 40px;
	background: #1c1418;
	box-shadow: var(--shadow-float), 0 0 0 1px rgba(255, 255, 255, 0.2);
	position: relative;
	z-index: 1;
}

.phone-screen {
	height: 100%;
	border-radius: 32px;
	overflow: hidden;
	position: relative;
	background: var(--gradient-hero-fallback);
	background-image: linear-gradient(180deg, rgba(20, 8, 14, 0.18), rgba(20, 8, 14, 0.28)), url("/images/bg-1.png");
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
}

.phone-notch {
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 96px;
	height: 22px;
	background: #1c1418;
	border-radius: 16px;
	z-index: 3;
}

.phone-glass-row {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 36px 14px 0;
}

.glass-btn {
	width: 40px;
	height: 40px;
	border-radius: 20px;
	display: grid;
	place-items: center;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	backdrop-filter: blur(var(--glass-blur));
	-webkit-backdrop-filter: blur(var(--glass-blur));
}

.glass-btn img {
	width: 18px;
	height: 18px;
	max-width: none;
}

.phone-counter {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-align: center;
	padding-bottom: 8px;
}

.heart-badge {
	width: 168px;
	height: 154px;
	position: relative;
	display: grid;
	place-items: center;
	filter: drop-shadow(0 12px 24px rgba(244, 37, 106, 0.28));
}

.heart-badge svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.heart-badge-copy {
	position: relative;
	z-index: 1;
	color: var(--color-primary);
	padding-top: 10px;
}

.heart-badge-copy strong {
	display: block;
	font-family: var(--font-display);
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

.heart-badge-copy span {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
}

.phone-people {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 16px 16px;
}

.person {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
}

.person img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.person.male img {
	border-color: var(--color-male);
}

.person.female img {
	border-color: var(--color-female);
}

.pulse-heart {
	width: 28px;
	height: 28px;
	max-width: none;
	animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
}

.phone-nav {
	height: 64px;
	background: #fff;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: center;
	box-shadow: var(--shadow-nav);
}

.phone-nav > span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 9px;
	color: var(--color-inactive);
	font-weight: 600;
}

.phone-nav > span.active {
	color: var(--color-primary);
}

.phone-nav svg {
	width: 22px;
	height: 22px;
	display: block;
	flex-shrink: 0;
}

.float-heart {
	position: absolute;
	width: 22px;
	opacity: 0.85;
	animation: floaty 3.4s ease-in-out infinite;
	pointer-events: none;
}

.float-heart:nth-child(1) {
	top: 48px;
	left: 18px;
	animation-delay: 0s;
}

.float-heart:nth-child(2) {
	bottom: 90px;
	right: 8px;
	animation-delay: 1.2s;
	width: 16px;
}

.float-heart:nth-child(3) {
	top: 180px;
	right: -8px;
	animation-delay: 0.6s;
	width: 18px;
}

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

/* ---------- Sections ---------- */

.section {
	padding: 72px 0;
}

.section-head {
	text-align: center;
	max-width: 560px;
	margin: 0 auto 40px;
}

.section-head h2,
.feature-copy h2,
.download-section h2,
.share-card h2,
.legal-card h1,
.error-card h1 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--color-text);
}

.section-head h2 {
	font-size: 32px;
	margin-bottom: 10px;
}

.section-head p,
.feature-copy p,
.hero-lead,
.legal-card p,
.legal-card li {
	color: var(--color-text-muted);
}

/* ---------- Love Hub ---------- */

.hub-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

.hub-card {
	grid-column: span 2;
	min-height: 220px;
	border-radius: var(--radius-sheet);
	padding: 20px 18px 16px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	position: relative;
}

.hub-card h3 {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 4px;
}

.hub-card p {
	font-size: 14px;
	color: #52525b;
}

.hub-card img.hub-art {
	width: 78%;
	max-height: 118px;
	object-fit: contain;
	align-self: flex-end;
	margin-top: 12px;
}

.hub-card.drawing {
	background: var(--hub-drawing);
}

.hub-card.mood {
	background: var(--hub-mood);
}

.hub-card.analyze {
	background: var(--hub-analyze);
}

.hub-card.quiz {
	background: var(--hub-quiz);
}

.hub-card.pet {
	background: var(--hub-pet);
}

.hub-card:nth-child(4),
.hub-card:nth-child(5) {
	grid-column: span 3;
}

.mood-preview,
.analyze-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
}

.mood-face,
.analyze-ring {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #fff;
	display: grid;
	place-items: center;
	font-size: 28px;
	box-shadow: var(--shadow-card);
}

.mood-face.me {
	box-shadow: 0 0 0 4px var(--color-female);
}

.mood-face.partner {
	box-shadow: 0 0 0 4px var(--color-male);
}

.mood-face img {
	width: 40px;
	height: 40px;
	max-width: none;
	object-fit: contain;
}

.analyze-ring {
	width: 88px;
	height: 88px;
	border: 6px solid #e9d5ff;
	border-top-color: #a855f7;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
	color: var(--color-text);
}

/* ---------- Feature rows ---------- */

.feature-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	padding: 28px 0;
}

.feature-row.reverse .feature-copy {
	order: 2;
}

.feature-copy h2 {
	font-size: 28px;
	margin-bottom: 12px;
}

.feature-copy ul {
	margin: 16px 0 0 18px;
	color: #3f3f46;
}

.feature-copy li {
	margin-bottom: 8px;
}

.feature-media {
	background: #fff;
	border-radius: var(--radius-sheet);
	min-height: 280px;
	display: grid;
	place-items: center;
	padding: 28px;
	box-shadow: var(--shadow-card);
}

.feature-media img {
	max-height: 240px;
	width: auto;
}

.connect-card {
	background: var(--gradient-connect);
	border: 1px solid var(--color-connect-border);
	border-radius: 32px;
	padding: 32px 24px;
	text-align: center;
	width: 100%;
	max-width: 360px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.connect-card .code-label {
	display: inline-block;
	background: var(--color-code-pill);
	color: var(--color-primary);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 13px;
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	margin-bottom: 16px;
}

.connect-card h3 {
	font-family: var(--font-display);
	font-size: 22px;
	margin-bottom: 18px;
}

.code-boxes {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.code-boxes span {
	width: 42px;
	height: 52px;
	border-radius: 12px;
	background: #fff;
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 22px;
	color: var(--color-text);
	border: 1px solid var(--color-connect-border);
}

/* ---------- Download ---------- */

.download-section {
	text-align: center;
	padding: 80px 0 72px;
}

.download-section h2 {
	font-size: 32px;
	margin-bottom: 10px;
}

.download-section p {
	color: var(--color-text-muted);
	margin-bottom: 28px;
}

.download-section .store-badges {
	justify-content: center;
}

/* ---------- Share ---------- */

.share-shell {
	padding: 48px 0 80px;
}

.share-card {
	max-width: 480px;
	margin: 0 auto;
	background: var(--gradient-connect);
	border: 1px solid var(--color-connect-border);
	border-radius: 32px;
	padding: 40px 32px;
	text-align: center;
	box-shadow: var(--shadow-float);
}

.share-card img.share-logo {
	width: 120px;
	height: auto;
	margin: 0 auto 16px;
	border-radius: 24px;
	object-fit: contain;
}

.share-card h2 {
	font-size: 28px;
	margin-bottom: 12px;
	color: var(--color-login-title);
}

.share-card p {
	color: #52525b;
	margin-bottom: 24px;
}

.loading {
	display: none;
	margin-top: 16px;
	color: var(--color-text-muted);
}

.loading.active {
	display: block;
}

.fallback {
	display: none;
	margin-top: 24px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.72);
	border-radius: var(--radius-card);
	color: var(--color-text);
}

.fallback strong {
	display: block;
	margin-bottom: 8px;
	font-family: var(--font-display);
}

.fallback a {
	display: inline-flex;
	margin-top: 12px;
	padding: 10px 16px;
	border-radius: var(--radius-pill);
	background: var(--gradient-cta);
	color: #fff;
	font-weight: 700;
	font-family: var(--font-display);
}

/* ---------- Footer ---------- */

.site-footer {
	padding: 32px 0 40px;
	text-align: center;
	color: var(--color-text-muted);
	font-size: 14px;
}

.site-footer a {
	color: var(--color-text-muted);
	margin: 0 10px;
}

.site-footer a:hover {
	color: var(--color-primary);
}

.site-footer p + p {
	margin-top: 10px;
}

/* ---------- Legal ---------- */

.page-legal {
	background: var(--color-scaffold);
}

.legal-shell {
	padding: 32px 0 64px;
}

.legal-card {
	max-width: 840px;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--radius-sheet);
	padding: 48px 44px;
	box-shadow: var(--shadow-card);
}

.legal-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 24px;
	color: var(--color-primary);
	font-weight: 700;
	font-family: var(--font-display);
}

.legal-card header {
	text-align: center;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--color-divider);
}

.legal-card header img {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	margin: 0 auto 12px;
}

.legal-card h1 {
	font-size: 32px;
	margin-bottom: 8px;
}

.legal-card .subtitle {
	color: var(--color-text-muted);
}

.legal-card h2 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	margin: 32px 0 12px;
	padding-top: 20px;
	border-top: 1px solid var(--color-divider);
}

.legal-card h2:first-of-type {
	border-top: none;
	padding-top: 0;
}

.legal-card h3 {
	font-family: var(--font-display);
	font-size: 18px;
	margin: 20px 0 8px;
}

.legal-card p,
.legal-card li {
	font-size: 16px;
	line-height: 1.8;
}

.legal-card p {
	margin-bottom: 14px;
}

.legal-card ul {
	margin: 12px 0 16px 22px;
}

.legal-card li {
	margin-bottom: 10px;
}

.legal-card a:hover {
	text-decoration: underline;
}

.highlight {
	background: var(--color-background);
	padding: 18px 20px;
	border-radius: 12px;
	margin: 20px 0;
	border-left: 4px solid var(--color-primary);
}

.highlight strong {
	display: block;
	margin-bottom: 8px;
	color: var(--color-text);
	font-family: var(--font-display);
}

.legal-card .doc-footer {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--color-divider);
	text-align: center;
}

.legal-card .doc-footer a {
	margin: 0 12px;
	color: var(--color-text-muted);
	font-size: 14px;
}

/* ---------- 404 ---------- */

.page-error {
	background: var(--color-background);
}

.error-shell {
	min-height: calc(100vh - var(--nav-height) - 120px);
	display: grid;
	place-items: center;
	padding: 48px 20px;
}

.error-card {
	text-align: center;
	background: #fff;
	border-radius: var(--radius-sheet);
	padding: 56px 40px;
	max-width: 520px;
	width: 100%;
	box-shadow: var(--shadow-float);
}

.error-card img.app-mark {
	width: 72px;
	height: 72px;
	border-radius: 20px;
	margin: 0 auto 16px;
}

.error-code {
	font-family: var(--font-display);
	font-size: 88px;
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1;
	margin-bottom: 8px;
}

.error-card h1 {
	font-size: 28px;
	margin-bottom: 12px;
}

.error-card p {
	color: var(--color-text-muted);
	margin-bottom: 28px;
}

.error-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.error-links {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--color-divider);
}

.error-links a {
	color: var(--color-text-muted);
	font-size: 14px;
	margin: 0 10px;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
	.hero,
	.feature-row,
	.feature-row.reverse .feature-copy {
		grid-template-columns: 1fr;
	}

	.feature-row.reverse .feature-copy {
		order: 0;
	}

	.hero {
		padding: 32px 0 48px;
		gap: 36px;
		text-align: center;
	}

	.hero-lead,
	.hero-tagline {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-copy .store-badges {
		justify-content: center;
	}

	.hub-grid {
		grid-template-columns: 1fr 1fr;
	}

	.hub-card,
	.hub-card:nth-child(4),
	.hub-card:nth-child(5) {
		grid-column: span 1;
	}

	.legal-card {
		padding: 32px 22px;
	}
}

@media (max-width: 640px) {
	.hub-grid,
	.hub-card,
	.hub-card:nth-child(4),
	.hub-card:nth-child(5) {
		grid-template-columns: 1fr;
	}

	.hub-grid {
		grid-template-columns: 1fr;
	}

	.nav-brand span {
		font-size: 15px;
	}

	.lang-btn {
		max-width: 108px;
		font-size: 12px;
		padding: 0 10px;
	}

	.nav-actions .btn-pill {
		height: 40px;
		font-size: 13px;
		padding: 0 14px;
	}

	.phone {
		width: 250px;
		height: 520px;
	}

	.error-code {
		font-size: 64px;
	}
}
