@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: fallback;
	src: url(Manrope.woff2) format("woff2");
}

:root {
	box-sizing: border-box;
	--color-accent: #63a1ff;
}

*, *:before, *:after {
	box-sizing: inherit;
}

body {
	margin: 0;
	font: 16px/1.5 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
	color: #fff;
	background-color: #0c121c;
	background-image: radial-gradient(720px 1280px at 35% 0%, #5e95f963, #0c121c);
	background-repeat: no-repeat;
	background-size: cover;
}

a {
	color: var(--color-accent);
	text-decoration: underline;
}

a:hover,
a:active {
	color: #fff;
}

/* Floating Navigation */
.floating-nav {
	position: fixed;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.4rem 0.6rem;
	background: rgba(12, 18, 28, 0.75);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 100px;
	font-size: 0.85rem;
}

.floating-nav a {
	color: #ccc;
	text-decoration: none;
	padding: 0.4rem 0.75rem;
	border-radius: 100px;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	white-space: nowrap;
	transition: color 0.15s, background 0.15s;
}

.floating-nav a:hover,
.floating-nav a:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.floating-nav svg {
	flex-shrink: 0;
}



.container {
	margin: 0 auto;
	padding: 0 1rem;
	max-width: 1440px;
	width: 100%;
}

.hero .download .btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #000;
	text-decoration: none;
	cursor: pointer;
	background: var(--color-accent);
	border-radius: 100px;
	font-size: 1.4rem;
	font-weight: bold;
	line-height: 1;
	padding: 0.75rem 1.5rem;
	transition: background 0.15s;
}

.hero .download .btn:hover,
.hero .download .btn:focus {
	text-decoration: none;
	color: #000;
	background: #fff;
}

.hero .download .btn:hover .download-text,
.hero .download .btn:focus .download-text {
	text-decoration: underline;
}

.hero .download {
	margin-top: 2rem;
}

.hero .download svg {
	align-self: center;
	flex-shrink: 0;
}

.download-footer {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: 0.75rem;
	font-size: 0.85rem;
}

.download-footer a {
	color: inherit;
	text-decoration: underline;
}

.download-footer a:hover,
.download-footer a:focus {
	color: var(--color-accent);
}

.download-footer span {
	color: #999;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.hero .container {
	display: flex;
	gap: 60px;
	padding-top: 5rem;
}

.hero-left {
	max-width: 600px;
	align-self: center;
}

.hero-left h1 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 2.5rem;
	margin: 0 0 1rem;
}

.hero-left h2 {
	font-size: 1.35rem;
	font-weight: 400;
	color: #ccc;
	margin: 0 0 0.5rem;
	line-height: 1.6;
}

.hero-left h2 strong {
	color: var(--color-accent);
	font-weight: 600;
}

.hero-left h3 {
	font-size: 1rem;
	font-weight: 400;
	color: #999;
	margin: 0;
}

.main-logo {
	flex-shrink: 0;
}

.hero-right {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	gap: 2px;
}

.hero-screenshot {
	width: 100%;
	max-width: 1200px;
	aspect-ratio: 1800 / 1200;
	border-radius: 10px;
	box-shadow: rgb(71 168 255 / 43%) 0 0 80px 0;
}

.hero-screenshot-author {
	margin-left: 6px;
	font-size: 14px;
	color: #ccc;
}

.hero-screenshot-author svg {
	vertical-align: text-bottom;
	margin-right: 2px;
}

.hero-screenshot-author a {
	color: inherit;
}

.supported img {
	width: 24px;
	height: 24px;
	vertical-align: -0.2rem;
}

.supported a {
	white-space: nowrap;
	text-decoration: none;
}

.supported a:hover {
	text-decoration: underline;
}

.libraries {
	max-width: 1800px;
	padding: 5rem 0;
	margin: 0 auto;
	margin-top: 5rem;
	border-radius: 4rem;
	background: linear-gradient(rgb(12 18 28 / 0%) 0%, rgb(38 48 64 / 64%) 100%);
}

