/* ========================================
   PipeForge — style.css
   Developer Tool · Dark + Neon Teal Glow
   ======================================== */

:root {
	--teal: #14B8A6;
	--teal-dim: rgba(20, 184, 166, 0.15);
	--teal-glow: rgba(20, 184, 166, 0.4);
	--teal-bright: #2DD4BF;
	--bg: #0A0F1A;
	--bg-card: #111827;
	--bg-elevated: #1A2332;
	--bg-surface: #0F172A;
	--text: #E2E8F0;
	--text-dim: #94A3B8;
	--text-muted: #64748B;
	--border: rgba(148, 163, 184, 0.1);
	--border-bright: rgba(20, 184, 166, 0.3);
	--font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
	--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
	--radius: 10px;
	--radius-lg: 16px;
	--max-w: 1200px;
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-sans);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
}

.container {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 24px;
}

a {
	color: var(--teal);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--teal-bright);
}

code {
	font-family: var(--font-mono);
	font-size: 0.875em;
}

/* ---- Buttons ---- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--radius);
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all var(--transition);
}

.btn-primary {
	background: var(--teal);
	color: #0A0F1A;
}

.btn-primary:hover {
	background: var(--teal-bright);
	box-shadow: 0 0 24px var(--teal-glow);
}

.btn-ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-ghost:hover {
	border-color: var(--teal);
	color: var(--teal);
}

/* ---- Nav ---- */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 16px 0;
	background: rgba(10, 15, 26, 0.8);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	transition: all var(--transition);
}

.nav.scrolled {
	padding: 10px 0;
	background: rgba(10, 15, 26, 0.95);
}

.nav-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--text);
	text-decoration: none;
}

.nav-logo:hover {
	color: var(--teal);
}

.nav-links {
	display: flex;
	gap: 32px;
}

.nav-links a {
	color: var(--text-dim);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: color var(--transition);
}

.nav-links a:hover {
	color: var(--teal);
}

.nav-cta {
	padding: 8px 20px;
	background: var(--teal);
	color: #0A0F1A;
	border: none;
	border-radius: var(--radius);
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
}

.nav-cta:hover {
	background: var(--teal-bright);
	box-shadow: 0 0 16px var(--teal-glow);
}

.nav-mobile-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}

.nav-mobile-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--text);
	transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 120px 24px 80px;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

#hero-canvas {
	width: 100%;
	height: 100%;
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	text-align: center;
}

.hero-badge {
	display: inline-block;
	padding: 6px 16px;
	background: var(--teal-dim);
	border: 1px solid var(--border-bright);
	border-radius: 100px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--teal);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 24px;
}

.hero h1 {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 24px;
	letter-spacing: -0.03em;
}

.glow-text {
	color: var(--teal);
	text-shadow: 0 0 40px var(--teal-glow), 0 0 80px rgba(20, 184, 166, 0.15);
}

.hero-sub {
	font-size: 1.15rem;
	color: var(--text-dim);
	max-width: 600px;
	margin: 0 auto 36px;
	line-height: 1.7;
}

.hero-ctas {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 48px;
}

/* ---- Hero Terminal ---- */
.hero-terminal,
.demo-terminal {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-align: left;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 1px var(--border-bright);
}

.term-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--bg-surface);
	border-bottom: 1px solid var(--border);
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #22C55E; }

.term-title {
	margin-left: 8px;
	font-size: 0.75rem;
	color: var(--text-muted);
	font-family: var(--font-mono);
}

.term-body {
	padding: 20px;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	line-height: 1.8;
}

.term-line {
	white-space: pre-wrap;
	word-break: break-all;
}

.term-line .prompt {
	color: var(--teal);
	font-weight: 700;
	margin-right: 8px;
}

.term-line .cmd {
	color: var(--text);
}

.term-line.output {
	color: var(--text-dim);
}

.term-line.comment {
	color: var(--text-muted);
}

.term-line.spacer {
	height: 8px;
}

.term-cursor {
	display: inline-block;
	width: 8px;
	height: 18px;
	background: var(--teal);
	animation: blink 1.2s step-end infinite;
	vertical-align: middle;
}

