/**
 * Homepage sections — Hero + Stats (Phase 4)
 */

.home .site-main {
	padding-top: 0;
}

.text-accent {
	color: var(--brand-cyan);
}

.mockup-online {
	color: #22c55e;
}

/* Hero */
.section-hero {
	min-height: 100dvh;
	display: flex;
	align-items: center;
	position: relative;
	padding-top: var(--header-h);
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 120, 255, 0.12) 0%, transparent 70%),
		radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 40%),
		var(--bg-void);
}

.hero-grid-bg {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(0, 150, 255, 0.15) 1px, transparent 1px);
	background-size: 32px 32px;
	opacity: 0.4;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent);
}

.hero-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	position: relative;
	z-index: 1;
	padding: 60px 0;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(0, 180, 255, 0.25);
	font-size: 0.85rem;
	color: var(--text-secondary);
	margin-bottom: 28px;
}

.hero-badge .live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 8px #22c55e;
	animation: nc-glow-pulse 2s infinite;
}

.section-hero h1 {
	font-family: var(--font-display);
	font-size: clamp(1.875rem, 3.8vw, 3.25rem);
	font-weight: 800;
	line-height: 1.12;
	margin-bottom: 24px;
}

.hero-subtitle {
	color: var(--text-secondary);
	font-size: 1.125rem;
	max-width: 520px;
	margin-bottom: 36px;
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 40px;
}

.hero-quick-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-quick-stats span {
	color: var(--text-muted);
	font-size: 0.85rem;
}

.hero-quick-stats strong {
	color: var(--brand-cyan);
}

.hero-visual {
	perspective: 1000px;
}

.hero-mockup {
	transform: rotateY(-8deg) rotateX(4deg);
	border-radius: var(--card-radius);
	padding: 24px;
	animation: nc-float 6s ease-in-out infinite;
}

.mockup-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--text-secondary);
	margin-bottom: 20px;
}

.mockup-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brand-cyan);
}

.mockup-chart {
	height: 120px;
	margin: 16px 0;
	background: linear-gradient(180deg, rgba(0, 229, 255, 0.2) 0%, transparent 100%);
	border-radius: 8px;
	position: relative;
	overflow: hidden;
}

.mockup-chart svg {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 80%;
}

.mockup-stat-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 0.8rem;
	color: var(--text-secondary);
}

.mockup-stat-row:last-child {
	border: none;
}

.scroll-indicator {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--text-muted);
	animation: nc-bounce 2s infinite;
	font-size: 1.25rem;
}

/* Stats bar */
.section-stats {
	background: var(--bg-deep);
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	padding: 48px 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	text-align: center;
}

.stat-item {
	padding: 16px 24px;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item:last-child {
	border-right: none;
}

.stat-num {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: var(--text-primary);
	line-height: 1;
}

.stat-num .suffix {
	color: var(--brand-cyan);
}

.stat-title {
	font-weight: 600;
	margin-top: 8px;
	font-size: 0.95rem;
}

.stat-sub {
	color: var(--text-muted);
	font-size: 0.8rem;
}

@keyframes nc-float {
	0%,
	100% {
		transform: rotateY(-8deg) rotateX(4deg) translateY(0);
	}

	50% {
		transform: rotateY(-8deg) rotateX(4deg) translateY(-12px);
	}
}

@keyframes nc-bounce {
	0%,
	100% {
		transform: translateX(-50%) translateY(0);
	}

	50% {
		transform: translateX(-50%) translateY(8px);
	}
}

@media (max-width: 1024px) {
	.hero-layout {
		grid-template-columns: 1fr;
	}

	.hero-visual {
		order: -1;
		max-width: 480px;
		margin-inline: auto;
	}
}

@media (max-width: 768px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat-item:nth-child(2) {
		border-right: none;
	}

	.stat-item {
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.stat-item:nth-last-child(-n + 2) {
		border-bottom: none;
	}

	.hero-mockup {
		animation: none;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-mockup {
		animation: none;
		transform: none;
	}

	.scroll-indicator {
		animation: none;
	}

	.product-panel li::before {
		animation: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Services + Products — Phase 5                                               */
/* -------------------------------------------------------------------------- */

.section-services {
	padding: var(--section-pad) 0;
	background: var(--bg-void);
	position: relative;
}

.section-services::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%231a56ff' fill-opacity='0.03'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.5;
	pointer-events: none;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	position: relative;
}

.service-card {
	background: linear-gradient(135deg, rgba(26, 86, 255, 0.06), rgba(0, 229, 255, 0.03));
	border: 1px solid rgba(0, 180, 255, 0.12);
	border-radius: var(--card-radius);
	padding: 32px;
	transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
	position: relative;
}

.service-card::before {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	background: var(--gradient-brand);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: -1;
}

.service-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 20px 60px rgba(0, 120, 255, 0.2);
}

.service-card:hover::before {
	opacity: 0.25;
}

.service-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 20px;
	color: var(--brand-cyan);
}

.service-card h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 10px;
	font-family: var(--font-display);
}

.service-card > p {
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin-bottom: 16px;
}

.service-card ul {
	margin-bottom: 20px;
}

.service-card li {
	color: var(--text-secondary);
	font-size: 0.8rem;
	padding: 4px 0;
	padding-left: 14px;
	position: relative;
}

.service-card li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--brand-cyan);
	transform: translateY(-50%);
}

