/* Use system fonts for performance and consistency */
:root {
	--bg: #0f172a;             /* slate-900 */
	--bg-alt: #111827;         /* gray-900 */
	--text: #e5e7eb;           /* gray-200 */
	--muted: #9ca3af;          /* gray-400 */
	--primary: #3b82f6;        /* blue-500 */
	--primary-600: #2563eb;    /* blue-600 */
	--surface: #111827;        /* gray-900 */
	--border: #1f2937;         /* gray-800 */
	--success: #10b981;        /* emerald-500 */
}

/* CSS Reset */
body,
h1, h2, h3,
p, ul, li, form, input,
table, tr, td,
header, nav, article, section, dialog, figure, aside, footer, span, textarea {
	border: 0;
	margin: 0;
	padding: 0;
}

/* Base */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

/*ul resets */
ul { list-style: none; padding: 0; margin: 0; }

h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
p { font-size: 1rem; color: var(--muted); margin-bottom: 0.75rem; }

/* Header */
#main_header {
	min-height: 60vh;
	position: relative;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.85)), url('../images/banner.jpg') center/cover no-repeat;
	border-bottom: 1px solid var(--border);
}

#main-header-content {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center; /* Center items horizontally */
}

.card {
	background: rgba(17, 24, 39, 0.6);
	padding: 1.5rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	text-align: center;
	transition: all 0.2s ease;
}

.card:hover {
	background: rgba(59, 130, 246, 0.1);
	border-color: var(--primary);
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.card h3 {
	color: var(--text);
	margin-bottom: 0.75rem;
}

.card p {
	color: var(--muted);
	font-size: 1rem;
}

.card .large-button {
	width: 100%;
}

.card .large-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Store links */
#storelinks-wrapper { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-top: 1rem; }
#storelinks-wrapper ul { display: flex; gap: 0.75rem; }
#storelinks-wrapper ul li a { display: block; opacity: 0.9; transition: opacity 0.2s ease; }
#storelinks-wrapper ul li a:hover { opacity: 1; }

/* Promo */
#promo_text {
	max-width: 640px;
	background: rgba(17,24,39,0.8);
	padding: 2rem;
	border-radius: 12px;
	border: 1px solid var(--border);
	backdrop-filter: blur(4px);
	width: 100%; /* Make it responsive */
	box-sizing: border-box; /* Include padding in width calculation */
}
#promo_text h1 { color: var(--text); }
#promo_text p { font-size: 1.25rem; color: var(--text); margin-bottom: 0.75rem; line-height: 1.8; }

/* Adjust promo text width for different screen sizes */
@media (min-width: 768px) {
	#promo_text {
		max-width: 700px; /* Wider on tablet and desktop */
		width: auto; /* Allow natural width up to max-width */
	}
}

@media (min-width: 1024px) {
	#promo_text {
		max-width: 800px; /* Even wider on desktop */
	}
}

/* Buttons */
#getAppBtn { display: inline-block; min-width: 160px; border-bottom: none; }

/* Secondary Button */
.secondary-button {
	background: transparent;
	border-color: var(--primary);
	color: var(--primary);
}

.secondary-button:hover {
	background: var(--primary);
	color: white;
}

/* Footer */
#site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2rem 0; }
#site-footer .container { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
#site-footer .container > * { margin: 0.25rem 0; text-align: center; }

/* Grid Layouts */
.how-it-works-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 2rem;
}

