/* ========================================
   Diverge — Change Detection Platform
   Developer Tool · Dark + Coral/Green
   ======================================== */

:root {
	--bg-primary: #0d0d14;
	--bg-secondary: #13131f;
	--bg-card: #1a1a2e;
	--bg-card-hover: #22223a;
	--bg-surface: #16162a;
	--border: #2a2a44;
	--border-subtle: #1f1f36;
	--text-primary: #e8e8f0;
	--text-secondary: #9898b0;
	--text-muted: #6a6a88;
	--coral: #FF6B6B;
	--coral-dim: rgba(255, 107, 107, 0.15);
	--coral-glow: rgba(255, 107, 107, 0.4);
	--green: #69DB7C;
	--green-dim: rgba(105, 219, 124, 0.15);
	--green-glow: rgba(105, 219, 124, 0.4);
	--orange: #FFA94D;
	--purple: #DA77F2;
	--blue: #74C0FC;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
	--radius: 10px;
	--radius-lg: 16px;
	--radius-sm: 6px;
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--max-width: 1200px;
}

*,
*::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-primary);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

code {
	font-family: var(--font-mono);
	font-size: 0.85em;
	background: var(--bg-card);
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--coral);
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	z-index: 9999;
	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-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 48px;
	text-align: center;
	max-width: 400px;
	width: 90%;
	position: relative;
	transform: translateY(20px);
	transition: transform var(--transition);
}

.modal-overlay.active .modal-card {
	transform: translateY(0);
}

.modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.modal-icon {
	font-size: 40px;
	color: var(--coral);
	margin-bottom: 16px;
}

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

.modal-card p {
	color: var(--text-secondary);
	margin-bottom: 24px;
}

.modal-btn {
	min-width: 140px;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(13, 13, 20, 0.8);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--transition), background var(--transition);
}

.navbar.scrolled {
	border-bottom-color: var(--border);
}

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

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

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

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

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

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

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

/* ========================================
   Buttons
   ======================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.875rem;
	padding: 10px 24px;
	border-radius: var(--radius-sm);
	border: none;
	cursor: pointer;
	transition: all var(--transition);
	white-space: nowrap;
}

.btn-primary {
	background: var(--coral);
	color: #fff;
	box-shadow: 0 0 20px var(--coral-dim);
}

.btn-primary:hover {
	background: #ff5252;
	box-shadow: 0 0 30px var(--coral-glow);
}

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

.btn-ghost:hover {
	border-color: var(--text-muted);
	background: var(--bg-card);
}

.btn-sm {
	padding: 7px 18px;
	font-size: 0.8125rem;
}

.btn-lg {
	padding: 14px 32px;
	font-size: 0.9375rem;
	border-radius: var(--radius);
}

.btn-full {
	width: 100%;
}

/* ========================================
   Sections
   ======================================== */
.section-header {
	text-align: center;
	margin-bottom: 64px;
}

.section-tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--coral);
	background: var(--coral-dim);
	padding: 4px 14px;
	border-radius: 20px;
	margin-bottom: 20px;
}

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

.section-header p {
	color: var(--text-secondary);
	font-size: 1.0625rem;
	max-width: 600px;
	margin: 0 auto;
}

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

.hero-bg-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 107, 107, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 107, 107, 0.03) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-content {
	text-align: center;
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin-bottom: 60px;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--text-muted);
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 6px 16px;
	border-radius: 20px;
	margin-bottom: 28px;
}

.hero-badge a {
	color: var(--coral);
	font-weight: 600;
}

.hero-badge a:hover {
	text-decoration: underline;
}

