/* ===================================================================
   WP-Custom.de — Design tokens
   1:1 an die freigegebene Referenz "Modern WordPress plugin marketplace"
   angelehnt: OKLCH-Farbsystem, Space Grotesk (Display) / Inter (Body) /
   JetBrains Mono (Eyebrows, Preise, Labels), Karten mit 12-16px Radius,
   radialer Glow im Hero/Footer-CTA.
=================================================================== */

:root {
	--bg: oklch(0.16 0.012 260);
	--bg-alt: oklch(0.145 0.012 260);
	--card: oklch(0.19 0.012 260);
	--card-featured: oklch(0.22 0.02 260);
	--border: oklch(0.28 0.01 260);
	--border-bright: oklch(0.35 0.02 260);

	--text: oklch(0.95 0.005 260);
	--text-2: oklch(0.85 0.005 260);
	--text-3: oklch(0.7 0.01 260);
	--text-4: oklch(0.65 0.01 260);
	--text-5: oklch(0.6 0.01 260);
	--text-6: oklch(0.55 0.01 260);

	--accent: oklch(0.65 0.19 260);
	--accent-link: oklch(0.72 0.17 260);
	--accent-link-hover: oklch(0.8 0.15 260);
	--accent-ink: oklch(0.13 0.01 260);
	--mint: oklch(0.75 0.19 160);

	--font-display: 'Space Grotesk', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

	--wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

::selection { background: oklch(0.65 0.19 260 / 0.35); }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 64px);
}

h1, h2, h3 {
	font-family: var(--font-display);
	margin: 0;
	letter-spacing: -0.02em;
}

p { margin: 0; }

a { color: var(--accent-link); text-decoration: none; }
a:hover { color: var(--accent-link-hover); }

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 10px 16px;
	z-index: 1000;
	border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 9px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { opacity: 0.9; }
.btn-primary:hover { opacity: 1; filter: brightness(1.08); color: var(--accent-ink); }

.btn-small { padding: 10px 18px; font-size: 14px; border-radius: 8px; }

.btn-primary {
	background: var(--accent);
	color: var(--accent-ink);
}

.btn-shine {
	position: relative;
	overflow: hidden;
}
.btn-shine::after {
	content: '';
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(115deg, transparent, oklch(1 0 0 / 0.55), transparent);
	transform: skewX(-20deg);
	animation: btnShine 5s ease-in-out infinite;
}
@keyframes btnShine {
	0% { left: -60%; }
	22% { left: 130%; }
	100% { left: 130%; }
}

.btn-ghost {
	background: transparent;
	color: var(--text-2);
	border-color: var(--border-bright);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); opacity: 1; }

.btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--accent-link);
	margin: 0 0 14px;
}

.section-title {
	font-weight: 700;
	font-size: clamp(28px, 4vw, 40px);
}

.section-sub {
	color: var(--text-4);
	font-size: 16px;
	line-height: 1.6;
	margin-top: 14px;
}

.section-head {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px clamp(20px, 5vw, 64px);
	background: oklch(0.16 0.012 260 / 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 19px;
	color: var(--text);
}
.logo-mark {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: linear-gradient(135deg, oklch(0.65 0.19 260), oklch(0.65 0.19 200));
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 15px;
	color: var(--accent-ink);
	flex-shrink: 0;
}
.logo-dot { color: var(--text-4); font-weight: 500; }

.main-nav {
	display: flex;
	gap: 32px;
}
.main-nav a {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-2);
}
.main-nav a:hover { color: var(--text); }

@media (max-width: 760px) {
	.main-nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	padding: 100px clamp(20px, 5vw, 64px) 90px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border-bottom: 1px solid var(--border);
	overflow: hidden;
}

.hero-glow {
	position: absolute;
	top: -120px;
	left: 50%;
	transform: translateX(-50%);
	width: 900px;
	height: 500px;
	background: radial-gradient(closest-side, oklch(0.5 0.16 260 / 0.35), transparent 70%);
	pointer-events: none;
	animation: heroGlowPulse 6s ease-in-out infinite;
}

