:root {
	--ivory: #FAF8F0;
	--ivory-dark: #F0EDE3;
	--navy: #0D1B2A;
	--navy-light: #1B2D45;
	--navy-mid: #2A3F5F;
	--gold: #C9A84C;
	--gold-light: #E3D5A0;
	--gold-dark: #A68832;
	--text: #1A1A2E;
	--text-muted: #5A5A6E;
	--text-light: #8A8A9E;
	--border: #D4D0C8;
	--border-light: #E8E4DC;
	--white: #FFFFFF;
	--font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--container: 1200px;
	--container-narrow: 800px;
}

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

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

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

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

.container-narrow {
	max-width: var(--container-narrow);
	margin: 0 auto;
	padding: 0 2rem;
}

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

img {
	max-width: 100%;
}

/* ============ NAVBAR ============ */

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(250, 248, 240, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-light);
	transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
	box-shadow: 0 1px 8px rgba(13, 27, 42, 0.06);
}

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

.nav-logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-serif);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--navy);
}

.nav-logo-icon {
	color: var(--gold);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav-links a {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-muted);
	letter-spacing: 0.02em;
	transition: color 0.2s;
}

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

.nav-cta {
	background: var(--navy);
	color: var(--ivory) !important;
	padding: 0.5rem 1.2rem;
	border-radius: 4px;
	transition: background 0.2s !important;
}

.nav-cta:hover {
	background: var(--navy-light) !important;
}

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

.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--navy);
	transition: transform 0.3s, opacity 0.3s;
}

/* ============ HERO ============ */

.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 8rem 2rem 6rem;
	position: relative;
	overflow: hidden;
	background: var(--ivory);
}

.hero-inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
}

.hero-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 2rem;
}

.hero-title {
	font-family: var(--font-serif);
	font-size: clamp(2.8rem, 6vw, 4.5rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--navy);
	margin-bottom: 1.5rem;
}

.hero-rule {
	width: 60px;
	height: 2px;
	background: var(--gold);
	margin: 0 auto 2rem;
}

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

.hero-ctas {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.hero-backed {
	margin-top: 2.5rem;
	font-size: 0.8rem;
	color: var(--text-light);
}

.hero-backed a {
	color: var(--gold-dark);
	font-weight: 600;
	border-bottom: 1px solid var(--gold-light);
	transition: color 0.2s;
}

.hero-backed a:hover {
	color: var(--gold);
}

.hero-ornament {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.ornament-lines {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 600px;
	height: 600px;
}

.ornament-lines span {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 1px solid var(--border-light);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.4;
}

.ornament-lines span:nth-child(1) { width: 300px; height: 300px; }
.ornament-lines span:nth-child(2) { width: 400px; height: 400px; }
.ornament-lines span:nth-child(3) { width: 500px; height: 500px; }
.ornament-lines span:nth-child(4) { width: 620px; height: 620px; }
.ornament-lines span:nth-child(5) { width: 760px; height: 760px; }

/* ============ BUTTONS ============ */

.btn {
	display: inline-block;
	padding: 0.75rem 1.8rem;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
	text-align: center;
}

.btn-primary {
	background: var(--navy);
	color: var(--ivory);
}

.btn-primary:hover {
	background: var(--navy-light);
}

.btn-secondary {
	background: transparent;
	color: var(--navy);
	border: 1.5px solid var(--navy);
}

.btn-secondary:hover {
	background: var(--navy);
	color: var(--ivory);
}

/* ============ SECTION TITLES ============ */

.section-title {
	font-family: var(--font-serif);
	font-size: clamp(1.8rem, 3.5vw, 2.5rem);
	font-weight: 700;
	color: var(--navy);
	text-align: center;
	margin-bottom: 1rem;
}

.section-desc {
	text-align: center;
	color: var(--text-muted);
	max-width: 620px;
	margin: 0 auto 3rem;
	font-size: 1rem;
	line-height: 1.8;
}

/* ============ MANIFESTO ============ */

.manifesto {
	padding: 6rem 2rem;
	background: var(--navy);
	color: var(--ivory);
}

.manifesto .section-title {
	color: var(--gold);
	margin-bottom: 2rem;
}

.manifesto-body p {
	font-size: 1.05rem;
	line-height: 1.9;
	color: rgba(250, 248, 240, 0.85);
	margin-bottom: 1.5rem;
}

.manifesto-body p:last-child {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.2rem;
	color: var(--gold-light);
	margin-bottom: 0;
}

/* ============ SECTION LIBRARY ============ */

.section-library {
	padding: 6rem 0;
	background: var(--ivory);
}

.sections-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.section-card {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 6px;
	padding: 2rem;
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
	cursor: default;
}

.section-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(13, 27, 42, 0.08);
	border-color: var(--gold-light);
}

.section-number {
	font-family: var(--font-serif);
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--gold);
	margin-bottom: 0.5rem;
}

