/* ============================================================
   COMPONENTS â€” NoisyPixel.com
   Reusable UI classes: buttons, cards, badges, forms,
   decorative elements, and utility classes.
   ============================================================ */

/* ===== Section Eyebrows ===== */
/* Small uppercase label above section headings */
.section-eyebrow {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--np-cyan);
	margin-bottom: 1rem;
}

/* Bright-cyan variant for use on dark/navy backgrounds */
.section-eyebrow-light {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--np-bright-cyan);
	margin-bottom: 1rem;
}

/* ===== Gradient Text ===== */
/* Full brand gradient: cyan â†’ purple â†’ magenta â†’ orange */
.gradient-text {
	background: linear-gradient(135deg, #0088ff 0%, #7744dd 40%, #ff2e97 80%, #ff6644 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Cyan â†’ magenta gradient text */
.gradient-text-cm {
	background: linear-gradient(135deg, #0088ff 0%, #ff2e97 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Magenta â†’ orange gradient text */
.gradient-text-mo {
	background: linear-gradient(135deg, #ff2e97 0%, #ff6644 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ===== Buttons ===== */
/* Button: Primary CTA â€” magenta fill with drop shadow */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 32px;
	background: var(--np-magenta);
	color: white;
	border-radius: var(--radius-btn);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	cursor: pointer;
	border: none;
	text-decoration: none;
	box-shadow: var(--shadow-btn-magenta);
	transition:
		background 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}
.btn-primary:hover {
	background: var(--np-orange);
	box-shadow: var(--shadow-btn-magenta-hover);
	transform: translateY(-1px);
}
.btn-primary:active {
	transform: translateY(0) scale(0.98);
}

/* Button: Primary CTA â€” smaller variant */
.btn-primary-sm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--np-magenta);
	color: white;
	border-radius: var(--radius-btn);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	cursor: pointer;
	border: none;
	text-decoration: none;
	box-shadow: var(--shadow-btn-magenta);
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}
.btn-primary-sm:hover {
	background: var(--np-orange);
	transform: translateY(-1px);
}

/* Button: Secondary â€” cyan outline */
.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 32px;
	background: transparent;
	color: var(--np-cyan);
	border-radius: var(--radius-btn);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	cursor: pointer;
	border: 2px solid var(--np-cyan);
	text-decoration: none;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}
.btn-secondary:hover {
	background: var(--np-cyan);
	color: white;
	transform: translateY(-1px);
}

/* Button: Ghost â€” white outline for dark backgrounds */
.btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 32px;
	background: transparent;
	color: white;
	border-radius: var(--radius-btn);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	cursor: pointer;
	border: 2px solid white;
	text-decoration: none;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}
.btn-ghost:hover {
	background: white;
	color: var(--np-navy);
	transform: translateY(-1px);
}

/* ===== Cards ===== */
/* Card: White card with border + shadow â€” light backgrounds */
.card {
	background: white;
	border-radius: var(--radius-card);
	padding: 1.5rem;
	border: 1px solid var(--np-border);
	box-shadow: var(--shadow-card);
	transition:
		box-shadow 0.2s ease,
		transform 0.2s ease;
}
.card:hover {
	box-shadow: var(--shadow-card-hover);
	transform: translateY(-3px);
}

/* Card: Semi-transparent card for dark/navy backgrounds */
.card-dark {
	background: rgba(255, 255, 255, 0.04);
	border-radius: var(--radius-card);
	padding: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition:
		background 0.2s ease,
		border-color 0.2s ease;
}
.card-dark:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(0, 136, 255, 0.3);
}

/* ===== Pixel Dot Backgrounds ===== */
/* Cyan radial dot grid â€” for navy section backgrounds */
.pixel-dots {
	background-image: radial-gradient(circle, rgba(0, 136, 255, 0.1) 1px, transparent 1px);
	background-size: 28px 28px;
}

/* Subtle white dot grid â€” for dark section overlays */
.pixel-dots-subtle {
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 28px 28px;
}

