/* ============================================
   HOME.CSS — Home page specific styles
   Requires: base.css
   ============================================ */

/* ── Hero ── */
.hero {
	padding: 96px 0 80px;
	position: relative;
	overflow: hidden;
}
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--grey2) 1px, transparent 1px),
		linear-gradient(90deg, var(--grey2) 1px, transparent 1px);
	background-size: 52px 52px;
	opacity: 0.4;
	-webkit-mask-image: radial-gradient(
		ellipse 90% 80% at 50% 0%,
		black 20%,
		transparent 100%
	);
	mask-image: radial-gradient(
		ellipse 90% 80% at 50% 0%,
		black 20%,
		transparent 100%
	);
}

.hero-inner {
	position: relative;
	max-width: 680px;
	margin: 0 auto;
	text-align: center;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 500;
	color: var(--grey4);
	background: var(--white);
	border: 1px solid var(--grey2);
	border-radius: 100px;
	padding: 4px 13px 4px 8px;
	margin-bottom: 30px;
	box-shadow: var(--shadow-sm);
}
.badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--success);
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
	animation: dot-pulse 2.4s ease-in-out infinite;
}

.hero-title {
	font-family: var(--font-serif);
	font-size: clamp(46px, 8vw, 80px);
	font-weight: 400;
	line-height: 1.03;
	color: var(--ink);
	letter-spacing: -0.025em;
	margin-bottom: 22px;
}
.hero-title em {
	font-style: italic;
	color: var(--blue);
}

.hero-sub {
	font-size: 16px;
	color: var(--grey4);
	line-height: 1.75;
	max-width: 420px;
	margin: 0 auto 40px;
}

/* The main input box */
.hero-bar {
	display: flex;
	align-items: center;
	background: var(--white);
	border: 1px solid var(--grey2);
	border-radius: var(--radius-xl);
	padding: 5px 5px 5px 18px;
	box-shadow:
		var(--shadow),
		0 0 0 5px rgba(37, 99, 235, 0.05);
	max-width: 580px;
	margin: 0 auto 24px;
	transition: var(--transition);
}
.hero-bar:focus-within {
	border-color: rgba(37, 99, 235, 0.5);
	box-shadow:
		var(--shadow),
		0 0 0 5px rgba(37, 99, 235, 0.1);
}
.hero-bar input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 15px;
	color: var(--ink);
	min-width: 0;
}
.hero-bar input::placeholder {
	color: var(--grey3);
}

.hero-hints {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}
.hero-hint {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--grey3);
}
.hero-hint svg {
	width: 12px;
	height: 12px;
	stroke: var(--success);
	fill: none;
	stroke-width: 2.5;
}

/* Hero result */
.hero-result {
	max-width: 580px;
	margin: 14px auto 0;
	background: var(--white);
	border: 1px solid var(--grey2);
	border-radius: var(--radius-lg);
	padding: 18px 22px;
	text-align: left;
	box-shadow: var(--shadow-sm);
}
.hero-result.show {
	display: block;
	animation: fadeSlideUp 0.22s ease;
}
.result-tag {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--success);
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 8px;
}
.result-tag::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--success);
}
.result-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.result-url {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.02em;
	flex: 1;
	min-width: 0;
}
.result-url a { color: var(--blue); }
.result-btns { display: flex; gap: 6px; }
.result-divider { height: 1px; background: var(--grey2); margin: 12px 0; }
.result-stats-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}
.result-stats-note { font-size: 12px; color: var(--grey3); }
.result-stats-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 500;
	color: var(--blue);
	background: rgba(37, 99, 235, 0.06);
	border: 1px solid rgba(37, 99, 235, 0.15);
	border-radius: var(--radius-sm);
	padding: 5px 10px;
	transition: var(--transition);
	font-family: monospace;
}
.result-stats-link:hover { background: rgba(37, 99, 235, 0.12); }
.result-stats-link svg {
	width: 11px;
	height: 11px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.5;
}

/* result bottom: QR + stats */
.result-bottom {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
.result-qr-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.result-qr-box {
	width: 112px;
	height: 112px;
	background: var(--white);
	border: 1px solid var(--grey2);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.result-qr-box img,
.result-qr-box canvas {
	display: block;
	width: 112px !important;
	height: 112px !important;
}
.result-qr-dl {
	font-size: 11px;
	font-weight: 500;
	color: var(--grey4);
	background: var(--grey1);
	border: 1px solid var(--grey2);
	border-radius: var(--radius-sm);
	padding: 4px 10px;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: var(--transition);
	cursor: pointer;
}
.result-qr-dl:hover { color: var(--ink); border-color: var(--grey3); }
.result-qr-dl svg { width: 12px; height: 12px; flex-shrink: 0; }
.result-stats-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	padding-top: 4px;
}

/* ── Marquee Strip ── */
.strip {
	border-top: 1px solid var(--grey2);
	border-bottom: 1px solid var(--grey2);
	background: var(--grey1);
	padding: 11px 0;
	overflow: hidden;
}
.strip-track {
	display: flex;
	gap: 36px;
	width: max-content;
	animation: marquee 28s linear infinite;
}
.strip-item {
	font-size: 11px;
	font-weight: 500;
	color: var(--grey3);
	letter-spacing: 1.8px;
	text-transform: uppercase;
	white-space: nowrap;
}
.strip-item b { color: var(--grey4); }

/* ── About & Features ── */
.about-section { padding: 88px 0; }
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: start;
}
.about-kicker {
	font-size: 11px;
	font-weight: 600;
	color: var(--grey3);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 14px;
}
.about-heading {
	font-family: var(--font-serif);
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 400;
	color: var(--ink);
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin-bottom: 14px;
}
.about-heading em { font-style: italic; color: var(--blue); }
.about-body { font-size: 14px; color: var(--grey4); line-height: 1.8; }

.features-list { display: flex; flex-direction: column; gap: 4px; }
.feat-item {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 14px;
	border-radius: var(--radius);
	transition: var(--transition);
}
.feat-item:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.feat-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	background: var(--grey1);
	border: 1px solid var(--grey2);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}
.feat-item:hover .feat-icon { background: var(--ink); border-color: var(--ink); }
.feat-icon svg {
	width: 15px;
	height: 15px;
	stroke: var(--grey4);
	fill: none;
	stroke-width: 1.8;
	transition: var(--transition);
}
.feat-item:hover .feat-icon svg { stroke: var(--white); }
.feat-text h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 1px; }
.feat-text p { font-size: 13px; color: var(--grey4); line-height: 1.55; }

/* ── Responsive ── */
@media (max-width: 768px) {
	.about-grid { grid-template-columns: 1fr; gap: 40px; }
	.hero-title { font-size: 44px; }
}
@media (max-width: 480px) {
	.hero-title { font-size: 38px; }
	.hero-bar { border-radius: var(--radius-lg); padding: 4px 4px 4px 14px; }
	.result-bottom { flex-direction: column; }
}