.section-card h3 {
	font-family: var(--font-serif);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 0.75rem;
}

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

/* ============ FEATURES ============ */

.features {
	padding: 6rem 0;
	background: var(--ivory-dark);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.feature-card {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 6px;
	padding: 2rem;
	transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(13, 27, 42, 0.06);
}

.feature-icon {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.feature-card h3 {
	font-family: var(--font-serif);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 0.5rem;
}

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

.feature-card code {
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.82rem;
	background: var(--ivory-dark);
	padding: 0.15rem 0.5rem;
	border-radius: 3px;
	color: var(--navy);
	border: 1px solid var(--border);
}

/* ============ HOW IT WORKS ============ */

.how-it-works {
	padding: 6rem 0;
	background: var(--ivory);
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.step {
	text-align: center;
	position: relative;
}

.step-num {
	font-family: var(--font-serif);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--gold);
	margin-bottom: 1rem;
}

.step h3 {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 0.75rem;
}

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

/* ============ SEARCH ENGINE DEMO ============ */

.search-engine {
	padding: 6rem 2rem;
	background: var(--navy);
	color: var(--ivory);
}

.search-engine .section-title {
	color: var(--gold);
}

.search-engine .section-desc {
	color: rgba(250, 248, 240, 0.7);
}

.search-demo {
	background: var(--navy-light);
	border: 1px solid rgba(201, 168, 76, 0.2);
	border-radius: 8px;
	overflow: hidden;
}

.search-bar {
	display: flex;
	border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.search-bar select {
	background: var(--navy);
	color: var(--gold);
	border: none;
	padding: 1rem 1.2rem;
	font-family: var(--font-sans);
	font-size: 0.85rem;
	cursor: pointer;
	border-right: 1px solid rgba(201, 168, 76, 0.15);
	appearance: none;
	min-width: 140px;
}

.search-bar input {
	flex: 1;
	background: transparent;
	border: none;
	color: var(--ivory);
	padding: 1rem 1.2rem;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	outline: none;
}

.search-bar input::placeholder {
	color: rgba(250, 248, 240, 0.35);
}

.search-bar .btn {
	border-radius: 0;
	background: var(--gold);
	color: var(--navy);
	padding: 1rem 1.5rem;
}

.search-bar .btn:hover {
	background: var(--gold-dark);
}

.search-results {
	padding: 1.5rem;
	min-height: 200px;
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.85rem;
	line-height: 1.8;
	color: rgba(250, 248, 240, 0.8);
}

.search-placeholder {
	color: rgba(250, 248, 240, 0.35);
	font-family: var(--font-sans);
	font-style: italic;
}

.search-result-item {
	padding: 0.4rem 0;
	border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.search-result-item .result-name {
	color: var(--gold);
	font-weight: 600;
}

.search-result-item .result-section {
	color: rgba(250, 248, 240, 0.45);
}

.search-result-item .result-desc {
	color: rgba(250, 248, 240, 0.7);
}

/* ============ READING ROOM ============ */

.reading-room {
	padding: 6rem 0;
	background: var(--ivory-dark);
}

.reader-container {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 0;
	border: 1px solid var(--border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--white);
}

.reader-sidebar {
	background: var(--ivory);
	border-right: 1px solid var(--border);
	padding: 1.2rem;
}

.reader-sidebar h4 {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-light);
	margin-bottom: 0.75rem;
}

.reader-pages {
	list-style: none;
}

.reader-pages li {
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.82rem;
	padding: 0.4rem 0.6rem;
	border-radius: 3px;
	cursor: pointer;
	color: var(--text-muted);
	transition: background 0.2s, color 0.2s;
}

.reader-pages li:hover {
	background: var(--border-light);
	color: var(--navy);
}

.reader-pages li.active {
	background: var(--navy);
	color: var(--ivory);
}

.reader-main {
	display: flex;
	flex-direction: column;
}

.reader-header {
	display: flex;
	justify-content: space-between;
	padding: 0.6rem 1.2rem;
	border-bottom: 1px solid var(--border-light);
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--navy);
}

.reader-section {
	font-weight: 400;
	color: var(--text-light);
}

.reader-content {
	flex: 1;
	padding: 1.2rem;
	overflow-y: auto;
	max-height: 420px;
	background: var(--white);
}

.reader-content pre {
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.82rem;
	line-height: 1.6;
	color: var(--text);
	white-space: pre-wrap;
}

.reader-content pre strong {
	color: var(--navy);
	font-weight: 700;
}

.reader-content pre em {
	color: var(--gold-dark);
	font-style: italic;
}

.reader-footer {
	padding: 0.5rem 1.2rem;
	border-top: 1px solid var(--border-light);
	background: var(--navy);
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.75rem;
	color: var(--ivory);
}

/* ============ STATS ============ */

.stats {
	padding: 5rem 0;
	background: var(--ivory);
	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: 2rem;
	text-align: center;
}

.stat-number {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	color: var(--navy);
	display: inline;
}

.stat-suffix {
	font-family: var(--font-serif);
	font-size: clamp(1.2rem, 2vw, 1.6rem);
	font-weight: 600;
	color: var(--gold);
	display: inline;
}

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

/* ============ TERMINAL DEMO ============ */

.terminal-demo {
	padding: 6rem 2rem;
	background: var(--ivory-dark);
}

.terminal {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 8px 32px rgba(13, 27, 42, 0.1);
}

.terminal-bar {
	background: var(--navy);
	padding: 0.7rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

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

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

.terminal-title {
	flex: 1;
	text-align: center;
	font-size: 0.75rem;
	color: rgba(250, 248, 240, 0.5);
	font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal-body {
	background: #0A0E17;
	padding: 1.5rem;
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.82rem;
	line-height: 1.7;
	color: #D4D4D8;
	max-height: 500px;
	overflow-y: auto;
}

.terminal-line {
	margin-bottom: 0.2rem;
}

.terminal-output {
	color: #A0A0B0;
	margin-bottom: 1rem;
	white-space: pre;
}

.prompt {
	color: var(--gold);
	font-weight: 700;
}

.cmd {
	color: #E8E8ED;
}

.dim {
	color: #5A5A6E;
}

/* ============ PAGER CONFIG ============ */

.pager-config {
	padding: 6rem 0;
	background: var(--ivory);
}

.config-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.config-card {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 6px;
	padding: 2rem;
}

.config-card h4 {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 0.75rem;
}

.config-card code {
	display: block;
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.82rem;
	background: var(--ivory-dark);
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	margin-bottom: 0.75rem;
	color: var(--navy);
	border: 1px solid var(--border);
}

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

/* ============ TESTIMONIALS ============ */

.testimonials {
	padding: 6rem 0;
	background: var(--navy);
	color: var(--ivory);
}

.testimonials .section-title {
	color: var(--gold);
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.testimonial {
	background: var(--navy-light);
	border: 1px solid rgba(201, 168, 76, 0.15);
	border-radius: 6px;
	padding: 2rem;
}

.testimonial p {
	font-size: 0.95rem;
	line-height: 1.8;
	color: rgba(250, 248, 240, 0.85);
	margin-bottom: 1.5rem;
	font-style: italic;
}

.testimonial cite {
	display: block;
	font-style: normal;
}

.testimonial cite strong {
	display: block;
	font-size: 0.9rem;
	color: var(--gold);
}

.testimonial cite span {
	font-size: 0.8rem;
	color: rgba(250, 248, 240, 0.5);
}

/* ============ PRICING ============ */

.pricing {
	padding: 6rem 0;
	background: var(--ivory-dark);
}

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

.pricing-card {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 6px;
	padding: 2rem 1.5rem;
	text-align: center;
	position: relative;
	transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(13, 27, 42, 0.08);
}

.pricing-card.featured {
	border-color: var(--gold);
	box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);
}

.pricing-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--gold);
	color: var(--navy);
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.25rem 1rem;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pricing-card h3 {
	font-family: var(--font-serif);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 0.75rem;
}

.price {
	font-family: var(--font-serif);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 1.5rem;
}

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

.pricing-card ul {
	list-style: none;
	text-align: left;
	margin-bottom: 2rem;
}

.pricing-card ul li {
	font-size: 0.82rem;
	color: var(--text-muted);
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--border-light);
	padding-left: 1.2rem;
	position: relative;
}

.pricing-card ul li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--gold);
	font-weight: 700;
	font-size: 0.75rem;
}

