/* ================================================================
   Aegis — Enterprise Permission Intelligence
   Full dark + electric violet glow
   DM Sans + IBM Plex Mono
   ================================================================ */

:root {
	--bg: #07070d;
	--bg-surface: #0d0d16;
	--bg-card: #13131f;
	--bg-card-hover: #1a1a2a;
	--bg-elevated: #1f1f33;
	--border: #1e1e30;
	--border-glow: rgba(139, 92, 246, 0.25);

	--violet: #8b5cf6;
	--violet-light: #a78bfa;
	--violet-lighter: #c4b5fd;
	--violet-dim: rgba(139, 92, 246, 0.15);
	--magenta: #d946ef;
	--magenta-dim: rgba(217, 70, 239, 0.15);

	--text: #e2e8f0;
	--text-muted: #94a3b8;
	--text-dim: #64748b;

	--font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;

	--radius: 10px;
	--radius-lg: 16px;
	--radius-sm: 6px;

	--glow: 0 0 40px rgba(139, 92, 246, 0.12), 0 0 80px rgba(139, 92, 246, 0.06);
	--glow-strong: 0 0 30px rgba(139, 92, 246, 0.2), 0 0 60px rgba(139, 92, 246, 0.1);
	--shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
}

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

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

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

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

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

a:hover {
	color: var(--violet-lighter);
}

/* ---- Trust Bar ---- */
.trust-bar {
	background: linear-gradient(90deg, var(--violet-dim), var(--magenta-dim), var(--violet-dim));
	border-bottom: 1px solid var(--border);
	padding: 8px 0;
	overflow: hidden;
}

.trust-bar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	flex-wrap: wrap;
}

.trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--violet-lighter);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.trust-badge svg {
	opacity: 0.7;
}

/* ---- Navbar ---- */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(7, 7, 13, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, background 0.3s;
	padding-top: 37px;
}

.navbar.scrolled {
	border-bottom-color: var(--border);
	background: rgba(7, 7, 13, 0.95);
}

.nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.02em;
}

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

.logo-icon {
	filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

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

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

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

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

.nav-cta:hover {
	background: var(--violet-light) !important;
	box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

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

.mobile-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--text);
	border-radius: 1px;
	transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

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

.btn-primary {
	background: linear-gradient(135deg, var(--violet), var(--magenta));
	color: #fff;
	box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
	box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
	transform: translateY(-1px);
	color: #fff;
}

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

.btn-ghost:hover {
	border-color: var(--violet);
	color: var(--text);
	background: var(--violet-dim);
}

.btn-outline {
	background: transparent;
	color: var(--violet-light);
	border: 1px solid var(--violet);
	width: 100%;
	justify-content: center;
}

.btn-outline:hover {
	background: var(--violet-dim);
	color: #fff;
	box-shadow: var(--glow);
}

/* ---- Hero ---- */
.hero {
	padding: 160px 0 100px;
	position: relative;
	overflow: hidden;
}

.hero-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.hero-eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--violet-light);
	margin-bottom: 20px;
	padding: 6px 14px;
	background: var(--violet-dim);
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: 100px;
}

.hero h1 {
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin-bottom: 20px;
}

.gradient-text {
	background: linear-gradient(135deg, var(--violet-light), var(--magenta));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-subtitle {
	font-size: 1.125rem;
	color: var(--text-muted);
	line-height: 1.7;
	max-width: 500px;
	margin-bottom: 32px;
}

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

.hero-meta {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.hero-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	color: var(--text-dim);
}

.hero-meta-item svg {
	color: var(--violet);
}

.hero-glow {
	position: absolute;
	top: 20%;
	left: 50%;
	width: 800px;
	height: 600px;
	background: radial-gradient(ellipse, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
	transform: translateX(-50%);
	pointer-events: none;
	z-index: -1;
}

/* ---- Terminal ---- */
.terminal {
	background: #0c0c14;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--glow), var(--shadow-card);
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.03);
	border-bottom: 1px solid var(--border);
}

.terminal-dots {
	display: flex;
	gap: 6px;
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

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

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

.terminal-line {
	opacity: 0;
	animation: terminalFadeIn 0.3s forwards;
}

.terminal-line.output {
	color: var(--text-muted);
	padding-left: 24px;
}

.prompt {
	color: var(--violet-light);
}

.cmd {
	color: var(--magenta);
	font-weight: 600;
}

.flag {
	color: var(--violet-lighter);
}

.arg {
	color: #22d3ee;
}

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

@keyframes blink {
	50% { opacity: 0; }
}

@keyframes terminalFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

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

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

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

.stat-value {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	background: linear-gradient(135deg, var(--violet-light), var(--magenta));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 8px;
}

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

/* ---- Section Headers ---- */
.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--violet);
	margin-bottom: 16px;
}

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

.section-subtitle {
	font-size: 1.0625rem;
	color: var(--text-muted);
	max-width: 640px;
	margin: 0 auto;
	line-height: 1.7;
}

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

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

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

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

.feature-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--violet-dim);
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: 12px;
	margin-bottom: 20px;
	color: var(--violet-light);
}

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

