/* ===== Tailstream — Dark Mode Neon Terminal Theme ===== */

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

:root {
	--neon: #39FF14;
	--neon-dim: #39ff1480;
	--neon-glow: 0 0 12px #39ff1466, 0 0 40px #39ff1422;
	--neon-text-glow: 0 0 8px #39ff1488, 0 0 20px #39ff1444;
	--bg-0: #0a0a0a;
	--bg-1: #111111;
	--bg-2: #1a1a1a;
	--bg-3: #222222;
	--text: #e0e0e0;
	--text-dim: #888888;
	--text-bright: #ffffff;
	--border: #2a2a2a;
	--border-glow: #39ff1433;
	--warn: #FFD93D;
	--err: #FF6B6B;
	--radius: 12px;
	--radius-sm: 8px;
	--font: "Space Grotesk", system-ui, -apple-system, sans-serif;
	--mono: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
	--container: 1200px;
}

html {
	scroll-behavior: smooth;
	background: var(--bg-0);
	color: var(--text);
}

body {
	font-family: var(--font);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--neon);
	text-decoration: none;
	transition: opacity 0.2s;
}

a:hover {
	opacity: 0.8;
}

/* ===== Nav ===== */

.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 16px 0;
	transition: all 0.3s;
	background: transparent;
}

.nav.scrolled {
	background: rgba(10, 10, 10, 0.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	padding: 10px 0;
}

.nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

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

.nav-logo:hover {
	opacity: 1;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
}

.nav-links a {
	color: var(--text-dim);
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.2s;
}

.nav-links a:hover {
	color: var(--neon);
	opacity: 1;
}

.nav-cta {
	background: var(--neon);
	color: var(--bg-0) !important;
	padding: 8px 20px;
	border-radius: 6px;
	font-weight: 600;
	box-shadow: var(--neon-glow);
	transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 0 20px #39ff1466, 0 0 60px #39ff1433;
	opacity: 1 !important;
}

.nav-mobile-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 1.4rem;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 6px;
}

/* ===== Hero ===== */

.hero {
	position: relative;
	padding: 160px 0 80px;
	overflow: hidden;
	min-height: 90vh;
	display: flex;
	align-items: center;
}

.hero-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hero-glow {
	position: absolute;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, #39ff1412 0%, transparent 70%);
	top: -100px;
	right: -100px;
	border-radius: 50%;
	animation: glow-pulse 4s ease-in-out infinite;
}

.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 60px 60px;
	opacity: 0.3;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

.hero-scanline {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(57, 255, 20, 0.015) 2px,
		rgba(57, 255, 20, 0.015) 4px
	);
	pointer-events: none;
}

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

.hero-content {
	position: relative;
	z-index: 1;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border: 1px solid var(--border-glow);
	border-radius: 999px;
	font-size: 0.85rem;
	color: var(--text-dim);
	margin-bottom: 24px;
	background: rgba(57, 255, 20, 0.05);
}

.pulse-dot {
	width: 8px;
	height: 8px;
	background: var(--neon);
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
	box-shadow: 0 0 6px var(--neon);
}

@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.8); }
}

@keyframes glow-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(1.05); }
}

.hero h1 {
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 20px;
	color: var(--text-bright);
}

.glow-text {
	color: var(--neon);
	text-shadow: var(--neon-text-glow);
}

.hero-desc {
	font-size: 1.1rem;
	color: var(--text-dim);
	max-width: 520px;
	margin-bottom: 32px;
	line-height: 1.7;
}

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

.btn-primary {
	background: var(--neon);
	color: var(--bg-0);
	border: none;
	padding: 14px 28px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	font-family: var(--font);
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: var(--neon-glow);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 20px #39ff1466, 0 0 60px #39ff1433;
}

.btn-primary.btn-outline {
	background: transparent;
	color: var(--neon);
	border: 1px solid var(--neon);
	box-shadow: none;
}

.btn-primary.btn-outline:hover {
	background: rgba(57, 255, 20, 0.1);
	box-shadow: var(--neon-glow);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	padding: 14px 24px;
	color: var(--text-dim);
	font-weight: 500;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
	color: var(--neon);
	border-color: var(--neon-dim);
	opacity: 1;
}

.hero-social-proof {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.85rem;
	color: var(--text-dim);
}

.avatar-stack {
	display: flex;
}

.avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--bg-0);
	border: 2px solid var(--bg-0);
	margin-right: -8px;
	background: var(--neon);
}

.avatar:nth-child(2) { background: #00ff88; }
.avatar:nth-child(3) { background: #22cc66; }
.avatar:nth-child(4) { background: #44ffaa; }
.avatar:nth-child(5) { background: #66ffcc; }

/* ===== Hero Terminal ===== */

.hero-terminal {
	position: relative;
	z-index: 1;
}

.terminal,
.hero-terminal {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-1);
	box-shadow: var(--neon-glow), 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

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

.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green { background: #28C840; }

.terminal-title {
	margin-left: auto;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--text-dim);
}

.terminal-body {
	padding: 20px;
	font-family: var(--mono);
	font-size: 0.82rem;
	line-height: 1.7;
	min-height: 280px;
	max-height: 420px;
	overflow-y: auto;
}

.terminal-body .prompt {
	color: var(--neon);
	font-weight: 700;
}

.terminal-body .command {
	color: var(--text-bright);
}

.terminal-body .output {
	color: var(--text-dim);
}

.terminal-body .output.dim {
	opacity: 0.5;
}

.terminal-body .output.warn {
	color: var(--warn);
}

.terminal-body .output.err {
	color: var(--err);
}

.cursor {
	color: var(--neon);
	animation: blink 1s step-end infinite;
}

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

.terminal-body .line-num {
	color: var(--text-dim);
	opacity: 0.5;
	user-select: none;
}

.terminal-body .neon-highlight {
	color: var(--neon);
}

/* ===== Activity Feed ===== */

.activity-feed {
	padding: 16px 0;
	background: var(--bg-1);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	overflow: hidden;
}

.feed-bar {
	display: flex;
	align-items: center;
	gap: 20px;
}

.feed-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--neon);
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.feed-ticker {
	display: flex;
	gap: 32px;
	animation: ticker 30s linear infinite;
	white-space: nowrap;
}

.feed-ticker .feed-event {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--text-dim);
	display: flex;
	align-items: center;
	gap: 8px;
}

.feed-event .fe-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--neon);
	flex-shrink: 0;
}

.feed-event .fe-dot.warn {
	background: var(--warn);
}

.feed-event .fe-dot.err {
	background: var(--err);
}

@keyframes ticker {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ===== Integrations ===== */

.integrations {
	padding: 40px 0;
	border-bottom: 1px solid var(--border);
}

.integrations-label {
	text-align: center;
	font-size: 0.8rem;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 24px;
}

.integrations-grid {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 32px;
}

.integration-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--text-dim);
	font-weight: 500;
}

/* ===== Sections ===== */

.section {
	padding: 100px 0;
}

.section-label {
	font-family: var(--mono);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--neon);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 12px;
}

.section-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	color: var(--text-bright);
	margin-bottom: 16px;
	line-height: 1.2;
}

.section-subtitle {
	font-size: 1.05rem;
	color: var(--text-dim);
	max-width: 600px;
	margin-bottom: 48px;
}

/* ===== Features ===== */

.features {
	background: var(--bg-0);
}

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

.feature-card {
	background: var(--bg-1);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
	border-color: var(--border-glow);
	box-shadow: 0 0 20px #39ff1411;
}

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

.feature-card h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--text-bright);
}

.feature-flag {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--neon);
	background: rgba(57, 255, 20, 0.1);
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 500;
}

.feature-card p {
	font-size: 0.9rem;
	color: var(--text-dim);
	line-height: 1.6;
}

/* ===== Case Study ===== */

.case-study {
	background: var(--bg-0);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.case-study-card {
	background: var(--bg-1);
	border: 1px solid var(--border-glow);
	border-radius: var(--radius);
	padding: 48px;
	box-shadow: var(--neon-glow);
}

.case-study-card h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-bright);
	margin-bottom: 28px;
	line-height: 1.3;
}

.case-study-body {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	margin-bottom: 28px;
}

.case-study-text p {
	font-size: 0.95rem;
	color: var(--text-dim);
	line-height: 1.7;
	margin-bottom: 16px;
}

.case-study-text code {
	font-family: var(--mono);
	background: rgba(57, 255, 20, 0.1);
	color: var(--neon);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.85rem;
}

