/*
Theme Name: GTM Blog
Theme URI: https://gtmhq.io
Author: GTM Team
Author URI: https://gtmhq.io
Description: A fast, SEO-optimized WordPress block theme for blogging. Dual-personality brand — dark/space homepage with editorial blog posts. Features: 3-column article layout, reading progress bar, TOC sidebar, affiliate widgets, dark mode, schema markup, Open Graph, breadcrumbs, and full Core Web Vitals optimization.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gtm
Tags: blog, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, dark-mode, wide-blocks, block-styles, accessibility-ready, responsive-layout
*/

/* ==========================================================================
   CSS Custom Properties — Brand Tokens
   ========================================================================== */
:root,
html[data-theme="light"] {
	/* Brand Colors */
	--wp--preset--color--base:          #FFFFFF;
	--wp--preset--color--contrast:      #111111;
	--wp--preset--color--surface:       #F8F9FA;
	--wp--preset--color--primary:       #FF5C35;
	--wp--preset--color--primary-dark:  #E04A28;
	--wp--preset--color--primary-light: #FF8A6E;
	--wp--preset--color--secondary:     #00FF94;
	--wp--preset--color--tertiary:      #00C2FF;
	--wp--preset--color--void:          #050505;
	--wp--preset--color--navy:          #0A0F1E;
	--wp--preset--color--dark-surface:  #1F252B;
	--wp--preset--color--mid-dark:      #121619;
	--wp--preset--color--muted:         #888888;
	--wp--preset--color--border:        #E5E5E5;

	/* Semantic aliases */
	--c-body-text:   #4A4A4A;
	--c-primary-a10: rgba(255, 92, 53, 0.08);
	--c-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
	--c-card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);

	/* Layout */
	--container-max:    1280px;
	--container-pad:    clamp(16px, 5vw, 48px);
	--header-h:         70px;
}

html[data-theme="dark"],
html.dark-mode {
	--wp--preset--color--base:          #121619;
	--wp--preset--color--contrast:      #F1F5F9;
	--wp--preset--color--surface:       #1F252B;
	--wp--preset--color--primary:       #FF8A6E;
	--wp--preset--color--primary-dark:  #FF5C35;
	--wp--preset--color--primary-light: #FFAA90;
	--wp--preset--color--muted:         #94A3B8;
	--wp--preset--color--border:        rgba(255, 255, 255, 0.08);

	--c-body-text:   #CBD5E1;
	--c-primary-a10: rgba(255, 138, 110, 0.1);
	--c-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
	--c-card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
	color: var(--wp--preset--color--contrast);
	margin-top: 0;
}

p, blockquote, figcaption, li {
	text-wrap: pretty;
}

img, video, svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--wp--preset--color--primary);
	transition: color 0.2s ease;
}

/* ==========================================================================
   Container — Universal Max-Width Wrapper
   ========================================================================== */
.container,
.post-hero__inner,
.archive-hero__inner,
.site-footer__container,
.single-post-layout-wrapper > .single-post-layout,
.search-results-wrapper {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
#reading-progress-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	z-index: 99999;
	pointer-events: none;
}

#reading-progress {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark));
	transition: width 0.1s ease-out;
}

/* ==========================================================================
   Site Header — Sticky Glassmorphism
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.90);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .site-header {
	background: rgba(18, 22, 25, 0.90);
	border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .site-header.is-scrolled {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/*
 * .site-header__inner  —  the 3-column flex row inside the sticky bar.
 *
 * LEFT  : .site-header__brand  (logo + site name, no shrink)
 * CENTER: .primary-navigation  (nav links, flex:1, centred)
 * RIGHT : .wp-block-html       (search + subscribe + dark toggle, no shrink)
 *
 * max-width + horizontal padding match every other page section so that
 * the logo/nav/actions are always pixel-aligned with the content below.
 */
.site-header__inner {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-pad) !important;
	padding-right: var(--container-pad) !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	box-sizing: border-box;
	height: var(--header-h);
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 20px;
}

/* Suppress WP-generated vertical padding on nested block groups */
.site-header .wp-block-group {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* --- LEFT: Brand (logo + site name) --- */
.site-header__brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-header__brand .wp-block-site-logo img {
	max-height: 36px;
	width: auto;
	display: block;
}

.site-header__brand .wp-block-site-title {
	margin: 0;
	font-size: 1.15rem !important;
	line-height: 1;
	white-space: nowrap;
}

.site-header__brand .wp-block-site-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.site-header__brand .wp-block-site-title a:hover {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Primary Navigation — CENTER column (wp_nav_menu output)
   ========================================================================== */

/* Nav pattern renders as .wp-block-html; flex-grow it to fill center */
.site-header__inner > .wp-block-html:has(.primary-navigation) {
	flex: 1 1 0%;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.primary-navigation {
	display: flex;
	align-items: center;
}

.primary-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
}

.primary-nav__list > li {
	position: relative;
}

.primary-nav__list > li > a {
	display: block;
	padding: 6px 12px;
	color: var(--c-body-text);
	font-weight: 500;
	font-size: 0.925rem;
	border-radius: 8px;
	transition: all 0.15s ease;
	text-decoration: none;
	white-space: nowrap;
}

.primary-nav__list > li > a:hover,
.primary-nav__list > li.current-menu-item > a,
.primary-nav__list > li.current-menu-ancestor > a,
.primary-nav__list > li.current-page-ancestor > a {
	color: var(--wp--preset--color--primary);
	background: var(--c-primary-a10);
}

/* Sub-menus */
.primary-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	z-index: 200;
}

.primary-nav__list > li:hover > .sub-menu,
.primary-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-nav__list .sub-menu a {
	display: block;
	padding: 8px 12px;
	color: var(--c-body-text);
	font-size: 0.9rem;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.15s ease;
}

.primary-nav__list .sub-menu a:hover {
	color: var(--wp--preset--color--primary);
	background: var(--c-primary-a10);
}

html[data-theme="dark"] .primary-nav__list .sub-menu,
html.dark-mode .primary-nav__list .sub-menu {
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
	.primary-navigation { display: none; }
}

/* ==========================================================================
   Mobile Menu — hamburger toggle + slide-down panel
   ========================================================================== */

/* Hide toggle on desktop */
.mobile-menu-toggle {
	display: none;
}

@media (max-width: 900px) {
	/* Show toggle on mobile */
	.mobile-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: none;
		border-radius: 8px;
		background: transparent;
		color: var(--wp--preset--color--contrast);
		cursor: pointer;
		flex-shrink: 0;
		transition: background 0.15s ease, color 0.15s ease;
	}

	.mobile-menu-toggle:hover,
	.mobile-menu-toggle:focus-visible {
		background: rgba(128, 128, 128, 0.15);
		outline: 2px solid var(--wp--preset--color--primary);
		outline-offset: 2px;
	}

	/* Icon visibility — show hamburger, hide X by default */
	.mobile-menu-toggle__icon--close { display: none; }

	/* When expanded: show X, hide hamburger */
	.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon--open  { display: none; }
	.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon--close { display: block; }
}

