/* =========================================================
   RideForce AI – Premium Landing Page Styles (v3)
   Brand: #3b82f6 (Blue Electric) → #8b5cf6 (Purple)
   Inspired by chatbot.com and Spark.ai aesthetic
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	background: #ffffff;
	color: #000000;
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: 'Figtree', sans-serif; font-weight: 800; color: #000; line-height: 1.15; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- Utilities ---------- */
.gradient-text {
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 800;
}

.section-label {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.8em;
}
.section-label--white { color: #fff; background: none; -webkit-text-fill-color: initial; opacity: 0.8; }

.section-title {
	font-size: clamp(2rem, 4vw, 3rem);
	text-align: center;
	margin-bottom: 0.5em;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}
.section-title--white { color: #ffffff; }

/* ---------- Scroll Animations ---------- */
.anim-fade {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
	            transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-fade.is-visible { opacity: 1; transform: none; }
.anim-fade--d1 { transition-delay: 0.1s; }
.anim-fade--d2 { transition-delay: 0.2s; }
.anim-fade--d3 { transition-delay: 0.3s; }
.anim-fade--d4 { transition-delay: 0.4s; }

/* =========================================================
   BUTTONS – Solid Gradient float effect
   ========================================================= */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Figtree', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	border: none;
	border-radius: 8px; /* Smooth aesthetic requested */
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1;
	line-height: 1;
}

/* Primary/White glow button unified to vibrant gradient */
.btn--glow, .btn--glow-white { 
	background: linear-gradient(135deg, #3b82f6, #8b5cf6); 
	color: #ffffff; 
	padding: 1.1em 2.5em; 
	box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}
.btn--glow:hover, .btn--glow-white:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 10px 24px rgba(139, 92, 246, 0.45);
	filter: brightness(1.1);
}
.btn--glow:active, .btn--glow-white:active { 
	transform: scale(0.98); 
}

.btn--nav { font-size: 0.85rem; padding: 0.7em 1.6em; }
.btn--lg { font-size: 1.05rem; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
	position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
	background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
	transition: all 0.4s ease; border-bottom: 1px solid transparent; padding: 0.4rem 0;
}
.nav--scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04); border-bottom-color: rgba(0,0,0,0.05); padding: 0; }
.nav__inner { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-weight: 800; font-size: 1.15rem; color: #000; }
.nav__colon { color: #000; }

.nav__actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle {
	background: none; border: none; cursor: pointer; color: #4b5563; padding: 0.5rem;
	display: flex; align-items: center; justify-content: center; border-radius: 50%;
	transition: all 0.3s ease;
}
.theme-toggle:hover { background: rgba(0,0,0,0.05); color: #000; }
.theme-toggle svg { width: 22px; height: 22px; }
.sun-icon { display: none; }
.moon-icon { display: block; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
	position: relative; padding: 12rem 2rem 8rem; min-height: 100vh;
	display: flex; align-items: center; overflow: hidden; background: #fafcff;
}

/* Gradient Mesh */
.hero__bg-mesh { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; opacity: 0.6; }
.mesh-blob { position: absolute; border-radius: 50%; filter: blur(100px); }
.mesh-blob--1 { width: 60vw; height: 60vw; background: #e0e7ff; top: -20%; right: -10%; animation: mesh-float 20s infinite alternate; }
.mesh-blob--2 { width: 50vw; height: 50vw; background: #f3e8ff; bottom: -10%; left: -20%; animation: mesh-float 25s infinite alternate-reverse; }
.mesh-blob--3 { width: 40vw; height: 40vw; background: #ccfbf1; top: 30%; left: 40%; animation: mesh-float 15s infinite alternate; }
@keyframes mesh-float { 100% { transform: translate(10%, 10%) scale(1.1); } }

.hero__container { position: relative; max-width: 1000px; margin: 0 auto; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4rem; }
.hero__content { max-width: 800px; display: flex; flex-direction: column; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.85rem; font-weight: 600; color: #4b5563; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 50px; padding: 0.5em 1.2em; margin-bottom: 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; animation: dot-pulse 2s infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 0.5em; }
.hero__subtitle { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: #4b5563; max-width: 650px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero__guarantee { font-size: 0.85rem; color: #6b7280; font-weight: 500; }

/* HERO Floating UI Cards */
.hero__visual { position: relative; width: 100%; display: flex; justify-content: center; margin-top: 1rem; }
.ui-mockup { position: relative; width: 100%; max-width: 800px; height: 350px; display: flex; justify-content: center; }
.glass-card {
	position: absolute; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 24px; padding: 1.5rem;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), inset 0 2px 2px rgba(255,255,255,0.5);
	transform-origin: center;
}
.glass-card__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.glass-card__icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; }
.bg-green { background: linear-gradient(135deg, #10b981, #059669); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.glass-card__icon svg { width: 20px; height: 20px; }
.glass-card__title { font-weight: 700; font-size: 0.95rem; color: #111827; }
.glass-card__subtitle { font-size: 0.75rem; color: #6b7280; display: block; }
.glass-card__text-group { display: flex; flex-direction: column; }
.glass-card__bar { height: 8px; background: #e5e7eb; border-radius: 10px; overflow: hidden; }
.glass-card__fill { height: 100%; border-radius: 10px; animation: load-bar 2s ease-out forwards; }
.fill-green { background: #10b981; }
.glass-card__stat { display: flex; flex-direction: column; margin-bottom: 1rem; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: #111827; line-height: 1; }
.stat-label { font-size: 0.85rem; color: #6b7280; font-weight: 600; margin-top: 0.2rem; }
.glass-card__chart { width: 100%; border-radius: 8px; }
.glass-card__value { margin-left: auto; font-size: 1.5rem; font-weight: 800; color: #3b82f6; }

@keyframes load-bar { 0% { width: 0; } 100% { width: 100%; } }

.glass-card--float1 { top: 0; right: 8%; width: 240px; animation: float-y 6s ease-in-out infinite; }
.glass-card--float2 { top: 20%; left: 50%; transform: translateX(-50%); width: 300px; z-index: 2; padding: 2.5rem; animation: float-main 8s ease-in-out infinite; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), inset 0 2px 2px rgba(255,255,255,0.7); background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(30px); }
.glass-card--float3 { bottom: 0; left: 5%; width: 300px; animation: float-y 7s ease-in-out infinite 1s; }
@keyframes float-y { 0%, 100% { margin-top: 0; } 50% { margin-top: -15px; } }
@keyframes float-main { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-20px); } }

/* =========================================================
   FEATURES
   ========================================================= */
.features { padding: 8rem 2rem; background: #ffffff; text-align: center; }
.features__container { max-width: 1200px; margin: 0 auto; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 4rem; text-align: left; }

.core-card { padding: 3rem 2rem; border-radius: 32px; background: #fafafa; border: 1px solid #f0f0f0; transition: all 0.4s ease; }
.core-card:hover { transform: translateY(-10px); background: #ffffff; box-shadow: 0 40px 80px rgba(0,0,0,0.05); border-color: transparent; }
.core-card__icon-wrapper { 
	width: 64px; height: 64px; 
	background: #ffffff; 
	border-radius: 16px; 
	box-shadow: 0 0 20px rgba(139, 92, 246, 0.15), inset 0 0 10px rgba(59, 130, 246, 0.05); 
	border: 1px solid rgba(139, 92, 246, 0.1);
	display: flex; align-items: center; justify-content: center; 
	margin-bottom: 2rem; 
	transition: all 0.4s ease;
}
.core-card:hover .core-card__icon-wrapper {
	box-shadow: 0 0 25px rgba(139, 92, 246, 0.35), inset 0 0 15px rgba(59, 130, 246, 0.2); 
    transform: scale(1.05);
}
.core-card__icon { 
	width: 32px; height: 32px; 
	color: #8b5cf6; 
	filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.5));
}
.core-card__title { font-size: 1.35rem; margin-bottom: 1rem; }
.core-card__text { font-size: 1rem; color: #6b7280; line-height: 1.7; }

/* =========================================================
   FAQ (New Dark Premium Cards)
   ========================================================= */
.faq { padding: 6rem 2rem 10rem; background: #fafcff; }
.faq__container { max-width: 1000px; margin: 0 auto; }
.faq .section-title { margin-bottom: 4rem; text-align: center; }

.faq-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.faq-card {
	position: relative;
	background: #111827; /* Dark grayish-blue matching screenshot */
	border-radius: 16px;
	padding: 2rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(255,255,255,0.05); /* Very subtle border */
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Top colored line */
.faq-card__glow-line { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.bg-gradient-blue { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.bg-gradient-purple { background: linear-gradient(90deg, #8b5cf6, #3b82f6); }
.bg-gradient-cyan { background: linear-gradient(90deg, #06b6d4, #10b981); }
.bg-gradient-magenta { background: linear-gradient(90deg, #d946ef, #8b5cf6); }

/* Header: Icon + Title + Chevron */
.faq-card__header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.5rem; }
.faq-card__icon { width: 24px; height: 24px; flex-shrink: 0; }
.text-blue { color: #3b82f6; }
.text-purple { color: #8b5cf6; }
.text-cyan { color: #06b6d4; }
.text-magenta { color: #d946ef; }

.faq-card__question { font-size: 1.15rem; font-weight: 600; color: #f9fafb; line-height: 1.4; flex-grow: 1; margin: 0; }
.faq-card__chevron { width: 20px; height: 20px; color: #4b5563; flex-shrink: 0; margin-top: 4px; transition: transform 0.3s ease; cursor: pointer; }
.faq-card:hover .faq-card__chevron { color: #9ca3af; }

/* Body Area */
.faq-card__body { padding-top: 1rem; }
.faq-card__divider { height: 1px; width: 100%; background: rgba(255,255,255,0.08); margin-bottom: 1.5rem; }
.faq-card__answer { font-size: 1rem; color: #d1d5db; line-height: 1.6; font-weight: 400; margin: 0; }

/* =========================================================
   CTA SECTION & SMOOTH TRANSITION
   ========================================================= */
.cta-wrapper { position: relative; }
.cta-gradient-transition {
	width: 100%;
	height: 150px;
	background: linear-gradient(to bottom, #fafcff 0%, #6d28d9 100%);
	margin-bottom: -1px; /* Prevents pixel-gap line */
}

.cta {
	background: linear-gradient(to bottom, #6d28d9 0%, #4f46e5 100%); /* Deep rich SaaS purple/blue */
	padding: 2rem 2rem 8rem; text-align: center; position: relative; z-index: 1;
}
.cta__container { max-width: 700px; margin: 0 auto; }
.cta__subtitle { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: rgba(255,255,255,0.9); margin-top: 1.5rem; margin-bottom: 3rem; line-height: 1.6; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #0a0a0a; padding: 4rem 2rem; text-align: center; color: #fff; }
.footer__container { max-width: 1200px; margin: 0 auto; }
.footer__brand { font-weight: 800; font-size: 1.2rem; margin-bottom: 0.8rem; }
.footer__brand span:not(.gradient-text) { color: #fff; }
.footer__copy { font-size: 0.9rem; color: #6b7280; margin-bottom: 1rem; }
.footer__links a { color: #9ca3af; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.footer__links a:hover { color: #fff; }
.footer__sep { color: #4b5563; margin: 0 0.8rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.features__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
	.hero { padding: 9rem 1.5rem 5rem; }
	.hero__title { font-size: 2.5rem; }
	.ui-mockup { transform: scale(0.85); margin-top: -2rem; height: 300px; }
	.glass-card--float1 { right: -20px; top: -20px; }
	.glass-card--float3 { left: -20px; bottom: 20px; }
	.faq-wrapper { grid-template-columns: 1fr; gap: 1.5rem; }
	.cta-gradient-transition { height: 100px; }
}

@media (max-width: 480px) {
	.btn--lg { padding: 1em 2em; font-size: 1rem; }
	.ui-mockup { display: none; } /* Hide complex mockups on tiny screens for clarity */
}

/* =========================================================
   DARK MODE OVERRIDE (Manual Toggle via JS)
   ========================================================= */
html.dark-mode body { background: #000000; color: #f9fafb; }

/* Nav */
html.dark-mode .nav { background: rgba(0, 0, 0, 0.85); border-bottom-color: rgba(255,255,255,0.05); }
html.dark-mode .nav__logo { color: #fff; }
html.dark-mode .nav__colon { color: #fff; }

/* Toggle Button */
html.dark-mode .theme-toggle { color: #d1d5db; }
html.dark-mode .theme-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
html.dark-mode .sun-icon { display: block; }
html.dark-mode .moon-icon { display: none; }

/* Typography */
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3 { color: #fff; }
html.dark-mode p { color: #d1d5db; }
	
/* Hero */
html.dark-mode .hero { background: #000000; }
html.dark-mode .hero__bg-mesh { opacity: 0.15; }
html.dark-mode .badge { background: #111827; border-color: #374151; color: #e5e7eb; }
html.dark-mode .hero__subtitle { color: #9ca3af; }
html.dark-mode .hero__guarantee { color: #9ca3af; }

/* Floating Cards */
html.dark-mode .glass-card { background: rgba(17, 24, 39, 0.7); border-color: rgba(255,255,255,0.08); box-shadow: 0 24px 48px rgba(0,0,0,0.6); }
html.dark-mode .glass-card--float2 { background: rgba(17, 24, 39, 0.85); box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
html.dark-mode .glass-card__title { color: #f9fafb; }
html.dark-mode .glass-card__subtitle { color: #9ca3af; }
html.dark-mode .stat-num { color: #fff; }
html.dark-mode .stat-label { color: #9ca3af; }
html.dark-mode .glass-card__bar { background: #374151; }

/* Features */
html.dark-mode .features { background: #0a0a0a; }
html.dark-mode .core-card { background: #111827; border-color: #1f2937; }
html.dark-mode .core-card:hover { background: #1f2937; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
html.dark-mode .core-card__title { color: #f9fafb; }
html.dark-mode .core-card__text { color: #9ca3af; }
html.dark-mode .core-card__icon-wrapper { background: #1e293b; border-color: rgba(139, 92, 246, 0.3); }

/* FAQ */
html.dark-mode .faq { background: #0a0a0a; }

/* CTA Block Background match */
html.dark-mode .cta-gradient-transition { background: linear-gradient(to bottom, #0a0a0a 0%, #6d28d9 100%); }
