/* ===== Patchwork — Modern SaaS / Emerald→Teal ===== */
/* Fonts: Nunito (headings), DM Sans (body) */

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

:root {
	--emerald: #059669;
	--teal: #0d9488;
	--emerald-light: #d1fae5;
	--teal-light: #ccfbf1;
	--gradient: linear-gradient(135deg, var(--emerald), var(--teal));
	--gradient-soft: linear-gradient(135deg, #d1fae5, #ccfbf1);
	--gradient-hero: linear-gradient(160deg, #f0fdf4, #f0fdfa, #ffffff);
	--bg: #ffffff;
	--bg-alt: #f9fafb;
	--bg-dark: #064e3b;
	--text: #1e293b;
	--text-muted: #64748b;
	--text-light: #94a3b8;
	--border: #e2e8f0;
	--border-light: #f1f5f9;
	--radius: 12px;
	--radius-sm: 8px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
	--shadow: 0 4px 16px rgba(0,0,0,0.08);
	--shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
	--font-heading: 'Nunito', sans-serif;
	--font-body: 'DM Sans', sans-serif;
	--font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
	--nav-h: 72px;
	--success: #059669;
	--warning: #d97706;
	--error: #dc2626;
	--info: #0d9488;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--nav-h);
}

body {
	font-family: var(--font-body);
	color: var(--text);
	background: var(--bg);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

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

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

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

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
}

.btn-primary {
	background: var(--gradient);
	color: #fff;
	padding: 12px 28px;
	box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(5,150,105,0.4);
	color: #fff;
}

.btn-ghost {
	background: transparent;
	color: var(--text);
	padding: 12px 28px;
	border: 1.5px solid var(--border);
}

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

.btn-lg {
	padding: 16px 36px;
	font-size: 1.05rem;
	border-radius: var(--radius);
}

.btn-sm {
	padding: 8px 20px;
	font-size: 0.85rem;
}

.btn-full {
	width: 100%;
}

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

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

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

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

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

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

.modal-card h3 {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	margin-bottom: 8px;
}

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

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

/* ===== Navbar ===== */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--nav-h);
	z-index: 1000;
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border-light);
	transition: box-shadow 0.3s;
}

.navbar.scrolled {
	box-shadow: var(--shadow-sm);
}

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

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--text);
}

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

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

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

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

.nav-cta {
	margin-left: 8px;
}

.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);
	border-radius: 2px;
	transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
	padding: calc(var(--nav-h) + 80px) 0 80px;
	text-align: center;
	position: relative;
	background: var(--gradient-hero);
	overflow: hidden;
}

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

.hero-grid-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(5,150,105,0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(5,150,105,0.04) 1px, transparent 1px);
	background-size: 60px 60px;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin: 0 auto;
}

.hero-badge {
	display: inline-block;
	padding: 6px 20px;
	border-radius: 100px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--emerald);
	background: rgba(5,150,105,0.08);
	margin-bottom: 24px;
}

.hero-badge a {
	font-weight: 700;
}

.hero-title {
	font-family: var(--font-heading);
	font-size: clamp(2.8rem, 6vw, 4.5rem);
	font-weight: 900;
	line-height: 1.1;
	margin-bottom: 24px;
	color: var(--text);
}

.gradient-text {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

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

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

/* Hero Patch Visualization */
.hero-patch-viz {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	max-width: 820px;
	margin: 0 auto;
}

.patch-panel {
	flex: 1;
	background: #1e293b;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	text-align: left;
}

.patch-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #0f172a;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.patch-filename {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: rgba(255,255,255,0.5);
	margin-left: 8px;
}

.patch-code {
	padding: 16px;
}

.patch-code .code-line {
	display: flex;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	line-height: 1.8;
	padding: 0 8px;
	border-radius: 4px;
	transition: all 0.5s ease;
}

.patch-code .ln {
	color: rgba(255,255,255,0.2);
	width: 24px;
	flex-shrink: 0;
	text-align: right;
	margin-right: 12px;
	user-select: none;
}