.hero-title {
	font-size: clamp(2.5rem, 7vw, 4.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin-bottom: 24px;
}

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

.hero-sub {
	font-size: 1.125rem;
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 36px;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

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

/* Hero Split Viewer */
.hero-split-viewer {
	display: flex;
	align-items: stretch;
	gap: 0;
	max-width: 800px;
	width: 100%;
	position: relative;
	z-index: 2;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow:
		0 0 60px rgba(255, 107, 107, 0.08),
		0 0 60px rgba(105, 219, 124, 0.08);
}

.split-panel {
	flex: 1;
	background: var(--bg-secondary);
}

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

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

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

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

.split-code {
	padding: 16px 0;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	line-height: 1.8;
}

.code-line {
	display: flex;
	padding: 0 16px;
	transition: background var(--transition);
}

.code-line .ln {
	color: var(--text-muted);
	width: 24px;
	flex-shrink: 0;
	text-align: right;
	margin-right: 16px;
	user-select: none;
}

.code-line.removed {
	background: var(--coral-dim);
}

.code-line.removed .code-text {
	color: var(--coral);
}

.code-line.added {
	background: var(--green-dim);
}

.code-line.added .code-text {
	color: var(--green);
}

.split-divider {
	width: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
	gap: 8px;
}

.divider-line {
	width: 1px;
	flex: 1;
	background: var(--border);
}

.divider-icon {
	font-size: 14px;
	color: var(--text-muted);
}

/* ========================================
   Stats Bar
   ======================================== */
.stats-bar {
	padding: 60px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	background: var(--bg-secondary);
}

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

.stat-number {
	font-family: var(--font-mono);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	color: var(--text-primary);
}

.stat-suffix {
	font-family: var(--font-mono);
	font-size: clamp(1rem, 2vw, 1.5rem);
	font-weight: 700;
	color: var(--coral);
}

.stat-label {
	display: block;
	font-size: 0.8125rem;
	color: var(--text-muted);
	margin-top: 4px;
}

/* ========================================
   Features
   ======================================== */
.features {
	padding: 120px 0;
}

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

.feature-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px 28px;
	transition: all var(--transition);
	opacity: 0;
	transform: translateY(20px);
}

.feature-card.visible {
	opacity: 1;
	transform: translateY(0);
}

.feature-card:hover {
	border-color: var(--text-muted);
	background: var(--bg-card-hover);
	transform: translateY(-2px);
}

.feature-icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.04);
	border-radius: var(--radius-sm);
	margin-bottom: 20px;
	color: var(--accent, var(--coral));
}

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

.feature-card .flag {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 0.75rem;
	color: var(--green);
	background: var(--green-dim);
}

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

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

.steps-grid {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	flex-wrap: wrap;
}

.step-card {
	flex: 1;
	min-width: 240px;
	max-width: 320px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 36px 28px;
	text-align: center;
	opacity: 0;
	transform: translateY(20px);
}

.step-card.visible {
	opacity: 1;
	transform: translateY(0);
}

.step-number {
	font-family: var(--font-mono);
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--coral);
	opacity: 0.3;
	line-height: 1;
	margin-bottom: 20px;
}

.step-card h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 12px;
}

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

.step-connector {
	display: flex;
	align-items: center;
	padding-top: 48px;
}

/* ========================================
   Diff Viewer
   ======================================== */
.diff-viewer-section {
	padding: 120px 0;
}

.diff-viewer {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.diff-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background: var(--bg-surface);
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
	gap: 12px;
}

.diff-toolbar-left,
.diff-toolbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

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

.format-btn {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	padding: 5px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
	transition: all var(--transition);
}

.format-btn.active {
	background: var(--coral);
	color: #fff;
	border-color: var(--coral);
}

.format-btn:hover:not(.active) {
	border-color: var(--text-muted);
}

.toolbar-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	color: var(--text-secondary);
	cursor: pointer;
}

.toolbar-toggle input {
	accent-color: var(--coral);
}

.diff-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-bottom: 1px solid var(--border);
}

.diff-input-panel {
	border-right: 1px solid var(--border);
}

.diff-input-panel:last-child {
	border-right: none;
}

.panel-header {
	padding: 8px 16px;
	background: var(--bg-surface);
	border-bottom: 1px solid var(--border);
}

.panel-title {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--text-muted);
	font-weight: 600;
}

.diff-textarea {
	width: 100%;
	min-height: 200px;
	padding: 16px;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	line-height: 1.6;
	background: var(--bg-primary);
	color: var(--text-primary);
	border: none;
	resize: vertical;
	outline: none;
}

.diff-output {
	padding: 16px;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	line-height: 1.7;
	min-height: 100px;
	overflow-x: auto;
}

.diff-output .diff-line {
	padding: 1px 8px;
	border-radius: 3px;
	white-space: pre;
}

.diff-output .diff-line.removed {
	background: var(--coral-dim);
	color: var(--coral);
}

.diff-output .diff-line.added {
	background: var(--green-dim);
	color: var(--green);
}

.diff-output .diff-line.hunk {
	color: var(--blue);
}

.diff-output .diff-line.context {
	color: var(--text-muted);
}

.diff-output .diff-line.separator {
	color: var(--text-muted);
}

.diff-output .diff-line.header {
	color: var(--text-muted);
}