/* ===== Form Fields ===== */
/* Styled input, textarea, and select */
.form-field {
	width: 100%;
	border-radius: var(--radius-btn);
	padding: 12px 16px;
	color: var(--np-charcoal);
	background: white;
	font-weight: 500;
	font-size: 1rem;
	font-family: inherit;
	border: 2px solid var(--np-border);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}
.form-field:focus {
	outline: none;
	border-color: var(--np-cyan);
	box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15);
}
.form-field.error {
	border-color: #ef4444;
}

/* Label above a form field */
.form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--np-charcoal);
	margin-bottom: 6px;
}

/* ===== Stat Display ===== */
/* Large bold statistic number */
.stat-number {
	font-weight: 700;
	font-size: 3rem;
	line-height: 1;
	letter-spacing: -0.03em;
}

/* ===== Badges / Tags ===== */
/* Badge: Default â€” cyan on light background */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(0, 136, 255, 0.08);
	color: var(--np-cyan);
	border: 1px solid rgba(0, 136, 255, 0.15);
}

/* Badge: Hero â€” for use on dark/navy hero backgrounds */
.badge-hero {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(0, 136, 255, 0.18);
	color: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(0, 136, 255, 0.35);
}

/* Badge: Colored variants */
.badge-cyan {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(0, 136, 255, 0.1);
	color: var(--np-cyan);
	border: 1px solid rgba(0, 136, 255, 0.15);
}

.badge-magenta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(255, 46, 151, 0.1);
	color: var(--np-magenta);
	border: 1px solid rgba(255, 46, 151, 0.15);
}

.badge-orange {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(255, 102, 68, 0.1);
	color: var(--np-orange);
	border: 1px solid rgba(255, 102, 68, 0.15);
}

/* Badge: Dark â€” white/transparent for dark backgrounds */
.badge-dark {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Gradient Orbs ===== */
/* Use as position:absolute children inside a relative container */

/* Absolute cyan glow orb decorative background blob */
.hero-orb-cyan {
	position: absolute;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(0, 136, 255, 0.15) 0%, transparent 70%);
	pointer-events: none;
	border-radius: 9999px;
}

/* Absolute magenta glow orb decorative background blob */
.hero-orb-magenta {
	position: absolute;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(255, 46, 151, 0.12) 0%, transparent 70%);
	pointer-events: none;
	border-radius: 9999px;
}

