/* =============================================
   COST — Custom Optimization Solutions & Tools
   Design System & Styles
   ============================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Manrope", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #1a1a2e;
	background-color: #fefefe;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
}

/* --- Container --- */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Sora", sans-serif;
	line-height: 1.2;
	font-weight: 700;
	color: #1a1a2e;
}

h1 {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
	font-size: clamp(2rem, 3.5vw, 3rem);
}

.section-title {
	text-align: center;
	margin-bottom: 0.75rem;
}

.section-subtitle {
	text-align: center;
	color: #5b5b70;
	font-size: 1.125rem;
	max-width: 640px;
	margin: 0 auto 3rem;
}

/* --- Section Padding --- */
section {
	padding: clamp(4rem, 8vw, 8rem) 0;
}

/* --- Buttons --- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Sora", sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.875rem 2rem;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
	white-space: nowrap;
	text-decoration: none;
}

.btn:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.btn-primary {
	background-color: #fd7101;
	color: #fff;
}

.btn-secondary {
	background-color: #0238b5;
	color: #fff;
}

.btn-sm {
	padding: 0.5rem 1.25rem;
	font-size: 0.8125rem;
}

.btn-full {
	width: 100%;
}

.btn-hero {
	padding: 1rem 2.5rem;
	font-size: 1.0625rem;
}

.btn-cta {
	padding: 1.125rem 3rem;
	font-size: 1.125rem;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0.75rem 0;
	transition:
		background-color 0.3s ease,
		box-shadow 0.3s ease,
		backdrop-filter 0.3s ease;
}

.nav-scrolled {
	background-color: rgba(254, 254, 254, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 #d4d8ec;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	z-index: 1001;
}

.nav-logo-img {
	border-radius: 8px;
}

.nav-logo-text {
	font-family: "Sora", sans-serif;
	font-weight: 800;
	font-size: 1.375rem;
	color: #fff;
	transition: color 0.3s ease;
}

.nav-scrolled .nav-logo-text {
	color: #0238b5;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav-link {
	font-family: "Sora", sans-serif;
	font-weight: 600;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.85);
	transition: color 0.25s ease;
	position: relative;
}

.nav-link::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #fd7101;
	transition: width 0.3s ease;
}

.nav-link:hover {
	color: #fff;
}

.nav-link:hover::after {
	width: 100%;
}

.nav-scrolled .nav-link {
	color: #1a1a2e;
}

.nav-scrolled .nav-link:hover {
	color: #0238b5;
}

.nav-cta {
	display: none;
}

/* --- Hamburger Toggle --- */
.nav-toggle {
	display: none; /* hidden on desktop, shown on mobile */
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	cursor: pointer;
	z-index: 1001;
	padding: 0;
}

.nav-toggle-bar {
	display: block;
	width: 24px;
	height: 2.5px;
	background-color: #fff;
	border-radius: 2px;
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
}

.nav-scrolled .nav-toggle-bar {
	background-color: #1a1a2e;
}

/* Hamburger → X */
.nav-toggle-open .nav-toggle-bar:nth-child(1) {
	transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle-open .nav-toggle-bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle-open .nav-toggle-bar:nth-child(3) {
	transform: translateY(-7.5px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: linear-gradient(135deg, #011a59 0%, #0238b5 100%);
	overflow: hidden;
	padding: 6rem 0 0;
}

.hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.hero-shape {
	position: absolute;
	width: 100%;
	height: 100%;
}

.hero-shape-1 {
	top: -10%;
	right: -10%;
	width: 100%;
	height: 100%;
}

.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 60px 60px;
}

.hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
	flex: 1;
}

.hero-content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
}

.hero-tagline {
	font-family: "Sora", sans-serif;
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fd7101;
}

.hero-title {
	color: #fff;
	font-weight: 800;
	line-height: 1.1;
	overflow-wrap: break-word;
}

.hero-title-accent {
	background: linear-gradient(135deg, #fd7101, #ff9a44);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-subtitle {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.75);
	max-width: 520px;
	line-height: 1.7;
}

.hero-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-flame svg {
	width: clamp(200px, 25vw, 360px);
	height: auto;
	filter: drop-shadow(0 0 60px rgba(253, 113, 1, 0.3));
	animation: flamePulse 3s ease-in-out infinite;
}

@keyframes flamePulse {
	0%,
	100% {
		transform: scale(1) translateY(0);
	}
	50% {
		transform: scale(1.04) translateY(-8px);
	}
}

/* --- Marquee Strip --- */
.hero-strip {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	padding: 1rem 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(1, 26, 89, 0.6);
}

.hero-strip span {
	font-family: "Sora", sans-serif;
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

@keyframes marqueeScroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* =============================================
   REVIEWS
   ============================================= */
.reviews {
	background-color: #fefefe;
}

.reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.review-card {
	background: #f0f3ff;
	border: 1px solid #d4d8ec;
	border-radius: 1rem;
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.review-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(2, 56, 181, 0.08);
}

.review-stars {
	display: flex;
	gap: 0.25rem;
	color: #fd7101;
	font-size: 1rem;
}

.review-text {
	font-size: 0.9375rem;
	color: #1a1a2e;
	line-height: 1.7;
	flex: 1;
}

.review-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #d4d8ec;
}

.review-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #0238b5;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: 0.875rem;
	flex-shrink: 0;
}

