/* ============================================
   HOMEPAGE DESIGN SYSTEM
   Visual enhancements for the TenderFlow landing page
   ============================================ */

/* --- Hero Section --- */
.hero-section {
	background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #2563eb 70%, #3b82f6 100%);
	position: relative;
	overflow: hidden;
	color: #fff;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -20%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
	border-radius: 50%;
	animation: heroFloat 8s ease-in-out infinite;
}

.hero-section::after {
	content: '';
	position: absolute;
	bottom: -40%;
	right: -15%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
	border-radius: 50%;
	animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-section h1 {
	color: #fff;
	font-size: 2.75rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hero-section .lead {
	color: rgba(255,255,255,0.9);
	font-size: 1.15rem;
}

.hero-section .text-muted {
	color: rgba(255,255,255,0.7) !important;
}

.hero-section .badge {
	background: rgba(255,255,255,0.15) !important;
	color: #fff !important;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.2);
	font-weight: 500;
}

.hero-section .btn-primary {
	background: #fff;
	color: #1e3a8a;
	border-color: #fff;
	font-weight: 700;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-section .btn-primary:hover {
	background: #f0f4ff;
	color: #1e3a8a;
	border-color: #f0f4ff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.hero-section .btn-outline-primary {
	color: #fff;
	border-color: rgba(255,255,255,0.5);
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(10px);
}

.hero-section .btn-outline-primary:hover {
	background: rgba(255,255,255,0.2);
	border-color: #fff;
	color: #fff;
	transform: translateY(-2px);
}

.hero-section .text-success {
	color: #86efac !important;
}

.hero-section .text-primary {
	color: #93c5fd !important;
}

.hero-section .small .bi {
	font-size: 0.85rem;
}

/* Hero trust badges */
.hero-trust-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.hero-trust-bar span {
	font-size: 0.85rem;
	opacity: 0.85;
}

/* --- Stat Counters (glass cards) --- */
.stat-counter {
	background: rgba(255, 255, 255, 0.15) !important;
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 1rem !important;
	padding: 1.5rem 1rem !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.stat-counter:hover {
	transform: translateY(-4px);
}

.stat-counter .h2 {
	color: #fff !important;
	font-size: 2rem;
}

.stat-counter .text-muted {
	color: rgba(255,255,255,0.8) !important;
}

/* --- Wave Divider --- */
.wave-divider {
	position: relative;
	margin-top: -1px;
}

.wave-divider svg {
	display: block;
	width: 100%;
	height: 60px;
}

/* --- How It Works --- */
.how-it-works-section {
	position: relative;
}

.step-card {
	position: relative;
	z-index: 1;
}

.step-number {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #1e40af, #3b82f6);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.step-icon-box {
	width: 64px;
	height: 64px;
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 1.5rem;
}

.step-icon-box.step-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.step-icon-box.step-teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
.step-icon-box.step-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }

/* Connecting line between steps */
.steps-connector {
	position: relative;
}

.steps-connector::before {
	content: '';
	position: absolute;
	top: 52px;
	left: 20%;
	right: 20%;
	height: 2px;
	background: linear-gradient(90deg, #3b82f6, #2563eb, #10b981);
	opacity: 0.2;
	z-index: 0;
}

@media (max-width: 767.98px) {
	.steps-connector::before {
		display: none;
	}
}

/* --- Problem / Solution --- */
.problem-card {
	border-left: 4px solid #ef4444;
	border-radius: 0.75rem;
	overflow: hidden;
}

.solution-card {
	border-left: 4px solid #10b981;
	border-radius: 0.75rem;
	overflow: hidden;
}

.problem-card .card-body,
.solution-card .card-body {
	padding: 1.75rem;
}

/* --- Feature Cards --- */
.feature-card {
	border-radius: 1rem;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid rgba(0,0,0,0.06);
}

.feature-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
}

.feature-card .card-body {
	padding: 2rem 1.5rem;
}

.feature-icon {
	width: 64px;
	height: 64px;
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
	font-size: 1.5rem;
}

.feature-icon-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.feature-icon-teal { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }
.feature-icon-green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.feature-icon-amber { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.feature-icon-rose { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #e11d48; }

/* --- AI Highlight Section --- */
.ai-highlight-section {
	background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
	position: relative;
	overflow: hidden;
}

.ai-highlight-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(96,165,250,0.1) 0%, transparent 50%);
}

.ai-feature-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 575.98px) {
	.ai-feature-grid {
		grid-template-columns: 1fr;
	}
}

.ai-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	background: rgba(255,255,255,0.06);
	border-radius: 0.75rem;
	border: 1px solid rgba(255,255,255,0.08);
	transition: background 0.2s;
}

.ai-feature-item:hover {
	background: rgba(255,255,255,0.1);
}

.ai-feature-item i {
	color: #93c5fd;
	font-size: 1.1rem;
	margin-top: 2px;
	flex-shrink: 0;
}

.ai-mock-card {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 1rem;
	padding: 2rem;
	backdrop-filter: blur(10px);
	text-align: center;
}

.ai-mock-score {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 4px solid #93c5fd;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	position: relative;
}

.ai-mock-score::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 4px solid transparent;
	border-top-color: #34d399;
	animation: scoreSpin 3s linear infinite;
}

@keyframes scoreSpin {
	to { transform: rotate(360deg); }
}

.ai-mock-bars {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1rem;
}

.ai-mock-bar {
	height: 8px;
	border-radius: 4px;
	background: rgba(255,255,255,0.1);
	overflow: hidden;
}

.ai-mock-bar-fill {
	height: 100%;
	border-radius: 4px;
	animation: barFill 2s ease-out forwards;
}