.libraries .container {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.library-code {
	align-self: center;
	position: relative;
}

.library {
	display: flex;
	gap: 2rem;
	margin-bottom: 3rem;
}

.library:last-child {
	margin-bottom: 0;
}

.library-icon {
	padding-top: 1rem;
}

.library-description {
	max-width: 600px;
}

.library-description h2 {
	margin-top: 0;
	margin-bottom: .5rem;
	font-size: 2rem;
	word-break: break-all;
}

.library-description p {
	margin: 0;
	margin-bottom: .7rem;
	text-wrap: balance;
}

.screenshots {
	max-width: calc(100vw - 10%);
	margin-top: 7rem;
	margin-bottom: 7rem;
	display: flex;
	gap: 1rem;
	justify-content: center;
	align-items: end;
}

.screenshots img {
	width: 100%;
	border-radius: 10px;
	aspect-ratio: 1 / 1;
}

.screenshots figure {
	margin: 0;
	width: 480px;
	font-size: 0;
}

.screenshots figcaption {
	color: #63a1ff;
	line-height: 1;
	padding: .5rem;
	font-size: 1rem;
	text-align: center;
	text-wrap: balance;
}

.footnote {
	text-align: center;
	text-wrap: balance;
	margin-bottom: 6rem;
}

.footer {
	margin: 3rem auto;
	line-height: 1.75;
	color: #ccc;
}

.footer .container {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1rem;
}

.footer .footer-right {
	text-align: right;
}

.hljs {
	font-family: ui-monospace, SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
	border: 1px solid #000;
	border-radius: 1rem;
	color: #f8f8f2;
	display: block;
	padding: 2rem;
}

.hljs-language {
	background: #000;
	border-radius: 1rem;
	padding: .2rem 1rem;
	position: absolute;
	top: 0;
	right: .5rem;
	z-index: 1;
}

.hljs-comment {
	color: #63a1ff;
	font-weight: bold;
}

.hljs-built_in {
	color: #ffbc6a;
}

a.hljs-built_in {
	text-decoration: underline;
}

.hljs-string {
	color: #d0ff6f;
}

.hljs-keyword {
	color: #dcc6e0;
}

.workshop {
	max-width: 1800px;
	margin: 0 auto;
	margin-top: 5rem;
	border-radius: 4rem;
	background: linear-gradient(rgb(38 48 64 / 64%) 0%, rgb(12 18 28 / 0%) 100%);
	position: relative;
	overflow: hidden;
}

.workshop-bg {
	background: url(workshop.webp);
	position: absolute;
	width: 100%;
	height: 100%;
	background-position: center -12em;
	background-repeat: no-repeat;
	z-index: 0;
	mask-image: linear-gradient(to bottom, black 5em, transparent 20em);
}

.workshop .container {
	padding-top: 14em;
	padding-bottom: 4em;
	z-index: 2;
	position: relative;
}

.workshop-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-gap: 2em;
}

.workshop-item {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.workshop-image {
	display: flex;
	width: 100%;
	border-radius: 10px;
	aspect-ratio: 16 / 9;
	box-shadow: 2px 2px 10px #0c121c;
	background: #000;
}

.workshop-item:hover .workshop-image,
.workshop-item:focus .workshop-image {
	box-shadow: 2px 2px 10px var(--color-accent);
}

.workshop-title {
	margin-top: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: underline;
}

.workshop-info {
	margin-top: 2px;
	font-size: 12px;
	color: #999;
}

.workshop-how {
	text-align: center;
	margin-top: 3em;
	font-size: 14px;
	color: #999;
}

/* Tools Showcase */
.tools-showcase {
	max-width: 1800px;
	padding: 5rem 0;
	margin: 0 auto;
	margin-top: 5rem;
	border-radius: 4rem;
	background: linear-gradient(rgb(38 48 64 / 64%) 0%, rgb(12 18 28 / 0%) 100%);
}

.tools-showcase .container {
	display: flex;
	flex-direction: column;
	gap: 6rem;
}

.tool-feature {
	display: flex;
	gap: 4rem;
	align-items: center;
}

.tool-feature:nth-child(even) {
	flex-direction: row-reverse;
}

.tool-info {
	flex: 1;
}

.tool-title {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 2.2rem;
	word-break: break-word;
	color: #fff;
}

.tool-description {
	margin: 0;
	color: #ccc;
	font-size: 1.15rem;
	line-height: 1.6;
	text-wrap: balance;
}
.tool-preview {
	flex: 1.25;
	position: relative;
}

.tool-preview img,
.tool-preview video {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: block;
	background: #0c121c;
}

/* Video Gallery */
.video-gallery {
	position: relative;
}

.video-gallery-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.video-gallery-frame video,
.video-gallery-frame img {
	position: absolute;
	inset: 0;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	width: auto;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: #0c121c;
	transition: opacity 0.25s ease;
}

.video-gallery-frame video.fading,
.video-gallery-frame img.fading {
	opacity: 0;
}

.video-gallery-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 0.75rem;
}

.gallery-btn {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.5rem;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	line-height: 1;
}