.review-name {
	font-family: "Sora", sans-serif;
	font-weight: 600;
	font-size: 0.875rem;
	color: #1a1a2e;
}

.review-role {
	font-size: 0.8125rem;
	color: #5b5b70;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
	background-color: #f0f3ff;
}

.steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 1.5rem;
	max-width: 960px;
	margin: 0 auto;
}

.step {
	flex: 1;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.step-number {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #0238b5;
	color: #fff;
	font-family: "Sora", sans-serif;
	font-weight: 800;
	font-size: 1.375rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.step-title {
	font-size: 1.25rem;
	color: #1a1a2e;
}

.step-text {
	font-size: 0.9375rem;
	color: #5b5b70;
	line-height: 1.7;
	max-width: 300px;
}

.step-connector {
	display: flex;
	align-items: center;
	padding-top: 1.25rem;
	flex-shrink: 0;
}

/* =============================================
   BENEFITS
   ============================================= */
.benefits {
	background-color: #fefefe;
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	max-width: 900px;
	margin: 0 auto;
}

.benefit-card {
	background: #fefefe;
	border: 1px solid #d4d8ec;
	border-radius: 1rem;
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.benefit-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(2, 56, 181, 0.06);
}

.benefit-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background-color: #f0f3ff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.benefit-title {
	font-size: 1.125rem;
	color: #1a1a2e;
}

.benefit-text {
	font-size: 0.9375rem;
	color: #5b5b70;
	line-height: 1.7;
}

/* =============================================
   INDUSTRIES
   ============================================= */
.industries {
	background-color: #f0f3ff;
}

.industries-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.25rem;
}

.industry-card {
	background: #fefefe;
	border: 1px solid #d4d8ec;
	border-radius: 1rem;
	padding: 1.5rem 1.25rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.industry-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(2, 56, 181, 0.06);
}

.industry-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.industry-name {
	font-size: 1rem;
	color: #1a1a2e;
}

.industry-text {
	font-size: 0.8125rem;
	color: #5b5b70;
	line-height: 1.6;
}

/* =============================================
   MARKETPLACE
   ============================================= */
.marketplace {
	background-color: #fefefe;
}

.marketplace-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.tool-card {
	background: #fefefe;
	border: 1px solid #d4d8ec;
	border-radius: 1rem;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.tool-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(2, 56, 181, 0.06);
}

.tool-badge {
	position: absolute;
	top: 0.75rem;
	right: 1.25rem;
	background-color: #fd7101;
	color: #fff;
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
}

.tool-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.tool-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background-color: #f0f3ff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tool-name {
	font-size: 1.0625rem;
	color: #1a1a2e;
}

.tool-desc {
	font-size: 0.875rem;
	color: #5b5b70;
	line-height: 1.7;
	flex: 1;
}

.tool-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.75rem;
	border-top: 1px solid #d4d8ec;
}

.tool-industry {
	font-family: "Sora", sans-serif;
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #0238b5;
}

.tool-rating {
	font-size: 0.8125rem;
	color: #5b5b70;
}

.marketplace-cta {
	margin-top: 2.5rem;
	text-align: center;
}

.marketplace-cta p {
	font-size: 0.9375rem;
	color: #5b5b70;
	max-width: 540px;
	margin: 0 auto;
	line-height: 1.7;
}

/* =============================================
   PRICING
   ============================================= */
.pricing {
	background-color: #f0f3ff;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	max-width: 1000px;
	margin: 0 auto;
	align-items: start;
}

.pricing-card {
	background: #fefefe;
	border: 1px solid #d4d8ec;
	border-radius: 1rem;
	padding: 2rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: relative;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.pricing-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(2, 56, 181, 0.06);
}

.pricing-card-featured {
	border: 2px solid #fd7101;
	box-shadow: 0 8px 32px rgba(253, 113, 1, 0.1);
	transform: scale(1.04);
}

.pricing-card-featured:hover {
	transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
	position: absolute;
	top: -0.75rem;
	left: 50%;
	transform: translateX(-50%);
	background-color: #fd7101;
	color: #fff;
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.375rem 1rem;
	border-radius: 9999px;
}

.pricing-tier {
	font-size: 1.25rem;
	color: #1a1a2e;
}