/* ===== Dividers ===== */
/* Cyan + magenta gradient horizontal rule */
.gradient-divider {
	height: 2px;
	background: linear-gradient(90deg, transparent, #0088ff, #ff2e97, transparent);
	border: none;
}

/* ===== Industry Ticker ===== */
/* Infinite scrolling ticker strip */
.ticker-wrap {
	overflow: hidden;
}

.ticker-inner {
	display: flex;
	gap: 2rem;
	white-space: nowrap;
	animation: ticker 30s linear infinite;
}

/* ===== Utility Classes ===== */
/* Text wrapping balance */
.text-balance {
	text-wrap: balance;
}

/* Hide scrollbar while preserving scroll behavior */
.no-scrollbar::-webkit-scrollbar {
	display: none;
}
.no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* Letter spacing utilities for headings */
.tracking-tight-xl {
	letter-spacing: -0.03em;
}
.tracking-tight-lg {
	letter-spacing: -0.025em;
}
.tracking-tight-md {
	letter-spacing: -0.02em;
}

/* ===== CTA Section Backgrounds ===== */
/* Dark navy CTA section â€” pixel-dots-subtle adds the dot pattern on top */
.cta-dark {
	background: var(--np-navy);
	position: relative;
	overflow: hidden;
}

/* Light CTA section */
.cta-light {
	background: var(--np-light);
}

/* ===== Color Text Utilities ===== */
/* Used for dynamic accent coloring in FeatureCard, StatsDisplay, etc. */
.text-np-cyan {
	color: var(--np-cyan);
}
.text-np-magenta {
	color: var(--np-magenta);
}
.text-np-orange {
	color: var(--np-orange);
}
.text-np-yellow {
	color: var(--np-yellow);
}
.text-np-navy {
	color: var(--np-navy);
}
.text-np-charcoal {
	color: var(--np-charcoal);
}
.text-np-gray {
	color: var(--np-gray);
}
.text-white {
	color: white;
}
.text-white-70 {
	color: rgba(255, 255, 255, 0.7);
}
.text-white-60 {
	color: rgba(255, 255, 255, 0.6);
}
.text-white-50 {
	color: rgba(255, 255, 255, 0.5);
}

/* ===== FAQ Chevron Icon ===== */
/* Applied to the lucide ChevronDown inside FAQAccordion */
.faq-chevron {
	color: var(--np-gray);
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

/* Missing brand color text utilities */
.text-np-bright-cyan {
	color: var(--np-bright-cyan);
}
.text-np-purple {
	color: var(--np-purple);
}
.text-white-30 {
	color: rgba(255, 255, 255, 0.3);
}
.text-white-25 {
	color: rgba(255, 255, 255, 0.25);
}

/* ===== Background Color Utilities ===== */
/* Replaces Tailwind bg-white / bg-np-* utility classes */
.bg-white {
	background-color: white;
}
.bg-np-light {
	background-color: var(--np-light);
}
.bg-np-navy {
	background-color: var(--np-navy);
}

/* ===== Typography Scale Utilities ===== */
/* Custom NoisyPixel type scale — replaces Tailwind fontSize config */
.text-h2 {
	font-size: var(--text-h2-size);
	font-weight: var(--text-h2-weight);
	letter-spacing: var(--text-h2-tracking);
	line-height: 1.15;
}
@media (max-width: 640px) {
	.text-h2 {
		font-size: var(--text-h2-mobile-size);
	}
}
.text-h3 {
	font-size: var(--text-h3-size);
	font-weight: var(--text-h3-weight);
	letter-spacing: -0.02em;
	line-height: 1.2;
}
@media (max-width: 640px) {
	.text-h3 {
		font-size: var(--text-h3-mobile-size);
	}
}
.text-h4 {
	font-size: var(--text-h4-size);
	font-weight: var(--text-h4-weight);
	line-height: 1.3;
}
.text-body-lg {
	font-size: var(--text-body-lg-size);
	line-height: 1.6;
}
.text-body {
	font-size: var(--text-body-size);
	line-height: 1.6;
}
.text-body-sm {
	font-size: var(--text-body-sm-size);
	line-height: 1.6;
}

/* ===== Layout Utilities ===== */
/* Replaces common Tailwind layout classes used across multiple pages */
.text-center {
	text-align: center;
}
.mx-auto {
	margin-inline: auto;
}
.max-w-sm {
	max-width: 24rem;
}
.max-w-md {
	max-width: 28rem;
}
.max-w-xl {
	max-width: 36rem;
}
.max-w-2xl {
	max-width: 42rem;
}
.max-w-3xl {
	max-width: 48rem;
}
.flex-shrink-0 {
	flex-shrink: 0;
}
.leading-relaxed {
	line-height: 1.625;
}

/* ===== Positioning Utilities ===== */
.relative {
	position: relative;
}
.z-10 {
	z-index: 10;
}

/* ===== Spacing Utilities ===== */
/* Commonly used margin classes that replace Tailwind mb-* / mt-* */
.mb-2 {
	margin-bottom: 0.5rem;
}
.mb-3 {
	margin-bottom: 0.75rem;
}
.mb-4 {
	margin-bottom: 1rem;
}
.mb-6 {
	margin-bottom: 1.5rem;
}
.mb-8 {
	margin-bottom: 2rem;
}
.mb-10 {
	margin-bottom: 2.5rem;
}
.mb-12 {
	margin-bottom: 3rem;
}
.mt-2 {
	margin-top: 0.5rem;
}
.mt-4 {
	margin-top: 1rem;
}
.mt-6 {
	margin-top: 1.5rem;
}
.mt-8 {
	margin-top: 2rem;
}
.mt-10 {
	margin-top: 2.5rem;
}
.mt-12 {
	margin-top: 3rem;
}

/* Icon utilities — applied to lucide-svelte components (must be global) */
.feature-check {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--np-cyan);
}