/* Mobile menu panel — always dark overlay regardless of site theme */
.mobile-menu {
	display: none;
	position: fixed;
	top: var(--header-h, 70px);
	left: 0;
	right: 0;
	z-index: 999;
	background: #0A0F1E; /* --navy — always dark */
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	overflow-y: auto;
	max-height: calc(100vh - var(--header-h, 70px));
	padding: 16px 0 32px;
}

.mobile-menu.is-open {
	display: block;
}

/* Prevent body scroll when menu is open */
body.menu-open {
	overflow: hidden;
}

/* Mobile nav list */
.mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav__list li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav__list li:first-child {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav__list a {
	display: block;
	padding: 14px 24px;
	font-size: 1rem;
	font-weight: 500;
	color: #F1F5F9; /* always light — readable on dark navy */
	text-decoration: none;
	transition: color 0.15s ease, background 0.15s ease;
}

.mobile-nav__list a:hover,
.mobile-nav__list a:focus-visible {
	color: var(--wp--preset--color--primary);
	background: rgba(255, 255, 255, 0.05);
}

.mobile-nav__list .current-menu-item > a,
.mobile-nav__list .current-page-ancestor > a {
	color: var(--wp--preset--color--primary);
}

/* Sub-menu indented */
.mobile-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	background: rgba(0, 0, 0, 0.2);
}

.mobile-nav__list .sub-menu a {
	padding-left: 40px;
	font-size: 0.9rem;
	font-weight: 400;
	color: #94A3B8;
}

.mobile-nav__list .sub-menu a:hover {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Newsletter Subscribe Modal
   ========================================================================== */
.newsletter-modal {
	/* Backdrop only — full-viewport overlay */
	position: fixed;
	inset: 0;
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.newsletter-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.newsletter-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	cursor: pointer;
}

.newsletter-modal__panel {
	/* Independently anchored to viewport center — not relative to DOM parent */
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, calc(-50% + 16px)) scale(0.97);
	z-index: 9999;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 24px;
	padding: 48px 40px;
	max-width: 460px;
	width: calc(100% - 32px);
	text-align: center;
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease;
}

.newsletter-modal.is-open .newsletter-modal__panel {
	transform: translate(-50%, -50%) scale(1);
}

.newsletter-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--muted);
	transition: all 0.15s ease;
}

.newsletter-modal__close:hover {
	background: var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast);
}

.newsletter-modal__icon {
	width: 56px;
	height: 56px;
	background: var(--c-primary-a10);
	border: 1px solid rgba(255, 92, 53, 0.2);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	color: var(--wp--preset--color--primary);
}

.newsletter-modal__title {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 10px;
}

.newsletter-modal__desc {
	font-size: 0.95rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.65;
	margin-bottom: 28px;
}

.newsletter-modal__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.newsletter-modal__names {
	display: flex;
	gap: 10px;
}

.newsletter-modal__names .newsletter-modal__input {
	flex: 1;
	min-width: 0;
}

.newsletter-modal__input {
	width: 100%;
	padding: 12px 16px;
	font-size: 0.95rem;
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	outline: none;
	transition: border-color 0.15s ease;
	box-sizing: border-box;
}

.newsletter-modal__input:focus {
	border-color: var(--wp--preset--color--primary);
}

.newsletter-modal__input::placeholder {
	color: var(--wp--preset--color--muted);
}

.newsletter-modal__submit {
	width: 100%;
	padding: 13px 24px;
	font-size: 1rem;
	font-weight: 700;
	justify-content: center;
}

.newsletter-modal__note {
	font-size: 0.78rem;
	color: var(--wp--preset--color--muted);
	margin-top: 14px;
	margin-bottom: 0 !important;
}

body.modal-open { overflow: hidden; }

@media (max-width: 520px) {
	.newsletter-modal__panel {
		padding: 36px 20px;
		border-radius: 16px;
		width: calc(100% - 24px);
	}
}

/* ==========================================================================
   Header Actions — RIGHT column (search + subscribe + dark mode toggle)
   ========================================================================== */

/* The wp:html block wrapping header-actions.php outputs .wp-block-html.
   Give it flex:0 so it never grows/shrinks and stays pinned to the right. */
.site-header__inner > .wp-block-html {
	flex: 0 0 auto;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.header-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	color: var(--c-body-text);
	transition: all 0.15s ease;
	padding: 0;
}

.header-search-toggle:hover {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast);
}

.header-subscribe-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 18px;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.header-subscribe-btn:hover {
	background: var(--wp--preset--color--primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 92, 53, 0.3);
}

/* Search panel dropdown */
.header-search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--wp--preset--color--base);
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 16px var(--container-pad);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-search-panel[aria-hidden="true"] {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
}

.header-search-panel[aria-hidden="false"] {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.header-search-panel .search-form {
	max-width: 600px;
	margin: 0 auto;
}

html[data-theme="dark"] .header-search-panel {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Dark Mode Toggle
   ========================================================================== */
.dark-mode-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	color: var(--c-body-text);
	transition: all 0.15s ease;
}

.dark-mode-toggle:hover {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
}

.dark-mode-toggle .icon-sun  { display: none; }
.dark-mode-toggle .icon-moon { display: block; }

html[data-theme="dark"] .dark-mode-toggle .icon-sun,
html.dark-mode .dark-mode-toggle .icon-sun   { display: block; }
html[data-theme="dark"] .dark-mode-toggle .icon-moon,
html.dark-mode .dark-mode-toggle .icon-moon  { display: none; }

/* ==========================================================================
   Button System
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 999px;
}

.btn--primary {
	background: var(--wp--preset--color--primary);
	color: #fff;
	padding: 12px 24px;
	font-size: 0.9rem;
}

.btn--primary:hover {
	background: var(--wp--preset--color--primary-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(255, 92, 53, 0.3);
}

.btn--sm {
	padding: 9px 18px;
	font-size: 0.82rem;
}

.btn--outline {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1.5px solid var(--wp--preset--color--border);
	padding: 11px 24px;
	font-size: 0.9rem;
}

.btn--outline:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Post Hero — Dark Single Post Header
   ========================================================================== */
.post-hero {
	background: var(--wp--preset--color--mid-dark);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.post-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 70% 30%, rgba(255, 92, 53, 0.10), transparent 50%),
		radial-gradient(circle at 20% 80%, rgba(0, 194, 255, 0.05), transparent 50%);
	pointer-events: none;
}

.post-hero__inner {
	padding-top: clamp(40px, 6vw, 72px);
	padding-bottom: clamp(40px, 6vw, 72px);
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 56px;
	align-items: center;
	position: relative;
	z-index: 1;
}

/* Categories */
.post-hero__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.category-badge,
.category-badge--dark {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.15s ease;
}

.category-badge {
	background: var(--c-primary-a10);
	color: var(--wp--preset--color--primary);
	border: 1px solid rgba(255, 92, 53, 0.2);
}

.category-badge--dark {
	background: rgba(255, 92, 53, 0.12);
	color: var(--wp--preset--color--primary-light);
	border: 1px solid rgba(255, 92, 53, 0.25);
}

.category-badge:hover,
.category-badge--dark:hover {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* Hero Title */
.post-hero__title {
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: #fff;
	margin-bottom: 24px;
}

/* Meta row */
.post-hero__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-hero__author-link {
	display: block;
	flex-shrink: 0;
	text-decoration: none;
}

.post-hero__author-link img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 92, 53, 0.5);
}

