:root {
	--bg: #1a1918;
	--bg2: #222120;
	--bg3: #272523;
	--fg: #f0ede8;
	--muted: #8a8680;
	--accent: #3a3836;
	--border: #2e2c2a;
	--green: #4ade80;
	--sh: rgba(0,0,0,.3) 0 8px 24px;
}

html.theme-light {
	--bg: #fafaf8;
	--bg2: #f2f1ee;
	--bg3: #ebebea;
	--fg: #111110;
	--muted: #6b6760;
	--accent: #e0ded8;
	--border: #dddbd4;
	--green: #16a34a;
	--sh: rgba(0,0,0,.08) 0 8px 24px;
}

*,*::before,*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 115%; /* Global scale: makes everything ~15% larger */
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: var(--bg);
}

::-webkit-scrollbar-thumb {
	background: var(--accent);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--muted);
}

body {
	background: var(--bg);
	color: var(--fg);
	font-family: 'Space Grotesk', sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
	transition: background .4s, color .4s;
	visibility: hidden;
}

@media (pointer: fine) {
	body, a, button, label {
		cursor: none !important;
	}

	.cursor {
		position: fixed;
		top: 0;
		left: 0;
		width: 14px;
		height: 14px;
		border-radius: 50%;
		background: #fff;
		mix-blend-mode: difference;
		pointer-events: none;
		z-index: 99999;
		transform: translate(-50%, -50%);
		transition: width .2s, height .2s;
	}

	.cursor.big {
		width: 44px;
		height: 44px;
	}
}

@media (pointer: coarse) {
	.cursor {
		display: none;
	}
}

.sb {
	position: fixed;
	top: 0;
	left: 0;
	height: 2px;
	background: var(--fg);
	width: 0%;
	z-index: 10000;
	transition: width .1s ease-out;
}

.home-btn {
	position: fixed;
	top: 1.75rem;
	left: 1.75rem;
	z-index: 1000;
	background: none;
	border: 1px solid var(--border);
	color: var(--fg);
	padding: .5rem;
	border-radius: 6px;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .3s;
}

.home-btn:hover {
	border-color: var(--fg);
	transform: translateY(-1px);
}

.theme-wrap {
	position: fixed;
	top: 1.75rem;
	right: 1.75rem;
	z-index: 1000;
}

.switch {
	--w: 68px;
	--h: 38px;
	display: inline-flex;
	align-items: center;
	width: var(--w);
	height: var(--h);
	background: var(--accent);
	border-radius: 9999px;
	padding: 5px;
}

.switch input {
	display: none;
}

.thumb {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: calc(var(--h) - 10px);
	height: calc(var(--h) - 10px);
	background: var(--bg);
	color: var(--fg);
	border-radius: 9999px;
	box-shadow: var(--sh);
	transition: transform 300ms;
	transform: translateX(100%);
}

html.theme-light .thumb {
	transform: translateX(0%);
}

.ico {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 300ms;
}

html.theme-light .ico-sun,
html.theme-dark .ico-moon {
	opacity: 1;
}

.back-top {
	position: fixed;
	bottom: 1.75rem;
	right: 1.75rem;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--fg);
	color: var(--bg);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all .3s;
	font-size: 1.1rem;
	z-index: 999;
}

.back-top.on {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.back-top:hover {
	transform: translateY(-2px);
}

.W {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 2rem;
}

@keyframes up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes pulse {
	0%, 100% {
		transform: scale(.95);
		box-shadow: 0 0 0 0 rgba(74,222,128,.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(74,222,128,0);
	}
}

.hero {
	min-height: 44vh;
	display: flex;
	align-items: flex-end;
	border-bottom: 1px solid var(--border);
	padding: 8rem 0 4rem;
}

.hero-lbl {
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 1.25rem;
	opacity: 0;
	animation: up .6s forwards;
}

.hero h1 {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 1.25rem;
	opacity: 0;
	animation: up .6s .1s forwards;
}

.hero p {
	font-size: 1rem;
	color: var(--muted);
	max-width: 480px;
	line-height: 1.7;
	opacity: 0;
	animation: up .6s .2s forwards;
}

.hero-tags {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
	opacity: 0;
	animation: up .6s .35s forwards;
}

.tag {
	font-size: .7rem;
	padding: .2rem .6rem;
	border: 1px solid var(--border);
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
}

.tools-shell {
	padding: 4rem 0 7rem;
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .7s, transform .7s;
}

.tools-shell.active {
	opacity: 1;
	transform: none;
}

.search-wrap {
	position: relative;
	margin-bottom: 3rem;
}

.search-input {
	width: 100%;
	background: var(--bg2);
	border: 1px solid var(--border);
	color: var(--fg);
	font-family: inherit;
	font-size: 1rem;
	padding: .85rem 1.2rem .85rem 3rem;
	border-radius: 8px;
	outline: none;
	transition: border-color .25s;
}

.search-input:focus {
	border-color: var(--muted);
}

.search-input::placeholder {
	color: var(--muted);
}

.search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
}

.search-clear {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--muted);
	padding: .2rem;
	border-radius: 4px;
	display: none;
	transition: color .2s;
}

