/*
 * FIRY Homepage layout — loaded on top of glass.css
 */

/* ---------------------------------------------------------------- Page shell */
.hp {
	position: relative;
	overflow-x: clip;
	color: var(--hp-body);
}

/* ---------------------------------------------------------------- Glass surface */
.hp-glass {
	position: relative;
	isolation: isolate;
	background: var(--hp-glass-bg);
	border-radius: var(--hp-radius);
	box-shadow: var(--hp-glass-shadow), var(--hp-glass-inset);
}

.hp-glass-strong {
	background: var(--hp-glass-bg-strong);
}

/* Bevelled light edge */
.hp-glass::before,
.hp-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: var(--hp-glass-edge);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}

/* Liquid highlight that follows the pointer */
[data-hp-glow]::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(420px circle at var(--hp-x, 50%) var(--hp-y, 0%), var(--hp-glow), transparent 45%);
	opacity: 0;
	transition: opacity .4s ease;
	pointer-events: none;
}

[data-hp-glow]:hover::after {
	opacity: 1;
}

/* ---------------------------------------------------------------- Typography */
.hp-title {
	margin: 0 0 1.25rem;
	font-size: clamp(2.5rem, 5.4vw, 4.25rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.035em;
	color: var(--hp-heading);
}

.hp-title .hp-gradient-text {
	display: block;
	padding-bottom: .12em;
}

.hp-gradient-text {
	background: var(--hp-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.hp-h2 {
	margin-bottom: .75rem;
	font-size: clamp(1.65rem, 3.1vw, 2.3rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.025em;
	color: var(--hp-heading);
}

.hp-h3 {
	margin-bottom: .5rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--hp-heading);
}

.hp-h3 a {
	color: inherit;
}

.hp-lead {
	max-width: 34rem;
	margin: 0 auto 2rem;
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--hp-soft);
}

.hp-text {
	font-size: 1.06rem;
	line-height: 1.7;
	color: var(--hp-body);
}

.hp-muted {
	color: var(--hp-soft);
}

.hp-heading {
	max-width: 44rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.hp-heading p {
	margin-bottom: 0;
	font-size: 1.06rem;
}

.hp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	max-width: 100%;
	margin-bottom: 1.5rem;
	padding: .4rem .95rem;
	border: 1px solid var(--hp-glass-line);
	border-radius: var(--hp-pill);
	background: var(--hp-glass-bg-inner);
	box-shadow: var(--hp-glass-inset);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--hp-body);
}

.hp-eyebrow svg {
	color: var(--hp-a1);
}

/* ---------------------------------------------------------------- Buttons */
.hp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .7rem 1.35rem;
	border: 0;
	border-radius: var(--hp-radius-sm);
	font-weight: 600;
	white-space: nowrap;
	transition: transform .25s ease, box-shadow .25s ease, background-position .5s ease;
}

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

.hp-btn:active {
	transform: translateY(0) scale(.98);
}

.hp-btn-lg {
	padding: .95rem 1.9rem;
	font-size: 1.03rem;
}