.post-hero__meta-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.post-hero__author-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}

.post-hero__author-name:hover {
	color: var(--wp--preset--color--primary-light);
}

.post-hero__meta-details {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	color: rgba(255,255,255,0.55);
}

/* Hero image */
.post-hero__image-wrap {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-hero__image {
	width: 100%;
	height: auto;
	display: block;
}

.post-hero__image-badge {
	position: absolute;
	bottom: 14px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(8px);
	color: var(--wp--preset--color--secondary);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid rgba(0, 255, 148, 0.25);
}

.post-hero__image-badge svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	fill: var(--wp--preset--color--secondary);
	stroke: none;
}

@media (max-width: 1024px) {
	.post-hero__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.post-hero__image-wrap {
		max-width: 560px;
	}
}

@media (max-width: 640px) {
	.post-hero__image-wrap {
		max-width: 100%;
		border-radius: 12px;
	}
}

/* ==========================================================================
   Archive Hero — Dark Gradient (blog listing, category, tag)
   ========================================================================== */
.archive-hero {
	background: linear-gradient(135deg, var(--wp--preset--color--void) 0%, var(--wp--preset--color--navy) 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.archive-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 75% 40%, rgba(0, 194, 255, 0.08), transparent 55%),
		radial-gradient(circle at 20% 70%, rgba(0, 255, 148, 0.04), transparent 50%);
	pointer-events: none;
}

.archive-hero__inner {
	padding-top: clamp(56px, 8vw, 96px);
	padding-bottom: clamp(48px, 6vw, 72px);
	position: relative;
	z-index: 1;
}

.archive-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "JetBrains Mono", "SF Mono", Monaco, monospace;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--wp--preset--color--secondary);
	background: rgba(0, 255, 148, 0.08);
	border: 1px solid rgba(0, 255, 148, 0.2);
	padding: 5px 12px;
	border-radius: 6px;
	margin-bottom: 20px;
}

.archive-hero__eyebrow-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary);
	flex-shrink: 0;
	animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.archive-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin-bottom: 14px;
	background: linear-gradient(to right, #FFFFFF 0%, rgba(255,255,255,0.75) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.archive-hero__subtitle {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.6);
	max-width: 580px;
	margin-bottom: 36px;
	line-height: 1.65;
}

/* Category filter pills */
.archive-hero__filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.filter-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 18px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.65);
	background: transparent;
	transition: all 0.2s ease;
}

.filter-pill:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.filter-pill--active {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}

.filter-pill--active:hover {
	background: var(--wp--preset--color--primary-dark);
	border-color: var(--wp--preset--color--primary-dark);
}

/* ==========================================================================
   3-Column Single Post Layout
   ========================================================================== */
.single-post-layout-wrapper {
	background: var(--wp--preset--color--base);
}

.single-post-layout {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr) 260px;
	gap: 60px;
	padding-top: 48px;
	padding-bottom: 64px;
	align-items: start;
}

.single-post-layout__toc {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	max-height: calc(100vh - var(--header-h) - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--border) transparent;
}

.single-post-layout__toc::-webkit-scrollbar { width: 3px; }
.single-post-layout__toc::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--border);
	border-radius: 4px;
}

.single-post-layout__content {
	min-width: 0;
}

.single-post-layout__affiliate {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

/* no-toc: hide left column */
.single-post-layout.no-toc {
	grid-template-columns: minmax(0, 1fr) 260px;
}

@media (max-width: 1200px) {
	.single-post-layout {
		grid-template-columns: 180px minmax(0, 1fr) 240px;
		gap: 40px;
	}
}

@media (max-width: 1024px) {
	.single-post-layout {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 32px;
		padding-bottom: 48px;
	}

	.single-post-layout__toc,
	.single-post-layout__affiliate {
		position: static;
		top: auto;
		max-height: none;
	}

	.single-post-layout__affiliate { order: 3; }
}

@media (max-width: 768px) {
	.single-post-layout__toc { display: none; }
	.single-post-layout.no-toc { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Table of Contents (TOC) Sidebar
   ========================================================================== */
.toc-sidebar__inner {
	padding: 20px;
	background: var(--wp--preset--color--surface);
	border-radius: 14px;
	border: 1px solid var(--wp--preset--color--border);
}

html[data-theme="dark"] .toc-sidebar__inner {
	background: rgba(255, 255, 255, 0.04);
}

.toc-sidebar__title {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
	margin: 0 0 14px;
}

.toc-sidebar__title svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

.toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-left: 2px solid var(--wp--preset--color--border);
}

.toc-item {
	margin: 0;
	padding: 0;
}

.toc-link {
	display: block;
	padding: 6px 0 6px 14px;
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	line-height: 1.4;
	border-left: 2px solid transparent;
	margin-left: -2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.toc-link:hover {
	color: var(--wp--preset--color--contrast);
}

.toc-link.is-active {
	color: var(--wp--preset--color--primary);
	border-left-color: var(--wp--preset--color--primary);
	font-weight: 600;
}

.toc-item--h3 .toc-link {
	padding-left: 26px;
	font-size: 0.78rem;
}

/* ==========================================================================
   Article Body Typography
   ========================================================================== */
.wp-block-post-content {
	font-size: 1.075rem;
	line-height: 1.8;
	color: var(--c-body-text);
}

.wp-block-post-content > * + * {
	margin-top: 0;
}

.wp-block-post-content h2 {
	font-size: clamp(1.4rem, 2.5vw, 1.875rem);
	margin-top: 2.75rem;
	margin-bottom: 1rem;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.wp-block-post-content h3 {
	font-size: clamp(1.15rem, 2vw, 1.375rem);
	margin-top: 2.25rem;
	margin-bottom: 0.75rem;
}

.wp-block-post-content h4 {
	font-size: 1.1rem;
	margin-top: 1.75rem;
	margin-bottom: 0.5rem;
}

.wp-block-post-content p { margin-bottom: 1.5rem; }

.wp-block-post-content a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

.wp-block-post-content a:hover {
	color: var(--wp--preset--color--primary-dark);
}

.wp-block-post-content ul,
.wp-block-post-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.wp-block-post-content li { margin-bottom: 6px; }

.wp-block-post-content strong { font-weight: 700; }

.wp-block-post-content em { font-style: italic; }

/* Blockquote */
.wp-block-quote {
	border-left: 4px solid var(--wp--preset--color--primary) !important;
	margin: 2rem 0;
	padding: 1.5rem 2rem;
	background: var(--wp--preset--color--surface);
	border-radius: 0 12px 12px 0;
}

.wp-block-quote p {
	font-size: 1.15rem;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	line-height: 1.5;
	margin-bottom: 0 !important;
	font-style: italic;
}

.wp-block-quote cite,
.wp-block-quote footer {
	display: block;
	margin-top: 10px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
	font-style: normal;
	font-weight: 600;
}

/* Code */
.wp-block-code {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	font-family: "JetBrains Mono", "SF Mono", Monaco, monospace;
	font-size: 0.88rem;
	padding: 1.25rem 1.5rem;
	overflow-x: auto;
}

html[data-theme="dark"] .wp-block-code {
	background: #0D1117;
	border-color: rgba(255, 255, 255, 0.08);
}

code {
	font-family: "JetBrains Mono", "SF Mono", Monaco, monospace;
	font-size: 0.875em;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	padding: 2px 6px;
	border-radius: 4px;
}

html[data-theme="dark"] code {
	background: rgba(255, 255, 255, 0.05);
}

/* Table */
.wp-block-post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	margin-bottom: 2rem;
}

.wp-block-post-content th {
	background: var(--wp--preset--color--surface);
	font-weight: 600;
	text-align: left;
	padding: 10px 14px;
	border-bottom: 2px solid var(--wp--preset--color--border);
}

.wp-block-post-content td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.wp-block-post-content tr:hover td {
	background: var(--wp--preset--color--surface);
}

/* ==========================================================================
   Post Meta Row
   ========================================================================== */
.post-meta {
	margin-bottom: 24px;
}

.post-meta__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.post-meta__category-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	background: var(--c-primary-a10);
	color: var(--wp--preset--color--primary);
	border: 1px solid rgba(255, 92, 53, 0.2);
	transition: all 0.15s ease;
}

.post-meta__category-badge:hover {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.post-meta__author-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.post-meta__author-link {
	display: block;
	flex-shrink: 0;
	text-decoration: none;
}

.post-meta__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--wp--preset--color--border);
	display: block;
}

.post-meta__author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.post-meta__author-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.post-meta__author-name:hover {
	color: var(--wp--preset--color--primary);
}

.post-meta__details {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
}

.post-meta__separator {
	opacity: 0.5;
}

.post-meta__date {
	color: var(--wp--preset--color--muted);
}

/* Reading time badge */
.reading-time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
}

