/* ===== Reset & Base ===== */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--neon: #A855F7;
	--neon-bright: #C084FC;
	--neon-dim: #7C3AED;
	--neon-glow: rgba(168, 85, 247, 0.25);
	--neon-glow-strong: rgba(168, 85, 247, 0.45);
	--neon-subtle: rgba(168, 85, 247, 0.08);
	--bg: #0A0A0F;
	--bg-raised: #111118;
	--bg-card: #16161F;
	--bg-card-hover: #1C1C28;
	--border: #2A2A3A;
	--border-light: #1E1E2E;
	--text: #E8E8EC;
	--text-secondary: #9494A8;
	--text-muted: #5A5A72;
	--radius: 8px;
	--radius-lg: 16px;
	--shadow-neon: 0 0 20px rgba(168, 85, 247, 0.15);
	--shadow-neon-strong: 0 0 40px rgba(168, 85, 247, 0.25);
	--sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--mono: 'IBM Plex Mono', 'SF Mono', 'Menlo', monospace;
	--transition: 0.25s ease;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
	color: var(--neon);
}

code {
	font-family: var(--mono);
	background: var(--neon-subtle);
	border: 1px solid var(--border);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.88em;
	color: var(--neon-bright);
}

.container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: 120px 0;
}

.section:nth-child(even) {
	background: var(--bg-raised);
}

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

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

.section-subtitle {
	font-size: 1.1rem;
	color: var(--text-secondary);
	max-width: 640px;
	margin-bottom: 48px;
}

/* ===== Nav ===== */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 16px 0;
	transition: all var(--transition);
	border-bottom: 1px solid transparent;
}

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

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

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mono);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--text) !important;
}

.nav-logo-icon {
	filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}

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

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

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

.nav-cta {
	background: var(--neon-dim);
	color: #fff !important;
	padding: 8px 20px;
	border-radius: var(--radius);
	font-weight: 600 !important;
	transition: all var(--transition);
	box-shadow: var(--shadow-neon);
}

.nav-cta:hover {
	background: var(--neon);
	box-shadow: var(--shadow-neon-strong);
}

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

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

/* ===== Hero (Split-Screen) ===== */
.hero {
	position: relative;
	padding: 160px 0 100px;
	overflow: hidden;
}

.hero-glow {
	position: absolute;
	top: -200px;
	right: -200px;
	width: 700px;
	height: 700px;
	background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

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

.hero-badge {
	display: inline-block;
	font-family: var(--mono);
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--text-muted);
	padding: 6px 14px;
	border: 1px solid var(--border);
	border-radius: 99px;
	margin-bottom: 24px;
}

.hero-badge a {
	color: var(--neon-bright);
}

.hero h1 {
	font-size: clamp(2.2rem, 4.5vw, 3.4rem);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 20px;
	letter-spacing: -0.02em;
}

.neon-text {
	background: linear-gradient(135deg, var(--neon-bright), var(--neon-dim));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

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

.hero-actions {
	display: flex;
	gap: 16px;
	align-items: center;
}

/* ===== Hero Terminal ===== */
.hero-terminal,
.demo-terminal {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--shadow-neon), 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

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

.terminal-dot.red { background: #FF5F56; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #27C93F; }

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

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

.term-line {
	white-space: nowrap;
}

.term-prompt {
	color: var(--neon);
	font-weight: 600;
}

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

.term-output {
	color: var(--text-secondary);
	padding-left: 18px;
}

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

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

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

/* ===== Buttons ===== */
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	background: var(--neon-dim);
	color: #fff;
	border: none;
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
	box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
	background: var(--neon);
	box-shadow: var(--shadow-neon-strong);
	transform: translateY(-1px);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	background: transparent;
	color: var(--text-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition);
}

.btn-secondary:hover {
	color: var(--text);
	border-color: var(--text-muted);
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	padding: 12px 28px;
	background: transparent;
	color: var(--neon-bright);
	border: 1px solid var(--neon-dim);
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
	width: 100%;
	justify-content: center;
}

.btn-outline:hover {
	background: var(--neon-subtle);
	border-color: var(--neon);
}

/* ===== Integrations Strip ===== */
.integrations {
	padding: 48px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	background: var(--bg-raised);
}

.integrations-label {
	text-align: center;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 20px;
}

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

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

.integration-icon {
	font-size: 1.1rem;
}

/* ===== Features ===== */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 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 {
	background: var(--bg-card-hover);
	border-color: var(--neon-dim);
	box-shadow: var(--shadow-neon);
	transform: translateY(-2px);
}

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

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

.feature-flag {
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--neon);
	background: var(--neon-subtle);
	padding: 2px 8px;
	border-radius: 4px;
	vertical-align: middle;
}

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