.patch-code .ct {
	color: rgba(255,255,255,0.75);
}

.patch-code .code-line.target {
	background: rgba(220,38,38,0.15);
}

.patch-code .code-line.target .ct {
	color: #fca5a5;
	text-decoration: line-through;
	text-decoration-color: rgba(220,38,38,0.4);
}

.patch-code .code-line.applied {
	background: rgba(5,150,105,0.15);
}

.patch-code .code-line.applied .ct {
	color: #6ee7b7;
}

.patch-arrow {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.arrow-label {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--emerald);
	font-weight: 600;
	white-space: nowrap;
}

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

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

.stat-item {
	display: flex;
	flex-direction: column;
}

.stat-number {
	font-family: var(--font-heading);
	font-size: 2.5rem;
	font-weight: 900;
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.stat-suffix {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

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

/* ===== Sections Common ===== */
.section-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 56px;
}

.section-tag {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 100px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--emerald);
	background: rgba(5,150,105,0.08);
	margin-bottom: 16px;
}

.section-header h2 {
	font-family: var(--font-heading);
	font-size: clamp(1.8rem, 3.5vw, 2.5rem);
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 16px;
}

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

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

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

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

.feature-card:hover {
	border-color: var(--emerald);
	box-shadow: 0 8px 24px rgba(5,150,105,0.08);
	transform: translateY(-4px);
}

.feature-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	background: var(--gradient-soft);
	color: var(--emerald);
	margin-bottom: 20px;
}

.feature-card h3 {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.feature-card .flag {
	display: inline-block;
	margin-bottom: 12px;
}

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

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

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

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

.step-number {
	font-family: var(--font-heading);
	font-size: 2rem;
	font-weight: 900;
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 16px;
}

.step-card h3 {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 12px;
}

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

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

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

.applicator {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
}

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

.toolbar-left {
	display: flex;
	gap: 8px;
}

.toolbar-right {
	display: flex;
	gap: 16px;
}

.tool-btn {
	padding: 8px 16px;
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 600;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text-muted);
	cursor: pointer;
	transition: all 0.2s;
}

.tool-btn:hover {
	border-color: var(--emerald);
	color: var(--emerald);
}

.tool-btn.active {
	background: var(--gradient);
	color: #fff;
	border-color: transparent;
}

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

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

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

.applicator-input {
	display: flex;
	flex-direction: column;
}

.applicator-input:first-child {
	border-right: 1px solid var(--border);
}

.panel-label {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-muted);
	padding: 12px 16px;
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
}

.app-textarea {
	width: 100%;
	min-height: 240px;
	border: none;
	outline: none;
	resize: vertical;
	padding: 16px;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
}

.applicator-output {
	padding: 0;
}

.output-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
}

.hunk-status {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--text-muted);
}

.hunk-status .hunk-ok {
	color: var(--success);
}

.hunk-status .hunk-fail {
	color: var(--error);
}

.output-code {
	padding: 16px;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	line-height: 1.7;
	color: var(--text);
	background: #0f172a;
	min-height: 160px;
	overflow-x: auto;
	margin: 0;
}

.output-code code {
	background: none;
	color: rgba(255,255,255,0.8);
	padding: 0;
	font-size: inherit;
}

.output-line-added {
	color: #6ee7b7;
	background: rgba(5,150,105,0.12);
	display: block;
	padding: 0 8px;
	border-radius: 2px;
}

.output-line-removed {
	color: #fca5a5;
	background: rgba(220,38,38,0.12);
	display: block;
	padding: 0 8px;
	border-radius: 2px;
}

.output-line-context {
	color: rgba(255,255,255,0.5);
	display: block;
	padding: 0 8px;
}

/* ===== Conflict Resolution ===== */
.conflict-section {
	padding: 100px 0;
	background: var(--bg-alt);
}