@media (min-width: 768px) {
	.how-it-works-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.how-it-works-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.how-step {
	background: rgba(59, 130, 246, 0.1);
	padding: 1.5rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	text-align: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.how-step:hover {
	background: rgba(59, 130, 246, 0.15);
	transform: translateY(-4px);
}

.step-icon {
	font-size: 2.5rem;
	margin-bottom: 0.75rem;
}

/* Use Cases Grid */
.usecases-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.usecases-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Features Grid */
.features-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 2rem;
}

@media (min-width: 768px) {
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.features-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.feature-icon {
	font-size: 2.5rem;
	margin-bottom: 0.75rem;
	display: block;
}

/* Modern Slider Styles */
.slider-wrapper { position: relative; width: 100%; }
.slider { position: relative; width: 100%; transition: height 0.5s ease; }
.slider > li { width: 100%; }

/* Slider Navigation Arrows */
.slider-prev,
.slider-next {
	position: absolute;
	top: 100%;
	transform: translateY(-50%);
	background: rgba(59, 130, 246, 0.9);
	color: white;
	border: none;
	font-size: 2.5rem;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	transition: background 0.2s ease, transform 0.1s ease;
	line-height: 1;
	padding: 0;
}

.slider-prev:hover,
.slider-next:hover {
	background: rgba(37, 99, 235, 1);
}

.slider-prev:active,
.slider-next:active {
	transform: translateY(-50%) scale(0.95);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* Slider Dots */
.slider-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(156, 163, 175, 0.5);
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
	padding: 0;
}

.slider-dot:hover {
	background: rgba(156, 163, 175, 0.8);
}

.slider-dot.active {
	background: var(--primary);
	transform: scale(1.2);
}

#footer-nav ul { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
#footer-nav ul li a { display: block; color: var(--muted); padding: 0.25rem 0; font-size: 0.95rem; }
#footer-nav ul li a:hover { color: var(--text); }
#copyright { color: var(--muted); font-size: 0.9rem; }

.container { margin: 0 auto; max-width: 1100px; padding: 0 1rem; }

.large-button {
	font-size: 1rem;
	color: white;
	border-radius: 8px;
	border: 1px solid var(--primary-600);
	padding: 0.6rem 0.9rem;
	text-decoration: none;
	margin: 0.5rem 0;
	background: var(--primary);
	transition: background 0.2s ease, transform 0.05s ease;
	display: inline-block;
	cursor: pointer;
}
.large-button:disabled,
.large-button[aria-disabled="true"] {
	opacity: 0.6;
	cursor: not-allowed;
	background: var(--border);
	color: var(--muted);
	border-color: var(--border);
}
.large-button:hover { background: var(--primary-600); }
.large-button:active { transform: translateY(1px); }

.content-block { min-height: auto; padding: 2.5rem 0; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; }
.split-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.right-content, .left-content, .right-main-content, .left-small-content { padding: 0; }
.right-content img, .left-content img, .right-main-content img, .left-small-content img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }

@media (min-width: 768px) {
	.split { grid-template-columns: 3fr 2fr; }
	.split-2 { grid-template-columns: 2fr 3fr; }
}

/* Background Colors */
.bg-lightgray{ background: #0b1220 !important; }
.bg-redlight {
	background:#E74C3C;
}

.bg-darkflatpurple {
	background:#8e44ad;
}

.bg-belizehole {
	background:#2980b9;
}

.bg-brightyellow {
	background:#f1c40f;
}

.bg-emerald {
	background:#2ecc71;
}

/* Text Colors */
.color-lightgray { color: var(--muted); }
.color-redlight {
	color:#E74C3C;
}

.color-darkflatpurple {
	color:#8e44ad;
}

.color-belizehole {
	color:#2980b9;
}

.color-brightyellow {
	color:#f1c40f;
}

.color-emerald {
	color:#2ecc71;
}

/* Mobile enhancements & responsive polish */
img { max-width: 100%; height: auto; }

/* Fluid typography using clamp */
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.75rem); }

/* Containers & sections */
.container { max-width: 1100px; padding-left: 1rem; padding-right: 1rem; }
.content-block { padding: clamp(2rem, 4vw, 3rem) 0; }

/* Header layout: stack and center on small screens */
#main-header-content { display: flex; gap: 1rem; }

@media (max-width: 768px) {
	#main-header-content { justify-content: flex-end; align-items: stretch; }
	#promo_text { margin: 0 auto; padding: 1.25rem; }
	#storelinks-wrapper { justify-content: center; }
}

/* Store badges scaling */
#storelinks-wrapper ul li img { max-width: 160px; height: auto; }
@media (max-width: 480px) {
	#storelinks-wrapper ul li img { max-width: 140px; }
}

/* Make primary actions comfortably tappable */
.large-button {
	padding: 0.8rem 1rem;
	min-height: 44px; 
}

/* Responsive grids with auto-fit */
.usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Fix pricing grid to use CSS Grid consistently */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

/* Cards spacing on mobile */
.card { padding: clamp(1rem, 3.2vw, 1.5rem); }

/* Footer alignment on small screens */
@media (max-width: 768px) {
	#site-footer .container { flex-direction: column; align-items: center; text-align: center; }
	#footer-nav ul { justify-content: center; }
	#copyright { text-align: center; display: block; width: 100%; margin-top: 0.5rem; }
}

/* Tighten header height on very small screens */
@media (max-width: 480px) {
	#main_header { min-height: 55vh; }
}