.case-study-stats {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cs-stat {
	text-align: center;
	padding: 20px;
	background: var(--bg-2);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
}

.cs-stat-value {
	font-family: var(--mono);
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--neon);
	text-shadow: var(--neon-text-glow);
}

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

.case-study-author {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.case-study-author strong {
	color: var(--text-bright);
	display: block;
}

.case-study-author span:not(.avatar) {
	font-size: 0.85rem;
	color: var(--text-dim);
}

/* ===== How It Works ===== */

.how-it-works {
	background: var(--bg-1);
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.step {
	padding: 28px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	position: relative;
}

.step-number {
	font-family: var(--mono);
	font-size: 2rem;
	font-weight: 700;
	color: var(--neon);
	opacity: 0.3;
	margin-bottom: 16px;
}

.step h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--text-bright);
}

.step p {
	font-size: 0.9rem;
	color: var(--text-dim);
	line-height: 1.6;
}

/* ===== Stats ===== */

.stats {
	background: var(--bg-0);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

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

.stat-value {
	font-family: var(--mono);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	color: var(--neon);
	text-shadow: var(--neon-text-glow);
	margin-bottom: 8px;
}

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

/* ===== Pricing ===== */

.pricing {
	background: var(--bg-1);
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.pricing-card {
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px;
	display: flex;
	flex-direction: column;
	position: relative;
}

.pricing-card.popular {
	border-color: var(--neon);
	box-shadow: var(--neon-glow);
}

.pricing-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--neon);
	color: var(--bg-0);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 16px;
	border-radius: 999px;
	white-space: nowrap;
}

.pricing-tier {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-bright);
	margin-bottom: 8px;
}

.pricing-price {
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--text-bright);
	margin-bottom: 8px;
}

.pricing-price span {
	font-size: 0.9rem;
	color: var(--text-dim);
	font-weight: 400;
}

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

.pricing-features {
	list-style: none;
	flex: 1;
	margin-bottom: 24px;
}

.pricing-features li {
	padding: 6px 0;
	font-size: 0.88rem;
	color: var(--text);
	display: flex;
	align-items: center;
	gap: 8px;
}

.pricing-features li::before {
	content: "✓";
	color: var(--neon);
	font-weight: 700;
	font-size: 0.8rem;
}

.pricing-card .btn-primary {
	width: 100%;
	text-align: center;
}

/* ===== Testimonials ===== */

.testimonials {
	background: var(--bg-0);
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 20px;
}

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

.testimonial-stars {
	color: var(--neon);
	font-size: 0.9rem;
	margin-bottom: 14px;
	letter-spacing: 2px;
}

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

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.testimonial-author strong {
	color: var(--text-bright);
	display: block;
	font-size: 0.88rem;
}

.testimonial-author span:not(.avatar) {
	font-size: 0.8rem;
	color: var(--text-dim);
}

/* ===== Demo ===== */

.demo {
	background: var(--bg-1);
}

.demo-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.demo-btn {
	background: var(--bg-2);
	border: 1px solid var(--border);
	color: var(--text-dim);
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.82rem;
	font-family: var(--mono);
	transition: all 0.2s;
}

.demo-btn:hover {
	border-color: var(--neon-dim);
	color: var(--neon);
}

.demo-btn.active {
	background: rgba(57, 255, 20, 0.1);
	border-color: var(--neon);
	color: var(--neon);
	box-shadow: 0 0 10px #39ff1422;
}

/* ===== FAQ ===== */

.faq {
	background: var(--bg-0);
}

.faq-list {
	max-width: 720px;
}

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

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

.faq-question::after {
	content: "+";
	font-family: var(--mono);
	font-size: 1.3rem;
	color: var(--neon);
	flex-shrink: 0;
	transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
	transform: rotate(45deg);
}

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

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

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

.faq-answer code {
	font-family: var(--mono);
	background: rgba(57, 255, 20, 0.1);
	color: var(--neon);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.85rem;
}

/* ===== Waitlist ===== */

.waitlist {
	background: var(--bg-1);
	text-align: center;
	border-top: 1px solid var(--border);
}

.waitlist-content h2 {
	font-size: clamp(1.6rem, 3.5vw, 2.2rem);
	font-weight: 700;
	color: var(--text-bright);
	margin-bottom: 16px;
}

.waitlist-content > p {
	color: var(--text-dim);
	max-width: 520px;
	margin: 0 auto 32px;
}