@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* ---- Stats ---- */
.stats {
	padding: 64px 0;
	background: var(--bg-surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

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

.stat-card {
	text-align: center;
	padding: 24px;
}

.stat-num {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--teal);
	font-family: var(--font-mono);
	letter-spacing: -0.02em;
}

.stat-label {
	color: var(--text-dim);
	font-size: 0.85rem;
	margin-top: 8px;
}

/* ---- Section Headers ---- */
.section-header {
	text-align: center;
	max-width: 650px;
	margin: 0 auto 56px;
}

.section-tag {
	display: inline-block;
	padding: 4px 14px;
	background: var(--teal-dim);
	border: 1px solid var(--border-bright);
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--teal);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 16px;
}

.section-header h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 16px;
}

.section-header p {
	color: var(--text-dim);
	font-size: 1.05rem;
	line-height: 1.7;
}

/* ---- Features ---- */
.features {
	padding: 100px 0;
}

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

.feature-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px;
	transition: all var(--transition);
}

.feature-card:hover {
	border-color: var(--border-bright);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-bright);
}

.feature-icon {
	font-size: 1.5rem;
	margin-bottom: 14px;
}

.feature-card h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 10px;
	letter-spacing: -0.01em;
}

.feature-card p {
	color: var(--text-dim);
	font-size: 0.85rem;
	line-height: 1.65;
	margin-bottom: 12px;
}

.feature-flag {
	display: inline-block;
	padding: 4px 10px;
	background: var(--teal-dim);
	border-radius: 6px;
	color: var(--teal);
	font-size: 0.75rem;
}

/* ---- How It Works ---- */
.how-it-works {
	padding: 100px 0;
	background: var(--bg-surface);
}

.steps {
	display: flex;
	flex-direction: column;
	gap: 48px;
	max-width: 700px;
	margin: 0 auto;
	position: relative;
}

.steps::before {
	content: '';
	position: absolute;
	left: 28px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(to bottom, var(--teal), var(--teal-dim), transparent);
}

.step {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	position: relative;
}

.step-num {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
	border: 2px solid var(--teal);
	border-radius: 50%;
	font-family: var(--font-mono);
	font-weight: 700;
	color: var(--teal);
	font-size: 0.9rem;
	z-index: 1;
}

.step-content h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.step-content p {
	color: var(--text-dim);
	font-size: 0.9rem;
	line-height: 1.65;
	margin-bottom: 12px;
}

.step-code {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 12px 16px;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--teal);
}

.step-code .comment {
	color: var(--text-muted);
}

/* ---- Architecture Diagram ---- */
.architecture {
	padding: 100px 0;
}

.arch-diagram {
	display: grid;
	grid-template-columns: 1fr 1.5fr 1fr;
	gap: 32px;
	align-items: center;
	max-width: 900px;
	margin: 0 auto;
}

.arch-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}

.arch-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.arch-node {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px 20px;
	font-size: 0.85rem;
	font-weight: 500;
	text-align: center;
	width: 100%;
	transition: all var(--transition);
}

.arch-node:hover {
	border-color: var(--teal);
	box-shadow: 0 0 16px var(--teal-dim);
}

.arch-pid {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--text-muted);
	margin-top: 4px;
}

.arch-fifo {
	background: var(--bg-card);
	border: 2px solid var(--teal);
	border-radius: var(--radius-lg);
	padding: 24px;
	text-align: center;
	box-shadow: 0 0 32px var(--teal-dim), inset 0 0 24px rgba(20, 184, 166, 0.05);
}

.fifo-label {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--teal);
	margin-bottom: 16px;
}

.fifo-slots {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-bottom: 16px;
}

.fifo-slot {
	width: 28px;
	height: 28px;
	border-radius: 4px;
	background: var(--bg-surface);
	border: 1px solid var(--border-bright);
	transition: all 0.4s ease;
}

.fifo-slot.active {
	background: var(--teal);
	box-shadow: 0 0 8px var(--teal-glow);
}

.fifo-meta {
	display: flex;
	gap: 16px;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 0.65rem;
	color: var(--text-muted);
}