.search-clear.show {
	display: flex;
	align-items: center;
}

.search-clear:hover {
	color: var(--fg);
}

.no-results {
	text-align: center;
	padding: 4rem 0;
	color: var(--muted);
	font-size: .95rem;
	display: none;
}

.no-results.show {
	display: block;
}

.cat-section {
	margin-bottom: 3.5rem;
}

.cat-header {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: 1.25rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid var(--border);
}

.cat-title {
	font-size: 1rem;
	font-weight: 700;
}

.cat-count {
	font-size: .75rem;
	color: var(--muted);
	background: var(--bg2);
	border: 1px solid var(--border);
	padding: .1rem .5rem;
	border-radius: 20px;
}

.cat-icon {
	color: var(--muted);
}

.tools-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
}

.tool-card {
	background: var(--bg);
	padding: 1.4rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .4rem;
	transition: background .2s;
	border: none;
	color: var(--fg);
	font-family: inherit;
	text-align: left;
}

.tool-card:hover {
	background: var(--bg2);
}

.tc-name {
	font-size: .875rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
}

.tc-arr {
	font-size: .8rem;
	color: var(--muted);
	transition: transform .2s, color .2s;
	flex-shrink: 0;
}

.tool-card:hover .tc-arr {
	transform: translate(2px, -2px);
	color: var(--fg);
}

.tc-desc {
	font-size: .775rem;
	color: var(--muted);
	line-height: 1.5;
}

.tc-badge {
	font-size: .62rem;
	padding: .12rem .45rem;
	border: 1px solid var(--border);
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
	align-self: flex-start;
	margin-top: .2rem;
}

.panel-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.6);
	backdrop-filter: blur(4px);
	z-index: 5000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.panel-overlay.open {
	display: flex;
}

.panel-box {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	width: 100%;
	max-width: 680px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2rem;
	position: relative;
}

.panel-close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: none;
	border: none;
	color: var(--muted);
	padding: .35rem;
	border-radius: 6px;
	transition: color .2s, background .2s;
	display: flex;
	align-items: center;
}

.panel-close:hover {
	color: var(--fg);
	background: var(--accent);
}

.panel-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: .3rem;
}

.panel-sub {
	font-size: .875rem;
	color: var(--muted);
	margin-bottom: 1.75rem;
	line-height: 1.6;
}

.dz {
	border: 1px dashed var(--border);
	border-radius: 10px;
	padding: 2.5rem 2rem;
	text-align: center;
	transition: border-color .25s, background .25s;
	margin-bottom: 1.25rem;
	cursor: pointer;
}

.dz:hover,
.dz.drag {
	border-color: var(--muted);
	background: var(--bg2);
}

.dz svg {
	color: var(--muted);
	margin-bottom: .75rem;
}

.dz-title {
	font-size: .95rem;
	font-weight: 600;
	margin-bottom: .3rem;
}

.dz-sub {
	font-size: .82rem;
	color: var(--muted);
	margin-bottom: 1rem;
}

.fl {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	margin-bottom: 1.25rem;
}

.fr {
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .65rem .9rem;
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 7px;
	font-size: .825rem;
}

.fr-name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fr-sz {
	color: var(--muted);
	font-size: .75rem;
	flex-shrink: 0;
}