/* ===== How It Works ===== */
.steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
	margin-top: 40px;
}

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

.step-number {
	font-family: var(--mono);
	font-size: 2rem;
	font-weight: 700;
	color: var(--neon-dim);
	margin-bottom: 12px;
	text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.step h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 8px;
}

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

/* ===== Stats ===== */
.stats {
	background: var(--bg) !important;
}

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

.stat-value {
	font-family: var(--mono);
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 700;
	color: var(--neon-bright);
	text-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
}

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

/* ===== Pricing ===== */
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

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

.pricing-card.featured {
	border-color: var(--neon-dim);
	box-shadow: var(--shadow-neon-strong);
}

.pricing-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	background: var(--neon-dim);
	color: #fff;
	padding: 4px 14px;
	border-radius: 99px;
	white-space: nowrap;
}

.pricing-card h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.price {
	font-family: var(--mono);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--neon-bright);
	margin-bottom: 4px;
}

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

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

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

.pricing-card li {
	font-size: 0.85rem;
	color: var(--text-secondary);
	padding: 6px 0;
	border-bottom: 1px solid var(--border-light);
}

.pricing-card li:last-child {
	border-bottom: none;
}

.pricing-card li code {
	font-size: 0.78rem;
}

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

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

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

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

.testimonial-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--neon-dim);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
	color: #fff;
	flex-shrink: 0;
}

.testimonial-author strong {
	font-size: 0.9rem;
	color: var(--text);
}

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

/* ===== Demo ===== */
.demo-container {
	max-width: 800px;
	margin: 0 auto;
}

.demo-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.demo-btn {
	font-family: var(--mono);
	font-size: 0.82rem;
	font-weight: 500;
	padding: 8px 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text-secondary);
	cursor: pointer;
	transition: all var(--transition);
}

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

.demo-btn.active {
	background: var(--neon-dim);
	border-color: var(--neon-dim);
	color: #fff;
	box-shadow: var(--shadow-neon);
}

.demo-cmd {
	font-family: var(--mono);
	font-size: 0.85rem;
	color: var(--neon-bright);
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
}

.demo-split {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 16px;
	align-items: start;
}

.demo-pane {
	font-family: var(--mono);
	font-size: 0.82rem;
	line-height: 1.7;
}

.demo-pane-label {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.demo-arrow {
	color: var(--neon);
	font-size: 1.4rem;
	padding-top: 24px;
}

.demo-line {
	color: var(--text-secondary);
	white-space: pre-wrap;
	word-break: break-all;
}

.demo-line .hl {
	color: var(--neon-bright);
	background: rgba(168, 85, 247, 0.15);
	border-radius: 2px;
	padding: 0 2px;
}

.demo-line.deleted {
	color: #EF4444;
	text-decoration: line-through;
	opacity: 0.5;
}

/* ===== Comparison Table ===== */
.table-wrapper {
	overflow-x: auto;
	margin-top: 40px;
}

.comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.comparison-table th,
.comparison-table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

.comparison-table th {
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-muted);
	background: var(--bg-card);
}

.comparison-table td {
	color: var(--text-secondary);
}

.highlight-col {
	color: var(--neon-bright) !important;
	font-weight: 600;
}

.comparison-table tbody tr:hover {
	background: var(--bg-card);
}

/* ===== Case Study ===== */
.case-study-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 48px;
}