.conflict-viewer {
	max-width: 680px;
	margin: 0 auto;
}

.conflict-file {
	background: #1e293b;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.conflict-file-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #0f172a;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: rgba(255,255,255,0.5);
}

.conflict-code {
	padding: 16px;
}

.conflict-code .code-line {
	display: flex;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	line-height: 1.8;
	padding: 0 8px;
	border-radius: 4px;
	transition: all 0.4s ease;
}

.conflict-code .ln {
	color: rgba(255,255,255,0.2);
	width: 24px;
	flex-shrink: 0;
	text-align: right;
	margin-right: 12px;
	user-select: none;
}

.conflict-code .ct {
	color: rgba(255,255,255,0.75);
}

.conflict-marker .ct {
	color: rgba(255,255,255,0.3);
	font-style: italic;
}

.conflict-ours {
	background: rgba(59,130,246,0.12);
}

.conflict-ours .ct {
	color: #93c5fd;
}

.conflict-theirs {
	background: rgba(5,150,105,0.12);
}

.conflict-theirs .ct {
	color: #6ee7b7;
}

.conflict-actions {
	display: flex;
	gap: 8px;
	padding: 16px;
	border-top: 1px solid rgba(255,255,255,0.06);
}

.conflict-btn {
	flex: 1;
	padding: 10px 16px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.82rem;
	border: 1.5px solid rgba(255,255,255,0.15);
	border-radius: var(--radius-sm);
	background: transparent;
	color: rgba(255,255,255,0.7);
	cursor: pointer;
	transition: all 0.2s;
}

.conflict-btn:hover {
	border-color: var(--emerald);
	color: #fff;
	background: rgba(5,150,105,0.15);
}

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

/* ===== Dry Run Section ===== */
.dryrun-section {
	padding: 100px 0;
}

/* ===== Terminal Windows ===== */
.terminal-window {
	background: #0f172a;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	max-width: 760px;
	margin: 0 auto;
}

.terminal-window.large {
	max-width: 860px;
}

.terminal-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #1e293b;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-title {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: rgba(255,255,255,0.4);
	margin-left: 8px;
}

.terminal-body {
	padding: 24px;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	line-height: 1.7;
	color: rgba(255,255,255,0.75);
	overflow-x: auto;
	margin: 0;
}

.terminal-body code {
	background: none;
	color: inherit;
	padding: 0;
	font-size: inherit;
}

.terminal-body .prompt {
	color: var(--emerald);
	user-select: none;
}

.terminal-body .cmd {
	color: #6ee7b7;
	font-weight: 600;
}

.terminal-body .dim {
	color: rgba(255,255,255,0.35);
}

.terminal-body .success {
	color: #6ee7b7;
}

.terminal-body .warning {
	color: #fbbf24;
}

.terminal-body .error {
	color: #f87171;
}

.terminal-body .info {
	color: #67e8f9;
}

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

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

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

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

.testimonial-card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

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