.section-products {
	padding: var(--section-pad) 0;
	background: var(--bg-deep);
}

.products-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.products-heading {
	font-family: var(--font-display);
	font-size: var(--text-h2);
	font-weight: 800;
	margin-bottom: 16px;
	line-height: 1.15;
}

.products-description {
	color: var(--text-secondary);
	margin-bottom: 8px;
}

.product-tabs {
	display: flex;
	gap: 8px;
	margin: 28px 0;
	flex-wrap: wrap;
}

.product-tab {
	padding: 10px 18px;
	background: transparent;
	border: none;
	color: var(--text-secondary);
	font-family: var(--font-body);
	font-size: 0.9rem;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.product-tab.is-active {
	color: var(--text-primary);
	border-bottom-color: var(--brand-cyan);
	background: linear-gradient(180deg, rgba(0, 229, 255, 0.08), transparent);
}

.product-panel {
	display: none;
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.product-panel.is-active {
	display: block;
	animation: nc-fade-in 0.4s ease;
}

.product-panel ul {
	margin-top: 12px;
}

.product-panel li {
	padding: 6px 0;
	padding-left: 18px;
	position: relative;
}

.product-panel li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--brand-cyan);
}

.products-cta {
	margin-top: 24px;
}

.dashboard-mock {
	border-radius: var(--card-radius);
	padding: 28px;
}

.mockup-chart--products {
	height: 100px;
	margin-top: 20px;
}

.mockup-chart-label {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-top: 16px;
}

.progress-bar {
	height: 6px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 3px;
	margin-top: 8px;
	overflow: hidden;
}

.progress-bar span {
	display: block;
	height: 100%;
	background: var(--gradient-brand);
	border-radius: 3px;
}

