/* ============================================================================
   PrivateClaw Design System - Ollama-inspired dark aesthetic
   ============================================================================ */

:root {
	--pc-bg: #0a0e27;
	--pc-surface: #0f1535;
	--pc-surface2: #1a2548;
	--pc-accent: #00ff88;
	--pc-accent2: #4ade80;
	--pc-white: #ffffff;
	--pc-accent-dim: rgba(0, 255, 136, 0.1);
	--pc-accent-border: rgba(0, 255, 136, 0.2);
	--pc-text: #e2e8f0;
	--pc-text-dim: #94a3b8;
	--pc-border: rgba(0, 255, 136, 0.2);
	--pc-gradient: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
	--pc-radius-lg: 16px;
	--pc-radius-sm: 8px;
}

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

html,
body {
	background-color: var(--pc-bg);
	color: var(--pc-text);
	font-family: Inter, system-ui, -apple-system, sans-serif;
	line-height: 1.7;
	font-size: 16px;
}

/* Page wrapper */
.pc-page {
	background-color: var(--pc-bg);
	color: var(--pc-text);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Navigation */
.pc-nav {
	background-color: var(--pc-surface);
	border-bottom: 1px solid var(--pc-border);
	padding: 16px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

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

.pc-nav-logo {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.pc-nav-logo .accent {
	color: var(--pc-accent);
}

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

.pc-nav-links a {
	color: var(--pc-text-dim);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s;
}

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

.pc-nav-cta {
	margin-left: auto;
}

/* Buttons */
.pc-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: var(--pc-radius-sm);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all 0.2s;
	text-align: center;
}

.pc-btn-primary {
	background: var(--pc-gradient);
	color: #0a0e27;
}

.pc-btn-primary:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.pc-btn-outline {
	background: transparent;
	color: var(--pc-accent);
	border: 2px solid var(--pc-accent);
}

.pc-btn-outline:hover {
	background: var(--pc-accent-dim);
}

.pc-btn-secondary {
	background: var(--pc-surface2);
	color: var(--pc-text);
	border: 1px solid var(--pc-border);
}

.pc-btn-secondary:hover {
	background: var(--pc-surface2);
	border-color: var(--pc-accent);
}

/* Cards */
.pc-card {
	background: var(--pc-surface);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius-lg);
	padding: 32px 24px;
	transition: all 0.3s;
}

.pc-card:hover {
	border-color: var(--pc-accent);
	box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
	transform: translateY(-4px);
}

.pc-card-highlight {
	border-color: var(--pc-accent);
	background: linear-gradient(135deg, var(--pc-surface) 0%, rgba(0, 255, 136, 0.05) 100%);
	box-shadow: inset 0 0 40px rgba(0, 255, 136, 0.05);
	position: relative;
}

.pc-card-highlight::before {
	content: 'MOST POPULAR';
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--pc-gradient);
	color: #0a0e27;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
}

.pc-card h3 {
	margin: 0 0 12px 0;
	font-size: 20px;
	line-height: 1.2;
	color: var(--pc-white);
}

.pc-card p {
	font-size: 14px;
	color: var(--pc-text-dim);
	line-height: 1.6;
}

/* Grids */
.pc-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 48px 0;
}

.pc-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	margin: 48px 0;
}

/* Tags/Badges */
.pc-tag {
	display: inline-block;
	background: var(--pc-accent-dim);
	color: var(--pc-accent);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	border: 1px solid var(--pc-border);
	margin-bottom: 16px;
}

/* Divider */
.pc-divider {
	height: 1px;
	background: var(--pc-border);
	margin: 48px 0;
}

hr.pc-divider {
	border: none;
	height: auto;
	border-top: 1px solid var(--pc-border);
	margin: 60px 0;
	background: transparent;
}

/* Sections */
.pc-section {
	max-width: 1200px;
	margin: 80px auto;
	padding: 0 24px;
}

.pc-section-sm {
	max-width: 1200px;
	margin: 48px auto;
	padding: 0 24px;
}

.pc-section h2 {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 48px;
	text-align: center;
	color: var(--pc-white);
}

.pc-section h3 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 24px;
	color: var(--pc-white);
}

.pc-section p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--pc-text-dim);
}

/* Hero section */
.pc-hero {
	background: linear-gradient(135deg, var(--pc-bg) 0%, var(--pc-surface2) 100%);
	padding: 120px 24px;
	text-align: center;
}

.pc-hero h1 {
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 24px;
	color: var(--pc-white);
}

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