.case-study-card h2 {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 24px;
	line-height: 1.3;
}

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

.case-study-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}

.case-stat strong {
	display: block;
	font-family: var(--mono);
	font-size: 1.6rem;
	color: var(--neon-bright);
	text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.case-stat span {
	font-size: 0.82rem;
	color: var(--text-muted);
}

/* ===== Changelog ===== */
.changelog-list {
	margin-top: 40px;
	max-width: 640px;
}

.changelog-entry {
	display: flex;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--border);
}

.changelog-version {
	font-family: var(--mono);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--neon);
	background: var(--neon-subtle);
	padding: 4px 12px;
	border-radius: 99px;
	height: fit-content;
	white-space: nowrap;
}

.changelog-content h4 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 4px;
}

.changelog-content p {
	font-size: 0.88rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
	max-width: 700px;
	margin-top: 40px;
}

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

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

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

.faq-chevron {
	font-family: var(--mono);
	font-size: 1.2rem;
	color: var(--text-muted);
	transition: transform var(--transition);
	flex-shrink: 0;
}

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

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

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

.faq-answer p {
	padding-bottom: 20px;
	font-size: 0.92rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

/* ===== Waitlist ===== */
.waitlist {
	text-align: center;
	background: var(--bg) !important;
}

.waitlist-content h2 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 700;
	margin-bottom: 12px;
	background: linear-gradient(135deg, var(--text), var(--neon-bright));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.waitlist-content > p {
	font-size: 1.05rem;
	color: var(--text-secondary);
	margin-bottom: 32px;
}

.waitlist-form {
	display: flex;
	gap: 12px;
	max-width: 440px;
	margin: 0 auto;
}

.waitlist-input {
	flex: 1;
	padding: 12px 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-family: var(--sans);
	font-size: 0.92rem;
	outline: none;
	transition: border-color var(--transition);
}

.waitlist-input:focus {
	border-color: var(--neon-dim);
	box-shadow: 0 0 0 3px var(--neon-subtle);
}

.waitlist-input::placeholder {
	color: var(--text-muted);
}

.waitlist-note {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-top: 12px;
}

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

.portfolio-banner h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 6px;
}

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

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

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

.portfolio-grid a:hover {
	border-color: var(--neon-dim);
	color: var(--neon-bright);
	background: var(--neon-subtle);
}

.portfolio-grid .current {
	background: var(--neon-dim);
	border-color: var(--neon-dim);
	color: #fff;
	font-weight: 600;
}

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

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

.footer-brand p {
	font-size: 0.88rem;
	color: var(--text-muted);
	margin-top: 12px;
	max-width: 280px;
}

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

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

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

.footer-col a {
	font-size: 0.88rem;
	color: var(--text-secondary);
}

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

.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-muted);
}

/* ===== Modal ===== */
.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	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);
	border-radius: var(--radius-lg);
	padding: 40px;
	max-width: 440px;
	width: 90%;
	text-align: center;
	box-shadow: var(--shadow-neon-strong);
}

.modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 1.6rem;
	cursor: pointer;
}

.modal h3 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 8px;
}

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

.modal .waitlist-input {
	width: 100%;
	margin-bottom: 12px;
}

.modal .btn-primary {
	width: 100%;
	justify-content: center;
}

/* ===== Fade-in animation ===== */
.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;
	}

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

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

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

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

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

@media (max-width: 640px) {
	.section {
		padding: 80px 0;
	}

	.nav-links {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(10, 10, 15, 0.97);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 24px;
		z-index: 99;
	}

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

	.nav-links a {
		font-size: 1.2rem;
	}

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

	.hero {
		padding: 120px 0 60px;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.btn-primary,
	.btn-secondary {
		justify-content: center;
	}

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

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

	.demo-split {
		grid-template-columns: 1fr;
	}

	.demo-arrow {
		text-align: center;
		padding: 0;
		transform: rotate(90deg);
	}

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

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

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

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

	.comparison-table th,
	.comparison-table td {
		padding: 10px 12px;
		font-size: 0.8rem;
	}
}

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

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

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