.pricing-amount {
	font-family: "Sora", sans-serif;
	font-weight: 800;
	font-size: 2.5rem;
	color: #1a1a2e;
	line-height: 1;
}

.pricing-currency {
	font-size: 1.5rem;
	vertical-align: super;
}

.pricing-period {
	font-size: 1rem;
	font-weight: 600;
	color: #5b5b70;
}

.pricing-amount-custom {
	font-size: 2rem;
}

.pricing-desc {
	font-size: 0.875rem;
	color: #5b5b70;
	line-height: 1.6;
}

.pricing-features {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex: 1;
}

.pricing-features li {
	font-size: 0.875rem;
	color: #1a1a2e;
	padding-left: 1.5rem;
	position: relative;
	line-height: 1.5;
}

.pricing-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #fd7101;
	font-weight: 700;
}

/* =============================================
   CTA
   ============================================= */
.cta {
	background: linear-gradient(135deg, #011a59 0%, #0238b5 100%);
	text-align: center;
}

.cta-inner {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.cta-title {
	color: #fff;
	font-weight: 800;
}

.cta-text {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.7;
	max-width: 500px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
	background-color: #fefefe;
	border-top: 1px solid #d4d8ec;
	padding: 3rem 0 1.5rem;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #d4d8ec;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: 280px;
}

.footer-logo {
	border-radius: 6px;
}

.footer-tagline {
	font-family: "Sora", sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	color: #1a1a2e;
}

.footer-tagline-sub {
	font-size: 0.8125rem;
	color: #5b5b70;
}

.footer-links {
	display: flex;
	gap: 3rem;
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-heading {
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5b5b70;
	margin-bottom: 0.25rem;
}

.footer-col a {
	font-size: 0.875rem;
	color: #1a1a2e;
	transition: color 0.25s ease;
}

.footer-col a:hover {
	color: #0238b5;
}

.footer-bottom {
	padding-top: 1.5rem;
	text-align: center;
}

.footer-bottom p {
	font-size: 0.8125rem;
	color: #5b5b70;
}

/* =============================================
   SCROLL REVEAL — fadeInUp
   ============================================= */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity 0.6s ease-out,
		transform 0.6s ease-out;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

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

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet: 768–1024px */
@media (max-width: 1024px) {
	.industries-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.pricing-card-featured {
		transform: scale(1);
	}

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

	.hero-inner {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 3rem;
	}

	.hero-content {
		align-items: center;
	}

	.hero-subtitle {
		max-width: 480px;
	}

	.hero-flame svg {
		width: clamp(160px, 20vw, 260px);
	}

	.steps {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.step {
		max-width: 400px;
	}

	.step-connector {
		transform: rotate(90deg);
		padding: 0;
	}
}

/* Mobile: <768px */
@media (max-width: 767px) {
	/* --- Nav --- */
	.nav-toggle {
		display: flex;
	}

	.nav-links {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(320px, 80vw);
		background: #fefefe;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 1.5rem;
		padding: 6rem 2rem 2rem;
		transform: translateX(100%);
		transition: transform 0.35s ease;
		box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
	}

	.nav-links-open .nav-links {
		transform: translateX(0);
	}

	.nav-link {
		color: #1a1a2e;
		font-size: 1rem;
	}

	.nav-link::after {
		display: none;
	}

	.nav-cta {
		display: inline-flex;
		margin-top: 0.5rem;
	}

	/* --- Hero --- */
	.hero {
		min-height: auto;
		padding: 5rem 0 0;
	}

	.hero-title {
		font-size: clamp(2rem, 10vw, 2.75rem);
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	.hero-visual {
		display: none;
	}

	.hero-strip {
		gap: 0.5rem 1rem;
		padding: 0.75rem 1rem;
		font-size: 0.6875rem;
	}

	.hero-strip span {
		margin: 0;
	}

	/* --- Grids → single column --- */
	.reviews-grid,
	.benefits-grid,
	.industries-grid,
	.marketplace-grid,
	.pricing-grid {
		grid-template-columns: 1fr;
	}

	.pricing-card {
		padding: 1.5rem;
	}

	/* --- Reviews --- */
	.review-card {
		padding: 1.5rem;
	}

	/* --- Industries --- */
	.industry-card {
		padding: 1.25rem;
	}

	/* --- Footer --- */
	.footer-inner {
		flex-direction: column;
		gap: 2rem;
	}

	.footer-links {
		flex-direction: column;
		gap: 2rem;
	}

	.footer-brand {
		max-width: 100%;
	}

	/* --- CTA --- */
	.cta-title {
		font-size: clamp(1.75rem, 7vw, 2.25rem);
	}
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.hero-flame svg {
		animation: none;
	}

	.hero-strip {
		animation: none;
	}

	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