.feature-card p {
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 16px;
}

.feature-example {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--violet-light);
	background: var(--bg);
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	overflow-x: auto;
}

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

.steps-grid {
	display: flex;
	align-items: flex-start;
	gap: 0;
}

.step-card {
	flex: 1;
	padding: 32px 24px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.step-card:hover {
	border-color: var(--border-glow);
	box-shadow: var(--glow);
}

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

.step-card h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 10px;
}

.step-card p {
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.6;
}

.step-connector {
	width: 40px;
	min-width: 40px;
	height: 2px;
	background: linear-gradient(90deg, var(--violet), transparent);
	align-self: center;
	margin-top: -20px;
}

/* ---- Comparison ---- */
.comparison {
	padding: 100px 0;
}

.comparison-table-wrapper {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

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

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

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

.comparison-table th.highlight {
	color: var(--violet-light);
	background: var(--violet-dim);
}

.comparison-table td.highlight {
	background: rgba(139, 92, 246, 0.05);
	font-weight: 500;
}

.comparison-table tbody tr {
	transition: background 0.2s;
}

.comparison-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:last-child td {
	border-bottom: none;
}

.check {
	color: #22c55e;
	font-weight: 700;
}

.cross {
	color: #ef4444;
	font-weight: 700;
}

.partial {
	color: #eab308;
	font-weight: 700;
}

/* ---- Case Study ---- */
.case-study {
	padding: 100px 0;
	background: var(--bg-surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.case-study-inner {
	max-width: 760px;
	margin: 0 auto;
}

.case-study-logo {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 16px;
	letter-spacing: -0.01em;
}

.case-study h2 {
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 32px;
	color: var(--violet-lighter);
	font-style: italic;
}

.case-study-content p {
	font-size: 1rem;
	color: var(--text-muted);
	line-height: 1.8;
	margin-bottom: 24px;
}

.case-study-quote {
	border-left: 3px solid var(--violet);
	padding: 20px 28px;
	margin: 32px 0;
	background: var(--violet-dim);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 1.0625rem;
	color: var(--text);
	line-height: 1.7;
	font-style: italic;
}

.case-study-quote cite {
	display: block;
	margin-top: 12px;
	font-style: normal;
	font-size: 0.875rem;
	color: var(--violet-light);
	font-weight: 500;
}

/* ---- Demo ---- */
.demo {
	padding: 100px 0;
}

.demo-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

.demo-controls {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

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

.demo-tabs {
	display: flex;
	gap: 0;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.demo-tab {
	flex: 1;
	padding: 10px 16px;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--text-muted);
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
}

.demo-tab.active {
	background: var(--violet);
	color: #fff;
}

.demo-tab:hover:not(.active) {
	background: var(--bg-card-hover);
}

.demo-octal-inputs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.octal-digit-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.octal-label {
	font-size: 0.6875rem;
	font-family: var(--font-mono);
	color: var(--text-dim);
	text-align: center;
}

.demo-select,
.demo-input {
	width: 100%;
	padding: 10px 12px;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	background: var(--bg-card);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	outline: none;
	transition: border-color 0.2s;
}

.demo-select:focus,
.demo-input:focus {
	border-color: var(--violet);
	box-shadow: 0 0 0 2px var(--violet-dim);
}

.demo-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.demo-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	color: var(--text-muted);
	cursor: pointer;
}

.demo-checkbox input {
	accent-color: var(--violet);
}

.demo-checkbox span {
	font-family: var(--font-mono);
	color: var(--violet-light);
	font-size: 0.75rem;
}

.demo-run {
	width: 100%;
	justify-content: center;
}

.demo-output .terminal {
	position: sticky;
	top: 120px;
}

.hidden {
	display: none !important;
}

/* ---- Pricing ---- */
.pricing {
	padding: 100px 0;
	background: var(--bg-surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

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

.pricing-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 32px 24px;
	position: relative;
	transition: border-color 0.3s, box-shadow 0.3s;
}

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

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

.pricing-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, var(--violet), var(--magenta));
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 4px 16px;
	border-radius: 100px;
	white-space: nowrap;
}

.pricing-tier {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--violet-light);
	margin-bottom: 12px;
}

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

.price-currency {
	font-size: 1.25rem;
	vertical-align: super;
	color: var(--text-muted);
}

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

.price-custom {
	font-size: 1.5rem;
	color: var(--text-muted);
}

.pricing-desc {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin-bottom: 24px;
	line-height: 1.5;
}

.pricing-features {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 28px;
}

.pricing-features li {
	font-size: 0.8125rem;
	color: var(--text-muted);
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.pricing-features li .check,
.pricing-features li .cross {
	flex-shrink: 0;
	font-size: 0.875rem;
}

/* ---- Testimonials ---- */
.testimonials {
	padding: 100px 0;
}

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

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

.testimonial-card:hover {
	border-color: var(--border-glow);
	box-shadow: var(--glow);
}

.testimonial-stars {
	color: #eab308;
	font-size: 0.875rem;
	letter-spacing: 2px;
	margin-bottom: 16px;
}

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

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

.testimonial-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--violet), var(--magenta));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}

