/*
Theme Name: Buzzworthy
Theme URI: https://example.com/buzzworthy
Author: Buzzworthy
Description: A dark, high-contrast SaaS landing page block theme with a lime accent, inspired by modern creator-tool sites.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buzzworthy
*/

:root {
	--bw-lime: #a3e635;
	--bw-lime-soft: rgba(163, 230, 53, 0.1);
	--bw-lime-line: rgba(163, 230, 53, 0.35);
	--bw-violet: #8b5cf6;
	--bw-violet-soft: rgba(167, 139, 250, 0.1);
	--bw-line: rgba(255, 255, 255, 0.08);
	--bw-glass: rgba(255, 255, 255, 0.03);
}

body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--bw-lime); color: #09090b; }

.wp-site-blocks > footer { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-start: 0; }
main > .wp-block-group.alignfull:first-child { margin-block-start: 0; }

/* ===== Header ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(9, 9, 11, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--bw-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header .wp-block-site-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	letter-spacing: -0.02em;
}
.brand-mark {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.brand-mark::before {
	content: "";
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background:
		radial-gradient(circle at 50% 50%, #09090b 0 4px, transparent 5px),
		radial-gradient(circle at 50% 50%, var(--bw-lime) 0 9px, transparent 10px),
		var(--bw-lime);
	box-shadow: inset 0 0 0 3px #09090b, 0 0 0 1px var(--bw-lime);
	flex-shrink: 0;
}
.site-header .wp-block-navigation a { color: var(--wp--preset--color--muted); text-decoration: none; transition: color 0.2s; }
.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--contrast); }
.site-header .wp-block-navigation__responsive-container.is-menu-open { background: #09090b; }

.is-style-ghost .wp-block-button__link,
.btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--bw-line);
}
.btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.06); color: var(--wp--preset--color--contrast); }
.btn-link .wp-block-button__link { background: transparent; color: var(--wp--preset--color--muted); padding-left: 0.5rem; padding-right: 0.5rem; }
.btn-link .wp-block-button__link:hover { background: transparent; color: var(--wp--preset--color--contrast); }
.btn-small .wp-block-button__link { padding: 0.5rem 1rem; font-size: 0.875rem; border-radius: 8px; }
.wp-block-button__link { transition: background 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn-glow .wp-block-button__link { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
.btn-glow .wp-block-button__link:hover { box-shadow: 0 0 28px rgba(163, 230, 53, 0.35); transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-color: #09090b;
	background-image:
		linear-gradient(var(--bw-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--bw-line) 1px, transparent 1px);
	background-size: 56px 56px;
	background-position: center top;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 50% at 75% 85%, rgba(163, 230, 53, 0.16), transparent 70%),
		radial-gradient(40% 40% at 10% 10%, rgba(139, 92, 246, 0.14), transparent 70%),
		linear-gradient(180deg, transparent 60%, #09090b 100%);
}
.hero::after {
	content: "";
	position: absolute;
	right: -10%;
	bottom: -30%;
	width: 60vw;
	height: 60vw;
	max-width: 720px;
	max-height: 720px;
	z-index: -1;
	background: repeating-linear-gradient(100deg, rgba(163, 230, 53, 0.12) 0 2px, transparent 2px 18px);
	mask-image: radial-gradient(closest-side, #000, transparent);
	-webkit-mask-image: radial-gradient(closest-side, #000, transparent);
	animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-40px, -30px) rotate(4deg); } }

.badge-pill {
	display: inline-block;
	width: fit-content;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--bw-lime-line);
	background: var(--bw-lime-soft);
	color: var(--bw-lime);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.badge-pill.is-violet { border-color: rgba(167, 139, 250, 0.35); background: var(--bw-violet-soft); color: #c4b5fd; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 62ch; color: var(--wp--preset--color--muted); font-size: 1.125rem; }
.text-lime { color: var(--bw-lime); }

/* ===== Stats ===== */
.stats-strip { border-top: 1px solid var(--bw-line); border-bottom: 1px solid var(--bw-line); }
.stat .stat-value {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 800;
	color: var(--bw-lime);
	margin: 0;
	line-height: 1.1;
}
.stat .stat-label { color: var(--wp--preset--color--muted); font-size: 0.9rem; margin-top: 0.4rem; }
@media (min-width: 782px) {
	.stats-strip .wp-block-column + .wp-block-column { border-left: 1px solid var(--bw-line); padding-left: 2rem; }
}

/* ===== Sections ===== */
.section { padding-top: clamp(4rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.section-alt { background: #111113; border-top: 1px solid var(--bw-line); border-bottom: 1px solid var(--bw-line); }
.eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bw-lime);
	font-weight: 600;
}
.section-intro { color: var(--wp--preset--color--muted); max-width: 62ch; font-size: 1.075rem; }
.has-text-align-center.section-intro { margin-left: auto; margin-right: auto; }
.muted { color: var(--wp--preset--color--muted); }
.fine-print { color: #71717a; font-size: 0.85rem; }

/* ===== Cards ===== */
.card {
	background: var(--bw-glass);
	border: 1px solid var(--bw-line);
	border-radius: 16px;
	padding: 1.75rem;
	height: 100%;
}
.card h3 { margin-top: 0; }
.card p { color: var(--wp--preset--color--muted); }
.card-solid { background: #18181b; }
.hover-lift { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.hover-lift:hover {
	transform: translateY(-4px);
	border-color: var(--bw-lime-line);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(163, 230, 53, 0.1);
}

.step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 10px;
	background: var(--bw-lime);
	color: #09090b;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	margin: 0;
}
.net-tag {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	color: #c4b5fd;
	margin: 0;
}

.check-list { list-style: none; padding-left: 0; margin: 0; }
.check-list li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.65rem;
	color: #d4d4d8;
}
.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 1rem;
	height: 0.55rem;
	border-left: 2px solid var(--bw-lime);
	border-bottom: 2px solid var(--bw-lime);
	transform: rotate(-45deg) translateY(-2px);
}

/* ===== Chips ===== */
.chip-row { gap: 0.5rem !important; }
.chip {
	margin: 0 !important;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--bw-line);
	background: rgba(255, 255, 255, 0.04);
	color: #d4d4d8;
	font-size: 0.875rem;
	transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--bw-lime-line); color: var(--bw-lime); }