@keyframes heroGlowPulse {
	0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(0.9); }
	50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 100px;
	border: 1px solid var(--border-bright);
	background: oklch(0.2 0.015 260);
	font-size: 13px;
	font-family: var(--font-mono);
	color: var(--mint);
	margin-bottom: 28px;
}
.hero-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mint);
	animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.hero-title {
	position: relative;
	font-weight: 700;
	font-size: clamp(40px, 6vw, 68px);
	line-height: 1.05;
	margin: 0 0 22px;
	max-width: 900px;
}
.hero-title .accent { color: var(--accent-link); }

.hero-sub {
	position: relative;
	font-size: 19px;
	line-height: 1.6;
	color: var(--text-3);
	max-width: 620px;
	margin: 0 0 40px;
}

.hero-actions {
	position: relative;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 56px;
}

.hero-stats {
	position: relative;
	display: flex;
	gap: clamp(20px, 4vw, 48px);
	flex-wrap: wrap;
	justify-content: center;
	font-family: var(--font-mono);
}
.hero-stats > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.hero-stats strong {
	font-size: 26px;
	font-weight: 600;
	color: var(--text);
}
.hero-stats span {
	font-size: 12px;
	color: var(--text-5);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ---------- Plugin grid ---------- */

.plugins { padding: 96px clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--border); }

.plugin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	max-width: var(--wrap);
	margin: 0 auto;
}

.plugin-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 26px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--border);
	color: inherit;
	opacity: 0;
	transform: translateY(14px);
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.plugin-card.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s ease;
}
.plugin-card.is-live:hover { border-color: var(--border-bright); }
.plugin-card.is-pending { opacity: 0.7; }
.plugin-card.is-pending.is-visible { opacity: 0.7; }

.plugin-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.plugin-mark {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 15px;
	color: var(--accent-ink);
}
.plugin-mark-dim { background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-5); }

.plugin-category {
	font-size: 11px;
	font-family: var(--font-mono);
	padding: 4px 9px;
	border-radius: 100px;
	background: oklch(0.24 0.015 260);
	color: var(--text-4);
	text-transform: uppercase;
}

.plugin-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 18px;
	margin: 0 0 6px;
}
.plugin-desc {
	font-size: 14px;
	color: var(--text-5);
	line-height: 1.55;
	margin: 0;
}

.plugin-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}
.plugin-price {
	font-size: 13px;
	font-family: var(--font-mono);
	color: var(--text-6);
}
.plugin-price strong { color: var(--text-2); font-size: 14px; }
.plugin-view {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent-link);
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	cursor: pointer;
}
.plugin-view:hover { color: var(--accent-link-hover); }

/* ---------- Plugin-Detail-Overlay ---------- */

.plugin-card-clickable { cursor: pointer; }

.modal-overlay {
	position: fixed;
	inset: 0;
	background: oklch(0.1 0.01 260 / 0.75);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 200;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
.modal-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.modal {
	position: relative;
	width: 100%;
	max-width: 880px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--card-featured);
	border: 1px solid var(--border-bright);
	border-radius: 16px;
	padding: 32px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	transform: translateY(16px) scale(0.98);
	transition: transform 0.2s ease;
}
.modal-overlay.is-open .modal {
	transform: translateY(0) scale(1);
}
@media (max-width: 720px) {
	.modal { grid-template-columns: 1fr; padding: 24px; }
}

.modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--border-bright);
	background: var(--bg-alt);
	color: var(--text-3);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }

.modal-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.modal-shot {
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--bg-alt), var(--card));
	border: 1px dashed var(--border-bright);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px;
	color: var(--text-6);
	font-family: var(--font-mono);
	font-size: 13px;
}

.modal-buy {
	display: flex;
	flex-direction: column;
	align-self: start;
}
.modal-buy h3 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 12px;
}
.modal-buy p {
	font-size: 14px;
	color: var(--text-4);
	line-height: 1.6;
	margin: 0 0 22px;
}
.modal-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.modal-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.modal-price strong {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 700;
	color: var(--text);
}
.modal-price span { color: var(--text-6); font-size: 13px; font-family: var(--font-mono); }

