/*
Theme Name: nefrulabs
Theme URI: https://nefrulabs.com
Author: nefrulabs
Description: Software marketplace for nefrulabs.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: nefrulabs
*/

:root {
	--navy: #0f172a;
	--blue: #2563eb;
	--violet: #7c3aed;
	--cyan: #06b6d4;
	--bg: #f1fafc;
	--surface: #e2e8f0;
	--slate: #94a3b8;
	--ink: #0f172a;
	--card: #ffffff;
	--radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: Inter, "Segoe UI", Tahoma, sans-serif;
	font-weight: 400;
	line-height: 1.5;
}
img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }

.site-header, .site-footer, .hero, .categories, .catalog, .page-shell, .landing {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}
.site-header {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.brand small { display: block; margin-top: 3px; color: var(--slate); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; }
.logo-mark { width: 36px; height: 36px; }
.logo-lg { width: 72px; height: 72px; }
.main-nav { display: flex; gap: 18px; margin-inline-start: auto; }
.main-nav a, .back-link { text-decoration: none; color: #334155; font-size: 14px; font-weight: 500; }
.back-link { margin-inline-start: auto; }
.header-tools { display: flex; gap: 8px; margin-inline-start: 8px; }
.is-product .header-tools { margin-inline-start: 0; }
.icon-btn {
	width: 38px; height: 38px; display: grid; place-items: center;
	border-radius: 999px; text-decoration: none; color: var(--navy);
}
.icon-btn svg { width: 20px; height: 20px; }

.hero {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 28px;
	align-items: center;
	background: var(--navy);
	color: white;
	border-radius: 28px;
	padding: 48px 48px 36px;
	position: relative;
	overflow: hidden;
	margin-top: 8px;
}
.hero::after {
	content: "";
	position: absolute;
	width: 280px; height: 280px;
	right: -40px; top: -80px;
	background: radial-gradient(circle, rgba(37,99,235,.55), transparent 68%);
	pointer-events: none;
}
.eyebrow { color: var(--cyan); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; max-width: 12ch; font-weight: 600; }
.hero h1 span {
	background: linear-gradient(90deg, #67e8f9, #c4b5fd);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-copy > p { margin-top: 16px; max-width: 46ch; color: #cbd5e1; font-weight: 400; }
.search {
	margin-top: 26px;
	display: flex;
	align-items: center;
	gap: 10px;
	background: white;
	color: var(--navy);
	border-radius: 999px;
	padding: 6px 6px 6px 16px;
	max-width: 560px;
}
.search svg { width: 18px; height: 18px; color: var(--slate); flex: none; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; color: var(--navy); }
.search button, .btn {
	border: 0; cursor: pointer; text-decoration: none;
	background: var(--blue); color: white;
	border-radius: 999px; padding: 12px 18px;
	font-weight: 600; display: inline-flex; justify-content: center;
}
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.trust li {
	border: 1px solid rgba(255,255,255,.16);
	background: rgba(255,255,255,.06);
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 13px;
	color: #e2e8f0;
}
.hero-art { position: relative; min-height: 280px; }
.pane {
	position: absolute;
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(37,99,235,.9), rgba(124,58,237,.75));
	border: 1px solid rgba(255,255,255,.16);
	box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.pane-a { width: 180px; height: 120px; right: 18px; top: 18px; display: grid; place-items: center; font-weight: 600; font-size: 28px; }
.pane-b { width: 210px; height: 150px; left: 10px; bottom: 24px; display: grid; place-items: center; background: linear-gradient(160deg, #0b1b36, #1e3a8a); }
.pane-c { width: 92px; height: 92px; right: 0; bottom: 8px; background: linear-gradient(160deg, var(--cyan), var(--blue)); }

.categories {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px 10px;
	padding: 34px 0 10px;
}
.categories a {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	text-decoration: none; text-align: center; color: #334155; font-size: 13px; font-weight: 500;
}
.cat-icon { width: 28px; height: 28px; color: var(--blue); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 18px 0; }
.section-head p { color: #64748b; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card, .order-card, .panel {
	background: var(--card);
	border: 1px solid var(--surface);
	border-radius: var(--radius);
	padding: 18px;
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.off {
	background: #ede9fe; color: var(--violet);
	border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700;
}
.product-card h3 { margin: 14px 0 8px; font-size: 18px; }
.product-card p, .lead { color: #475569; }
.price { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.price strong { font-size: 22px; }
.price s { color: var(--slate); }
.product-card .btn { width: 100%; }
.empty { color: #64748b; padding: 12px 0 32px; }
.catalog { padding-bottom: 20px; }

.landing {
	display: grid;
	grid-template-columns: 1.3fr .7fr;
	gap: 28px;
	align-items: center;
	min-height: calc(100vh - 180px);
	padding: 28px 0 48px;
}
.landing h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; max-width: 14ch; }
.landing .eyebrow { color: var(--accent, var(--blue)); }
.lead { margin-top: 16px; font-size: 18px; max-width: 46ch; }
.points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { padding-inline-start: 16px; position: relative; }
.points li::before {
	content: "";
	width: 7px; height: 7px; border-radius: 99px;
	background: var(--accent, var(--blue));
	position: absolute; inset-inline-start: 0; top: .55em;
}
.order-card { align-self: start; }
.order-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.order-card input {
	border: 1px solid var(--surface); border-radius: 12px; padding: 12px 14px; background: #f8fafc;
}
.order-card .btn { width: 100%; margin-top: 14px; background: var(--accent, var(--blue)); }
.card-kicker { color: var(--slate); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fine, .muted { color: #64748b; font-size: 13px; margin-top: 10px; }
.notice {
	background: #eff6ff; color: #1e3a8a; border-radius: 12px; padding: 10px 12px; margin: 10px 0;
}

.page-shell { padding: 28px 0 64px; }
.page-shell h1 { font-size: 42px; margin-bottom: 18px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account h2, .account h3 { margin: 8px 0 14px; }
.panel label, .account-head { display: flex; }
.panel label { flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.panel input { border: 1px solid var(--surface); border-radius: 12px; padding: 12px 14px; font-weight: 400; }
.account-head { justify-content: space-between; align-items: center; margin-bottom: 18px; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--surface); }
.code-list, .order-list, .post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.code-list li, .order-list li, .post-list article {
	background: white; border: 1px solid var(--surface); border-radius: 16px; padding: 14px 16px;
}
.code-list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.code-list code { background: var(--navy); color: white; border-radius: 8px; padding: 4px 8px; }
.order-list li div { display: flex; justify-content: space-between; gap: 12px; }
.post-list h2 { font-size: 22px; margin-bottom: 6px; }

.site-footer {
	display: grid;
	grid-template-columns: 1.4fr .8fr;
	gap: 24px;
	padding: 28px 0 40px;
	color: #475569;
}
.site-footer strong { color: var(--navy); }
.site-footer p { margin-top: 8px; }
.site-footer a { color: var(--blue); font-weight: 600; }

@media (max-width: 980px) {
	.hero, .landing, .cards, .account-grid, .site-footer { grid-template-columns: 1fr; }
	.categories { grid-template-columns: repeat(3, 1fr); }
	.main-nav { display: none; }
	.hero { padding: 28px 22px; }
	.hero-art { min-height: 220px; }
}