.chip.is-accent { background: var(--bw-lime-soft); border-color: var(--bw-lime-line); color: var(--bw-lime); }

/* ===== Timeline steps ===== */
.timeline { counter-reset: none; }
.timeline-step {
	border-left: 2px solid var(--bw-line);
	padding: 0.25rem 0 0.25rem 1.75rem;
	position: relative;
	transition: border-color 0.3s;
}
.timeline-step::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 0.55rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #09090b;
	border: 2px solid var(--bw-lime);
}
.timeline-step:hover { border-left-color: var(--bw-lime); }
.timeline-step h3 { margin-top: 0.25rem; margin-bottom: 0.35rem; }
.timeline-step p:last-child { color: var(--wp--preset--color--muted); margin-top: 0; }

/* ===== Voice panel ===== */
.voice-panel {
	border-radius: 20px;
	border: 1px solid rgba(167, 139, 250, 0.25);
	background:
		radial-gradient(80% 100% at 100% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
		#111113;
	padding: clamp(1.75rem, 4vw, 3rem);
}
.prompt-box {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85rem;
	line-height: 1.7;
	color: #d4d4d8;
	background: #09090b;
	border: 1px dashed var(--bw-lime-line);
	border-radius: 12px;
	padding: 1.25rem;
}

/* ===== Pricing ===== */
.price-card { position: relative; }
.price-card.is-featured {
	border-color: var(--bw-lime-line);
	background:
		radial-gradient(90% 60% at 50% 0%, rgba(163, 230, 53, 0.12), transparent 70%),
		#18181b;
	box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.15), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.price {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.5rem, 5vw, 3.25rem);
	font-weight: 800;
	line-height: 1;
	margin: 0.25rem 0 0;
	color: var(--wp--preset--color--contrast);
}
.price-sub { color: var(--wp--preset--color--muted); font-size: 0.9rem; }
.best-value {
	display: inline-block;
	width: fit-content;
	padding: 0.2rem 0.6rem;
	border-radius: 6px;
	background: var(--bw-lime);
	color: #09090b;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0;
}

/* ===== CTA band ===== */
.cta-band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(50% 120% at 50% 100%, rgba(163, 230, 53, 0.22), transparent 70%),
		radial-gradient(1px 1px at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0) 0 0 / 22px 22px;
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--bw-line); }
.site-footer .footer-heading {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	color: #71717a;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}
.footer-links { list-style: none; padding-left: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--wp--preset--color--muted); text-decoration: none; font-size: 0.925rem; }
.footer-links a:hover { color: var(--bw-lime); }
.footer-legal { border-top: 1px solid var(--bw-line); color: #71717a; font-size: 0.8rem; }

/* ===== Page title ===== */
.page-hero {
	background-color: #09090b;
	background-image:
		radial-gradient(50% 120% at 85% 120%, rgba(163, 230, 53, 0.14), transparent 70%),
		linear-gradient(var(--bw-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--bw-line) 1px, transparent 1px);
	background-size: auto, 56px 56px, 56px 56px;
	border-bottom: 1px solid var(--bw-line);
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { border-left: 3px solid var(--bw-lime); padding-left: 1.25rem; }

/* ===== Equal cards ===== */
.equal-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.equal-cards .cta-bottom {
	margin-top: auto;
	justify-content: center;
}
.equal-cards .cta-bottom .wp-block-button { width: 100%; }
.equal-cards .cta-bottom .wp-block-button__link { width: 100%; }
@media (max-width: 781px) {
	.equal-cards > .wp-block-column { flex-basis: 100% !important; }
}

/* ===== Motion ===== */
.fade-up {
	opacity: 0;
	transform: translateY(24px);
	animation: fadeUp 0.7s ease forwards;
}
.fade-up.delay-1 { animation-delay: 0.12s; }
.fade-up.delay-2 { animation-delay: 0.24s; }
.fade-up.delay-3 { animation-delay: 0.36s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.animate-on-scroll {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.stagger-children > * {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.is-visible .stagger-children > *,
.stagger-children.is-visible > * { opacity: 1; transform: none; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.4s; }

.pulse-dot { position: relative; padding-left: 1rem; }
.pulse-dot::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -3.5px;
	border-radius: 50%;
	background: var(--bw-lime);
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.6); }
	50% { box-shadow: 0 0 0 6px rgba(163, 230, 53, 0); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.fade-up,
	.animate-on-scroll,
	.stagger-children > * {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* === Editor: keep animated content visible while editing === */
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > * {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
	transition: none !important;
}
.editor-styles-wrapper .site-header { position: relative; top: 0; }
