/* shared.css — structural CSS for all landing sub-pages.
   Each page sets color variables via inline :root { } block. */

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

/* ── Bootstrap grid ────────────────────────────────────────── */
.container {
	--bs-gutter-x: 1.5rem;
	width: 100%;
	padding-right: calc(var(--bs-gutter-x) * .5);
	padding-left: calc(var(--bs-gutter-x) * .5);
	margin-right: auto;
	margin-left: auto;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.row {
	--bs-gutter-x: 1.5rem;
	--bs-gutter-y: 0;
	display: flex;
	flex-wrap: wrap;
	margin-top: calc(-1 * var(--bs-gutter-y));
	margin-right: calc(-.5 * var(--bs-gutter-x));
	margin-left: calc(-.5 * var(--bs-gutter-x));
}
.row > * {
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
	padding-right: calc(var(--bs-gutter-x) * .5);
	padding-left: calc(var(--bs-gutter-x) * .5);
	margin-top: var(--bs-gutter-y);
}

.col-4  { flex: 0 0 auto; width: 33.333333%; }
.col-6  { flex: 0 0 auto; width: 50%; }
.col-12 { flex: 0 0 auto; width: 100%; }
@media (min-width: 768px) {
	.col-md-4 { flex: 0 0 auto; width: 33.333333%; }
	.col-md-6 { flex: 0 0 auto; width: 50%; }
}
@media (min-width: 992px) { .col-lg-4 { flex: 0 0 auto; width: 33.333333%; } }

.g-3 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }

/* ── Utilities ─────────────────────────────────────────────── */
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