.hp-btn-primary,
.hp-btn-primary:hover,
.hp-btn-primary:focus {
	color: #fff;
	background: var(--hp-gradient);
	background-size: 190% 100%;
	box-shadow: 0 12px 28px -10px var(--hp-a2), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.hp-btn-primary:hover {
	background-position: 100% 0;
	box-shadow: 0 18px 34px -10px var(--hp-a3), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.hp-btn-glass,
.hp-btn-glass:hover {
	color: var(--hp-heading);
	background: var(--hp-glass-bg-strong);
	border: 1px solid var(--hp-glass-line);
	box-shadow: var(--hp-glass-shadow), var(--hp-glass-inset);
}

.hp-btn-light,
.hp-btn-light:hover {
	color: #1d2025;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .45), inset 0 1px 0 #fff;
}

.hp-btn:focus-visible,
.hp-tool:focus-visible,
.hp-faq-button:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- Hero */
.hp-hero {
	padding: 1rem 0 2rem;
}

.hp-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .85rem;
}

.hp-hero-actions:empty {
	display: none;
}

/* Claim your link */
.hp-claim {
	display: flex;
	align-items: center;
	max-width: 34rem;
	margin: 0 auto;
	padding: .4rem;
	border-radius: calc(var(--hp-radius-sm) * 1.25);
	background: var(--hp-glass-bg-strong);
}

.hp-claim-domain {
	flex: none;
	max-width: 42%;
	padding-inline-start: 1rem;
	font-weight: 600;
	color: var(--hp-soft);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hp-claim-domain .custom-select {
	height: auto;
	padding-left: 0;
	border: 0;
	background-color: transparent;
	box-shadow: none;
	font-weight: 600;
	color: var(--hp-soft);
}

.hp-claim .form-control {
	flex: 1 1 0;
	min-width: 0;
	height: auto;
	padding: .7rem .5rem .7rem .15rem;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 1rem;
	font-weight: 600;
	color: var(--hp-heading);
}

.hp-claim .form-control::placeholder {
	font-weight: 500;
	color: var(--gray-500);
}

.hp-claim:focus-within {
	box-shadow: var(--hp-glass-shadow), var(--hp-glass-inset), 0 0 0 3px rgba(106, 17, 203, .22);
}

.hp-claim + .hp-hero-actions {
	margin-top: 1rem;
}

/* Hero artwork */
.hp-hero-visual {
	position: relative;
	max-width: 560px;
	margin: 3rem auto 0;
}

.hp-hero-image {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	animation: hp-float 7s ease-in-out infinite;
}

@keyframes hp-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@media (min-width: 992px) {
	.hp-hero {
		padding: 2rem 0 4rem;
	}

	.hp-lead,
	.hp-claim {
		margin-left: 0;
		margin-right: 0;
	}

	[dir="rtl"] .hp-lead,
	[dir="rtl"] .hp-claim {
		margin-right: 0;
		margin-left: auto;
	}

	.hp-hero-actions {
		justify-content: flex-start;
	}

	.hp-hero-visual {
		margin-top: 0;
	}
}

@media (max-width: 575.98px) {
	.hp-claim {
		flex-wrap: wrap;
	}

	.hp-claim .hp-btn {
		flex: 1 0 100%;
		margin-top: .35rem;
	}
}

/* ---------------------------------------------------------------- Sections */
.hp-block {
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.hp-block:has(> .hp-heading) {
	padding-top: clamp(3.5rem, 7vw, 6rem);
}

.hp-block[id] {
	scroll-margin-top: 6rem;
}

.hp-row {
	margin: -.75rem;
}

.hp-col {
	padding: .75rem;
}

.hp-panel {
	padding: clamp(1.5rem, 4vw, 3rem);
}

/* Intro */
.hp-intro {
	padding: clamp(1.75rem, 4vw, 3rem);
	background:
		radial-gradient(60% 120% at 100% 0%, rgba(106, 17, 203, .1), transparent 60%),
		radial-gradient(50% 100% at 0% 100%, rgba(37, 117, 252, .08), transparent 60%),
		var(--hp-glass-bg-strong);
}

/* Main features */
.hp-feature {
	padding: clamp(1.25rem, 3.2vw, 2.75rem);
}

.hp-shot {
	position: relative;
	padding: .5rem;
	border: 1px solid var(--hp-glass-line);
	border-radius: var(--hp-radius-sm);
	background: var(--hp-glass-bg-strong);
	box-shadow: 0 30px 60px -28px rgba(23, 32, 77, .4), var(--hp-glass-inset);
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.hp-shot::before {
	content: "";
	position: absolute;
	inset: -9%;
	z-index: -1;
	background: radial-gradient(closest-side, var(--hp-a3), var(--hp-a4) 55%, transparent);
	opacity: .3;
}

.hp-shot-bar {
	display: flex;
	gap: 6px;
	padding: .3rem .4rem .7rem;
}

.hp-shot-bar i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ff5f57;
}

.hp-shot-bar i:nth-child(2) { background: #febc2e; }
.hp-shot-bar i:nth-child(3) { background: #28c840; }

.hp-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: calc(var(--hp-radius-sm) - .3rem);
}

@media (min-width: 992px) {
	.hp-shot-left { transform: perspective(1400px) rotateY(7deg) rotateX(2deg); }
	.hp-shot-right { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }

	.hp-feature:hover .hp-shot {
		transform: perspective(1400px) rotateY(0) rotateX(0);
	}

	.hp-feature-body {
		padding: 0 1.75rem;
	}
}

.hp-icon,
.hp-tile-icon {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border: 1px solid var(--primary-200);
	border-radius: calc(var(--hp-radius-sm) * .9);
	background: var(--primary-100);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
	color: var(--primary);
}

.hp-checks {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.hp-checks li {
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	margin-bottom: .8rem;
	color: var(--hp-body);
}

.hp-check {
	display: grid;
	flex: none;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--primary-100);
	color: var(--primary);
	font-size: .7rem;
	line-height: 1;
}

/* Secondary feature tiles + tool cards share a tint */
.hp-tile,
.hp-tool {
	background:
		radial-gradient(120% 90% at 100% 0%, var(--hp-tile-soft, transparent), transparent 62%),
		var(--hp-glass-bg);
}

.hp-tile {
	padding: 1.75rem;
}

.hp-tile .hp-tile-icon {
	margin-bottom: 1.25rem;
}

.hp-tile-icon {
	width: 3rem;
	height: 3rem;
	border-color: var(--hp-tile-line, var(--primary-200));
	background: var(--hp-tile-soft, var(--primary-100));
	color: var(--hp-tile, var(--primary));
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
	.hp-tile,
	.hp-tool,
	.hp-app,
	.hp-pill {
		--hp-tile-soft: color-mix(in srgb, var(--hp-tile) var(--hp-tint), transparent);
		--hp-tile-line: color-mix(in srgb, var(--hp-tile) 28%, transparent);
	}

	.hp-icon,
	.hp-check {
		border-color: color-mix(in srgb, var(--primary) 26%, transparent);
		background-color: color-mix(in srgb, var(--primary) 14%, transparent);
	}
}

.hp .hp-tile.hp-reveal:hover,
.hp .hp-tool.hp-reveal:hover,
.hp .hp-testimonial.hp-reveal:hover,
.hp .hp-post.hp-reveal:hover {
	transform: translateY(-5px);
	transition: transform .3s ease;
}

/* Deep linking apps */
.hp-apps {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-app {
	display: grid;
	place-items: center;
	width: 4.25rem;
	height: 4.25rem;
	border: 1px solid var(--hp-glass-line);
	border-radius: var(--hp-radius-sm);
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 10px 22px -12px rgba(23, 32, 77, .3), inset 0 1px 0 #fff;
	color: var(--hp-tile);
	transition: transform .25s ease, box-shadow .25s ease;
}

[data-theme-style="dark"] .hp-app {
	background: rgba(255, 255, 255, .93);
}

.hp-app:hover {
	transform: translateY(-5px) scale(1.06);
	box-shadow: 0 18px 30px -12px var(--hp-tile-line, rgba(23, 32, 77, .35)), inset 0 1px 0 #fff;
}

/* Pixels */
.hp-pill {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .7rem .85rem;
	border: 1px solid var(--hp-glass-line);
	border-radius: var(--hp-radius-sm);
	background: var(--hp-glass-bg-inner);
	font-weight: 600;
	color: var(--hp-heading);
	transition: transform .25s ease;
}

.hp-pill:hover {
	transform: translateY(-3px);
}

.hp-pill svg,
.hp-pill > i {
	flex: none;
	box-sizing: border-box;
	width: 2.1rem;
	height: 2.1rem;
	padding: .45rem;
	border-radius: var(--hp-radius-xs);
	background: var(--hp-tile-soft, var(--gray-100));
	color: var(--hp-tile);
}

[data-theme-style="dark"] .hp-pill svg,
[data-theme-style="dark"] .hp-pill > i {
	background: rgba(255, 255, 255, .93);
}

.hp-pill span {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Stats */
.hp-stats {
	padding: clamp(1.75rem, 4vw, 3rem);
}

.hp-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: .75rem 1rem;
	text-align: center;
}

.hp-stat-number {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.03em;
	background: var(--hp-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hp-stat-label {
	margin-top: .35rem;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--hp-soft);
}

/* Tools */
.hp-tool {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: 100%;
	padding: 1.1rem 1.25rem;
	border-radius: var(--hp-radius-sm);
	color: var(--hp-heading);
}

.hp-tool:hover {
	color: var(--hp-heading);
	text-decoration: none;
}

.hp-tool .hp-tile-icon {
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
}

.hp-tool-body {
	flex: 1 1 0;
	min-width: 0;
}

.hp-tool-body small {
	color: var(--hp-soft);
}

.hp-tool-arrow {
	flex: none;
	color: var(--hp-soft);
	transition: transform .25s ease, color .25s ease;
}

.hp-tool:hover .hp-tool-arrow {
	transform: translateX(4px);
	color: var(--hp-tile);
}

[dir="rtl"] .hp-tool-arrow,
[dir="rtl"] .hp-btn .fa-arrow-right {
	transform: scaleX(-1);
}

/* AI images */
.hp-ai-image {
	width: 100%;
	border-radius: var(--hp-radius-sm);
	box-shadow: 0 14px 30px -16px rgba(23, 32, 77, .4);
}

/* Testimonials */
.hp-testimonial {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 2rem;
}

.hp-testimonial-avatar {
	width: 72px;
	height: 72px;
	border: 3px solid var(--hp-glass-line);
	border-radius: 50%;
	box-shadow: 0 12px 24px -10px rgba(23, 32, 77, .4);
	object-fit: cover;
}

.hp-testimonial-quote {
	position: absolute;
	top: 2rem;
	right: 2rem;
	font-size: 2.25rem;
	color: var(--primary);
	opacity: .18;
}

[dir="rtl"] .hp-testimonial-quote {
	right: auto;
	left: 2rem;
}

.hp-testimonial-text {
	flex: 1 1 auto;
	margin: 1.5rem 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 1.03rem;
	line-height: 1.7;
	color: var(--hp-body);
}

.hp-testimonial figcaption strong,
.hp-testimonial figcaption span {
	display: block;
}

.hp-testimonial figcaption strong {
	color: var(--hp-heading);
}

.hp-testimonial figcaption span {
	font-size: .9rem;
}

/* FAQ */
.hp-faq {
	max-width: 52rem;
	margin: 0 auto;
}

.hp-faq-item {
	margin-bottom: .85rem;
	border-radius: var(--hp-radius-sm);
}

.hp-faq-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1.2rem 1.4rem;
	border: 0;
	border-radius: inherit;
	background: none;
	text-align: start;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--hp-heading);
}

.hp-faq-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--primary-100);
	color: var(--primary);
	transition: transform .35s ease, background .35s ease, color .35s ease;
}

.hp-faq-button:not(.collapsed) .hp-faq-icon {
	transform: rotate(135deg);
	background: var(--primary);
	color: #fff;
}

.hp-faq-answer {
	padding: 0 1.4rem 1.35rem;
	line-height: 1.7;
	color: var(--hp-soft);
}

/* Call to action */
.hp-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 4rem);
	border-radius: var(--hp-radius);
	background: linear-gradient(125deg, var(--hp-a1), var(--hp-a2) 42%, var(--hp-a3) 82%, var(--hp-a4));
	box-shadow: 0 34px 70px -30px var(--hp-a2), inset 0 1px 0 rgba(255, 255, 255, .35);
	color: #fff;
}