@keyframes nc-fade-in {
	from {
		opacity: 0;
		transform: translateX(10px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (max-width: 1024px) {
	.hero-layout,
	.products-split {
		grid-template-columns: 1fr;
	}

	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.services-grid {
		grid-template-columns: 1fr;
	}

	.product-panel.is-active {
		animation: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.service-card:hover {
		transform: none;
	}

	.product-panel.is-active {
		animation: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Why NexCore + How It Works — Phase 6                                        */
/* -------------------------------------------------------------------------- */

.section-why {
	padding: var(--section-pad) 0;
	background: var(--bg-void);
}

.pillars-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.pillar-card {
	text-align: center;
	padding: 36px 24px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--card-radius);
	transition: border-color 0.3s ease;
}

.pillar-card:hover {
	border-color: var(--border-glow);
}

.pillar-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(0, 229, 255, 0.08);
	color: var(--brand-cyan);
	font-size: 1.5rem;
	line-height: 1;
}

.pillar-card h3 {
	font-size: 1.1rem;
	margin-bottom: 12px;
	font-family: var(--font-display);
}

.pillar-card p {
	color: var(--text-secondary);
	font-size: 0.85rem;
}

.section-how {
	padding: var(--section-pad) 0;
	background: var(--bg-deep);
}

.timeline-wrap {
	position: relative;
	margin-top: 48px;
}

.timeline-svg {
	position: absolute;
	top: 32px;
	left: 0;
	width: 100%;
	height: 40px;
	pointer-events: none;
	z-index: 0;
	overflow: visible;
}

.timeline-line {
	stroke-width: 2;
	fill: none;
	opacity: 0.35;
}

.timeline {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	position: relative;
	z-index: 1;
}

.step-card {
	position: relative;
	text-align: center;
	padding: 24px 16px;
}

.step-num-bg {
	font-family: var(--font-display);
	font-size: 4rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.04);
	line-height: 1;
	margin-bottom: -20px;
	user-select: none;
}

.step-badge {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--gradient-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	font-weight: 700;
	font-size: 0.85rem;
	position: relative;
	z-index: 1;
	transition: box-shadow 0.4s ease;
}

.step-card.is-active .step-badge {
	box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
}

.step-card h3 {
	font-size: 1rem;
	margin-bottom: 8px;
	font-family: var(--font-display);
}

.step-card p {
	color: var(--text-secondary);
	font-size: 0.8rem;
}

@media (max-width: 1024px) {
	.pillars-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.timeline {
		grid-template-columns: repeat(2, 1fr);
	}

	.timeline-svg {
		display: none;
	}
}

@media (max-width: 768px) {
	.pillars-grid,
	.timeline {
		grid-template-columns: 1fr;
	}

	.timeline {
		padding-left: 28px;
	}

	.timeline::before {
		content: '';
		position: absolute;
		left: 19px;
		top: 0;
		bottom: 0;
		width: 2px;
		background: linear-gradient(180deg, var(--brand-blue), var(--brand-cyan));
		opacity: 0.3;
	}

	.step-card {
		text-align: left;
		padding-left: 8px;
	}

	.step-badge {
		margin: 0 0 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.timeline-line {
		stroke-dashoffset: 0 !important;
	}
}

/* -------------------------------------------------------------------------- */
/* Testimonials, Clients, CTA, Blog — Phase 7                                  */
/* -------------------------------------------------------------------------- */

.section-testimonials {
	padding: var(--section-pad) 0;
	background: var(--bg-void);
	overflow: hidden;
}

.section-testimonials-header {
	margin-bottom: 40px;
}

.marquee-wrap {
	mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee {
	display: flex;
	gap: 24px;
	animation: nc-marquee 40s linear infinite;
	width: max-content;
}

.marquee-wrap:hover .marquee {
	animation-play-state: paused;
}

.testimonial-card {
	flex: 0 0 380px;
	padding: 32px;
	border-radius: var(--card-radius);
	border-left: 4px solid transparent;
	border-image: var(--gradient-brand) 1;
}

.stars {
	background: var(--gradient-brand);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 16px;
	letter-spacing: 2px;
}

.testimonial-card blockquote {
	color: var(--text-secondary);
	font-size: 0.95rem;
	margin-bottom: 24px;
	font-style: italic;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gradient-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
	flex-shrink: 0;
}

.author-name {
	font-weight: 600;
	font-size: 0.9rem;
}

.author-role {
	color: var(--text-muted);
	font-size: 0.8rem;
}

.section-clients {
	padding: var(--section-pad) 0;
	background: var(--bg-deep);
}

.clients-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}

.client-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 80px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--text-muted);
	filter: grayscale(1) brightness(0.7);
	transition: filter 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none;
}

.client-logo img {
	max-height: 40px;
	max-width: 100%;
	width: auto;
	object-fit: contain;
}

.client-logo:hover {
	filter: none;
	color: var(--brand-cyan);
	border-color: var(--border-glow);
	box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.section-cta {
	padding: var(--section-pad) 0;
	background:
		radial-gradient(ellipse 60% 80% at 30% 50%, rgba(26, 86, 255, 0.2), transparent),
		radial-gradient(ellipse 40% 60% at 70% 50%, rgba(0, 229, 255, 0.1), transparent),
		var(--bg-deep);
	text-align: center;
	position: relative;
}

.cta-box {
	max-width: 800px;
	margin: 0 auto;
	padding: 64px 48px;
	border-radius: var(--card-radius);
	position: relative;
	border: 1px solid rgba(0, 180, 255, 0.2);
}

.cta-box h2 {
	font-family: var(--font-display);
	font-size: var(--text-h2);
	font-weight: 800;
	margin-bottom: 16px;
	line-height: 1.15;
}

.cta-box p {
	color: var(--text-secondary);
	margin-bottom: 36px;
	font-size: 1.05rem;
}

.cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.section-blog {
	padding: var(--section-pad) 0;
	background: var(--bg-void);
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.blog-card {
	border-radius: var(--card-radius);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-glow);
}

.blog-thumb-link {
	display: block;
}

.blog-thumb {
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, rgba(26, 86, 255, 0.3), rgba(0, 229, 255, 0.15));
}

.blog-thumb--image {
	position: relative;
	overflow: hidden;
}

.blog-thumb--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.blog-body {
	padding: 24px;
}

.blog-tag {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--brand-cyan);
	padding: 4px 10px;
	background: rgba(0, 229, 255, 0.08);
	border-radius: 100px;
	margin-bottom: 12px;
}

.blog-card h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 10px;
	line-height: 1.4;
	font-family: var(--font-display);
}

.blog-card h3 a {
	color: inherit;
	text-decoration: none;
}

.blog-card h3 a:hover {
	color: var(--brand-cyan);
}

.blog-card p {
	color: var(--text-secondary);
	font-size: 0.85rem;
	margin-bottom: 16px;
}

.blog-meta {
	color: var(--text-muted);
	font-size: 0.75rem;
	margin-bottom: 12px;
}

.blog-view-all {
	margin-top: 40px;
	text-align: center;
}

@keyframes nc-marquee {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

@media (max-width: 1024px) {
	.clients-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.clients-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.blog-grid {
		grid-template-columns: 1fr;
	}

	.cta-box {
		padding: 48px 24px;
	}

	.testimonial-card {
		flex: 0 0 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.marquee {
		animation: none;
		flex-wrap: wrap;
		width: 100%;
		justify-content: center;
	}

	.marquee-wrap {
		mask-image: none;
		-webkit-mask-image: none;
	}

	.blog-card:hover {
		transform: none;
	}
}