/* ---------- Custom dev (Bundles-Layout) ---------- */

.custom {
	padding: 96px clamp(20px, 5vw, 64px);
	border-bottom: 1px solid var(--border);
	background: var(--bg-alt);
}

.custom-inner {
	max-width: var(--wrap);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
@media (max-width: 860px) {
	.custom-inner { grid-template-columns: 1fr; }
}

.custom-perks { margin-top: 28px; }
.custom-perk {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.custom-perk-check {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: oklch(0.65 0.19 160 / 0.2);
	color: var(--mint);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
}
.custom-perk span:last-child { font-size: 15px; color: var(--text-2); }

.custom-form {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 28px;
}

.form-title {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 600;
	margin-bottom: 20px;
}

.form-row {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.form-row label {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-5);
}
.optional { color: var(--text-6); font-weight: 400; }

.form-row input,
.form-row textarea {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 11px 13px;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
	border-color: var(--accent);
	outline: none;
}

.custom-form .btn { width: 100%; margin-top: 4px; }

.form-note {
	margin-top: 14px;
	font-size: 13px;
	color: var(--text-5);
	text-align: center;
}

/* ---------- Pricing ---------- */

.pricing { padding: 96px clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--border); }

.pricing-card {
	position: relative;
	max-width: 400px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	padding: 36px 32px;
	border-radius: 16px;
	background: var(--card-featured);
	border: 1px solid var(--accent);
}
.pricing-badge {
	position: absolute;
	top: -12px;
	left: 32px;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 100px;
	background: var(--accent);
	color: var(--accent-ink);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.pricing-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.pricing-desc { font-size: 14px; color: var(--text-5); margin: 0 0 22px; line-height: 1.5; }
.pricing-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 26px; }
.pricing-amount strong { font-family: var(--font-display); font-weight: 700; font-size: 44px; }
.pricing-amount span { font-size: 14px; color: var(--text-6); }
.pricing-card .btn { margin-bottom: 26px; }
.pricing-features {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-top: 1px solid var(--border);
	padding-top: 20px;
}
.pricing-features div {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--text-2);
}
.pricing-features span { color: var(--mint); }

.pricing-guarantee {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	margin-top: 40px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--text-3);
}
.pricing-guarantee div { display: flex; align-items: center; gap: 10px; }
.pricing-guarantee span { color: var(--mint); font-size: 18px; }

/* ---------- Why us (statt Testimonials) ---------- */

.why { padding: 96px clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--border); background: var(--bg-alt); }

.why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	max-width: var(--wrap);
	margin: 0 auto;
}
.why-card {
	padding: 26px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--border);
}
.why-card-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: oklch(0.65 0.19 160 / 0.2);
	color: var(--mint);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	margin-bottom: 18px;
}
.why-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.why-card p { font-size: 14px; color: var(--text-4); line-height: 1.6; margin: 0; }

/* ---------- FAQ ---------- */

.faq { padding: 96px clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
	padding: 22px 24px;
	border-radius: 12px;
	background: var(--card);
	border: 1px solid var(--border);
}
.faq-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin: 0 0 8px; }
.faq-item p { font-size: 14px; color: var(--text-4); line-height: 1.6; margin: 0; }

/* ---------- Footer CTA ---------- */

.footer-cta {
	padding: 90px clamp(20px, 5vw, 64px);
	text-align: center;
	position: relative;
	overflow: hidden;
}
.footer-cta-glow {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 700px;
	height: 300px;
	background: radial-gradient(closest-side, oklch(0.5 0.16 260 / 0.25), transparent 70%);
	pointer-events: none;
}
.footer-cta h2 { position: relative; font-weight: 700; font-size: clamp(28px, 5vw, 44px); margin: 0 0 20px; }
.footer-cta p { position: relative; font-size: 16px; color: var(--text-4); margin: 0 0 32px; }
.footer-cta .btn { position: relative; }

/* ---------- Footer ---------- */

.site-footer {
	padding: 48px clamp(20px, 5vw, 64px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	border-top: 1px solid var(--border);
}
.logo-footer { font-size: 15px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 13px; color: var(--text-4); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-6); margin: 0; }