.reading-time svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

/* ==========================================================================
   Post Cards Grid
   ========================================================================== */
.wp-block-post-template.post-cards-grid {
	gap: 28px;
}

/*
 * WordPress renders wp:post-template as a <ul> with <li> grid items.
 * The .post-card sits inside the <li>, so it needs height:100% to fill it.
 */
.wp-block-post-template.post-cards-grid > li {
	display: flex;
	flex-direction: column;
}

.post-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--c-card-shadow-hover);
	border-color: var(--wp--preset--color--primary);
}

.post-card .wp-block-post-featured-image img,
.post-card__image {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.post-card:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.post-card__body {
	padding: 22px 24px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Category label */
.post-card__category,
.wp-block-post-terms {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none;
	margin-bottom: 10px;
}

/* Post card title */
.post-card .wp-block-post-title,
.post-card .wp-block-post-title a,
.post-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	margin-bottom: 10px;
}

.post-card .wp-block-post-title a:hover,
.post-card__title a:hover {
	color: var(--wp--preset--color--primary);
}

/* Excerpt */
.post-card .wp-block-post-excerpt,
.post-card__excerpt {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
	/* flex-grow pushes the "Read Post" button down while clamping text to 3 lines */
	flex-grow: 1;
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* "Read Post" CTA button */
.post-card__read-more,
.post-card .wp-block-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 20px;
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 1.5px solid rgba(255, 92, 53, 0.3);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	align-self: flex-start;
	transition: all 0.2s ease;
	margin-bottom: 16px;
}

.post-card__read-more:hover,
.post-card .wp-block-read-more:hover {
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	border-color: var(--wp--preset--color--primary);
	transform: translateX(2px);
}

/* Card footer */
.post-card__footer,
.post-card .wp-block-post-date {
	font-size: 0.78rem;
	color: var(--wp--preset--color--muted);
}

.post-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--border);
}

.post-card__avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

/* Dark card variant (404 page) */
.post-card--dark {
	background: var(--wp--preset--color--dark-surface);
	border-color: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.post-card--dark .post-card__title a {
	color: #fff;
}

/* Grid layouts */
.post-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.post-cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
	.post-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.post-cards-grid { grid-template-columns: 1fr; }
	.post-cards-grid--2 { grid-template-columns: 1fr; }
}

/* View-all link */
.view-all-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	white-space: nowrap;
	transition: gap 0.2s ease;
}

.view-all-link:hover {
	gap: 10px;
}

/* ==========================================================================
   Affiliate Sidebar — Dark Tool Cards
   ========================================================================== */
.affiliate-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.affiliate-sidebar__title {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
	margin-bottom: 14px;
}

.affiliate-tools {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.affiliate-tool-card {
	background: #18181B;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	padding: 18px;
	color: #fff;
	position: relative;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

html[data-theme="light"] .affiliate-tool-card {
	background: var(--wp--preset--color--dark-surface);
}

.affiliate-tool-card:hover {
	border-color: rgba(255, 92, 53, 0.3);
}

.affiliate-tool-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.affiliate-tool-card__badge--recommended {
	background: rgba(255, 92, 53, 0.15);
	color: #FF8A6E;
	border: 1px solid rgba(255, 92, 53, 0.25);
}

.affiliate-tool-card__badge--best-value {
	background: rgba(0, 194, 255, 0.1);
	color: #00C2FF;
	border: 1px solid rgba(0, 194, 255, 0.2);
}

.affiliate-tool-card__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.affiliate-tool-card__icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}

.affiliate-tool-card__title-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.affiliate-tool-card__name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.affiliate-tool-card__price {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-light);
}

.affiliate-tool-card__desc {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.5;
	margin-bottom: 14px;
}

.affiliate-tool-card__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.affiliate-tool-card__cta:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}

.affiliate-tool-card__cta svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
	font-size: 0.82rem;
	margin-bottom: 18px;
}

.breadcrumbs__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.breadcrumbs__item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.breadcrumbs__item::after {
	content: '/';
	color: currentColor;
	opacity: 0.35;
	font-size: 0.78rem;
}

.breadcrumbs__item:last-child::after { display: none; }

.breadcrumbs__link {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.breadcrumbs__link:hover { color: var(--wp--preset--color--primary); }

.breadcrumbs__current {
	color: var(--wp--preset--color--muted);
	opacity: 0.65;
}

/* Dark context breadcrumbs */
.breadcrumbs--dark .breadcrumbs__link { color: rgba(255,255,255,0.5); }
.breadcrumbs--dark .breadcrumbs__link:hover { color: #fff; }
.breadcrumbs--dark .breadcrumbs__current { color: rgba(255,255,255,0.4); }

/* ==========================================================================
   Social Sharing
   ========================================================================== */
.social-sharing {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 24px 0;
	border-top: 1px solid var(--wp--preset--color--border);
}

.social-sharing__label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.social-sharing__buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 9px;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	color: var(--c-body-text);
	transition: all 0.2s ease;
}

.share-btn:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	background: var(--c-primary-a10);
}