/* Side by side output */
.diff-output .sbs-table {
	width: 100%;
	border-collapse: collapse;
}

.diff-output .sbs-table td {
	padding: 1px 8px;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	vertical-align: top;
	white-space: pre;
	width: 45%;
}

.diff-output .sbs-table td.ln-col {
	width: 3%;
	color: var(--text-muted);
	text-align: right;
	padding-right: 12px;
	user-select: none;
}

.diff-output .sbs-table td.sep-col {
	width: 4%;
	text-align: center;
	color: var(--text-muted);
}

.diff-output .sbs-table tr.row-removed td:nth-child(2) {
	background: var(--coral-dim);
	color: var(--coral);
}

.diff-output .sbs-table tr.row-added td:nth-child(4) {
	background: var(--green-dim);
	color: var(--green);
}

.diff-output .sbs-table tr.row-changed td:nth-child(2) {
	background: var(--coral-dim);
	color: var(--coral);
}

.diff-output .sbs-table tr.row-changed td:nth-child(4) {
	background: var(--green-dim);
	color: var(--green);
}

.diff-stats-bar {
	display: flex;
	gap: 24px;
	padding: 12px 20px;
	background: var(--bg-surface);
	border-top: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 0.75rem;
}

.diff-stat.additions { color: var(--green); }
.diff-stat.removals { color: var(--coral); }
.diff-stat.unchanged { color: var(--text-muted); }

/* ========================================
   Format Gallery
   ======================================== */
.format-gallery {
	padding: 120px 0;
	background: var(--bg-secondary);
}

.gallery-tabs {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.gallery-tab {
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	padding: 8px 18px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
	transition: all var(--transition);
}

.gallery-tab.active {
	background: var(--coral);
	color: #fff;
	border-color: var(--coral);
}

.gallery-tab:hover:not(.active) {
	border-color: var(--text-muted);
}

.gallery-tab code {
	background: none;
	color: inherit;
	padding: 0;
	font-size: inherit;
}

.gallery-display {
	max-width: 700px;
	margin: 0 auto;
}

/* Terminal Window */
.terminal-window {
	background: var(--bg-primary);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.terminal-window.large {
	max-width: 780px;
	margin: 0 auto;
}

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

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

.terminal-body {
	padding: 20px;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	line-height: 1.7;
	overflow-x: auto;
	white-space: pre;
}

.terminal-body .prompt { color: var(--green); }
.terminal-body .cmd { color: #fff; font-weight: 600; }
.terminal-body .dim { color: var(--text-muted); }
.terminal-body .hunk { color: var(--blue); }
.terminal-body .line-removed { color: var(--coral); }
.terminal-body .line-added { color: var(--green); }

/* ========================================
   Dashboard
   ======================================== */
.dashboard-section {
	padding: 120px 0;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 24px;
}

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

.dash-card h4 {
	font-size: 0.875rem;
	color: var(--text-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 24px;
}

/* Donut */
.donut-chart {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.donut-svg {
	width: 140px;
	height: 140px;
}

.donut-center {
	position: absolute;
	text-align: center;
}

.donut-total {
	display: block;
	font-family: var(--font-mono);
	font-size: 1.5rem;
	font-weight: 700;
}

.donut-label {
	display: block;
	font-size: 0.75rem;
	color: var(--text-muted);
}

.donut-legend {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: var(--text-secondary);
}

.legend-color {
	width: 10px;
	height: 10px;
	border-radius: 2px;
	flex-shrink: 0;
}

/* Bar chart */
.bar-chart {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bar-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bar-label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--text-muted);
	width: 40px;
	text-align: right;
	flex-shrink: 0;
}

.bar-track {
	flex: 1;
	height: 28px;
	background: var(--bg-surface);
	border-radius: 4px;
	overflow: hidden;
}

.bar-fill {
	height: 100%;
	width: var(--pct);
	background: var(--clr);
	border-radius: 4px;
	display: flex;
	align-items: center;
	padding-left: 10px;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

/* Metrics */
.metric-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--border-subtle);
}

.metric-row:last-child {
	border-bottom: none;
}

.metric-label {
	font-size: 0.8125rem;
	color: var(--text-secondary);
}

.metric-value {
	font-family: var(--font-mono);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials {
	padding: 120px 0;
	background: var(--bg-secondary);
}

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

.testimonial-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px 28px;
	opacity: 0;
	transform: translateY(20px);
}

.testimonial-card.visible {
	opacity: 1;
	transform: translateY(0);
}

.testimonial-stars {
	color: var(--orange);
	font-size: 0.875rem;
	letter-spacing: 2px;
	margin-bottom: 16px;
}

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

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

.testimonial-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: hsl(var(--hue, 0), 50%, 25%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 700;
	color: hsl(var(--hue, 0), 70%, 70%);
	flex-shrink: 0;
}

.testimonial-author strong {
	display: block;
	font-size: 0.875rem;
}

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

/* ========================================
   Pricing
   ======================================== */
.pricing {
	padding: 120px 0;
}

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

.pricing-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 36px 28px;
	position: relative;
	opacity: 0;
	transform: translateY(20px);
	transition: all var(--transition);
}

.pricing-card.visible {
	opacity: 1;
	transform: translateY(0);
}

.pricing-card.featured {
	border-color: var(--coral);
	box-shadow: 0 0 40px var(--coral-dim);
}

.pricing-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--coral);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 14px;
	border-radius: 20px;
}