/* ---- Visualizer ---- */
.visualizer {
	padding: 100px 0;
	background: var(--bg-surface);
}

.viz-container {
	max-width: 800px;
	margin: 0 auto;
}

.viz-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.viz-btn {
	padding: 10px 20px;
	font-size: 0.85rem;
}

.viz-stats {
	margin-left: auto;
	display: flex;
	gap: 20px;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--text-dim);
}

.viz-stats strong {
	color: var(--teal);
}

.viz-pipeline {
	display: flex;
	align-items: center;
	gap: 0;
	margin-bottom: 24px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 32px 24px;
	position: relative;
	overflow: hidden;
}

.viz-endpoint {
	flex-shrink: 0;
	text-align: center;
	z-index: 2;
}

.viz-ep-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin-bottom: 4px;
}

.viz-ep-icon {
	font-size: 1.5rem;
	color: var(--teal);
	font-family: var(--font-mono);
}

.viz-pipe {
	flex: 1;
	height: 48px;
	margin: 0 16px;
	position: relative;
	z-index: 1;
}

.viz-pipe-inner {
	width: 100%;
	height: 100%;
	background: var(--bg-surface);
	border: 2px solid var(--border-bright);
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.viz-pipe-label {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.viz-packet {
	position: absolute;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--teal);
	box-shadow: 0 0 12px var(--teal-glow);
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	pointer-events: none;
}

.viz-log {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	max-height: 160px;
	overflow-y: auto;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	line-height: 1.8;
}

.viz-log-line {
	color: var(--text-dim);
}

.viz-ts {
	color: var(--text-muted);
	margin-right: 12px;
}

/* ---- Use Cases ---- */
.use-cases {
	padding: 100px 0;
}

.usecase-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.usecase-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px;
	transition: all var(--transition);
}

.usecase-card:hover {
	border-color: var(--border-bright);
}

.usecase-icon {
	font-size: 1.5rem;
	margin-bottom: 12px;
}

.usecase-card h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.usecase-card p {
	color: var(--text-dim);
	font-size: 0.85rem;
	line-height: 1.65;
	margin-bottom: 16px;
}

.usecase-code {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--teal);
	line-height: 1.8;
}

/* ---- Demo ---- */
.demo {
	padding: 100px 0;
	background: var(--bg-surface);
}

.demo-terminal {
	max-width: 700px;
	margin: 0 auto;
}

.demo-term-body {
	min-height: 320px;
}

/* ---- Pricing ---- */
.pricing {
	padding: 100px 0;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: start;
}

.price-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 32px 24px;
	position: relative;
	transition: all var(--transition);
}

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

.price-card.featured {
	border-color: var(--teal);
	box-shadow: 0 0 32px var(--teal-dim);
}

.price-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 16px;
	background: var(--teal);
	color: #0A0F1A;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 100px;
	white-space: nowrap;
}

.price-tier {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.price-amount {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin-bottom: 8px;
}

.price-currency {
	font-size: 1.5rem;
	vertical-align: top;
	color: var(--text-dim);
}

.price-period {
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--text-muted);
}

.price-desc {
	color: var(--text-dim);
	font-size: 0.85rem;
	margin-bottom: 20px;
}

.price-features {
	list-style: none;
	margin-bottom: 24px;
}

.price-features li {
	padding: 6px 0;
	font-size: 0.85rem;
	color: var(--text-dim);
	display: flex;
	align-items: center;
	gap: 10px;
}

.price-features li.disabled {
	color: var(--text-muted);
	opacity: 0.5;
}

.check { color: var(--teal); }
.x { color: var(--text-muted); }

.price-cta {
	width: 100%;
	justify-content: center;
}

.price-card.enterprise .price-amount {
	font-size: 2rem;
	color: var(--teal);
}

/* ---- Testimonials ---- */
.testimonials {
	padding: 100px 0;
	background: var(--bg-surface);
}

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.testimonial-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px;
	transition: all var(--transition);
}

.testimonial-card:hover {
	border-color: var(--border-bright);
}

