:root {
	--primary: #ff6600;
	--primary-dark: #e55600;
	--bg: #ffffff;
	--bg-alt: #fafafa;
	--text: #1a1a1a;
	--text-light: #6b6b6b;
	--border: #e5e5e5;
	--shadow: rgba(0, 0, 0, 0.1);
	--note-bg: #fff3cd;
	--note-border: #ffc107;
	--note-text: #664d03;
}

html.oj-dark-mode {
	--primary: #ff6600;
	--primary-dark: #ff7a29;
	--bg: rgb(41, 40, 35);
	--bg-alt: #302921;
	--text: #f1efec;
	--text-light: #c7c4be;
	--border: #3a3f41;
	--shadow: rgba(0, 0, 0, 0.45);
	--note-bg: rgb(44, 42, 31);
	--note-border: #ff6600;
	--note-text: #e8e6e3;
	color-scheme: dark;
}

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

body.oj-docs-page {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
		Cantarell, sans-serif;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

main h1 {
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
	color: var(--primary);
	border-bottom: 2px solid var(--primary);
}

main h2 {
	margin-bottom: 1rem;
	color: var(--primary);
}

main ul {
	margin: 1.5rem 0;
	list-style: none;
}

main li {
	position: relative;
	padding: 0.5rem 0 0.5rem 1.5rem;
}

main li:before {
	position: absolute;
	left: 0;
	font-weight: bold;
	color: var(--primary);
	content: "•";
}

main p {
	margin: 1rem 0;
}

main a {
	color: var(--primary);
	text-decoration: none;
}

main a:hover {
	text-decoration: underline;
}

.friendly-note {
	padding: 1rem;
	margin: 2rem 0;
	background: var(--note-bg);
	border-left: 4px solid var(--primary);
	border-radius: 8px;
}

.oj-docs-topbar {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	max-width: 1000px;
	padding: 0 1rem;
	margin: 1.25rem auto 0.75rem;
}

.oj-docs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.oj-docs-nav__link,
.oj-docs-theme-toggle {
	font-weight: 600;
	color: var(--text-light);
	text-decoration: none;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 999px;
}

.oj-docs-nav__link {
	padding: 0.35rem 0.75rem;
	font-size: 0.95rem;
}

.oj-docs-nav__link--github {
	display: inline-flex;
	gap: 0.45rem;
	align-items: center;
	color: #ffffff;
	background: var(--primary);
	border-color: var(--primary);
}

.oj-docs-nav__link--github:hover {
	color: #ffffff;
	background: var(--primary-dark);
	border-color: var(--primary-dark);
}

.oj-docs-github-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.oj-docs-nav__link:hover,
.oj-docs-nav__link.is-active,
.oj-docs-theme-toggle:hover {
	color: var(--primary);
	border-color: var(--primary);
}

.oj-docs-nav__link--github:hover {
	color: #ffffff;
	background: var(--primary-dark);
	border-color: var(--primary-dark);
}

.oj-docs-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.75rem;
	font-size: 0.9rem;
	color: var(--text);
	cursor: pointer;
}

.oj-docs-theme-toggle .oj-dark-mode-icon {
	display: inline-block;
	width: 32px;
	height: 32px;
}

.oj-docs-theme-toggle .oj-dark-mode-icon--sun {
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1.6;
}

.oj-docs-theme-toggle .oj-dark-mode-icon--moon {
	fill: #111;
	stroke: none;
}

html.oj-dark-mode .oj-docs-theme-toggle .oj-dark-mode-icon--moon {
	fill: #ffffff;
}

.container {
	max-width: 1000px;
	padding: 0 1.5rem;
	margin: 0 auto;
}

header {
	position: relative;
	padding: 4rem 0 3rem;
	overflow: hidden;
	text-align: center;
}

.logo {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	font-size: 4rem;
	font-weight: 700;
	color: var(--primary);
}

.logo img {
	width: 512px;
	height: 512px;
	object-fit: contain;
}

.oj-docs-logo-subtitle {
	font-size: 1.5rem;
}

.tagline {
	margin-bottom: 2rem;
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--text-light);
}

.hero-why {
	max-width: 760px;
	margin: 0 auto 2rem;
	font-size: 1.05rem;
	color: var(--text-light);
}

.cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.btn-github {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
}