.pc-hero-subtext {
	font-size: 18px;
	color: var(--pc-text-dim);
	margin-bottom: 48px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

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

/* Trust bar */
.pc-trustbar {
	background: var(--pc-surface);
	border-top: 1px solid var(--pc-border);
	border-bottom: 1px solid var(--pc-border);
	padding: 48px 24px;
	text-align: center;
}

.pc-trustbar-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--pc-text-dim);
	text-transform: uppercase;
	margin-bottom: 32px;
}

.pc-trustbar-logos {
	display: flex;
	gap: 32px;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
}

.pc-trustbar-logo {
	font-size: 14px;
	font-weight: 600;
	color: var(--pc-text-dim);
}

/* Features emoji icon */
.pc-feature-icon {
	font-size: 40px;
	margin-bottom: 16px;
}

/* Pricing table */
.pc-pricing-price {
	font-size: 32px;
	font-weight: 700;
	margin: 24px 0;
}

.pc-pricing-price-note {
	font-size: 12px;
	color: var(--pc-text-dim);
	margin-top: 8px;
}

.pc-feature-list {
	list-style: none;
	margin: 24px 0;
	font-size: 14px;
}

.pc-feature-list li {
	padding: 8px 0;
	border-bottom: 1px solid var(--pc-border);
}

.pc-feature-list li:last-child {
	border-bottom: none;
}

.pc-feature-list li::before {
	content: '✓ ';
	color: var(--pc-accent);
	font-weight: 700;
	margin-right: 8px;
}

.pc-feature-list li.unavailable::before {
	content: '✗ ';
	color: var(--pc-text-dim);
}

.pc-feature-list li.unavailable {
	color: var(--pc-text-dim);
}

/* Comparison table */
.pc-comparison-table {
	width: 100%;
	border-collapse: collapse;
	margin: 32px 0;
	font-size: 14px;
}

.pc-comparison-table th {
	background: var(--pc-surface2);
	border-bottom: 2px solid var(--pc-border);
	padding: 16px;
	text-align: left;
	font-weight: 600;
}

.pc-comparison-table td {
	border-bottom: 1px solid var(--pc-border);
	padding: 16px;
}

.pc-comparison-table tr:hover {
	background: var(--pc-surface2);
}

/* FAQ */
.pc-faq-item {
	margin-bottom: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--pc-border);
}

.pc-faq-item:last-child {
	border-bottom: none;
}

.pc-faq-item h4 {
	font-size: 18px;
	margin-bottom: 12px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--pc-white);
}

.pc-faq-item h4::after {
	content: '+';
	font-size: 24px;
	color: var(--pc-accent);
}

.pc-faq-item h4.open::after {
	content: '−';
}

.pc-faq-item p {
	color: var(--pc-text-dim);
	font-size: 14px;
	line-height: 1.8;
}

/* Glossary */
.pc-glossary-term {
	scroll-margin-top: 80px;
}

.pc-glossary-term dt {
	font-size: 18px;
	font-weight: 700;
	margin-top: 24px;
	margin-bottom: 8px;
	color: var(--pc-white);
}

.pc-glossary-term dd {
	margin-left: 0;
	color: var(--pc-text-dim);
	font-size: 14px;
	line-height: 1.8;
	margin-bottom: 16px;
}

.pc-glossary-seealso {
	font-size: 12px;
	color: var(--pc-accent);
	margin-top: 12px;
}

.pc-glossary-seealso a {
	color: var(--pc-accent);
	text-decoration: none;
	margin-right: 12px;
}

.pc-glossary-seealso a:hover {
	text-decoration: underline;
}

/* Footer */
.pc-footer {
	background: var(--pc-surface);
	border-top: 1px solid var(--pc-border);
	padding: 48px 24px;
	margin-top: auto;
	text-align: center;
	font-size: 12px;
	color: var(--pc-text-dim);
}

.pc-footer a {
	color: var(--pc-accent);
	text-decoration: none;
}

.pc-footer a:hover {
	text-decoration: underline;
}

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

	.pc-hero h1 {
		font-size: 36px;
	}

	.pc-section h2 {
		font-size: 24px;
	}

	.pc-nav-links {
		gap: 16px;
	}
}

@media (max-width: 768px) {
	.pc-grid-3,
	.pc-grid-2 {
		grid-template-columns: 1fr;
	}

	.pc-hero {
		padding: 80px 16px;
	}

	.pc-hero h1 {
		font-size: 28px;
	}

	.pc-hero-ctas {
		flex-direction: column;
	}

	.pc-nav-container {
		flex-direction: column;
		gap: 16px;
	}

	.pc-nav-links {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}

	.pc-nav-cta {
		margin-left: 0;
	}

	.pc-section {
		margin: 48px auto;
	}

	.pc-section h2 {
		font-size: 20px;
		margin-bottom: 24px;
	}
}