.testimonial-stars {
	color: #F59E0B;
	font-size: 0.85rem;
	letter-spacing: 2px;
	margin-bottom: 14px;
}

.testimonial-card p {
	color: var(--text-dim);
	font-size: 0.9rem;
	line-height: 1.7;
	margin-bottom: 20px;
	font-style: italic;
}

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

.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--teal-dim);
	border: 1px solid var(--border-bright);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--teal);
}

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

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

/* ---- FAQ ---- */
.faq {
	padding: 100px 0;
}

.faq-list {
	max-width: 700px;
	margin: 0 auto;
}

.faq-item {
	border-bottom: 1px solid var(--border);
}

.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	background: none;
	border: none;
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: color var(--transition);
}

.faq-question:hover {
	color: var(--teal);
}

.faq-toggle {
	font-size: 1.3rem;
	font-weight: 300;
	color: var(--text-muted);
	transition: transform var(--transition);
}

.faq-item.open .faq-toggle {
	transform: rotate(45deg);
	color: var(--teal);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
	max-height: 300px;
	padding-bottom: 20px;
}

.faq-answer p {
	color: var(--text-dim);
	font-size: 0.9rem;
	line-height: 1.7;
}

.faq-answer code {
	background: var(--teal-dim);
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--teal);
	font-size: 0.8rem;
}

/* ---- Portfolio Banner ---- */
.portfolio-banner {
	padding: 48px 0;
	background: var(--bg-card);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	text-align: center;
}

.portfolio-label {
	font-size: 0.9rem;
	color: var(--text-dim);
	margin-bottom: 20px;
}

.portfolio-label a {
	color: var(--teal);
	font-weight: 600;
}

.portfolio-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	justify-content: center;
	font-size: 0.8rem;
}

.portfolio-links a {
	color: var(--text-muted);
	text-decoration: none;
	transition: color var(--transition);
}

.portfolio-links a:hover {
	color: var(--teal);
}

.current-brand {
	color: var(--teal);
	font-weight: 700;
}

/* ---- Footer ---- */
.footer {
	padding: 64px 0 32px;
	background: var(--bg);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 1rem;
	color: var(--text);
	margin-bottom: 12px;
}

.footer-brand p {
	color: var(--text-dim);
	font-size: 0.85rem;
	line-height: 1.6;
}

.footer-brand a {
	color: var(--teal);
}

.footer-col h4 {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin-bottom: 14px;
}

.footer-col a {
	display: block;
	color: var(--text-dim);
	font-size: 0.85rem;
	padding: 4px 0;
	text-decoration: none;
	transition: color var(--transition);
}

.footer-col a:hover {
	color: var(--teal);
}

.footer-bottom {
	padding-top: 24px;
	border-top: 1px solid var(--border);
	text-align: center;
	color: var(--text-muted);
	font-size: 0.8rem;
}

/* ---- Modal ---- */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition);
}

.modal-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.modal {
	background: var(--bg-card);
	border: 1px solid var(--border-bright);
	border-radius: var(--radius-lg);
	padding: 40px;
	max-width: 420px;
	width: 90%;
	text-align: center;
	position: relative;
}

.modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 1.5rem;
	cursor: pointer;
	transition: color var(--transition);
}

.modal-close:hover {
	color: var(--teal);
}

.modal-icon {
	font-size: 2.5rem;
	margin-bottom: 16px;
}

.modal h3 {
	font-size: 1.25rem;
	margin-bottom: 12px;
}

.modal p {
	color: var(--text-dim);
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.pricing-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.arch-diagram {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.arch-pipe {
		order: 2;
	}
	.arch-consumers {
		order: 3;
	}
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: rgba(10, 15, 26, 0.95);
		backdrop-filter: blur(16px);
		padding: 16px 24px;
		gap: 12px;
		border-bottom: 1px solid var(--border);
	}
	.nav-links.open {
		display: flex;
	}
	.nav-cta {
		display: none;
	}
	.nav-mobile-toggle {
		display: flex;
	}
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.features-grid {
		grid-template-columns: 1fr;
	}
	.pricing-grid {
		grid-template-columns: 1fr;
	}
	.testimonial-grid {
		grid-template-columns: 1fr;
	}
	.usecase-grid {
		grid-template-columns: 1fr;
	}
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.hero h1 {
		font-size: 2.2rem;
	}
	.viz-controls {
		flex-direction: column;
		align-items: stretch;
	}
	.viz-stats {
		margin-left: 0;
		justify-content: center;
	}
}