.share-btn svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.share-btn--twitter:hover  { color: #1DA1F2; border-color: #1DA1F2; background: rgba(29,161,242,0.06); }
.share-btn--linkedin:hover { color: #0A66C2; border-color: #0A66C2; background: rgba(10,102,194,0.06); }
.share-btn--facebook:hover { color: #1877F2; border-color: #1877F2; background: rgba(24,119,242,0.06); }
.share-btn--copy:hover     { color: var(--wp--preset--color--secondary); border-color: var(--wp--preset--color--secondary); background: rgba(0,255,148,0.06); }

/* ==========================================================================
   Related Posts
   ========================================================================== */
.related-posts__title {
	font-size: clamp(1.375rem, 2.5vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 28px;
}

.related-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.related-posts__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-section {
	background: linear-gradient(135deg, var(--wp--preset--color--void) 0%, var(--wp--preset--color--navy) 100%);
	position: relative;
	overflow: hidden;
}

.newsletter-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 60% 50%, rgba(0, 194, 255, 0.08), transparent 60%);
	pointer-events: none;
}

.newsletter-inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.newsletter-icon {
	width: 56px;
	height: 56px;
	background: rgba(255, 92, 53, 0.15);
	border: 1px solid rgba(255, 92, 53, 0.25);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	color: var(--wp--preset--color--primary);
}

.newsletter-title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: #fff;
	margin-bottom: 14px;
}

.newsletter-desc {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.6);
	max-width: 500px;
	margin: 0 auto 32px;
	line-height: 1.65;
}

.newsletter-form {
	max-width: 500px;
	margin: 0 auto;
}

.newsletter-form__names {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.newsletter-form__name-input {
	flex: 1;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 0.95rem;
	color: #fff;
	min-width: 0;
	transition: border-color 0.15s ease;
}

.newsletter-form__name-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter-form__name-input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.35);
}

.newsletter-form__group {
	display: flex;
	gap: 0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	overflow: hidden;
	padding: 5px;
}

.newsletter-form__input {
	flex: 1;
	background: transparent;
	border: none;
	padding: 10px 14px;
	font-size: 0.95rem;
	color: #fff;
	min-width: 0;
}

.newsletter-form__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter-form__input:focus { outline: none; }

.newsletter-form__submit {
	flex-shrink: 0;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 10px 22px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.newsletter-form__submit:hover {
	background: var(--wp--preset--color--primary-dark);
}

.newsletter-form__note {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.4);
	margin-top: 12px;
	text-align: center;
}

@media (max-width: 480px) {
	.newsletter-form__names,
	.newsletter-modal__names {
		flex-direction: column;
	}
}

/* Newsletter AJAX response messages */
.newsletter-response {
	margin-top: 12px;
	font-size: 0.875rem;
	border-radius: 6px;
	padding: 10px 14px;
	text-align: left;
}

.newsletter-response--success {
	color: var(--wp--preset--color--secondary);
	background: rgba(0, 255, 148, 0.08);
	border: 1px solid rgba(0, 255, 148, 0.2);
}

.newsletter-response--error {
	color: #ff6b6b;
	background: rgba(255, 107, 107, 0.08);
	border: 1px solid rgba(255, 107, 107, 0.2);
}

/* Honeypot — visually hidden, accessible to screen readers via aria-hidden */
.newsletter-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	tab-size: 0;
}

/* ==========================================================================
   Search Form
   ========================================================================== */
.search-form {
	position: relative;
}

.search-form__wrapper {
	display: flex;
	align-items: center;
	background: var(--wp--preset--color--base);
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.search-form__wrapper:focus-within {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(255, 92, 53, 0.1);
}

.search-form__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--wp--preset--color--muted);
	margin-left: 14px;
}

.search-field {
	flex: 1;
	padding: 12px 14px;
	border: none;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: 0.95rem;
}

.search-field:focus { outline: none; }

.search-field::placeholder { color: var(--wp--preset--color--muted); }

.search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.search-submit:hover { background: var(--wp--preset--color--primary-dark); }

/* Search results header */
.search-results-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 40px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.search-results-count {
	font-size: 1.05rem;
	color: var(--c-body-text);
	margin: 0;
}

.search-results-count strong { color: var(--wp--preset--color--contrast); }
.search-results-count em { color: var(--wp--preset--color--primary); font-style: normal; }

.search-results-new-search {
	width: 100%;
	max-width: 400px;
}

@media (max-width: 640px) {
	.search-results-header { flex-direction: column; }
	.search-results-new-search { max-width: 100%; }
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
	min-height: 80vh;
	display: flex;
	align-items: center;
}

.error-404__inner {
	text-align: center;
	padding: clamp(48px, 8vw, 96px) 0;
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
}

.error-404__number {
	font-size: clamp(5rem, 15vw, 9rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
	background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: block;
	margin-bottom: 16px;
}

.error-404__heading {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	color: #fff;
	margin-bottom: 14px;
}

.error-404__message {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.55);
	max-width: 480px;
	margin: 0 auto 36px;
	line-height: 1.65;
}

.error-404__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.error-404__search {
	max-width: 480px;
	margin: 0 auto 48px;
}

.error-404__search-label {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 12px;
}

.error-404__search .search-form__wrapper {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.error-404__search .search-field { color: #fff; }

.error-404__popular {
	text-align: left;
	margin-top: 56px;
}

.error-404__popular-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 24px;
	text-align: center;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
	background: var(--wp--preset--color--mid-dark);
	color: rgba(255, 255, 255, 0.65);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-footer a:hover { color: var(--wp--preset--color--primary); }

.site-footer__main {
	padding-top: clamp(48px, 7vw, 80px);
	padding-bottom: clamp(32px, 5vw, 56px);
}

.site-footer__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

/* Logo icon + site title inline row */
.site-footer__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
}

.site-footer__brand-link:hover {
	color: #fff;
	opacity: 0.85;
}

.site-footer__logo-icon {
	height: 36px;
	width: 36px;
	object-fit: contain;
	flex-shrink: 0;
	opacity: 0.9;
}

.site-footer__site-name {
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.02em;
}

.site-footer__tagline {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.45);
	line-height: 1.65;
	max-width: 360px;
	margin: 0;
}

.site-footer__social {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 9px;
	color: rgba(255, 255, 255, 0.55) !important;
	transition: all 0.2s ease;
}

.social-link:hover {
	background: rgba(255, 92, 53, 0.15);
	border-color: rgba(255, 92, 53, 0.3);
	color: var(--wp--preset--color--primary) !important;
}

/* Footer legal menu */
.site-footer__legal {
	margin-top: 4px;
}

.site-footer__legal-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px 16px;
}

.site-footer__legal-list li { margin: 0; }

.site-footer__legal-list li a,
.site-footer__legal-list a {
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.3);
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: color 0.15s ease;
}

.site-footer__legal-list li a:hover,
.site-footer__legal-list a:hover {
	color: rgba(255, 255, 255, 0.65);
}

/* Footer bottom bar */
.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 20px 0;
}

.site-footer__bottom .site-footer__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	grid-template-columns: none;
}

.site-footer__copyright {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.3);
	margin: 0;
}

.site-footer__built-with {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.3);
	margin: 0;
}

.site-footer__built-with a {
	color: rgba(255, 255, 255, 0.4) !important;
}

.site-footer__built-with a:hover {
	color: var(--wp--preset--color--primary) !important;
}

/* Responsive footer */
@media (max-width: 640px) {
	.site-footer__bottom .site-footer__container {
		flex-direction: column;
		text-align: center;
	}
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.wp-block-query-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	margin-top: 56px;
	flex-wrap: wrap;
}

.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-next a,
.wp-block-query-pagination-previous a,
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.875rem;
	transition: all 0.2s ease;
}

.wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination-next a:hover,
.wp-block-query-pagination-previous a:hover,
.page-numbers:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.page-numbers.current {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}