.pricing-card .btn {
	width: 100%;
}

/* ============ FAQ ============ */

.faq {
	padding: 6rem 2rem;
	background: var(--ivory);
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.faq-item {
	border: 1px solid var(--border-light);
	border-radius: 6px;
	background: var(--white);
	overflow: hidden;
}

.faq-item summary {
	padding: 1.2rem 1.5rem;
	font-family: var(--font-serif);
	font-size: 1rem;
	font-weight: 600;
	color: var(--navy);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.faq-item summary::after {
	content: '+';
	font-family: var(--font-sans);
	font-size: 1.3rem;
	font-weight: 300;
	color: var(--gold);
	transition: transform 0.3s;
}

.faq-item[open] summary::after {
	transform: rotate(45deg);
}

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

.faq-item p {
	padding: 0 1.5rem 1.2rem;
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.8;
}

/* ============ PORTFOLIO BANNER ============ */

.portfolio-banner {
	padding: 4rem 0;
	background: var(--navy);
	color: var(--ivory);
	text-align: center;
}

.portfolio-banner h2 {
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--gold);
	margin-bottom: 0.75rem;
}

.portfolio-link {
	display: inline-block;
	font-size: 0.85rem;
	color: rgba(250, 248, 240, 0.6);
	margin-bottom: 2rem;
	border-bottom: 1px solid rgba(250, 248, 240, 0.2);
	transition: color 0.2s;
}

.portfolio-link:hover {
	color: var(--ivory);
}

.portfolio-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1rem;
	max-width: 1000px;
	margin: 0 auto;
}