/* ---- Scroll Reveal ---- */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===== Portfolio Pills (universal) ===== */
.portfolio-banner,
[class*="portfolio-banner"] {
	padding: 3rem 0;
	text-align: center;
}

.portfolio-banner .container,
[class*="portfolio-banner"] .container,
[class*="portfolio-banner"] [class*="portfolio-banner-inner"] {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.portfolio-scroll,
.portfolio-grid,
.portfolio-list,
.portfolio-links,
.portfolio-commands,
.portfolio-track,
.portfolio-banner-commands,
.portfolio-items,
.footer-commands {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 1rem;
}

.portfolio-scroll a,
.portfolio-grid a,
.portfolio-list a,
.portfolio-links a,
.portfolio-commands a,
.portfolio-track a,
.portfolio-banner-commands a,
.portfolio-items a,
.footer-commands a {
	display: inline-block;
	padding: 6px 14px;
	font-size: .75rem;
	font-weight: 600;
	border-radius: 100px;
	border: 1px solid currentColor;
	opacity: .55;
	text-decoration: none;
	transition: opacity .2s ease, transform .15s ease;
	white-space: nowrap;
}

.portfolio-scroll a:hover,
.portfolio-grid a:hover,
.portfolio-list a:hover,
.portfolio-links a:hover,
.portfolio-commands a:hover,
.portfolio-track a:hover,
.portfolio-banner-commands a:hover,
.portfolio-items a:hover,
.footer-commands a:hover {
	opacity: 1;
	transform: translateY(-1px);
}

.portfolio-current,
.portfolio-scroll .portfolio-current,
.portfolio-grid .portfolio-current,
.portfolio-list .portfolio-current,
.portfolio-banner-commands .portfolio-current,
span.portfolio-current,
[class*="portfolio"] span.current,
[class*="portfolio"] span[class*="current"] {
	display: inline-block;
	padding: 6px 14px;
	font-size: .75rem;
	font-weight: 700;
	border-radius: 100px;
	opacity: 1;
	white-space: nowrap;
}

.portfolio-label,
.portfolio-banner-label {
	font-size: .8125rem;
	opacity: .6;
	margin-bottom: .5rem;
}

.portfolio-label a,
.portfolio-banner-label a {
	border: none !important;
	padding: 0 !important;
	opacity: 1 !important;
	font-weight: 700 !important;
	border-radius: 0 !important;
}

.portfolio-current,
span.portfolio-current,
[class*="portfolio"] span.current,
[class*="portfolio"] span[class*="current"] {
	background: #14B8A6;
	color: #fff;
	border: 1px solid #14B8A6;
}

/* Dark theme pill overrides */
.portfolio-scroll a,
.portfolio-grid a,
.portfolio-list a,
.portfolio-links a,
.portfolio-commands a,
.portfolio-track a,
.portfolio-banner-commands a,
.portfolio-items a,
.footer-commands a {
	color: #ccc !important;
	border-color: #555 !important;
	opacity: .8 !important;
}
.portfolio-scroll a:hover,
.portfolio-grid a:hover,
.portfolio-list a:hover,
.portfolio-links a:hover,
.portfolio-commands a:hover,
.portfolio-track a:hover,
.portfolio-banner-commands a:hover,
.portfolio-items a:hover,
.footer-commands a:hover {
	color: #ff6600 !important;
	border-color: #ff6600 !important;
	opacity: 1 !important;
}

.portfolio-current,
span.portfolio-current {
	background: #14B8A6 !important;
	color: #fff !important;
	border: 1px solid #14B8A6 !important;
	opacity: 1 !important;
}

[class*="avatar"]{overflow:hidden}[class*="avatar"] img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}