/* ==========================================================================
   Custom Block Styles
   ========================================================================== */
.is-style-card {
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--border);
}

.is-style-bordered {
	border-left: 4px solid var(--wp--preset--color--primary);
	padding-left: 1.5rem;
}

.is-style-checkmark ul {
	list-style: none;
	padding-left: 0;
}

.is-style-checkmark li::before {
	content: '✓';
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	margin-right: 8px;
}

.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
}

.is-style-rounded img { border-radius: 999px; }

.wp-block-separator {
	border-color: var(--wp--preset--color--border);
	opacity: 1;
}

.wp-block-image img { border-radius: 8px; }

.wp-block-image figcaption {
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
	text-align: center;
	margin-top: 8px;
}

/* Author bio block */
.author-bio-block.wp-block-post-author {
	display: flex;
	gap: 20px;
	padding: 28px;
	background: var(--wp--preset--color--surface);
	border-radius: 14px;
	border: 1px solid var(--wp--preset--color--border);
}

.wp-block-post-author__avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--wp--preset--color--border);
}

.wp-block-post-author__name {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 4px;
}

.wp-block-post-author__bio {
	font-size: 0.9rem;
	color: var(--wp--preset--color--muted);
	margin: 0;
	line-height: 1.6;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-gradient {
	background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.text-neon-green { color: var(--wp--preset--color--secondary); }
.text-neon-blue  { color: var(--wp--preset--color--tertiary); }

.font-mono {
	font-family: "JetBrains Mono", "SF Mono", Monaco, monospace;
	letter-spacing: -0.01em;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	padding: 12px 20px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	z-index: 10000;
	text-decoration: none;
	font-weight: 600;
	border-radius: 0 0 8px 0;
	transition: top 0.1s ease;
}

.skip-link:focus { top: 0; }

:where(.wp-site-blocks *:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ==========================================================================
   Smooth Scroll + Selection
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
		scroll-padding-top: calc(var(--header-h) + 24px);
	}
}

::selection {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* ==========================================================================
   Mobile & Responsive — Global
   ========================================================================== */
@media (max-width: 782px) {
	.site-header .wp-block-site-title { font-size: 1rem !important; }
}

@media (max-width: 640px) {
	.site-header__actions .header-subscribe-btn { display: none; }
}

/* ==========================================================================
   Homepage — Remove WordPress automatic block-gap margins between sections
   ========================================================================== */
body.home :where(.wp-site-blocks) > *,
body.home main.wp-block-group > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* ==========================================================================
   Homepage — Header adapts to dark/light mode
   ========================================================================== */
html[data-theme="dark"] body.home .site-header,
html.dark-mode body.home .site-header {
	background: rgba(10, 15, 30, 0.85) !important;
	border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* ==========================================================================
   Homepage — Hero Section
   ========================================================================== */
.home-hero {
	background: radial-gradient(circle at 50% 50%, #001e3d 0%, #0a0f1e 40%, #050505 100%);
	position: relative;
	overflow: hidden;
	min-height: calc(100vh - var(--header-h));
	display: flex;
	align-items: center;
}

.home-hero::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(circle, rgba(0, 194, 255, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

.home-hero__inner {
	padding-top: clamp(32px, 5vw, 60px);
	padding-bottom: clamp(32px, 5vw, 60px);
	width: 100%;
}

.home-hero__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 60px;
	align-items: center;
}

.home-hero__tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	background: rgba(0, 255, 148, 0.08);
	border: 1px solid rgba(0, 255, 148, 0.2);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 24px;
}

.home-hero__heading {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin-bottom: 24px;
	background: linear-gradient(to bottom, #ffffff 0%, #94a3b8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.home-hero__sub {
	font-size: 1.2rem;
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
	max-width: 520px;
	margin-bottom: 40px;
}

.home-hero__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 48px;
}

.home-hero__btn-primary {
	display: inline-flex;
	align-items: center;
	padding: 14px 32px;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	transition: all 0.2s ease;
	box-shadow: 0 0 20px rgba(255, 92, 53, 0.3);
}

.home-hero__btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(255, 92, 53, 0.5);
	background: #ff7a5c;
}

.home-hero__btn-ghost {
	display: inline-flex;
	align-items: center;
	padding: 14px 32px;
	background: transparent;
	color: rgba(255, 255, 255, 0.7) !important;
	text-decoration: none !important;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.2s ease;
}

.home-hero__btn-ghost:hover {
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff !important;
	background: rgba(255, 255, 255, 0.05);
}

.home-hero__social-proof {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-hero__social-proof > span {
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}

.home-company-logos {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.home-company-logos span {
	font-size: 0.82rem;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--mono);
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.4);
}

/* ISO Card Stack */
.iso-container {
	position: relative;
	height: 500px;
	perspective: 2000px;
}

.iso-card {
	position: absolute;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 28px;
	width: 360px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(10px);
}

.iso-card:nth-child(1) {
	top: 0;
	left: 40px;
	z-index: 3;
	transform: rotateX(55deg) rotateZ(-45deg);
	border-top: 2px solid var(--wp--preset--color--secondary);
	animation: iso-float 6s ease-in-out infinite;
}

.iso-card:nth-child(2) {
	top: 100px;
	left: 100px;
	z-index: 2;
	opacity: 0.8;
	transform: rotateX(55deg) rotateZ(-45deg);
	animation: iso-float 6s ease-in-out infinite 2s;
}

.iso-card:nth-child(3) {
	top: 200px;
	left: 160px;
	z-index: 1;
	opacity: 0.6;
	transform: rotateX(55deg) rotateZ(-45deg);
	animation: iso-float 6s ease-in-out infinite 4s;
}

@keyframes iso-float {
	0%, 100% { transform: rotateX(55deg) rotateZ(-45deg) translateZ(0px); }
	50%       { transform: rotateX(55deg) rotateZ(-45deg) translateZ(20px); }
}

.iso-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.iso-card__label {
	font-size: 0.68rem;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	letter-spacing: 0.1em;
	padding: 3px 10px;
	border-radius: 4px;
}

.iso-card__label--green {
	background: rgba(0, 255, 148, 0.15);
	color: var(--wp--preset--color--secondary);
	border: 1px solid rgba(0, 255, 148, 0.3);
}

.iso-card__label--blue {
	background: rgba(0, 194, 255, 0.15);
	color: var(--wp--preset--color--tertiary);
	border: 1px solid rgba(0, 194, 255, 0.3);
}

.iso-card__dot {
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--secondary);
	border-radius: 50%;
	box-shadow: 0 0 8px var(--wp--preset--color--secondary);
}

.iso-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
}

.iso-card__bar {
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	margin-bottom: 8px;
}

.iso-card__bar--full    { width: 100%; }
.iso-card__bar--partial { width: 60%; }

.iso-card__tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.iso-card__tag {
	font-size: 0.65rem;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 4px 10px;
	border-radius: 4px;
}

.iso-card__tag--blue {
	background: rgba(0, 194, 255, 0.12);
	color: var(--wp--preset--color--tertiary);
	border: 1px solid rgba(0, 194, 255, 0.25);
}

/* ==========================================================================
   Homepage — Problem Section
   ========================================================================== */
.home-problem {
	background: var(--wp--preset--color--surface);
	padding: clamp(80px, 10vw, 120px) 0;
	color: var(--wp--preset--color--contrast);
}

.home-problem__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.home-problem__eyebrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
	background: rgba(10, 15, 30, 0.06);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.home-problem__heading {
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast);
	margin: 0;
}