.text-center { text-align: center !important; }
.text-start { text-align: start !important; }
.text-light { color: #f8f9fa !important; }
.text-decoration-none { text-decoration: none !important; }
.position-relative { position: relative !important; }
.bg-dark { background-color: #212529 !important; }
.justify-content-center { justify-content: center !important; }

/* Viewport toggle */
.d-only { display: none; }
@media (min-width: 768px) {
	.m-only { display: none !important; }
	.d-only { display: block; }
}

/* ── Base ──────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
	background-color: #0a0a0f;
	color: #f0f0f5;
	font-family: 'Space Grotesk', sans-serif;
	overflow-x: hidden;
	padding-bottom: 70px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
	background: var(--hero-bg);
	padding: 1rem 1rem 2rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
	padding-top: 0.5rem;
}

.hero h1 {
	font-family: 'Rubik Mono One', sans-serif;
	font-size: 1.4rem;
	font-weight: 900;
	letter-spacing: 0.5px;
	color: #ffffff;
	margin-top: 0;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.subtitle-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0.5rem 0 1rem;
}

.subtitle-row .logo-inline {
	width: 48px;
	height: auto;
	flex-shrink: 0;
}

.subtitle-row p.subtitle {
	font-size: 0.95rem;
	margin: 0;
	color: var(--subtitle-color);
	text-align: left;
}

/* ── CTA button ────────────────────────────────────────────── */
.cta-btn {
	background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
	border: none;
	color: white;
	padding: 16px 32px;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 12px;
	animation: pulse 2s infinite;
	box-shadow: 0 0 12px rgba(var(--cta-rgb), 0.6);
	transition: transform 0.2s ease;
	text-decoration: none;
	display: inline-block;
	width: 100%;
	max-width: 300px;
}

.cta-btn:hover {
	transform: scale(1.05);
	color: white;
}

.cta-subtext {
	font-size: 0.85rem;
	color: var(--cta-subtext);
	margin-top: 0.5rem;
}

/* ── Demo preview ──────────────────────────────────────────── */
.demo-preview {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0;
	padding: 0 0.5rem;
}

.demo-preview .before-after {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 12px;
	padding: 0.5rem;
}

.demo-preview img,
.demo-preview video {
	width: 120px;
	height: 180px;
	object-fit: cover;
	border-radius: 8px;
}

.demo-preview .arrow {
	color: var(--cta-from);
	font-size: 1.5rem;
}

.demo-examples {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.demo-example {
	text-align: center;
}

.demo-example .demo-preview {
	margin: 0;
}

.demo-prompt {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	color: var(--subtitle-color);
}

/* ── Sticky CTA ────────────────────────────────────────────── */
.sticky-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, #0a0a0f 80%, transparent);
	padding: 1rem;
	z-index: 1000;
	display: flex;
	justify-content: center;
}

.sticky-cta .cta-btn {
	padding: 14px 24px;
	font-size: 1rem;
	animation: none;
	max-width: none;
	width: auto;
}

.sticky-cta.hidden {
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.sticky-cta.visible {
	transform: translateY(0);
	transition: transform 0.3s ease;
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
	padding: 40px 16px;
	text-align: center;
}

/* Both class names used across templates — same structure */
.feature-card,
.pricing-card {
	background: linear-gradient(135deg, var(--card-bg-from), var(--card-bg-to));
	padding: 16px;
	border-radius: 12px;
	color: var(--card-text);
	margin-bottom: 16px;
	box-shadow: 0 0 20px rgba(var(--cta-rgb), 0.2);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
	text-align: center;
	padding: 2rem 1rem;
	font-size: 0.85rem;
	color: #aaa;
}

footer a {
	color: #ccc;
	text-decoration: underline;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes pulse {
	0%   { box-shadow: 0 0 12px rgba(var(--cta-rgb), 0.6); }
	50%  { box-shadow: 0 0 24px rgba(var(--cta-rgb), 0.9); }
	100% { box-shadow: 0 0 12px rgba(var(--cta-rgb), 0.6); }
}

@keyframes fadeInUp {
	0%   { opacity: 0; transform: translateY(20px); }
	100% { opacity: 1; transform: translateY(0); }
}

/* ── Magic section ─────────────────────────────────────────── */
.magic-section {
	background-color: #1a1a2e;
	color: white;
	padding: 1.5rem 1rem;
	border-radius: 1rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	margin: 1.5rem auto;
	text-align: center;
	font-size: 1rem;
	line-height: 1.5;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials {
	background-color: #1a1a2e;
	color: white;
	padding: 2rem 1rem;
	text-align: center;
}

.testimonials h2 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.testimonial-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 900px;
	margin: 0 auto;
}

.testimonial-list blockquote {
	background-color: #2e2e48;
	padding: 1rem;
	border-radius: 1rem;
	font-style: italic;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	font-size: 0.9rem;
}

.testimonial-list footer {
	margin-top: 0.75rem;
	font-weight: bold;
	color: #a0aec0;
	font-style: normal;
	padding: 0;
}

/* ── Headings ──────────────────────────────────────────────── */
h5 { color: var(--accent); }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb-nav {
	padding: 0.75rem 1rem;
	font-size: 0.85rem;
}

.breadcrumb-nav a {
	color: var(--cta-from);
	text-decoration: none;
}

/* ── Related pages ─────────────────────────────────────────── */
.related-pages {
	background-color: #1a1a2e;
	padding: 1.5rem 1rem;
	border-radius: 1rem;
	margin: 1.5rem 1rem;
	text-align: center;
}

.related-pages h3 {
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

.related-pages a {
	color: var(--cta-from);
	text-decoration: none;
	display: block;
	margin: 0.5rem 0;
}

/* ── Prompt examples ───────────────────────────────────────── */
.prompt-examples {
	background: linear-gradient(135deg, var(--card-bg-from), var(--card-bg-to));
	padding: 1.5rem 1rem;
	border-radius: 1rem;
	margin: 1.5rem 1rem;
	text-align: left;
}

.prompt-examples h3 {
	color: var(--cta-from);
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.prompt-examples ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.prompt-examples li {
	padding: 0.6rem;
	margin: 0.4rem 0;
	background: rgba(var(--cta-rgb), 0.1);
	border-radius: 8px;
	border-left: 3px solid var(--cta-from);
	font-size: 0.85rem;
}

.prompt-examples li code {
	color: var(--card-text);
}

/* ── Desktop ───────────────────────────────────────────────── */
@media (min-width: 768px) {
	.hero {
		padding: 4rem 1rem;
	}
	.hero-logo-bg {
		position: absolute;
		top: 1rem;
		left: 1rem;
		opacity: 0.8;
		z-index: 0;
		pointer-events: none;
		user-select: none;
		transition: all 0.3s ease;
		width: 250px;
	}
	.hero-content {
		padding-top: 0.2rem;
	}
	.hero h1 {
		font-size: 2.2rem;
		letter-spacing: 1px;
		animation: fadeInUp 1s ease-out forwards;
	}
	.hero p {
		font-size: 1.25rem;
		margin: 20px 0;
		color: var(--subtitle-color);
		animation: fadeInUp 1.2s ease-out forwards;
	}
	.cta-btn {
		padding: 14px 28px;
		font-size: 1.1rem;
		border-radius: 10px;
	}
	.cta-btn:hover {
		transform: scale(1.1);
	}
	.section {
		padding: 60px 20px;
	}
	.example-img {
		width: 100%;
		max-width: 240px;
		object-fit: cover;
		border-radius: 12px;
		margin-bottom: 1rem;
		box-shadow: 0 0 20px rgba(var(--cta-rgb), 0.3);
		transition: transform 0.3s ease;
	}
	.example-img:hover {
		transform: scale(1.03);
	}
	.feature-card,
	.pricing-card {
		padding: 20px;
		margin-bottom: 20px;
		transition: transform 0.3s ease;
		cursor: pointer;
	}
	.feature-card:hover,
	.pricing-card:hover {
		transform: scale(1.05);
	}
	footer {
		padding: 2rem 0;
		font-size: 0.9rem;
	}
	footer a:hover {
		color: #fff;
	}
	.magic-section {
		padding: 2rem 1.5rem;
		margin: 2rem auto;
		font-size: 1.1rem;
		line-height: 1.6;
	}
	.how-it-works-wrapper {
		display: flex;
		justify-content: center;
		padding: 1rem;
	}
	.how-it-works {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		list-style: decimal inside;
		max-width: 700px;
		text-align: left;
	}
	.testimonials {
		padding: 3rem 1.5rem;
	}
	.testimonials h2 {
		font-size: 1.75rem;
		margin-bottom: 2rem;
	}
	.testimonial-list {
		gap: 1.5rem;
	}
	.testimonial-list blockquote {
		padding: 1.5rem;
	}
	.testimonial-list footer {
		margin-top: 1rem;
	}
	.breadcrumb-nav {
		padding: 1rem;
		font-size: 0.9rem;
	}
	.breadcrumb-nav a:hover {
		text-decoration: underline;
	}
	.related-pages {
		padding: 2rem;
		margin: 2rem auto;
		max-width: 800px;
	}
	.related-pages a {
		margin: 0 1rem;
	}
	.related-pages a:hover {
		text-decoration: underline;
	}
	.prompt-examples {
		padding: 2rem;
		margin: 2rem auto;
		max-width: 700px;
	}
	.prompt-examples li {
		padding: 0.75rem;
		margin: 0.5rem 0;
	}
	.demo-preview {
		gap: 1rem;
		margin: 1.5rem 0;
		padding: 0 1rem;
	}
	.demo-preview .before-after {
		gap: 0.5rem;
		border-radius: 16px;
		padding: 0.75rem;
	}
	.demo-preview img,
	.demo-preview video {
		width: 180px;
		height: 270px;
		border-radius: 12px;
	}
	.demo-preview .arrow {
		font-size: 2rem;
	}
	.demo-examples {
		justify-content: center;
		gap: 3rem;
		flex-wrap: wrap;
		margin: 2rem 0;
	}
	.demo-prompt {
		margin-top: 0.75rem;
		font-size: 1.1rem;
	}
}