.testimonial-name {
	font-size: 0.875rem;
	font-weight: 600;
}

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

/* ---- FAQ ---- */
.faq {
	padding: 100px 0;
	background: var(--bg-surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.faq-list {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.faq-item {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.3s;
}

.faq-item.open {
	border-color: var(--border-glow);
}

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

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

.faq-chevron {
	flex-shrink: 0;
	transition: transform 0.3s;
	color: var(--text-dim);
}

.faq-item.open .faq-chevron {
	transform: rotate(180deg);
	color: var(--violet);
}

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

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

.faq-answer p {
	padding: 0 24px 20px;
	font-size: 0.9375rem;
	color: var(--text-muted);
	line-height: 1.7;
}

/* ---- Portfolio Banner ---- */
.portfolio-banner {
	padding: 60px 0;
	background: linear-gradient(180deg, var(--bg), var(--bg-surface));
	border-top: 1px solid var(--border);
	text-align: center;
}

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

.mando-link {
	color: var(--violet-light);
	font-weight: 600;
}

.portfolio-banner h3 {
	margin-bottom: 28px;
}

.portfolio-banner h3 a {
	font-size: 1.25rem;
	color: var(--violet-light);
}

.portfolio-banner h3 a:hover {
	color: var(--violet-lighter);
}

.portfolio-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	max-width: 960px;
	margin: 0 auto;
}

.portfolio-strip a {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--text-dim);
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	transition: color 0.2s, background 0.2s;
}

.portfolio-strip a:hover {
	color: var(--violet-light);
	background: var(--violet-dim);
}

.portfolio-current {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--violet-light);
	padding: 4px 10px;
	background: var(--violet-dim);
	border: 1px solid rgba(139, 92, 246, 0.3);
	border-radius: var(--radius-sm);
}

.portfolio-upcoming {
	font-size: 0.8125rem;
	color: var(--text-dim);
	opacity: 0.4;
	padding: 4px 10px;
}

/* ---- Footer ---- */
.footer {
	padding: 80px 0 40px;
	border-top: 1px solid var(--border);
}

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

.footer-brand .nav-logo {
	margin-bottom: 16px;
}

.footer-tagline {
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.6;
	max-width: 280px;
	margin-bottom: 12px;
}

.footer-backed {
	font-size: 0.8125rem;
	color: var(--text-dim);
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

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

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

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

.footer-bottom {
	border-top: 1px solid var(--border);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-bottom p {
	font-size: 0.75rem;
	color: var(--text-dim);
}

/* ---- Modal ---- */
.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.modal {
	background: var(--bg-card);
	border: 1px solid var(--border-glow);
	border-radius: var(--radius-lg);
	padding: 48px 40px;
	max-width: 440px;
	width: 90%;
	text-align: center;
	position: relative;
	box-shadow: var(--glow-strong);
	transform: scale(0.95);
	transition: transform 0.3s;
}

.modal-overlay.active .modal {
	transform: scale(1);
}

.modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	font-size: 1.25rem;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text-dim);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover {
	color: var(--text);
	border-color: var(--text-dim);
}

.modal-icon {
	color: var(--violet);
	margin-bottom: 20px;
}

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

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

.modal-form {
	display: flex;
	gap: 8px;
}

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

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

.modal-submit {
	white-space: nowrap;
	padding: 12px 20px;
}

/* ---- Animations ---- */
[data-animate] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
	opacity: 1;
	transform: translateY(0);
}

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

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

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.trust-bar-inner {
		gap: 16px;
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: rgba(7, 7, 13, 0.98);
		backdrop-filter: blur(16px);
		border-bottom: 1px solid var(--border);
		padding: 16px 24px;
		gap: 12px;
	}

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

	.mobile-toggle {
		display: flex;
	}

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

	.hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hero-subtitle {
		max-width: none;
	}

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

	.stat-value {
		font-size: 2rem;
	}

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

	.steps-grid {
		flex-direction: column;
		gap: 16px;
	}

	.step-connector {
		width: 2px;
		height: 24px;
		min-width: unset;
		margin: 0 auto;
		background: linear-gradient(180deg, var(--violet), transparent);
	}

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

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

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

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

	.comparison-table {
		font-size: 0.75rem;
	}

	.comparison-table th,
	.comparison-table td {
		padding: 10px 12px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

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

/* ===== 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: 0 0 40px rgba(139, 92, 246, 0.12), 0 0 80px rgba(139, 92, 246, 0.06);
	color: #fff;
	border: 1px solid 0 0 40px rgba(139, 92, 246, 0.12), 0 0 80px rgba(139, 92, 246, 0.06);
}

/* 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: 0 0 40px rgba(139, 92, 246, 0.12), 0 0 80px rgba(139, 92, 246, 0.06) !important;
	border-color: 0 0 40px rgba(139, 92, 246, 0.12), 0 0 80px rgba(139, 92, 246, 0.06) !important;
	opacity: 1 !important;
}

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

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