.home-pain-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.home-pain-card {
	background: var(--wp--preset--color--base);
	padding: 40px 32px;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	border-top: 4px solid var(--wp--preset--color--contrast);
	transition: all 0.25s ease;
}

.home-pain-card:hover {
	transform: translateY(-5px);
	border-top-color: var(--wp--preset--color--secondary);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.home-pain-icon {
	font-size: 2rem;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
	margin-bottom: 20px;
}

.home-pain-card h3 {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--wp--preset--color--contrast);
}

.home-pain-card p {
	font-size: 0.95rem;
	line-height: 1.65;
	color: #64748b;
	margin: 0;
}

/* ==========================================================================
   Homepage — Solution Section
   ========================================================================== */
.home-solution {
	background: var(--wp--preset--color--navy);
	padding: clamp(80px, 10vw, 120px) 0;
	position: relative;
	overflow: hidden;
	color: #fff;
}

.home-solution::after {
	content: '';
	position: absolute;
	top: -200px;
	right: -200px;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(0, 194, 255, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.home-solution__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
	position: relative;
	z-index: 1;
}

.home-solution__tag {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	background: rgba(0, 255, 148, 0.08);
	border: 1px solid rgba(0, 255, 148, 0.2);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 20px;
}

.home-solution__heading {
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0;
}

.home-solution-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	position: relative;
	z-index: 1;
}

.home-feature-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 40px;
	transition: all 0.25s ease;
	display: flex;
	flex-direction: column;
}

.home-feature-card:hover {
	border-color: rgba(0, 255, 148, 0.3);
	box-shadow: 0 0 30px rgba(0, 255, 148, 0.08);
	transform: translateY(-3px);
}

.home-feature-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 255, 148, 0.1);
	border: 1px solid rgba(0, 255, 148, 0.2);
	border-radius: 14px;
	margin-bottom: 20px;
	color: var(--wp--preset--color--secondary);
}

.home-feature-card h3 {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 12px;
	color: #fff;
}

.home-feature-card p {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--wp--preset--color--muted);
	margin: 0;
	flex-grow: 1;
}

.home-feature-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 24px;
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--jetbrains-mono), monospace;
	color: var(--wp--preset--color--secondary);
	background: rgba(0, 255, 148, 0.08);
	border: 1px solid rgba(0, 255, 148, 0.25);
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s ease;
	align-self: flex-start;
}

.home-feature-card__link:hover {
	background: rgba(0, 255, 148, 0.15);
	border-color: rgba(0, 255, 148, 0.5);
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	transform: translateX(3px);
}

/* ==========================================================================
   Homepage — Testimonials + Stats Section
   ========================================================================== */
.home-testimonials {
	background: var(--wp--preset--color--base);
	padding: clamp(80px, 10vw, 120px) 0 0;
}

.home-testimonials__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.home-testimonials__tag {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
	background: rgba(10, 15, 30, 0.06);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.home-testimonials__heading {
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast);
	margin: 0;
}

.home-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 80px;
}

.home-testimonial-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.home-quote {
	font-style: italic;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wp--preset--color--contrast);
	flex-grow: 1;
	margin: 0;
}

.home-quote::before {
	content: '"';
	font-size: 2.5rem;
	font-style: normal;
	font-weight: 800;
	color: var(--wp--preset--color--secondary);
	line-height: 1;
	display: block;
	margin-bottom: 8px;
}

.home-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.home-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	font-family: var(--wp--preset--font-family--mono);
	flex-shrink: 0;
}

.home-author-meta h4 {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	margin: 0 0 2px;
}

.home-author-meta span {
	font-size: 0.8rem;
	color: #64748b;
	font-family: var(--wp--preset--font-family--mono);
}

/* Stats Stripe */
.home-stats-stripe {
	background: var(--wp--preset--color--navy);
	padding: 64px 0;
}

.home-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	text-align: center;
}

.home-stat-item h3 {
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 800;
	color: var(--wp--preset--color--secondary);
	margin: 0 0 6px;
	letter-spacing: -0.02em;
}

.home-stat-item p {
	font-size: 0.85rem;
	font-family: var(--wp--preset--font-family--mono);
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0;
}

/* ==========================================================================
   Homepage — Preview Section
   ========================================================================== */
.home-preview {
	background: var(--wp--preset--color--mid-dark);
	padding: clamp(80px, 10vw, 120px) 0;
}

.home-preview__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.home-preview__tag {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	background: rgba(0, 255, 148, 0.08);
	border: 1px solid rgba(0, 255, 148, 0.2);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.home-preview__heading {
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0;
}

.home-browser-mockup {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
	max-width: 900px;
	margin: 0 auto;
}

.home-browser-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	background: rgba(0, 0, 0, 0.4);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-browser-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.home-browser-dot--red    { background: #ff5f57; }
.home-browser-dot--yellow { background: #ffbd2e; }
.home-browser-dot--green  { background: #28c941; }

.home-browser-content {
	padding: 36px;
	position: relative;
}

.home-tab-ui {
	display: flex;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 28px;
}

.home-tab {
	padding: 10px 20px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	cursor: default;
	position: relative;
	font-family: var(--wp--preset--font-family--mono);
}

.home-tab--active {
	color: var(--wp--preset--color--secondary);
}

.home-tab--active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--wp--preset--color--secondary);
	border-radius: 2px 2px 0 0;
}

.home-preview-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.home-preview-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 10px;
}

.home-preview-thumb {
	width: 80px;
	height: 56px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	flex-shrink: 0;
}

.home-preview-item h4 {
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 4px;
	line-height: 1.4;
}

.home-preview-item p {
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	margin: 0;
	line-height: 1.5;
}

.home-blur-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 200px;
	background: linear-gradient(to bottom, transparent, var(--wp--preset--color--mid-dark) 85%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 32px;
}

/* ==========================================================================
   Homepage — Final CTA Section
   ========================================================================== */
.home-cta {
	background: radial-gradient(circle at center, #0f2823 0%, #050505 70%);
	padding: clamp(100px, 15vw, 160px) 0;
	text-align: center;
}

.home-cta__inner {
	max-width: 700px;
	margin: 0 auto;
}

.home-cta h2 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	margin-bottom: 40px;
	background: linear-gradient(to bottom, #ffffff 0%, #999999 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.home-cta__btn {
	display: inline-flex;
	align-items: center;
	padding: 18px 44px;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 999px;
	font-size: 1.2rem;
	font-weight: 700;
	transition: all 0.2s ease;
	box-shadow: 0 0 30px rgba(255, 92, 53, 0.35);
}

.home-cta__btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 0 50px rgba(255, 92, 53, 0.5);
	background: #ff7a5c;
}

/* ==========================================================================
   Homepage — Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
	.home-hero__grid {
		grid-template-columns: 1fr;
		gap: 60px;
	}

	.iso-container {
		display: none;
	}

	.home-solution-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.home-pain-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.home-testimonials-grid {
		grid-template-columns: 1fr;
	}

	.home-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}

	.home-browser-content {
		padding: 20px;
	}

	.home-tab {
		padding: 8px 14px;
		font-size: 0.8rem;
	}
}

@media (max-width: 480px) {
	.home-hero__heading {
		font-size: 2rem;
	}

	.home-hero__sub {
		font-size: 1rem;
	}

	.home-hero__actions {
		flex-direction: column;
	}

	.home-hero__btn-primary,
	.home-hero__btn-ghost {
		text-align: center;
		justify-content: center;
	}

	.home-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-cta__btn {
		font-size: 1rem;
		padding: 14px 28px;
	}
}

/* ==========================================================================
   Homepage — Dark Mode Fixes
   (light-coded elements that need overrides when dark mode is active)
   ========================================================================== */

/* Problem section — eyebrow tag and pain card borders */
html[data-theme="dark"] .home-problem__eyebrow,
html.dark-mode .home-problem__eyebrow {
	color: var(--wp--preset--color--secondary);
	background: rgba(0, 255, 148, 0.08);
}

html[data-theme="dark"] .home-pain-card,
html.dark-mode .home-pain-card {
	background: var(--wp--preset--color--surface);
	border-top-color: rgba(255, 255, 255, 0.15);
	box-shadow: var(--c-card-shadow);
}

html[data-theme="dark"] .home-pain-card:hover,
html.dark-mode .home-pain-card:hover {
	border-top-color: var(--wp--preset--color--secondary);
}

html[data-theme="dark"] .home-pain-card h3,
html.dark-mode .home-pain-card h3 {
	color: var(--wp--preset--color--contrast);
}

html[data-theme="dark"] .home-pain-card p,
html.dark-mode .home-pain-card p {
	color: var(--wp--preset--color--muted);
}

/* Testimonials section — eyebrow tag */
html[data-theme="dark"] .home-testimonials__tag,
html.dark-mode .home-testimonials__tag {
	color: var(--wp--preset--color--secondary);
	background: rgba(0, 255, 148, 0.08);
}

html[data-theme="dark"] .home-testimonials__heading,
html.dark-mode .home-testimonials__heading {
	color: var(--wp--preset--color--contrast);
}

html[data-theme="dark"] .home-author-meta span,
html.dark-mode .home-author-meta span {
	color: var(--wp--preset--color--muted);
}

/* ==========================================================================
   Homepage — Light Mode Overrides
   (dark-coded sections that need overrides when light mode is active)
   ========================================================================== */

/* Hero — light mode */
html[data-theme="light"] .home-hero {
	background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 50%, var(--wp--preset--color--surface) 100%);
}