.testimonial-card blockquote {
	font-size: 0.9rem;
	color: var(--text-muted);
	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: hsl(var(--hue, 160), 60%, 90%);
	color: hsl(var(--hue, 160), 60%, 30%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.8rem;
}

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

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

/* ===== Pricing ===== */
.pricing {
	padding: 100px 0;
	background: var(--bg-alt);
}

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

.pricing-card {
	background: var(--bg);
	border: 1.5px solid var(--border);
	border-radius: var(--radius);
	padding: 36px 28px;
	position: relative;
	transition: all 0.3s;
}

.pricing-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.pricing-card.featured {
	border-color: var(--emerald);
	box-shadow: 0 8px 32px rgba(5,150,105,0.12);
}

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

.pricing-tier {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 12px;
}

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

.pricing-price .currency {
	font-size: 1.25rem;
	font-weight: 600;
	vertical-align: super;
}

.pricing-price .amount {
	font-family: var(--font-heading);
	font-size: 3rem;
	font-weight: 900;
}

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

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

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

.pricing-features .check {
	color: var(--emerald);
	font-weight: 700;
}

.pricing-features .x {
	color: var(--text-light);
}

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

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

.faq-item {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	margin-bottom: 12px;
	overflow: hidden;
	transition: border-color 0.2s;
}

.faq-item[open] {
	border-color: var(--emerald);
}

.faq-item summary {
	padding: 20px 24px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	user-select: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: '+';
	font-size: 1.25rem;
	color: var(--text-muted);
	transition: transform 0.2s;
	flex-shrink: 0;
}

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

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

/* ===== Portfolio Banner ===== */
.portfolio-banner {
	padding: 48px 0;
	background: var(--bg-alt);
	border-top: 1px solid var(--border-light);
}

.portfolio-banner h3 {
	font-family: var(--font-heading);
	font-size: 1rem;
	text-align: center;
	margin-bottom: 20px;
	color: var(--text-muted);
}

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

.portfolio-scroll a,
.portfolio-scroll .portfolio-current {
	display: inline-block;
	padding: 4px 12px;
	font-size: 0.78rem;
	font-weight: 600;
	border-radius: 100px;
	border: 1px solid var(--border);
	color: var(--text-muted);
	transition: all 0.2s;
	white-space: nowrap;
}

.portfolio-scroll a:hover {
	border-color: var(--emerald);
	color: var(--emerald);
}

.portfolio-current {
	background: var(--gradient) !important;
	color: #fff !important;
	border-color: transparent !important;
}

/* ===== Footer ===== */
.footer {
	padding: 64px 0 32px;
	background: #0f172a;
	color: rgba(255,255,255,0.6);
}

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

.footer-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.15rem;
	color: #fff;
	margin-bottom: 12px;
}

.footer-logo:hover {
	color: #fff;
}

.footer-brand p {
	font-size: 0.88rem;
	line-height: 1.7;
	max-width: 280px;
}

.footer-col h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.9rem;
	color: #fff;
	margin-bottom: 16px;
}

.footer-col a {
	display: block;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.5);
	padding: 4px 0;
	transition: color 0.2s;
}

.footer-col a:hover {
	color: #6ee7b7;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	border-top: 1px solid rgba(255,255,255,0.08);
	font-size: 0.8rem;
	color: rgba(255,255,255,0.3);
}

.footer-bottom a {
	color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
	color: #6ee7b7;
}

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

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

/* Patch visualization pulse */
@keyframes patchPulse {
	0%, 100% { opacity: 0.15; }
	50% { opacity: 0.25; }
}

.patch-code .code-line.target {
	animation: patchPulse 2s ease-in-out infinite;
}

.patch-code .code-line.applied {
	animation: patchPulse 2s ease-in-out infinite 1s;
}

@keyframes slideApply {
	0% { transform: translateX(-10px); opacity: 0; }
	100% { transform: translateX(0); opacity: 1; }
}

.patch-after .code-line.applied {
	animation: slideApply 0.6s ease-out forwards, patchPulse 2s ease-in-out infinite 1s;
}

/* ===== 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) {
	.nav-links {
		display: none;
		position: absolute;
		top: var(--nav-h);
		left: 0;
		right: 0;
		background: var(--bg);
		flex-direction: column;
		padding: 24px;
		gap: 16px;
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
	}

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

	.nav-toggle {
		display: flex;
	}

	.hero-patch-viz {
		flex-direction: column;
		gap: 16px;
	}

	.patch-arrow {
		transform: rotate(90deg);
	}

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

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

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

	.step-connector {
		transform: rotate(90deg);
		padding-top: 0;
	}

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

	.applicator-input:first-child {
		border-right: none;
		border-bottom: 1px solid var(--border);
	}

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

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

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

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

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

@media (max-width: 480px) {
	.hero-title {
		font-size: 2.2rem;
	}

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

	.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 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: #0d9488;
	color: #fff;
	border: 1px solid #0d9488;
}

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

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