.waitlist-form {
	display: flex;
	gap: 12px;
	justify-content: center;
	max-width: 480px;
	margin: 0 auto 16px;
}

.waitlist-input {
	flex: 1;
	padding: 14px 18px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-family: var(--mono);
	font-size: 0.9rem;
	outline: none;
	transition: border-color 0.2s;
}

.waitlist-input:focus {
	border-color: var(--neon);
}

.waitlist-note {
	font-size: 0.8rem;
	color: var(--text-dim);
}

/* ===== Portfolio Banner ===== */

.portfolio-banner {
	padding: 60px 0;
	text-align: center;
	background: var(--bg-2);
	border-top: 1px solid var(--border);
}

.portfolio-banner h2 {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--text-bright);
	margin-bottom: 8px;
}

.portfolio-banner > .container > p {
	color: var(--text-dim);
	margin-bottom: 28px;
	font-size: 0.9rem;
}

.portfolio-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.portfolio-grid a,
.portfolio-grid .current {
	font-family: var(--mono);
	font-size: 0.78rem;
	padding: 4px 12px;
	border-radius: 4px;
	border: 1px solid var(--border);
	color: var(--text-dim);
	transition: all 0.2s;
}

.portfolio-grid a:hover {
	border-color: var(--neon);
	color: var(--neon);
	opacity: 1;
}

.portfolio-grid .current {
	background: var(--neon);
	color: var(--bg-0);
	border-color: var(--neon);
	font-weight: 700;
}

/* ===== Footer ===== */

.footer {
	padding: 60px 0 32px;
	background: var(--bg-0);
	border-top: 1px solid var(--border);
}

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

.footer-brand p {
	color: var(--text-dim);
	font-size: 0.9rem;
	margin-top: 12px;
}

.footer-col h4 {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-bright);
	margin-bottom: 16px;
}

.footer-col ul {
	list-style: none;
}

.footer-col li {
	margin-bottom: 8px;
}

.footer-col a {
	color: var(--text-dim);
	font-size: 0.85rem;
	transition: color 0.2s;
}

.footer-col a:hover {
	color: var(--neon);
	opacity: 1;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	font-size: 0.8rem;
	color: var(--text-dim);
}

/* ===== Modal ===== */

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

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

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

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

.modal h3 {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text-bright);
	margin-bottom: 12px;
}

.modal > p {
	color: var(--text-dim);
	font-size: 0.92rem;
	margin-bottom: 20px;
}

.modal-input {
	width: 100%;
	padding: 12px 16px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-family: var(--mono);
	font-size: 0.9rem;
	margin-bottom: 16px;
	outline: none;
}

.modal-input:focus {
	border-color: var(--neon);
}

.modal .modal-submit {
	width: 100%;
}

.modal-note {
	font-size: 0.78rem;
	color: var(--text-dim);
	margin-top: 12px;
}

/* ===== Fade-in ===== */

.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
	.hero-split {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hero {
		padding: 120px 0 60px;
		min-height: auto;
	}

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

	.footer-top {
		grid-template-columns: 1fr 1fr;
	}

	.case-study-body {
		grid-template-columns: 1fr;
	}

	.case-study-stats {
		flex-direction: row;
	}
}

@media (max-width: 640px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg-1);
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		padding: 20px 24px;
		gap: 16px;
	}

	.nav-links.open {
		display: flex;
	}

	.nav-mobile-toggle {
		display: block;
	}

	.hero h1 {
		font-size: 1.8rem;
	}

	.hero-actions {
		flex-direction: column;
	}

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

	.pricing-grid,
	.features-grid,
	.testimonials-grid {
		grid-template-columns: 1fr;
	}

	.footer-top {
		grid-template-columns: 1fr;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}

	.waitlist-form {
		flex-direction: column;
	}

	.case-study-card {
		padding: 24px;
	}

	.case-study-stats {
		flex-direction: column;
	}

	.demo-controls {
		gap: 4px;
	}

	.demo-btn {
		font-size: 0.72rem;
		padding: 6px 10px;
	}
}

/* ===== 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: #39FF14;
	color: #fff;
	border: 1px solid #39FF14;
}

/* 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: #39FF14 !important;
	border-color: #39FF14 !important;
	opacity: 1 !important;
}

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