html[data-theme="light"] .home-hero::before {
	background: radial-gradient(circle, rgba(255, 92, 53, 0.07) 0%, transparent 70%);
}

html[data-theme="light"] .home-hero__heading {
	background: linear-gradient(to bottom, #0a0f1e 0%, #4a5568 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

html[data-theme="light"] .home-hero__tag {
	color: var(--wp--preset--color--primary);
	background: rgba(255, 92, 53, 0.08);
	border-color: rgba(255, 92, 53, 0.2);
}

html[data-theme="light"] .home-hero__btn-ghost {
	color: var(--wp--preset--color--navy) !important;
	border-color: rgba(10, 15, 30, 0.2);
}

html[data-theme="light"] .home-hero__btn-ghost:hover {
	background: rgba(10, 15, 30, 0.05);
	border-color: rgba(10, 15, 30, 0.4);
}

html[data-theme="light"] .home-hero__social-proof {
	border-top-color: rgba(10, 15, 30, 0.1);
}

html[data-theme="light"] .home-company-logos span {
	color: rgba(10, 15, 30, 0.4);
}

html[data-theme="light"] .iso-card {
	background: rgba(255, 255, 255, 0.8);
	border-color: rgba(10, 15, 30, 0.1);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .iso-card__title {
	color: var(--wp--preset--color--navy);
}

html[data-theme="light"] .iso-card__bar {
	background: rgba(10, 15, 30, 0.1);
}

/* Solution section — light mode */
html[data-theme="light"] .home-solution {
	background: var(--wp--preset--color--surface);
}

html[data-theme="light"] .home-solution::after {
	background: radial-gradient(circle, rgba(255, 92, 53, 0.07) 0%, transparent 70%);
}

html[data-theme="light"] .home-solution__tag {
	color: var(--wp--preset--color--primary);
	background: rgba(255, 92, 53, 0.08);
	border-color: rgba(255, 92, 53, 0.2);
}

html[data-theme="light"] .home-solution__heading {
	color: var(--wp--preset--color--contrast);
}

html[data-theme="light"] .home-feature-card {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--border);
}

html[data-theme="light"] .home-feature-card:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 8px 32px rgba(255, 92, 53, 0.1);
}

html[data-theme="light"] .home-feature-icon {
	background: rgba(255, 92, 53, 0.08);
	border-color: rgba(255, 92, 53, 0.2);
	color: var(--wp--preset--color--primary);
}

html[data-theme="light"] .home-feature-card h3 {
	color: var(--wp--preset--color--contrast);
}

html[data-theme="light"] .home-feature-card__link {
	color: var(--wp--preset--color--primary);
	background: rgba(255, 92, 53, 0.06);
	border-color: rgba(255, 92, 53, 0.25);
}

html[data-theme="light"] .home-feature-card__link:hover {
	background: rgba(255, 92, 53, 0.12);
	border-color: rgba(255, 92, 53, 0.5);
	color: var(--wp--preset--color--primary);
}

/* Preview section — light mode */
html[data-theme="light"] .home-preview {
	background: var(--wp--preset--color--surface);
}

html[data-theme="light"] .home-preview__tag {
	color: var(--wp--preset--color--primary);
	background: rgba(255, 92, 53, 0.08);
	border-color: rgba(255, 92, 53, 0.2);
}

html[data-theme="light"] .home-preview__heading {
	color: var(--wp--preset--color--contrast);
}

html[data-theme="light"] .home-browser-mockup {
	border-color: var(--wp--preset--color--border);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .home-browser-bar {
	background: #f1f5f9;
	border-bottom-color: var(--wp--preset--color--border);
}

html[data-theme="light"] .home-browser-content {
	background: var(--wp--preset--color--base);
}

html[data-theme="light"] .home-tab-ui {
	border-bottom-color: var(--wp--preset--color--border);
}

html[data-theme="light"] .home-tab--active {
	color: var(--wp--preset--color--primary);
}

html[data-theme="light"] .home-tab--active::after {
	background: var(--wp--preset--color--primary);
}

html[data-theme="light"] .home-preview-item {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
}

html[data-theme="light"] .home-preview-item h4 {
	color: var(--wp--preset--color--contrast);
}

html[data-theme="light"] .home-preview-thumb {
	background: var(--wp--preset--color--border);
}

html[data-theme="light"] .home-blur-overlay {
	background: linear-gradient(to bottom, transparent, var(--wp--preset--color--base) 85%);
}

/* Final CTA — light mode */
html[data-theme="light"] .home-cta {
	background: linear-gradient(135deg, #e8f0fe 0%, var(--wp--preset--color--surface) 100%);
}

html[data-theme="light"] .home-cta h2 {
	background: linear-gradient(to bottom, var(--wp--preset--color--navy) 0%, #64748b 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