.pricing-tier {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.pricing-price {
	margin-bottom: 28px;
}

.price-currency {
	font-size: 1.25rem;
	font-weight: 600;
	vertical-align: top;
	color: var(--text-secondary);
}

.price-amount {
	font-family: var(--font-mono);
	font-size: 2.75rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

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

.pricing-features {
	list-style: none;
	margin-bottom: 28px;
}

.pricing-features li {
	font-size: 0.8125rem;
	color: var(--text-secondary);
	padding: 6px 0;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.pricing-features .check {
	color: var(--green);
	font-weight: 700;
	flex-shrink: 0;
}

.pricing-features .x {
	color: var(--text-muted);
	flex-shrink: 0;
}

/* ========================================
   Terminal Demo
   ======================================== */
.terminal-demo {
	padding: 120px 0;
	background: var(--bg-secondary);
}

/* ========================================
   FAQ
   ======================================== */
.faq {
	padding: 120px 0;
}

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

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

.faq-item summary {
	padding: 20px 0;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color var(--transition);
}

.faq-item summary:hover {
	color: var(--coral);
}

.faq-item summary::after {
	content: '+';
	font-family: var(--font-mono);
	font-size: 1.25rem;
	color: var(--text-muted);
	flex-shrink: 0;
	margin-left: 16px;
	transition: transform var(--transition);
}

.faq-item[open] summary::after {
	content: '−';
	color: var(--coral);
}

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

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

.portfolio-banner h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 24px;
	color: var(--text-secondary);
}

.portfolio-banner h3 a {
	color: var(--coral);
}

.portfolio-banner h3 a:hover {
	text-decoration: underline;
}

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

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

.portfolio-scroll a:hover {
	color: var(--text-primary);
	border-color: var(--border);
	background: var(--bg-card);
}

.portfolio-current {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--coral);
	padding: 4px 10px;
	border-radius: 4px;
	border: 1px solid var(--coral);
	background: var(--coral-dim);
	font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
.footer {
	padding: 80px 0 40px;
	background: var(--bg-primary);
}

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

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

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

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

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

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

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

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-content {
	animation: fadeInUp 0.8s ease forwards;
}

.hero-split-viewer {
	animation: fadeInUp 1s 0.3s ease forwards;
	opacity: 0;
}

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

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

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

	.step-connector {
		display: none;
	}

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

	.step-card {
		max-width: 100%;
	}
}

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

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

	.nav-toggle {
		display: flex;
	}

	.hero {
		padding: 100px 24px 40px;
		min-height: auto;
	}

	.hero-split-viewer {
		flex-direction: column;
	}

	.split-divider {
		flex-direction: row;
		width: 100%;
		height: 32px;
		border-left: none;
		border-right: none;
		border-top: 1px solid var(--border);
		border-bottom: 1px solid var(--border);
	}

	.divider-line {
		height: 1px;
		width: 100%;
		flex: 1;
	}

	.diff-panels {
		grid-template-columns: 1fr;
	}

	.diff-input-panel {
		border-right: none;
		border-bottom: 1px solid var(--border);
	}

	.diff-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.pricing-grid {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin: 0 auto;
	}

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

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

@media (max-width: 480px) {
	.stats-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.hero-ctas {
		flex-direction: column;
		align-items: 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 #FFA94D;
	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: #FFA94D;
	color: #fff;
	border: 1px solid #FFA94D;
}

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

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