/**
 * Custom styles extracted from darts-website/index.html (inline <style>).
 *
 * @package darts-wordpress-theme
 */

html,
body {
	overflow-x: hidden;
}
body {
	background-color: #0c0c18;
	color: #e2e8f0;
	font-family: 'Inter', system-ui, sans-serif;
}

/* In-page anchors: fallback for direct URL hashes (~ nav + gap; skip hero) */
section[id]:not(#hero) {
	scroll-margin-top: calc(3.5rem + 14px);
}
@media (min-width: 768px) {
	section[id]:not(#hero) {
		scroll-margin-top: calc(4.5rem + 28px);
	}
}

/* Gradient text */
.gradient-text {
	background: linear-gradient(135deg, #ffffff, #7096f8, #1343f0);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Unified card system */
.card {
	background:
		linear-gradient(135deg, rgba(19, 67, 240, 0.06) 0%, rgba(77, 115, 245, 0.10) 50%, rgba(19, 67, 240, 0.05) 100%),
		rgba(12, 13, 30, 0.8);
	border: 1px solid rgba(19, 67, 240, 0.18);
	border-radius: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.card--interactive:hover {
	border-color: rgba(19, 67, 240, 0.5);
	box-shadow: 0 0 30px rgba(19, 67, 240, 0.1);
}
.card.reveal {
	transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Grid background */
.grid-bg {
	background-image:
		linear-gradient(rgba(19, 67, 240, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(19, 67, 240, 0.03) 1px, transparent 1px);
	background-size: 60px 60px;
}

/* Hero — desktop two-column overrides */
@media (min-width: 1024px) {
	.hero-text-col {
		text-align: left;
	}
	.hero-text-col .hero-logo {
		margin-left: 0;
	}
	.hero-text-col h1 {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}
	.hero-text-col .hero-ctas {
		align-items: flex-start;
	}
	.hero-text-col .hero-ctas-secondary {
		justify-content: flex-start;
	}
}

/* Background concentric circles (decorative) */
.bg-circles {
	position: absolute;
	pointer-events: none;
	z-index: 0;
	opacity: 0.28;
}
.bg-circles-hero {
	width: 1100px;
	height: 1100px;
	right: -22%;
	top: -28%;
	transform: rotate(-18deg) scaleY(1.35);
	opacity: 0.14;
}
.bg-circles-mid {
	width: 1000px;
	height: 1000px;
	right: -24%;
	top: 20%;
	transform: rotate(12deg) scaleX(1.4);
	opacity: 0.22;
}
.bg-circles-contact {
	width: 900px;
	height: 900px;
	left: -20%;
	top: -8%;
	transform: rotate(25deg) scaleX(1.3);
	opacity: 0.22;
}
@media (max-width: 767px) {
	.bg-circles-hero {
		width: 700px;
		height: 700px;
		right: -40%;
		top: -15%;
	}
	.bg-circles-mid {
		width: 600px;
		height: 600px;
		right: -45%;
		top: 15%;
	}
	.bg-circles-contact {
		width: 550px;
		height: 550px;
		left: -40%;
	}
}

/* Hero gradient orbs */
.hero-orb-1 {
	position: absolute;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
	top: -200px;
	right: -100px;
	pointer-events: none;
}
.hero-orb-2 {
	position: absolute;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(19, 67, 240, 0.08), transparent 60%);
	bottom: -50px;
	left: -50px;
	pointer-events: none;
}

/* Animated border gradient */
.animated-border {
	position: relative;
	background: #0a0a1a;
	border-radius: 12px;
}
.animated-border::before {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: 13px;
	background: linear-gradient(135deg, rgba(19, 67, 240, 0.3), rgba(77, 115, 245, 0.3), rgba(112, 150, 248, 0.3));
	z-index: -1;
	opacity: 0;
	transition: opacity 0.4s ease;
}
.animated-border:hover::before {
	opacity: 1;
}

/* Scroll animations */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Logo ticker */
@keyframes ticker {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
.logo-ticker-track {
	width: max-content;
	animation: ticker 30s linear infinite;
}
.logo-ticker-track:hover {
	animation-play-state: paused;
}

/* Code block styling */
.code-block {
	background: linear-gradient(135deg, #0a0a1a, #10102a);
	border: 1px solid rgba(19, 67, 240, 0.2);
	border-radius: 12px;
	font-family: 'JetBrains Mono', monospace;
}

/* Navbar */
#navbar.nav-glass {
	padding-top: env(safe-area-inset-top, 0px);
}
.nav-glass {
	background: rgba(12, 12, 24, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(19, 67, 240, 0.1);
}
@media (max-width: 767px) {
	.nav-glass {
		background: #0c0c18;
	}
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0c0c18; }
::-webkit-scrollbar-thumb { background: #2d2d54; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #404071; }

/* Stats counter */
.stat-divider {
	width: 1px;
	height: 60px;
	background: linear-gradient(180deg, transparent, rgba(19, 67, 240, 0.3), transparent);
}

/* CTA buttons */
.btn-primary {
	background: linear-gradient(135deg, #1343f0, #4d73f5);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
}
.btn-primary::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #4d73f5, #1343f0);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 40px rgba(19, 67, 240, 0.3);
}

.btn-outline {
	border: 1px solid rgba(19, 67, 240, 0.4);
	transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.btn-outline:hover {
	border-color: rgba(19, 67, 240, 0.8);
	background: rgba(19, 67, 240, 0.1);
	transform: translateY(-2px);
}

/* Pipeline bar */
.pipeline-bar {
	overflow-x: auto;
	scrollbar-width: none;
	padding: 0 8px;
	position: relative;
}
.pipeline-bar::-webkit-scrollbar { display: none; }
.pipeline-bar-inner {
	display: flex;
	align-items: center;
	gap: 0;
	width: fit-content;
	margin: 0 auto;
}
button.pipeline-stage {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	color: inherit;
	text-align: inherit;
	appearance: none;
}
.pipeline-stage {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0;
	cursor: pointer;
	flex-shrink: 0;
}
.pipeline-stage:focus-visible {
	outline: 2px solid rgba(112, 150, 248, 0.7);
	outline-offset: 3px;
	border-radius: 9999px;
}
.pipeline-stage-pill {
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 700;
	color: rgba(148,163,184,0.70);
	background: rgba(15,23,42,0.6);
	border: 1px solid rgba(100,116,139,0.12);
	border-radius: 9999px;
	transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
	white-space: nowrap;
	position: relative;
	z-index: 2;
}
.pipeline-stage:hover .pipeline-stage-pill {
	color: rgba(150,180,251,0.8);
	border-color: rgba(19,67,240,0.2);
}
.pipeline-stage.active .pipeline-stage-pill {
	color: #b8cffe;
	background: rgba(19,67,240,0.12);
	border-color: rgba(19,67,240,0.35);
	box-shadow: 0 0 20px rgba(19,67,240,0.15);
}
.pipeline-arrow {
	width: 52px;
	height: 2.5px;
	background: linear-gradient(90deg, rgba(19,67,240,0.25), rgba(19,67,240,0.45));
	position: relative;
	flex-shrink: 0;
}
.pipeline-arrow::after {
	content: '';
	position: absolute;
	right: -1px;
	top: 50%;
	transform: translateY(-50%);
	border-left: 9px solid rgba(19,67,240,0.5);
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
}
/* Pipeline — wrapped pill grid on mobile */
@media (max-width: 767px) {
	.pipeline-bar { overflow-x: visible; padding: 0 12px; }
	.pipeline-bar-inner {
		flex-wrap: wrap;
		width: 100%;
		justify-content: center;
		gap: 8px;
	}
	.pipeline-arrow { display: none; }
	.pipeline-stage { flex-shrink: 1; }
	.pipeline-stage-pill {
		padding: 9px 16px;
		font-size: 13px;
		white-space: nowrap;
	}
}

.pipeline-panel[hidden] {
	display: none !important;
}
.pipeline-panel:not([hidden]) {
	display: block;
	animation: pipelineFadeIn 0.35s ease;
}
@keyframes pipelineFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Use-case card glow variants */
.uc-card {
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}
.uc-card-img {
	width: 100%;
	height: 8rem;
	object-fit: cover;
	object-position: center;
	flex-shrink: 0;
}
.uc-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.75rem;
}
/* Use case cards: case study chips + overview tags */
.uc-pill {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	font-size: 10px;
	line-height: 1.25;
	border-radius: 0.375rem;
	vertical-align: middle;
}
.uc-pill--type {
	background-color: rgba(19, 67, 240, 0.1);
	color: #96b4fb;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border: 1px solid transparent;
}
.uc-pill--client {
	font-weight: 500;
	background-color: transparent;
	color: rgba(148, 163, 184, 0.95);
	border: 1px solid rgba(71, 85, 105, 0.35);
}
.uc-pill--overview {
	padding: 0.125rem 0.625rem;
	font-size: 10px;
	line-height: 1.25;
	border-radius: 9999px;
	border: 1px solid rgba(71, 85, 105, 0.3);
	background-color: rgba(30, 41, 59, 0.4);
	color: rgba(148, 163, 184, 0.95);
}

.uc-tabs {
	display: flex;
	gap: 1px;
	border-bottom: 1px solid rgba(100,116,139,0.12);
	margin: -4px -4px 16px -4px;
	padding: 0 4px;
	overflow-x: auto;
	scrollbar-width: none;
}
.uc-tabs::-webkit-scrollbar { display: none; }
.uc-tab {
	padding: 8px 10px;
	font-size: 11px;
	font-weight: 600;
	color: rgba(148,163,184,0.65);
	cursor: pointer;
	border: none;
	background: none;
	border-bottom: 2px solid transparent;
	transition: color 0.25s ease, border-bottom-color 0.25s ease;
	white-space: nowrap;
	flex-shrink: 0;
}
.uc-tab:hover { color: rgba(148,163,184,0.85); }
.uc-tab.active {
	color: #96b4fb;
	border-bottom-color: #7096f8;
}
.uc-panel { display: none; flex-direction: column; flex: 1; }
.uc-panel.active { display: flex; }
.uc-panel-enter {
	animation: ucFadeIn 0.3s ease;
}
@keyframes ucFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Section divider */
.section-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(19, 67, 240, 0.2), transparent);
}

/* Keep mobile nav between md (768px) and 900px where desktop links wrap */
@media (min-width: 768px) and (max-width: 899px) {
	#navbar .md\:flex { display: none !important; }
	#navbar .md\:inline-flex { display: none !important; }
	#navbar .md\:hidden { display: block !important; }
	#mobile-menu { display: block !important; }
}

/* Mobile menu */
.mobile-menu {
	transform: translateX(100%);
	transition: transform 0.3s ease;
	background: rgba(12, 12, 24, 0.4);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}
.mobile-menu.open {
	transform: translateX(0);
}

/* Add-on module card expand/collapse */
.addon-details {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease, opacity 0.25s ease;
	opacity: 0;
}
.addon-card.open .addon-details {
	max-height: 400px;
	opacity: 1;
}
.addon-card.open .addon-chevron {
	transform: rotate(180deg);
}
.addon-chevron {
	transition: transform 0.3s ease;
}

.addon-card-toggle {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: inherit;
	font: inherit;
	width: 100%;
}
.addon-card-toggle:focus-visible {
	outline: 2px solid rgba(112, 150, 248, 0.65);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Monochrome white logos — shared by carousel & testimonial cards */
.logo-mono {
	filter: brightness(0) invert(1);
	opacity: 0.4;
	transition: opacity 0.3s ease;
}
.logo-mono:hover {
	opacity: 0.7;
}
.card--interactive:hover .logo-mono {
	opacity: 0.6;
}