.fr-del,
.fr-up,
.fr-dn {
	background: none;
	border: none;
	color: var(--muted);
	padding: .2rem .3rem;
	border-radius: 4px;
	transition: color .2s, background .2s;
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.fr-del:hover,
.fr-up:hover,
.fr-dn:hover {
	color: var(--fg);
	background: var(--accent);
}

.opts {
	display: flex;
	flex-wrap: wrap;
	gap: .85rem;
	margin-bottom: 1.25rem;
	align-items: flex-end;
}

.og {
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.ol {
	font-size: .72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--muted);
}

.os,
.oi {
	background: var(--bg2);
	border: 1px solid var(--border);
	color: var(--fg);
	font-family: inherit;
	font-size: .875rem;
	padding: .5rem .8rem;
	border-radius: 6px;
	transition: border-color .25s;
	outline: none;
}

.os:focus,
.oi:focus {
	border-color: var(--muted);
}

.oi {
	width: 160px;
}

.page-grid {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin-bottom: 1.25rem;
	max-height: 180px;
	overflow-y: auto;
}

.pc {
	width: 34px;
	height: 34px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: var(--bg2);
	color: var(--muted);
	font-size: .72rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .15s;
}

.pc:hover {
	border-color: var(--muted);
	color: var(--fg);
}

.pc.sel {
	background: var(--fg);
	color: var(--bg);
	border-color: var(--fg);
}

.rc-grid {
	display: flex;
	gap: .4rem;
	flex-wrap: wrap;
}

.rc {
	padding: .45rem .9rem;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: var(--bg2);
	color: var(--muted);
	font-size: .8rem;
	font-weight: 600;
	transition: all .15s;
}

.rc:hover {
	border-color: var(--muted);
	color: var(--fg);
}

.rc.sel {
	background: var(--fg);
	color: var(--bg);
	border-color: var(--fg);
}

.actions {
	display: flex;
	gap: .6rem;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.btn-p {
	background: var(--fg);
	color: var(--bg);
	border: none;
	padding: .7rem 1.6rem;
	border-radius: 6px;
	font-family: inherit;
	font-size: .875rem;
	font-weight: 600;
	transition: opacity .2s, transform .2s;
}

.btn-p:hover {
	opacity: .88;
	transform: translateY(-1px);
}

.btn-p:disabled {
	opacity: .3;
	transform: none;
}

.btn-g {
	background: none;
	color: var(--muted);
	border: 1px solid var(--border);
	padding: .7rem 1.1rem;
	border-radius: 6px;
	font-family: inherit;
	font-size: .825rem;
	transition: all .2s;
}

.btn-g:hover {
	border-color: var(--fg);
	color: var(--fg);
}

.pw {
	display: none;
	margin-bottom: .85rem;
}

.pw.show {
	display: block;
}

.pb-bg {
	height: 3px;
	background: var(--border);
	border-radius: 2px;
	overflow: hidden;
}

.pb-fill {
	height: 100%;
	background: var(--fg);
	width: 0%;
	transition: width .2s;
	border-radius: 2px;
}

.pl {
	font-size: .78rem;
	color: var(--muted);
	margin-top: .35rem;
}

.hint {
	font-size: .78rem;
	color: var(--muted);
	margin-bottom: .85rem;
	line-height: 1.6;
}

.hint code {
	background: var(--bg2);
	border: 1px solid var(--border);
	padding: .05rem .3rem;
	border-radius: 3px;
	font-size: .75rem;
}

.toast {
	position: fixed;
	bottom: 5rem;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--fg);
	color: var(--bg);
	padding: .65rem 1.35rem;
	border-radius: 6px;
	font-size: .85rem;
	font-weight: 600;
	opacity: 0;
	transition: all .3s;
	z-index: 99999;
	pointer-events: none;
	white-space: nowrap;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.toast.err {
	background: #ef4444;
	color: #fff;
}

.footer {
	padding: 3rem 0;
	border-top: 1px solid var(--border);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .7s, transform .7s;
}

.footer.active {
	opacity: 1;
	transform: none;
}

.footer-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .8rem;
	color: var(--muted);
}

.status {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.dot {
	width: 7px;
	height: 7px;
	background: var(--green);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

.fl-link {
	color: var(--muted);
	text-decoration: none;
	transition: color .2s;
}

.fl-link:hover {
	color: var(--fg);
}

@media (max-width: 1024px) {
	.tools-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.tools-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero {
		padding: 7rem 0 3rem;
	}

	.W {
		padding: 0 1.25rem;
	}

	.footer-bar {
		flex-direction: column;
		gap: .75rem;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.tools-grid {
		grid-template-columns: 1fr;
	}

	.panel-box {
		padding: 1.5rem;
	}
}

/* Placeholder for hidden sections */
.coming-soon-block {
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    opacity: 0.8;
}

.coming-soon-content {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.coming-soon-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
}