.btn-github-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.section {
	margin-bottom: 4rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.btn-primary {
	color: #ffffff;
	background: var(--primary);
}

.btn-primary:hover {
	background: var(--primary-dark);
	box-shadow: 0 8px 24px rgba(255, 96, 0, 0.2);
	transform: translateY(-2px);
}

.btn-secondary {
	color: var(--text);
	background: var(--bg-alt);
	border: 2px solid var(--border);
}

.btn-secondary:hover {
	color: var(--primary);
	border-color: var(--primary);
	transform: translateY(-2px);
}

.section-title {
	margin-bottom: 3rem;
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--text);
	text-align: center;
}

.section-intro {
	max-width: 760px;
	margin: 0 auto 2rem;
	color: var(--text-light);
	text-align: center;
}

.why-install {
	padding: 1.75rem 2rem 2.25rem;
	background:
		radial-gradient(
			circle at top,
			rgba(255, 102, 0, 0.08) 0,
			transparent 48%
		),
		linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
	border: 1px solid var(--border);
	border-radius: 16px;
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.why-install-cta {
	margin: 1.5rem 0 0;
	text-align: center;
}

.why-card {
	padding: 1.25rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 8px 20px var(--shadow);
	transition: transform 0.2s ease;
}

.why-card:hover {
	transform: translateY(-2px);
}

.why-install .section-title {
	margin-bottom: 1.25rem;
}

.why-install .section-intro {
	margin-bottom: 1.5rem;
}

.why-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.3rem 0.8rem;
	margin-bottom: 0.75rem;
	font-size: 0.78rem;
	font-weight: 800;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: linear-gradient(90deg, var(--primary), var(--primary-dark));
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(255, 102, 0, 0.25);
}

.feature-showcase {
	padding: 1.75rem 2rem 2.25rem;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 16px;
}

.feature-showcase .section-title {
	margin-bottom: 1.25rem;
}

.feature-showcase .section-intro {
	margin-bottom: 1.5rem;
}

.showcase-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.showcase-card {
	padding: 1.5rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
}

.showcase-card--more {
	padding: 1.1rem 1.5rem;
	background:
		radial-gradient(
			circle at 50% 0%,
			rgba(255, 102, 0, 0.18) 0,
			rgba(255, 102, 0, 0.02) 55%
		),
		var(--bg);
	border: 1px solid rgba(255, 102, 0, 0.5);
	box-shadow: 0 12px 28px rgba(255, 102, 0, 0.18);
}

.showcase-more {
	margin: 0;
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 800;
	color: #ff7a29;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.screenshot-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.shot {
	margin: 0;
}

.screenshot-image {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: 0 8px 20px var(--shadow);
}

.screenshot-image--keyboard {
	height: 320px;
	object-fit: cover;
	object-position: top center;
}

.screenshot-link {
	display: block;
	border-radius: 8px;
}

.screenshot-link:focus-visible {
	outline: 3px solid var(--primary);
	outline-offset: 2px;
}

.screenshot-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 180px;
	padding: 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-light);
	text-align: center;
	background:
		radial-gradient(
			circle at 20% 10%,
			rgba(255, 102, 0, 0.16) 0,
			transparent 45%
		),
		linear-gradient(120deg, var(--bg-alt), var(--bg));
	border: 2px dashed var(--border);
	border-radius: 8px;
}

.shot figcaption {
	margin-top: 0.5rem;
	font-size: 0.9rem;
	color: var(--text-light);
}

.trust-section {
	padding: 2.25rem 2rem;
	background:
		radial-gradient(
			circle at top right,
			rgba(255, 102, 0, 0.1) 0,
			transparent 45%
		),
		linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
	border: 1px solid var(--border);
	border-radius: 16px;
}

.trust-section .section-title {
	margin-bottom: 1.25rem;
}

.trust-section .section-intro {
	margin-bottom: 1.5rem;
}

.trust-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.trust-card {
	padding: 1.25rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 8px 20px var(--shadow);
}

body.oj-docs-lightbox-open {
	overflow: hidden;
}

.oj-docs-lightbox {
	position: fixed;
	inset: 0;
	z-index: 5000;
	display: none;
}

.oj-docs-lightbox.is-open {
	display: block;
}

.oj-docs-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.oj-docs-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: min(96vw, 1440px);
	max-height: 92vh;
	padding: 0.5rem;
	margin: 4vh auto;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.oj-docs-lightbox__close {
	display: inline-flex;
	padding: 0.4rem 0.8rem;
	margin: 0 0 0.5rem auto;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 999px;
}

.oj-docs-lightbox__close:hover {
	color: var(--primary);
	border-color: var(--primary);
}