.portfolio-strip a {
	font-size: 0.78rem;
	color: rgba(250, 248, 240, 0.45);
	transition: color 0.2s;
}

.portfolio-strip a:hover {
	color: var(--gold);
}

.portfolio-current {
	font-size: 0.78rem;
	color: var(--gold);
	font-weight: 700;
}

/* ============ FOOTER ============ */

.footer {
	padding: 4rem 0 2rem;
	background: var(--navy-light);
	color: rgba(250, 248, 240, 0.7);
	border-top: 1px solid rgba(201, 168, 76, 0.1);
}

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

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.footer-brand span {
	font-family: var(--font-serif);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--ivory);
}

.footer-brand p {
	font-size: 0.85rem;
	color: rgba(250, 248, 240, 0.5);
}

.footer-backed a {
	color: var(--gold);
	border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.footer-logo {
	color: var(--gold);
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.footer-col h4 {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--gold);
	margin-bottom: 0.5rem;
}

.footer-col a {
	font-size: 0.85rem;
	color: rgba(250, 248, 240, 0.5);
	transition: color 0.2s;
}

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

.footer-bottom {
	border-top: 1px solid rgba(250, 248, 240, 0.08);
	padding-top: 1.5rem;
	text-align: center;
}

.footer-bottom p {
	font-size: 0.8rem;
	color: rgba(250, 248, 240, 0.3);
}

/* ============ MODAL ============ */

.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(13, 27, 42, 0.7);
	backdrop-filter: blur(6px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

.modal-overlay.active {
	display: flex;
}

.modal {
	background: var(--white);
	border-radius: 8px;
	padding: 2.5rem;
	max-width: 420px;
	width: 90%;
	position: relative;
	box-shadow: 0 24px 64px rgba(13, 27, 42, 0.2);
}

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

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

.modal h3 {
	font-family: var(--font-serif);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 0.75rem;
}

.modal p {
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.modal-form {
	display: flex;
	gap: 0.5rem;
}

.modal-input {
	flex: 1;
	padding: 0.7rem 1rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	outline: none;
	transition: border-color 0.2s;
}

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

.modal-form .btn {
	white-space: nowrap;
}

.modal-success {
	color: var(--gold-dark);
	font-weight: 600;
	font-size: 0.9rem;
}

/* ============ ANIMATIONS ============ */

.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

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

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

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

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

@media (max-width: 768px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: var(--ivory);
		flex-direction: column;
		padding: 1.5rem 2rem;
		gap: 1rem;
		border-bottom: 1px solid var(--border-light);
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	}

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

	.nav-toggle {
		display: flex;
	}

	.hero-title {
		font-size: 2.2rem;
	}

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

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

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

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

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

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

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

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

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

	.reader-sidebar {
		border-right: none;
		border-bottom: 1px solid var(--border);
	}

	.reader-pages {
		display: flex;
		gap: 0.5rem;
		flex-wrap: wrap;
	}

	.search-bar {
		flex-wrap: wrap;
	}

	.search-bar select {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid rgba(201, 168, 76, 0.15);
	}

	.search-bar input {
		min-width: 0;
	}

	.hero-ctas {
		flex-direction: column;
		align-items: center;
	}

	.terminal-body {
		font-size: 0.72rem;
		overflow-x: auto;
	}

	.terminal-output {
		white-space: pre-wrap;
	}
}

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

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