.gallery-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.gallery-counter {
	color: #999;
	font-size: 0.85rem;
	min-width: 3rem;
	text-align: center;
}

.loading-spinner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	font-size: 0.9rem;
	background: #0c121c;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Changelog */
#changelog {
	margin-top: 5rem;
	margin-bottom: 3rem;
}

#changelog h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

.changelog-release {
	margin-bottom: 2.5rem;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
}

.changelog-release h3 {
	margin: 0 0 0.25rem;
	font-size: 1.3rem;
}

.changelog-release h3 a {
	color: var(--color-accent);
	text-decoration: none;
}

.changelog-release h3 a:hover {
	text-decoration: underline;
}

.changelog-date {
	font-size: 0.8rem;
	color: #666;
	margin-bottom: 0.75rem;
}

.changelog-body {
	color: #ccc;
	line-height: 1.7;
	font-size: 0.95rem;
}

.changelog-body ul {
	padding-left: 1.25rem;
	margin: 0.5rem 0;
}

.changelog-body li {
	margin-bottom: 0.25rem;
}

.changelog-body code {
	background: rgba(255, 255, 255, 0.08);
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	font-size: 0.85em;
}

.changelog-body a {
	color: var(--color-accent);
	text-decoration: underline;
}

.changelog-heading {
	font-size: 1.1rem;
	margin: 1rem 0 0.5rem;
	color: #fff;
}

.changelog-subheading {
	font-size: 0.95rem;
	margin: 0.75rem 0 0.25rem;
	color: #ddd;
	font-weight: 600;
}

.btn-load-more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
	padding: 0.6rem 1.5rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 100px;
	color: #ccc;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.btn-load-more:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.btn-load-more:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Footer */
.footer {
	margin-top: 4rem;
	padding: 3rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.85rem;
	color: #666;
}

.footer a {
	color: #999;
	text-decoration: underline;
}

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

.footer-links {
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.footer-links a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
}

.footer-links a:hover {
	color: #fff;
}

/* Background Pattern */
.background-pattern {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: 0.07;
	pointer-events: none;
}

.background-pattern path {
	stroke: rgba(255, 255, 255, 0.4);
}

/* Hero Video */
.hero-video {
	width: 100%;
	max-width: 1200px;
	border-radius: 10px;
	box-shadow: rgb(71 168 255 / 43%) 0 0 80px 0;
	display: block;
}

@media (max-width: 1300px) {
	.hero .container {
		flex-direction: column;
		gap: 3rem;
	}
	
	.hero-left {
		max-width: 100%;
		text-align: center;
	}

	.hero .download .btn {
		margin: 0 auto;
	}
	
	.hero .download-footer {
		justify-content: center;
	}

	.hero-screenshot,
	.hero-video {
		width: 100%;
		max-width: 100%;
	}

	.tool-feature,
	.tool-feature:nth-child(even) {
		flex-direction: column;
		gap: 2rem;
		text-align: center;
	}
	
	.tool-preview {
		width: 100%;
	}
}

@media (max-width: 1100px) {
	.libraries .container {
		flex-direction: column;
	}

	.library-code {
		width: 100%;
	}

	.hljs {
		overflow-x: auto;
		padding: .5rem;
	}

	.screenshots {
		margin-top: 1rem;
	}
}

@media (max-width: 840px) {
	.floating-nav {
		font-size: 0.75rem;
		gap: 0;
		padding: 0.3rem 0.4rem;
	}

	.hero-right {
		order: -1;
	}

	.hero .download .btn {
		display: flex;
		margin: 0;
		justify-content: center;
	}

	.hero .download-footer {
		flex-direction: column;
		gap: 0.5rem;
		align-items: center;
	}

	.footer .container {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.footer .footer-links {
		justify-content: center;
		flex-wrap: wrap;
	}

	.hero-left h1 {
		font-size: 2rem;
	}

	.hero-left h2 {
		font-size: 1.1rem;
	}
	
	.tools-showcase {
		padding: 3rem 0;
		border-radius: 2rem;
		margin-top: 3rem;
	}
	
	.tool-title {
		font-size: 1.8rem;
	}
	
	#changelog h2 {
		font-size: 1.8rem;
	}
	
	.changelog-release {
		padding: 1.25rem;
	}
}

@media (max-width: 400px) {
	.hero-left h1 {
		font-size: 1.5rem;
	}

	.floating-nav a:not(.nav-home) {
		padding: 0.3rem 0.5rem;
		font-size: 0;
	}

	.floating-nav a:not(.nav-home) svg {
		width: 18px;
		height: 18px;
	}
}