@keyframes barFill {
	from { width: 0; }
}

/* --- Category & Region Cards --- */
.category-card {
	border-radius: 1rem;
	border: 1px solid rgba(0,0,0,0.06);
	transition: all 0.3s ease;
	overflow: hidden;
}

.category-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15) !important;
	border-color: rgba(59, 130, 246, 0.2);
}

.category-card .card-body {
	padding: 1.5rem;
}

.category-icon {
	width: 64px;
	height: 64px;
	border-radius: 1rem;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 1.5rem;
	color: #2563eb;
	transition: all 0.3s ease;
}

.category-card:hover .category-icon {
	background: linear-gradient(135deg, #1e40af, #3b82f6);
	color: #fff;
	transform: scale(1.1);
}

.category-count {
	font-size: 1.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, #1e40af, #3b82f6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* --- Recent Tenders --- */
.tender-preview-card {
	border-radius: 0.75rem;
	border: 1px solid rgba(0,0,0,0.06);
	transition: all 0.3s ease;
}

.tender-preview-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
	border-color: rgba(59, 130, 246, 0.15);
}

/* --- Free Tools Grid --- */
.tool-card {
	border-radius: 1rem;
	border: 1px solid rgba(0,0,0,0.06);
	transition: all 0.3s ease;
	overflow: hidden;
	position: relative;
}

.tool-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #1e40af, #3b82f6);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.tool-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
}

.tool-card:hover::after {
	transform: scaleX(1);
}

.tool-icon {
	width: 64px;
	height: 64px;
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 1.5rem;
}

.tool-icon-1 { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.tool-icon-2 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.tool-icon-3 { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.tool-icon-4 { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }

/* --- Pricing Preview --- */
.pricing-preview-card {
	border-radius: 1rem !important;
	border: 1px solid rgba(0,0,0,0.06) !important;
	transition: all 0.3s ease;
	overflow: visible;
	margin-top: 1rem;
}

.pricing-preview-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
}

.pricing-popular {
	border: 2px solid #3b82f6 !important;
	box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15) !important;
}

.pricing-popular:hover {
	box-shadow: 0 16px 50px rgba(59, 130, 246, 0.2) !important;
}

.pricing-price {
	font-size: 2.5rem;
	font-weight: 800;
	background: linear-gradient(135deg, #1e3a8a, #3b82f6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* --- CTA Section --- */
.cta-section {
	background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
	position: relative;
	overflow: hidden;
}

.cta-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
	border-radius: 50%;
}

.cta-section h2 {
	color: #fff;
}

.cta-section p {
	color: rgba(255,255,255,0.85);
}

.cta-section .btn-warning {
	background: linear-gradient(135deg, #f59e0b, #eab308);
	border: none;
	font-weight: 700;
	box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
	color: #1e3a8a;
}

.cta-section .btn-warning:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.cta-section .btn-outline-light {
	border-width: 2px;
}

.cta-section .btn-outline-light:hover {
	transform: translateY(-2px);
}

/* --- FAQ Section --- */
.faq-section .accordion-item {
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 0.75rem !important;
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.faq-section .accordion-button {
	font-weight: 600;
	padding: 1.25rem 1.5rem;
	border-radius: 0.75rem !important;
}

.faq-section .accordion-button:not(.collapsed) {
	background: #fff;
	color: #1e3a8a;
	box-shadow: none;
}

.faq-section .accordion-body {
	padding: 0 1.5rem 1.25rem;
}

/* --- Newsletter --- */
.newsletter-card {
	border-radius: 1rem;
	border: none;
	background: linear-gradient(135deg, #f0f4ff, #e0f2fe);
	position: relative;
	overflow: hidden;
}

.newsletter-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #1e3a8a, #2563eb, #3b82f6);
}

/* --- Blog Cards --- */
.blog-card {
	border-radius: 1rem;
	border: 1px solid rgba(0,0,0,0.06);
	transition: all 0.3s ease;
	overflow: hidden;
}

.blog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
}

.blog-card .card-body {
	padding: 1.75rem;
}

/* --- Trust Badges --- */
.trust-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.25rem;
	border-radius: 1rem;
	background: #f8fafc;
	transition: all 0.3s ease;
}

.trust-badge:hover {
	background: #f0f4ff;
	transform: translateY(-2px);
}

.trust-badge i {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

/* --- Section Headings --- */
.section-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 1rem;
	border-radius: 2rem;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.section-pill-blue {
	background: rgba(59, 130, 246, 0.1);
	color: #2563eb;
}

.section-pill-navy {
	background: rgba(30, 58, 138, 0.1);
	color: #1e3a8a;
}

.section-pill-green {
	background: rgba(16, 185, 129, 0.1);
	color: #059669;
}

.section-pill-amber {
	background: rgba(217, 119, 6, 0.1);
	color: #d97706;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
	opacity: 1;
	transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 991.98px) {
	.hero-section h1 {
		font-size: 2rem;
	}
}

@media (max-width: 767.98px) {
	.hero-section h1 {
		font-size: 1.75rem;
	}

	.hero-section .lead {
		font-size: 1rem;
	}

	.stat-counter .h2 {
		font-size: 1.5rem !important;
	}

	.stat-counter {
		padding: 1rem 0.75rem !important;
	}

	.ai-mock-card {
		margin-top: 2rem;
	}

	.pricing-price {
		font-size: 2rem;
	}
}

/* --- Misc --- */
.gradient-text {
	background: linear-gradient(135deg, #1e40af, #3b82f6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-divider {
	width: 60px;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, #1e40af, #3b82f6);
	margin: 0 auto 1.5rem;
}