.hp-cta::before {
	background: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .1) 40%, rgba(255, 255, 255, .05) 60%, rgba(255, 255, 255, .5));
}

.hp-cta[data-hp-glow]::after {
	background: radial-gradient(520px circle at var(--hp-x, 50%) var(--hp-y, 0%), rgba(255, 255, 255, .22), transparent 45%);
}

.hp-cta-orbs span {
	position: absolute;
	z-index: -1;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

.hp-cta-orbs span:nth-child(1) {
	top: -5rem;
	right: 18%;
	width: 13rem;
	height: 13rem;
}

.hp-cta-orbs span:nth-child(2) {
	bottom: -6rem;
	left: -3rem;
	width: 16rem;
	height: 16rem;
}

.hp-cta-title {
	margin-bottom: .6rem;
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.03em;
	color: #fff;
}

.hp-cta-text {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, .88);
}

/* Blog */
.hp-post {
	padding: 1.25rem 1.25rem 1.5rem;
}

.hp-post-image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 1.15rem;
	border-radius: calc(var(--hp-radius) - .7rem);
	object-fit: cover;
}

/* ---------------------------------------------------------------- Motion */
.hp-js .hp-reveal {
	opacity: 0;
	transform: translateY(28px);
}

.hp-js .hp-reveal.hp-in {
	opacity: 1;
	transform: none;
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--hp-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
	.hp *,
	.hp *::before,
	.hp *::after {
		animation: none !important;
		transition-duration: .01ms !important;
	}

	.hp-js .hp-reveal {
		opacity: 1;
		transform: none;
	}

	.hp-shot-left,
	.hp-shot-right {
		transform: none;
	}
}

@media print {
	.hp-js .hp-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------------------------------------------------------------- Small screens */
@media (max-width: 575.98px) {
	.hp-pill {
		gap: .55rem;
		padding: .55rem .6rem;
		font-size: .82rem;
		line-height: 1.25;
		white-space: normal;
	}

	.hp-pill svg,
	.hp-pill > i {
		width: 1.75rem;
		height: 1.75rem;
		padding: .36rem;
	}

	.hp-pill span {
		overflow-wrap: anywhere;
	}

	.hp-panel .hp-row {
		margin: -.4rem;
	}

	.hp-panel .hp-col {
		padding: .4rem;
	}

	.hp-app {
		width: 3.6rem;
		height: 3.6rem;
	}
}

/* Tighter gap between the navbar and the hero */
.index:has(.hp) .navbar-main {
	margin-bottom: 2.5rem !important;
}