.oj-docs-lightbox__close:focus-visible {
	outline: 3px solid var(--primary);
	outline-offset: 2px;
}

.oj-docs-lightbox__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(92vh - 4.25rem);
	object-fit: contain;
	border-radius: 8px;
}

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

.feature-card {
	padding: 2rem;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 12px;
	transition: all 0.2s ease;
}

.feature-card:hover {
	border-color: var(--primary);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
}

.feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	background: var(--primary);
	border-radius: 12px;
}

.feature-title {
	margin-bottom: 0.75rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text);
}

.why-card .feature-title {
	margin-bottom: 0.55rem;
	font-size: 1.45rem;
}

.feature-desc {
	line-height: 1.7;
	color: var(--text-light);
}

.installation {
	padding: 3rem;
	margin-bottom: 4rem;
	background:
		radial-gradient(
			circle at top,
			rgba(255, 102, 0, 0.1) 0,
			transparent 46%
		),
		linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
	border: 1px solid var(--border);
	border-radius: 16px;
}

.install-hero {
	margin-bottom: 1rem;
	text-align: center;
}

.install-kicker {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	margin: 0 0 0.6rem;
	font-size: 0.78rem;
	font-weight: 800;
	color: var(--primary-dark);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: rgba(255, 102, 0, 0.14);
	border: 1px solid rgba(255, 102, 0, 0.28);
	border-radius: 999px;
}

.oj-dark-mode .install-kicker {
	color: #ffb078;
}

.installation .section-title {
	margin: 0;
}

.installation .section-title a {
	display: inline-block;
	padding: 0 0 0.25rem;
	font-size: clamp(2rem, 4.2vw, 2.8rem);
	font-weight: 800;
	line-height: 1.05;
	color: var(--text);
	text-decoration: none;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
	border-bottom: 3px solid rgba(255, 102, 0, 0.65);
}

.oj-docs-install-intro {
	margin-bottom: 2rem;
	font-weight: 700;
	text-align: center;
}

.oj-docs-install-secondary {
	margin: 0 0 2.5rem;
	color: var(--text-light);
	text-align: center;
}

.oj-docs-install-secondary a {
	font-weight: 600;
}

.oj-docs-install-cta {
	margin-bottom: 3rem;
	text-align: center;
}

.oj-docs-install-heading {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	font-weight: 600;
	text-align: center;
}

.oj-docs-link-primary {
	color: var(--primary);
}

.oj-docs-code-inline {
	padding: 0.25rem 0.5rem;
	background: var(--bg);
	border-radius: 4px;
}

.oj-docs-install-list {
	margin-left: 1.25rem;
	color: var(--text-light);
}

.install-steps {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 600px;
	margin: 0 auto;
}

.step {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.step-number {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	font-size: 1.125rem;
	font-weight: 700;
	color: #ffffff;
	background: var(--primary);
	border-radius: 50%;
}

.step-content {
	flex: 1;
}

.step-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text);
}

.note {
	padding: 1rem 1.25rem;
	margin-top: 2rem;
	font-size: 0.95rem;
	color: var(--note-text);
	background: var(--note-bg);
	border-left: 4px solid var(--note-border);
	border-radius: 8px;
}

.note.oj-docs-note {
	margin-top: 1rem;
}

.philosophy {
	padding: 3rem;
	text-align: center;
	background: var(--bg-alt);
	border-radius: 16px;
}

.philosophy p {
	max-width: 700px;
	margin: 1rem auto;
	font-size: 1.15rem;
	color: var(--text-light);
}

footer {
	padding: 3rem 0;
	margin-top: 4rem;
	text-align: center;
	border-top: 1px solid var(--border);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
	margin-bottom: 1rem;
}

.footer-links a {
	font-size: 0.95rem;
	color: var(--text-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

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

.footer-note {
	font-size: 0.9rem;
	color: var(--text-light);
}

@media (max-width: 768px) {
	header {
		padding: 3rem 0 2rem;
	}

	.logo {
		font-size: 3rem;
	}

	.tagline {
		font-size: 1.25rem;
	}

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

	.why-install,
	.feature-showcase,
	.installation {
		padding: 2rem 1.25rem;
	}

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

	.screenshot-pair {
		grid-template-columns: 1fr;
	}

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

	.install-steps {
		gap: 1.25rem;
	}

	.step {
		flex-direction: column;
	}

	.step-number {
		width: 32px;
		height: 32px;
	}

	.footer-links {
		flex-direction: column;
		gap: 1rem;
	}
}
