/*
Theme Name: ECHO
Theme URI: https://prometheus.360vier.de
Author: 360vier × ECHO (AI)
Author URI: https://360vier.de
Description: Das KI-Experiment-Theme von 360vier. Warme Farben, elegante Typografie, modernes Design.
Version: 4.3.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: echo
Tags: light-mode, full-site-editing, block-patterns, one-column, custom-colors, custom-menu, featured-images
*/

/* === CSS Variables === */
:root {
	/* Colors - Stripe-inspired */
	--primary: #635bff;       /* Stripe purple */
	--primary-dark: #4b45c6;
	--secondary: #00d4ff;     /* Cyan accent */
	--accent-pink: #ff80b5;
	--accent-orange: #ffb86c;
	--dark: #0a2540;          /* Stripe dark blue */
	--light: #f6f9fc;
	--white: #ffffff;
	--gray-200: #f6f9fc;
	--gray-300: #e3e8ee;
	--gray-400: #c1c9d2;
	--gray-500: #8898aa;
	--gray-600: #697386;
	--gray-700: #425466;
	--gray-800: #30313d;
	--gray-900: #1a1f36;
	
	/* Gradients - Stripe style */
	--gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
	--gradient-mesh: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.3), transparent),
	                 radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255, 128, 181, 0.2), transparent),
	                 radial-gradient(ellipse 50% 60% at 20% 80%, rgba(99, 91, 255, 0.2), transparent);
	--gradient-cta: linear-gradient(135deg, #635bff 0%, #8b5cf6 100%);
	
	/* Spacing Scale - More generous like Stripe */
	--space-xs: 0.5rem;    /* 8px */
	--space-sm: 1rem;      /* 16px */
	--space-md: 1.5rem;    /* 24px */
	--space-lg: 2.5rem;    /* 40px */
	--space-xl: 4rem;      /* 64px */
	--space-2xl: 6rem;     /* 96px */
	--space-3xl: 8rem;     /* 128px */
	
	/* Section Spacing - Much more whitespace */
	--section-padding: clamp(5rem, 12vw, 10rem);
	--section-gap: clamp(4rem, 10vw, 7rem);
	--content-gap: var(--space-xl);
	--card-gap: var(--space-lg);
	
	/* Typography Scale */
	--text-xs: 0.75rem;
	--text-sm: 0.875rem;
	--text-base: 1.0625rem;
	--text-lg: 1.25rem;
	--text-xl: 1.5rem;
	
	/* Animations */
	--duration-sm: 150ms;
	--duration-md: 300ms;
	--duration-lg: 500ms;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* === ECHO Logo === */
.echo-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--dark);
	transition: opacity var(--duration-md) var(--ease-out);
}

.echo-logo:hover {
	opacity: 0.7;
}

.echo-logo svg text {
	fill: currentColor;
}

.theme-dark .echo-logo,
.theme-dark .echo-logo svg text {
	color: var(--white);
	fill: var(--white);
}

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

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: geometricPrecision;
	overflow-x: hidden;
}

body {
	overflow-x: hidden;
}

/* === Selection === */
::selection {
	background: rgba(0, 86, 164, 0.2);
	color: var(--dark);
}

/* === Base Font (DM Sans) === */
body {
	font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}

/* === Smooth Links & Transitions === */
a {
	transition: color var(--duration-md) var(--ease-out);
}

/* === Button Styling === */
.wp-block-button__link {
	transition: all var(--duration-lg) var(--ease-out);
	border-radius: 50px !important;
	position: relative;
}

.wp-block-button__link:hover {
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
	color: var(--white) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255, 119, 20, 0.3);
}

/* Primary button gradient */
.wp-block-button__link.has-contrast-background-color {
	background: linear-gradient(135deg, var(--dark) 0%, #2d2724 100%) !important;
}

.wp-block-button__link.has-contrast-background-color:hover {
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

/* Accent button gradient */
.wp-block-button__link.has-accent-background-color {
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.wp-block-button__link.has-accent-background-color:hover {
	background: linear-gradient(135deg, var(--secondary) 0%, #c94d00 100%) !important;
	box-shadow: 0 8px 30px rgba(255, 119, 20, 0.4);
}

/* Secondary/outline style button */
.wp-block-button__link.has-gray-200-background-color {
	background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-400) 100%) !important;
}

.wp-block-button__link.has-gray-200-background-color:hover {
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
	color: var(--white) !important;
}

/* === Anchor Point (Top-Left Corner Marker) === */
.anchor-point {
	position: relative;
}

.anchor-point::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 6px;
	height: 6px;
	background-color: currentColor;
}

/* === Cards === */
.card {
	background-color: var(--white);
	padding: 2rem;
	transition: all var(--duration-lg) var(--ease-out);
	border-radius: 12px;
}

.card:hover {
	background-color: var(--gray-400);
}

.card-dark {
	background-color: var(--dark);
	color: var(--white);
}

/* === Tech Gradients === */
.gradient-border {
	position: relative;
	background: var(--white);
	border-radius: 12px;
}

.gradient-border::before {
	content: '';
	position: absolute;
	inset: -2px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #ffbe0b 100%);
	border-radius: 14px;
	z-index: -1;
}

.gradient-glow {
	box-shadow: 
		0 0 20px rgba(255, 119, 20, 0.15),
		0 0 40px rgba(237, 95, 0, 0.1);
}

.gradient-text {
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Gradient line accent */
.gradient-line {
	height: 3px;
	background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, #ffbe0b 100%);
	border-radius: 2px;
}

/* === Separator/Border Styling === */
.separator {
	border: none;
	height: 1px;
	background-color: var(--gray-500);
	transform-origin: 0 50%;
}

/* === Section Backgrounds === */
/* Stripe-inspired theme system */

/* Full-bleed sections - simplified, no shift */
body .section {
	padding-left: clamp(1.5rem, 5vw, 3rem);
	padding-right: clamp(1.5rem, 5vw, 3rem);
	overflow: hidden;
}

/* Gradient Hero - Stripe style */
body .section.theme-gradient,
body .wp-block-group.section.theme-gradient {
	background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%) !important;
	position: relative !important;
	color: var(--dark) !important;
}

body .section.theme-gradient::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 91, 255, 0.15), transparent),
		radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 128, 181, 0.12), transparent),
		radial-gradient(ellipse 50% 60% at 10% 60%, rgba(0, 212, 255, 0.1), transparent);
	pointer-events: none;
	z-index: 0;
}

body .section.theme-gradient > * {
	position: relative;
	z-index: 1;
}

/* Light theme */
body .section.theme-light,
body .wp-block-group.section.theme-light {
	background-color: var(--light) !important;
	color: var(--dark) !important;
}

/* White theme */
body .section.theme-white,
body .wp-block-group.section.theme-white {
	background-color: var(--white) !important;
	color: var(--dark) !important;
}

/* Dark theme - Stripe navy */
body .section.theme-dark,
body .wp-block-group.section.theme-dark {
	background-color: var(--dark) !important;
	color: var(--white) !important;
}

body .theme-dark h1,
body .theme-dark h2,
body .theme-dark h3,
body .theme-dark h4,
body .theme-dark h5,
body .theme-dark h6 {
	color: var(--white) !important;
}

body .theme-dark p,
body .theme-dark .section-intro {
	color: rgba(255, 255, 255, 0.75) !important;
}

body .theme-dark .eyebrow {
	color: var(--secondary) !important;
}

/* Primary/CTA theme - Purple gradient */
body .section.theme-primary,
body .wp-block-group.section.theme-primary {
	background: var(--gradient-cta) !important;
	color: var(--white) !important;
}

body .theme-primary h1,
body .theme-primary h2,
body .theme-primary h3,
body .theme-primary p {
	color: var(--white) !important;
}

body .theme-primary .wp-block-button__link {
	background-color: var(--white) !important;
	color: var(--primary) !important;
	font-weight: 600 !important;
}

/* Stats section - subtle gradient */
body .section.theme-stats {
	background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%) !important;
	color: var(--dark) !important;
}

/* === Text Contrast Fixes === */
/* CRITICAL: Automatic text colors for WordPress background classes */
/* HIGH SPECIFICITY to override WordPress global styles */

/* Dark backgrounds (contrast = #202020) → white text */
body .has-contrast-background-color,
body .wp-block-group.has-contrast-background-color,
body .wp-block-column.has-contrast-background-color,
body .wp-block-cover.has-contrast-background-color {
	color: #ffffff !important;
}

body .has-contrast-background-color h1,
body .has-contrast-background-color h2,
body .has-contrast-background-color h3,
body .has-contrast-background-color h4,
body .has-contrast-background-color h5,
body .has-contrast-background-color h6,
body .has-contrast-background-color .wp-block-heading,
body .wp-block-column.has-contrast-background-color h1,
body .wp-block-column.has-contrast-background-color h2,
body .wp-block-column.has-contrast-background-color h3,
body .wp-block-column.has-contrast-background-color h4,
body .wp-block-column.has-contrast-background-color h5,
body .wp-block-column.has-contrast-background-color h6,
body .wp-block-column.has-contrast-background-color .wp-block-heading {
	color: #ffffff !important;
}

body .has-contrast-background-color p,
body .has-contrast-background-color li,
body .has-contrast-background-color span,
body .has-contrast-background-color label,
body .has-contrast-background-color summary,
body .has-contrast-background-color details,
body .wp-block-column.has-contrast-background-color p,
body .wp-block-column.has-contrast-background-color li,
body .wp-block-column.has-contrast-background-color span {
	color: #ffffff !important;
}

body .has-contrast-background-color a:not(.wp-block-button__link),
body .wp-block-column.has-contrast-background-color a:not(.wp-block-button__link) {
	color: #00c2b5 !important;
}

body .has-contrast-background-color a:not(.wp-block-button__link):hover,
body .wp-block-column.has-contrast-background-color a:not(.wp-block-button__link):hover {
	color: #ffffff !important;
}

/* Primary/Accent backgrounds (blue) → white text */
body .has-accent-background-color,
body .has-primary-background-color,
body .wp-block-group.has-accent-background-color,
body .wp-block-group.has-primary-background-color,
body .wp-block-cover.has-primary-background-color {
	color: #ffffff !important;
}

body .has-accent-background-color h1,
body .has-accent-background-color h2,
body .has-accent-background-color h3,
body .has-accent-background-color h4,
body .has-accent-background-color h5,
body .has-accent-background-color h6,
body .has-primary-background-color h1,
body .has-primary-background-color h2,
body .has-primary-background-color h3,
body .has-primary-background-color h4,
body .has-primary-background-color h5,
body .has-primary-background-color h6,
body .has-accent-background-color .wp-block-heading,
body .has-primary-background-color .wp-block-heading {
	color: #ffffff !important;
}

body .has-accent-background-color p,
body .has-accent-background-color li,
body .has-accent-background-color span,
body .has-primary-background-color p,
body .has-primary-background-color li,
body .has-primary-background-color span {
	color: #ffffff !important;
}

body .has-accent-background-color a:not(.wp-block-button__link),
body .has-primary-background-color a:not(.wp-block-button__link) {
	color: #ffffff !important;
	text-decoration: underline;
}

/* Light backgrounds → dark text */
body .has-base-background-color,
body .has-white-background-color,
body .has-gray-200-background-color {
	color: #202020 !important;
}

body .has-base-background-color h1,
body .has-base-background-color h2,
body .has-base-background-color h3,
body .has-base-background-color h4,
body .has-base-background-color h5,
body .has-base-background-color h6,
body .has-white-background-color h1,
body .has-white-background-color h2,
body .has-white-background-color h3,
body .has-white-background-color h4,
body .has-white-background-color h5,
body .has-white-background-color h6,
body .has-base-background-color .wp-block-heading,
body .has-white-background-color .wp-block-heading {
	color: #202020 !important;
}

body .has-base-background-color p,
body .has-base-background-color li,
body .has-white-background-color p,
body .has-white-background-color li {
	color: #202020 !important;
}

body .has-base-background-color a:not(.wp-block-button__link),
body .has-white-background-color a:not(.wp-block-button__link) {
	color: #0056a4 !important;
}

/* Nested elements: white cards inside dark sections keep dark text */
body .has-contrast-background-color .has-white-background-color,
body .has-contrast-background-color .has-white-background-color h1,
body .has-contrast-background-color .has-white-background-color h2,
body .has-contrast-background-color .has-white-background-color h3,
body .has-contrast-background-color .has-white-background-color h4,
body .has-contrast-background-color .has-white-background-color h5,
body .has-contrast-background-color .has-white-background-color h6,
body .has-contrast-background-color .has-white-background-color .wp-block-heading,
body .has-contrast-background-color .has-white-background-color p,
body .has-contrast-background-color .has-white-background-color li,
body .has-contrast-background-color .has-white-background-color summary,
body .has-contrast-background-color .has-white-background-color details {
	color: #202020 !important;
}

body .has-primary-background-color .has-white-background-color,
body .has-primary-background-color .has-white-background-color h1,
body .has-primary-background-color .has-white-background-color h2,
body .has-primary-background-color .has-white-background-color h3,
body .has-primary-background-color .has-white-background-color h4,
body .has-primary-background-color .has-white-background-color h5,
body .has-primary-background-color .has-white-background-color h6,
body .has-primary-background-color .has-white-background-color .wp-block-heading,
body .has-primary-background-color .has-white-background-color p,
body .has-primary-background-color .has-white-background-color li {
	color: #202020 !important;
}

/* Legacy theme classes */
.theme-dark .has-gray-500-color,
.theme-dark .has-gray-600-color,
.theme-dark .has-gray-700-color {
	color: var(--gray-400) !important;
}

.theme-dark h1, .theme-dark h2, .theme-dark h3,
.theme-dark h4, .theme-dark h5, .theme-dark h6 {
	color: var(--white) !important;
}

.theme-dark p:not([class*="has-"]),
.theme-dark .body-text:not([class*="has-"]) {
	color: var(--gray-300) !important;
}

.theme-dark .section-intro {
	color: var(--gray-400) !important;
}

.theme-light .has-gray-500-color {
	color: var(--gray-700) !important;
}

.theme-white .has-gray-500-color {
	color: var(--gray-700) !important;
}

.theme-light {
	background-color: var(--light);
	color: var(--dark);
}

.theme-dark {
	background-color: var(--dark);
	color: var(--white);
}

.theme-white {
	background-color: var(--white);
	color: var(--dark);
}

/* === Typography Enhancements === */
.text-balance {
	text-wrap: balance;
}

.text-muted {
	color: var(--gray-700);
}

.text-small {
	font-size: 0.875rem;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

.text-eyebrow {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--gray-700);
}

/* === Stats/Numbers === */
.stat-number {
	font-family: 'DM Sans', Helvetica, Arial, sans-serif;
	font-size: clamp(3rem, 8vw, 6rem);
	font-weight: 350;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--dark);
}

.stat-label {
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--gray-700);
	margin-top: 0.5rem;
}

/* === Hero Section === */
.hero-primary {
	min-height: 90vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 4rem;
}

.hero-title {
	font-size: clamp(2.625rem, 4.5vw + 1rem, 5.125rem);
	font-weight: 350;
	line-height: 1.1;
	letter-spacing: 0.01em;
}

/* === Grid Lines (Decorative) === */
.grid-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.grid-overlay svg {
	width: 100%;
	height: 100%;
}

/* === Gradient Backgrounds === */
.gradient-warm {
	background: linear-gradient(180deg, var(--gray-200) 0%, var(--light) 100%);
}

.gradient-dark {
	background: linear-gradient(180deg, var(--dark) 0%, var(--gray-900) 100%);
}

/* === Icons === */
.icon {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.icon svg {
	width: 100%;
	height: 100%;
}

/* === Hover Effects === */
.hover-lift {
	transition: transform var(--duration-lg) var(--ease-out);
}

.hover-lift:hover {
	transform: translateY(-4px);
}

/* === Focus States === */
:focus-visible {
	outline: 1px dashed var(--dark);
	outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 1px solid var(--gray-500);
	outline-offset: -2px;
}

/* === Code Blocks === */
code, pre {
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 0.875rem;
}

pre {
	background-color: var(--white);
	border: 1px solid var(--gray-500);
	padding: 1.5rem;
	overflow-x: auto;
}

/* === Blockquotes === */
blockquote {
	font-family: 'DM Sans', Helvetica, Arial, sans-serif;
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1.3;
	border-left: 3px solid var(--primary);
	padding-left: 1.5rem;
	color: var(--gray-700);
}

/* === Tables === */
table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--gray-500);
}

th {
	font-weight: 600;
	background-color: var(--gray-200);
}

/* === Forms === */
input,
select,
textarea {
	font-family: inherit;
	font-size: 1rem;
	padding: 0.875rem 1rem;
	border: none;
	background-color: var(--white);
	color: var(--dark);
	width: 100%;
	transition: outline var(--duration-sm) var(--ease-out);
}

input::placeholder,
textarea::placeholder {
	color: var(--gray-600);
}

/* === Pills/Tags === */
.tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 12px;
	min-height: 30px;
	background-color: var(--gray-400);
	color: var(--dark);
	font-size: 0.875rem;
	text-transform: capitalize;
	transition: background-color var(--duration-md) var(--ease-out);
}

.tag:hover {
	background-color: var(--gray-500);
}

/* === List Styling === */
ul.styled-list,
ol.styled-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

ul.styled-list li::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	background-color: currentColor;
	margin-right: 0.75rem;
	vertical-align: middle;
}

/* === Animation Classes === */
.fade-in {
	opacity: 0;
	transform: translateY(0.75rem);
	animation: fadeInUp 1.12s var(--ease-out) forwards;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.split-text > span {
	filter: blur(6px);
	opacity: 0;
	animation: splitTextIn 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes splitTextIn {
	0% {
		opacity: 0;
		filter: blur(6px);
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 1;
		filter: blur(0);
	}
}

/* === Scrollbar (Minimal) === */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--light);
}

::-webkit-scrollbar-thumb {
	background: var(--gray-500);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--gray-600);
}

/* === Responsive Container === */
.container {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 5vw, 1.5rem);
}

/* === Section System === */
.section {
	padding: var(--section-padding) clamp(1.5rem, 5vw, 3rem);
}

.section--compact {
	padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3rem);
}

.section--large {
	padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 5vw, 3rem);
}

/* Section Header */
.section-header {
	margin-bottom: var(--section-gap);
}

.section-header--center {
	text-align: center;
}

.section-header--center .eyebrow,
.section-header--center h2,
.section-header--center .section-intro {
	text-align: center;
}

/* Eyebrow */
.eyebrow {
	font-size: var(--text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin-bottom: var(--space-sm);
}

/* Section Intro */
.section-intro {
	font-size: clamp(var(--text-base), 2vw, var(--text-lg));
	line-height: 1.6;
	margin-top: var(--space-sm);
}

/* Card Grid */
.card-grid {
	display: grid;
	gap: var(--card-gap);
}

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

.card-grid--3 {
	grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
	.card-grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
	.card-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.card-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Content Columns */
.content-columns {
	gap: clamp(var(--space-lg), 5vw, var(--space-2xl)) !important;
}

/* Hero Section */
.section-hero {
	padding-top: clamp(2rem, 6vh, 4rem);
	padding-bottom: var(--section-padding);
}

.hero-content {
	margin-bottom: var(--space-lg);
}

.hero-content h1 {
	margin: 0;
}

.hero-headline {
	font-size: clamp(2.5rem, 8vw, 5.5rem) !important;
	font-weight: 350 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.05 !important;
}

.hero-intro {
	margin-bottom: var(--space-lg);
}

.hero-intro .lead {
	font-size: clamp(var(--text-lg), 2.5vw, 1.375rem);
	line-height: 1.5;
	color: var(--gray-700);
	margin: 0;
}

/* Dark Hero adjustments */
.theme-dark .hero-intro .lead {
	color: var(--gray-400) !important;
}

.theme-dark .hero-headline {
	color: var(--white) !important;
}

.theme-dark .hero-headline--muted {
	color: var(--gray-500) !important;
}

.theme-dark .hero-headline--accent {
	color: var(--secondary) !important;
}

.hero-buttons {
	margin-bottom: 0;
}

.hero-buttons .wp-block-button__link {
	padding: var(--space-sm) var(--space-lg);
}

/* Typography Hierarchy */
h2 {
	font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
	margin-top: 0 !important;
	margin-bottom: var(--space-md) !important;
}

h3 {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
	margin-top: 0 !important;
	margin-bottom: var(--space-sm) !important;
}

/* Body Text */
.body-text {
	font-size: clamp(var(--text-base), 2vw, var(--text-lg));
	line-height: 1.6;
	margin-bottom: var(--space-sm);
}

.body-text:last-of-type {
	margin-bottom: 0;
}

/* Buttons consistent padding */
.wp-block-button__link {
	padding: var(--space-sm) var(--space-lg) !important;
}

.wp-block-buttons {
	gap: var(--space-sm);
	margin-top: var(--space-lg);
}

/* === Image Styling === */
img {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

figcaption {
	font-size: 0.875rem;
	color: var(--gray-700);
	margin-top: 1rem;
}

/* === Aspect Ratios === */
.aspect-video {
	aspect-ratio: 16 / 9;
}

.aspect-square {
	aspect-ratio: 1 / 1;
}

.aspect-portrait {
	aspect-ratio: 3 / 4;
}

/* === Hide/Show Utilities === */
@media (max-width: 1023px) {
	.hide-mobile {
		display: none !important;
	}
}

@media (min-width: 1024px) {
	.hide-desktop {
		display: none !important;
	}
}

/* === Stats Grid === */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

@media (min-width: 768px) {
	.stats-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 3rem;
	}
}

.stat-item {
	text-align: center;
	padding: var(--space-md) var(--space-sm);
}

.stat-item .stat-number {
	font-size: clamp(2.5rem, 6vw, 4rem);
	margin-bottom: var(--space-xs);
}

.stat-item .stat-label {
	font-size: var(--text-sm);
	color: var(--gray-700);
}

/* === Skills Grid === */
.skills-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.skills-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.skills-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

.skill-card {
	background: linear-gradient(145deg, var(--gray-200) 0%, var(--white) 100%);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	transition: all var(--duration-lg) var(--ease-out);
	border-radius: 16px;
	border: 1px solid var(--gray-400);
}

.skill-card:hover {
	background: linear-gradient(145deg, var(--white) 0%, var(--gray-200) 100%);
	transform: translateY(-6px);
	border-color: var(--primary);
	box-shadow: 0 12px 40px rgba(255, 119, 20, 0.15);
}

.skill-card .skill-icon {
	font-size: 2rem;
	margin-bottom: var(--space-md);
}

.skill-card h3 {
	font-family: 'DM Sans', Helvetica, Arial, sans-serif;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
	font-weight: 400;
	margin: 0 0 var(--space-sm) !important;
	color: var(--dark);
}

.skill-card p {
	font-size: var(--text-sm);
	line-height: 1.5;
	color: var(--gray-700);
	margin: 0;
}

/* === Code Preview === */
.code-preview {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
	border: 1px solid rgba(255, 119, 20, 0.2);
	padding: clamp(1.25rem, 4vw, 2rem);
	overflow-x: auto;
	max-width: 100%;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.code-preview pre {
	margin: 0;
	background: transparent;
	border: none;
	padding: 0;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
}

.code-preview code {
	font-family: 'JetBrains Mono', monospace;
	font-size: clamp(0.8rem, 2vw, 0.9375rem);
	line-height: 1.7;
	color: var(--gray-400);
}

.code-preview .code-keyword {
	color: #c792ea;
}

.code-preview .code-property {
	color: var(--primary);
}

.code-preview .code-string {
	color: #c3e88d;
}

/* === Philosophy Values === */
.philosophy-values {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.value-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: clamp(0.9375rem, 2vw, 1.0625rem);
	color: var(--dark);
}

.value-marker {
	width: 8px;
	height: 8px;
	background: var(--primary);
	flex-shrink: 0;
}

/* === Terminal Styles (Updated) === */
#neon-terminal {
	background: linear-gradient(145deg, #0d0d0d 0%, #1a1a1a 100%);
	border: 1px solid rgba(255, 119, 20, 0.15);
	border-radius: 16px;
	overflow: hidden;
	font-family: 'JetBrains Mono', monospace;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.neon-terminal-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 1rem 1.25rem;
	background: rgba(255, 255, 255, 0.03);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-terminal-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.neon-terminal-dot.red { background: #ff5f56; }
.neon-terminal-dot.yellow { background: #ffbd2e; }
.neon-terminal-dot.green { background: #27ca40; }

.neon-terminal-title {
	margin-left: auto;
	font-size: 0.75rem;
	color: var(--gray-600);
}

.neon-terminal-body {
	padding: clamp(1.25rem, 4vw, 2rem);
	min-height: 200px;
	max-height: 400px;
	overflow-y: auto;
}

.neon-output {
	margin-bottom: 1rem;
}

.neon-output .message {
	margin-bottom: 0.75rem;
	line-height: 1.5;
	font-size: clamp(0.8125rem, 2vw, 0.875rem);
}

.neon-output .message.user {
	color: var(--gray-400);
}

.neon-output .message.user::before {
	content: '❯ ';
	color: var(--primary);
}

.neon-output .message.neon {
	color: var(--gray-300);
}

.neon-input-wrapper {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.neon-input-prompt {
	color: var(--primary);
	font-size: 1rem;
}

.neon-input {
	flex: 1;
	background: transparent;
	border: none;
	padding: 0;
	color: var(--white);
	font-family: 'JetBrains Mono', monospace;
	font-size: clamp(0.8125rem, 2vw, 0.9375rem);
	outline: none;
}

.neon-input::placeholder {
	color: var(--gray-700);
}

/* === Hero Headline Animation === */
.hero-headline {
	opacity: 0;
	transform: translateY(20px);
	animation: heroFadeIn 0.8s var(--ease-out) forwards;
}

.hero-headline:nth-child(2) {
	animation-delay: 0.15s;
}

@keyframes heroFadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* === Lab Entries (Labortagebuch) === */
.lab-entries {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.lab-entries {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

.lab-entry {
	background: linear-gradient(145deg, var(--gray-200) 0%, var(--white) 100%);
	padding: clamp(1.5rem, 4vw, 2rem);
	transition: all var(--duration-lg) var(--ease-out);
	position: relative;
	border-radius: 16px;
	border: 1px solid var(--gray-400);
}

.lab-entry:hover {
	background: linear-gradient(145deg, var(--white) 0%, var(--gray-200) 100%);
	transform: translateY(-6px);
	border-color: var(--primary);
	box-shadow: 0 12px 40px rgba(255, 119, 20, 0.12);
}

.lab-entry-date {
	font-size: var(--text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--primary);
	margin-bottom: var(--space-sm);
}

.lab-entry h3 {
	font-family: 'DM Sans', Helvetica, Arial, sans-serif;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
	font-weight: 400;
	margin: 0 0 var(--space-sm) !important;
	color: var(--dark);
}

.lab-entry p {
	font-size: var(--text-sm);
	line-height: 1.5;
	color: var(--gray-700);
	margin: 0 0 var(--space-md);
}

.lab-entry-tag {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gray-600);
	background: linear-gradient(135deg, var(--white) 0%, var(--gray-200) 100%);
	padding: 0.375rem 0.75rem;
	border-radius: 20px;
}

/* Gradient accent for sections */
.theme-dark::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 40%, #ffbe0b 70%, var(--primary) 100%);
	background-size: 200% 100%;
	animation: gradientShift 8s linear infinite;
}

.theme-dark {
	position: relative;
}

@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}

/* === CRAB RAVE CLICKER GAME === */
.crab-game-container {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
	border: 1px solid rgba(255, 119, 20, 0.2);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.crab-game-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	background: rgba(0, 0, 0, 0.3);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crab-game-title {
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.crab-game-stats {
	display: flex;
	gap: 1.5rem;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.875rem;
}

.crab-stat {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.7);
}

.crab-stat-value {
	color: #ffbe0b;
	font-weight: 700;
}

#crab-game-area {
	position: relative;
	width: 100%;
	height: 400px;
	overflow: hidden;
	cursor: crosshair;
	background-image: url("data:image/svg+xml,%3Csvg width='800' height='400' viewBox='0 0 800 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3C!-- ECHO waves background --%3E%3Cg opacity='0.08'%3E%3C!-- Center wave pattern --%3E%3Ccircle cx='400' cy='200' r='40' stroke='%23ff7714' stroke-width='2' fill='none'/%3E%3Ccircle cx='400' cy='200' r='80' stroke='%23ff7714' stroke-width='2' fill='none'/%3E%3Ccircle cx='400' cy='200' r='120' stroke='%23ff7714' stroke-width='2' fill='none'/%3E%3Ccircle cx='400' cy='200' r='160' stroke='%23ff7714' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='400' cy='200' r='200' stroke='%23ff7714' stroke-width='1' fill='none'/%3E%3Ccircle cx='400' cy='200' r='250' stroke='%23ff7714' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='400' cy='200' r='300' stroke='%23ff7714' stroke-width='0.5' fill='none'/%3E%3C!-- Sound bars left --%3E%3Crect x='60' y='160' width='8' height='80' rx='4' fill='%23ff7714'/%3E%3Crect x='80' y='140' width='8' height='120' rx='4' fill='%23ff7714'/%3E%3Crect x='100' y='120' width='8' height='160' rx='4' fill='%23ff7714'/%3E%3Crect x='120' y='140' width='8' height='120' rx='4' fill='%23ff7714'/%3E%3Crect x='140' y='160' width='8' height='80' rx='4' fill='%23ff7714'/%3E%3C!-- Sound bars right --%3E%3Crect x='652' y='160' width='8' height='80' rx='4' fill='%23ff7714'/%3E%3Crect x='672' y='140' width='8' height='120' rx='4' fill='%23ff7714'/%3E%3Crect x='692' y='120' width='8' height='160' rx='4' fill='%23ff7714'/%3E%3Crect x='712' y='140' width='8' height='120' rx='4' fill='%23ff7714'/%3E%3Crect x='732' y='160' width='8' height='80' rx='4' fill='%23ff7714'/%3E%3C!-- Scattered dots --%3E%3Ccircle cx='200' cy='80' r='4' fill='%23ff7714'/%3E%3Ccircle cx='600' cy='80' r='4' fill='%23ff7714'/%3E%3Ccircle cx='200' cy='320' r='4' fill='%23ff7714'/%3E%3Ccircle cx='600' cy='320' r='4' fill='%23ff7714'/%3E%3Ccircle cx='300' cy='50' r='3' fill='%23ff7714'/%3E%3Ccircle cx='500' cy='350' r='3' fill='%23ff7714'/%3E%3C/g%3E%3C!-- Subtle grid --%3E%3Cdefs%3E%3Cpattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.03'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='800' height='400' fill='url(%23grid)'/%3E%3C/svg%3E");
	background-size: cover;
	background-position: center;
}

@media (max-width: 640px) {
	#crab-game-area {
		height: 60vh;
		min-height: 350px;
	}
}

/* Animated pulse rings */
#crab-game-area::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 150px;
	height: 150px;
	transform: translate(-50%, -50%);
	border: 2px solid rgba(255, 119, 20, 0.15);
	border-radius: 50%;
	animation: pulseRing 3s ease-out infinite;
	pointer-events: none;
	z-index: 1;
}

#crab-game-area::after {
	content: '🦀';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 3rem;
	opacity: 0.15;
	pointer-events: none;
	z-index: 1;
	animation: crabPulse 2s ease-in-out infinite;
}

@keyframes pulseRing {
	0% {
		width: 100px;
		height: 100px;
		opacity: 0.3;
	}
	100% {
		width: 300px;
		height: 300px;
		opacity: 0;
	}
}

@keyframes crabPulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0.15;
	}
	50% {
		transform: translate(-50%, -50%) scale(1.1);
		opacity: 0.25;
	}
}

.crab {
	position: absolute;
	font-size: 2.5rem;
	cursor: pointer;
	transform: scale(0) rotate(-20deg);
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 10;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
	animation: crabWiggle 0.6s ease-in-out infinite;
}

.crab.active {
	transform: scale(1) rotate(0deg);
}

.crab.caught {
	transform: scale(1.5) rotate(20deg) !important;
	opacity: 0;
	transition: all 0.2s ease-out;
}

.crab.escaped {
	transform: scale(0) rotate(-40deg) translateY(20px) !important;
	opacity: 0;
}

@keyframes crabWiggle {
	0%, 100% { transform: scale(1) rotate(-3deg); }
	50% { transform: scale(1) rotate(3deg); }
}

.crab.active {
	animation: crabWiggle 0.6s ease-in-out infinite;
}

.points-popup {
	position: absolute;
	font-family: 'JetBrains Mono', monospace;
	font-size: 1.25rem;
	font-weight: 700;
	color: #06ffa5;
	pointer-events: none;
	animation: pointsFloat 0.6s ease-out forwards;
	text-shadow: 0 2px 10px rgba(6, 255, 165, 0.5);
	z-index: 20;
}

@keyframes pointsFloat {
	0% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateY(-40px) scale(1.2);
	}
}

/* Rave Mode */
#rave-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 100;
}

#rave-overlay.active {
	opacity: 1;
	visibility: visible;
}

#rave-overlay::before {
	content: '🦀 CRAB RAVE! 🦀';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: clamp(1.5rem, 5vw, 2.5rem);
	font-weight: 700;
	color: #fff;
	text-align: center;
	z-index: 101;
	animation: raveText 0.3s ease-in-out infinite alternate;
	text-shadow: 0 0 20px #ff006e, 0 0 40px #ff006e;
}

@keyframes raveText {
	0% { transform: translate(-50%, -50%) scale(1); }
	100% { transform: translate(-50%, -50%) scale(1.1); }
}

.rave-crab {
	position: absolute;
	font-size: 2rem;
	animation: raveDance 0.4s ease-in-out infinite alternate;
}

@keyframes raveDance {
	0% { transform: translateY(0) rotate(-10deg) scale(1); }
	100% { transform: translateY(-15px) rotate(10deg) scale(1.1); }
}

body.rave-mode {
	animation: raveBackground 0.2s linear infinite;
}

@keyframes raveBackground {
	0% { background-color: #ff006e; }
	25% { background-color: #8338ec; }
	50% { background-color: #3a86ff; }
	75% { background-color: #06ffa5; }
	100% { background-color: #ffbe0b; }
}

.crab-game-footer {
	padding: 1rem 1.25rem;
	background: rgba(0, 0, 0, 0.3);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.crab-game-hint {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.5);
}

.crab-game-reset {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.7);
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.crab-game-reset:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

/* === Hero Stage - Pop Art Lichtenstein Style === */
.hero-stage {
	display: flex;
	justify-content: center;
	margin-bottom: clamp(2rem, 5vw, 3rem);
}

.pop-art-hero {
	width: 100%;
	max-width: 380px;
	height: auto;
}

/* Main crab animation */
.pop-art-hero .main-crab {
	animation: crabFloat 3s ease-in-out infinite;
}

@keyframes crabFloat {
	0%, 100% {
		transform: translate(120px, 60px) rotate(-1deg);
	}
	50% {
		transform: translate(120px, 52px) rotate(1deg);
	}
}

/* Claw snap animation */
.pop-art-hero .claw-left {
	transform-origin: 20px 50px;
	animation: clawSnap 2s ease-in-out infinite;
}

.pop-art-hero .claw-right {
	transform-origin: 140px 50px;
	animation: clawSnap 2s ease-in-out infinite 0.5s;
}

@keyframes clawSnap {
	0%, 70%, 100% { transform: rotate(0deg); }
	80% { transform: rotate(-8deg); }
	90% { transform: rotate(5deg); }
}

/* Eye blink */
.pop-art-hero .eyes {
	animation: eyeBlink 4s ease-in-out infinite;
}

@keyframes eyeBlink {
	0%, 45%, 55%, 100% { transform: scaleY(1); }
	50% { transform: scaleY(0.1); }
}

/* Speech bubble pop */
.pop-art-hero .speech-bubble {
	animation: bubblePop 0.5s ease-out forwards, bubbleFloat 2s ease-in-out infinite 0.5s;
	opacity: 0;
	transform: scale(0.5);
}

@keyframes bubblePop {
	0% { opacity: 0; transform: scale(0.5); }
	70% { transform: scale(1.1); }
	100% { opacity: 1; transform: scale(1); }
}

@keyframes bubbleFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

/* Action lines pulse */
.pop-art-hero .action-lines line {
	animation: linePulse 1.5s ease-in-out infinite;
}

.pop-art-hero .action-lines line:nth-child(2) { animation-delay: 0.2s; }
.pop-art-hero .action-lines line:nth-child(3) { animation-delay: 0.4s; }
.pop-art-hero .action-lines line:nth-child(4) { animation-delay: 0.1s; }
.pop-art-hero .action-lines line:nth-child(5) { animation-delay: 0.3s; }
.pop-art-hero .action-lines line:nth-child(6) { animation-delay: 0.5s; }

@keyframes linePulse {
	0%, 100% { opacity: 0.6; }
	50% { opacity: 0.2; }
}

/* Mini crabs bounce */
.pop-art-hero .mini-crab {
	animation: miniCrabBounce 1.5s ease-in-out infinite;
}

.pop-art-hero .mini-crab:nth-of-type(2) {
	animation-delay: 0.3s;
}

@keyframes miniCrabBounce {
	0%, 100% { transform: translateY(0) scale(0.4); }
	50% { transform: translateY(-5px) scale(0.4); }
}

/* === Mobile Optimizations === */
@media (max-width: 767px) {
	/* Stack columns on mobile */
	.wp-block-columns {
		flex-direction: column !important;
	}
	
	.wp-block-column {
		flex-basis: 100% !important;
	}
	
	/* Buttons wrap nicely */
	.wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	
	.wp-block-button {
		width: 100%;
	}
	
	.wp-block-button__link {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
	
	/* Better touch targets */
	.skill-card {
		padding: 1.75rem;
	}
	
	/* Reduce spacing on mobile */
	.section, .section-large {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}
	
	/* --- MOBILE FIXES (Julian) --- */
	
	/* 1. Less padding on header */
	header.wp-block-group {
		padding-top: 0.5rem !important;
		padding-bottom: 0.5rem !important;
	}
	
	/* 2. Less padding above hero, reorder elements */
	.section-hero {
		padding-top: 0.5rem !important;
	}
	
	/* 3. Hero image ABOVE headline on mobile */
	.section-hero > .wp-block-group:first-of-type {
		display: contents;
	}
	
	.section-hero .hero-stage {
		order: -1;
		margin-bottom: 1rem;
	}
}

/* === Mobile Navigation Styling === */
/* 4. Overlay same color as page */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--light) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	color: var(--dark) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
	color: var(--primary) !important;
}

/* 5. X button aligned with burger */
.wp-block-navigation__responsive-container-close {
	top: 0.5rem !important;
	right: 1.5rem !important;
}

.wp-block-navigation__responsive-container-close svg {
	fill: var(--dark) !important;
}

/* ============================================
   STRIPE DEMO STYLES
   ============================================ */

.stripe-demo {
	background: #fff;
}

/* Hero Section */
.stripe-hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 8rem 2rem !important;
	overflow: hidden;
	background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
}

.stripe-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(ellipse 100% 80% at 20% 0%, rgba(99, 91, 255, 0.12), transparent 50%),
		radial-gradient(ellipse 80% 60% at 80% 20%, rgba(255, 128, 181, 0.1), transparent 50%),
		radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0, 212, 255, 0.08), transparent 50%);
	pointer-events: none;
}

.stripe-counter {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 3rem;
	padding: 0.5rem 1rem;
	background: rgba(99, 91, 255, 0.08);
	border-radius: 100px;
	font-size: 0.875rem;
}

.stripe-counter-label {
	color: var(--gray-600);
}

.stripe-counter-value {
	color: var(--primary);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.stripe-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
}

.stripe-headline {
	font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
	font-weight: 600 !important;
	line-height: 1.1 !important;
	letter-spacing: -0.03em !important;
	color: var(--dark) !important;
	margin-bottom: 1.5rem !important;
}

.stripe-headline em {
	font-style: normal;
	background: linear-gradient(135deg, #635bff, #a960ee, #ff80b5);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.stripe-subheadline {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	color: var(--gray-600);
	max-width: 600px;
	margin: 0 auto 2.5rem !important;
	line-height: 1.6;
}

.stripe-ctas {
	gap: 1rem;
}

.stripe-btn-primary .wp-block-button__link {
	background: var(--primary) !important;
	color: #fff !important;
	padding: 0.875rem 1.75rem !important;
	border-radius: 100px !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	transition: all 0.2s ease !important;
	border: none !important;
}

.stripe-btn-primary .wp-block-button__link:hover {
	background: var(--primary-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(99, 91, 255, 0.4);
}

.stripe-btn-secondary .wp-block-button__link {
	background: transparent !important;
	color: var(--dark) !important;
	padding: 0.875rem 1.75rem !important;
	border-radius: 100px !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	border: 1px solid var(--gray-300) !important;
	transition: all 0.2s ease !important;
}

.stripe-btn-secondary .wp-block-button__link:hover {
	background: var(--light) !important;
	border-color: var(--gray-400) !important;
}

/* Mesh Gradient Blobs */
.stripe-mesh {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	pointer-events: none;
}

.mesh-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.6;
	animation: float 20s ease-in-out infinite;
}

.mesh-blob-1 {
	width: 600px;
	height: 600px;
	background: linear-gradient(135deg, rgba(99, 91, 255, 0.3), rgba(139, 92, 246, 0.2));
	top: -200px;
	right: -100px;
	animation-delay: 0s;
}

.mesh-blob-2 {
	width: 400px;
	height: 400px;
	background: linear-gradient(135deg, rgba(255, 128, 181, 0.3), rgba(255, 184, 108, 0.2));
	bottom: -100px;
	left: -50px;
	animation-delay: -7s;
}

.mesh-blob-3 {
	width: 300px;
	height: 300px;
	background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(99, 91, 255, 0.1));
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	animation-delay: -14s;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(30px, -30px) scale(1.05); }
	66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Logo Bar */
.stripe-logos {
	padding: 4rem 2rem !important;
	background: #fff;
	border-top: 1px solid var(--gray-300);
	border-bottom: 1px solid var(--gray-300);
}

.logo-scroll {
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
	display: flex;
	gap: 4rem;
	animation: scroll 30s linear infinite;
}

.logo-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
	color: var(--gray-500);
	transition: color 0.2s ease;
}

.logo-item:hover {
	color: var(--dark);
}

.logo-item svg {
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.logo-item:hover svg {
	opacity: 1;
}

.logo-item span {
	font-size: 0.75rem;
	font-weight: 500;
}

@keyframes scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* Stats Section */
.stripe-stats {
	padding: 8rem 2rem !important;
	background: linear-gradient(180deg, #0a2540 0%, #1a1f36 100%);
	text-align: center;
}

.stripe-stats-title {
	font-size: clamp(2rem, 5vw, 3.5rem) !important;
	font-weight: 600 !important;
	color: #fff !important;
	margin-bottom: 4rem !important;
	line-height: 1.2 !important;
}

.stats-grid-stripe {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	max-width: 1000px;
	margin: 0 auto;
}

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

@media (max-width: 500px) {
	.stats-grid-stripe {
		grid-template-columns: 1fr;
	}
}

.stat-card {
	padding: 1.5rem;
}

.stat-card .stat-number {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 600;
	color: #fff;
	margin-bottom: 0.5rem;
}

.stat-card .stat-desc {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.6);
}

/* Features Section */
.stripe-features {
	padding: 8rem 2rem !important;
	background: #fff;
}

.stripe-features-header {
	margin-bottom: 4rem !important;
}

.stripe-features-header h2 {
	font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
	font-weight: 600 !important;
	margin-bottom: 1rem !important;
}

.stripe-features-header p {
	font-size: 1.125rem;
	color: var(--gray-600);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

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

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

.feature-card {
	padding: 2rem;
	background: var(--light);
	border-radius: 12px;
	transition: all 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-card-primary {
	background: linear-gradient(135deg, #635bff, #8b5cf6);
	color: #fff;
}

.feature-card-primary h3,
.feature-card-primary p,
.feature-card-primary .feature-link {
	color: #fff !important;
}

.feature-icon {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.feature-card h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--dark);
}

.feature-card p {
	font-size: 0.9375rem;
	color: var(--gray-600);
	margin-bottom: 1rem;
	line-height: 1.5;
}

.feature-link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.feature-link:hover {
	color: var(--primary-dark);
}

/* CTA Section */
.stripe-cta-section {
	padding: 8rem 2rem !important;
	background: linear-gradient(180deg, #f6f9fc 0%, #e3e8ee 100%);
	text-align: center;
}

.stripe-cta-headline {
	font-size: clamp(2rem, 5vw, 3rem) !important;
	font-weight: 600 !important;
	margin-bottom: 1rem !important;
}

.stripe-cta-sub {
	font-size: 1.125rem;
	color: var(--gray-600);
	max-width: 500px;
	margin: 0 auto 2.5rem !important;
}

/* ============================================
   SHOWCASE PAGE STYLES (Mainition-inspired)
   ============================================ */

/* Hero Gradient - Dark Navy with Purple accents */
.echo-hero-gradient {
	background: linear-gradient(180deg, #0a2540 0%, #1a1f36 50%, #0d1321 100%) !important;
	position: relative;
	overflow: hidden;
}

.echo-hero-gradient::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: 
		radial-gradient(ellipse 40% 30% at 70% 20%, rgba(99, 91, 255, 0.25), transparent 50%),
		radial-gradient(ellipse 30% 40% at 20% 60%, rgba(255, 128, 181, 0.15), transparent 50%),
		radial-gradient(ellipse 50% 30% at 50% 90%, rgba(0, 212, 255, 0.1), transparent 50%);
	pointer-events: none;
	animation: gradientFloat 20s ease-in-out infinite;
}

@keyframes gradientFloat {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	33% { transform: translate(2%, -2%) rotate(1deg); }
	66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

/* Badge styling */
.echo-badge {
	background: rgba(99, 91, 255, 0.15) !important;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(99, 91, 255, 0.3);
}

/* Tech Logo parade */
.echo-tech-logo {
	opacity: 0.6;
	transition: all 0.3s ease;
}

.echo-tech-logo:hover {
	opacity: 1;
	transform: translateY(-2px);
}

/* Bento Grid Cards */
.echo-bento-card {
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.echo-bento-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.echo-bento-card--large {
	min-height: 320px;
}

/* Stats Gradient Section */
.echo-stats-gradient {
	background: linear-gradient(135deg, #0a2540 0%, #1a1f36 50%, #0d1321 100%) !important;
	position: relative;
	overflow: hidden;
}

.echo-stats-gradient::before {
	content: "";
	position: absolute;
	inset: 0;
	background: 
		radial-gradient(ellipse 80% 50% at 20% 50%, rgba(99, 91, 255, 0.15), transparent),
		radial-gradient(ellipse 60% 40% at 80% 50%, rgba(255, 128, 181, 0.1), transparent);
	pointer-events: none;
}

/* Case Study Cards */
.echo-case-card {
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid transparent;
}

.echo-case-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(99, 91, 255, 0.15);
	border-color: rgba(99, 91, 255, 0.2);
}

/* CTA Gradient */
.echo-cta-gradient {
	background: linear-gradient(135deg, #635bff 0%, #8b5cf6 50%, #a78bfa 100%) !important;
	position: relative;
	overflow: hidden;
}

.echo-cta-gradient::before {
	content: "";
	position: absolute;
	inset: 0;
	background: 
		radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255, 255, 255, 0.15), transparent),
		radial-gradient(ellipse 50% 60% at 100% 100%, rgba(0, 0, 0, 0.1), transparent);
	pointer-events: none;
}

/* Responsive adjustments for Showcase */
@media (max-width: 768px) {
	.echo-bento-card--large {
		min-height: auto;
	}
	
	.echo-stats-gradient .wp-block-columns {
		gap: 2rem !important;
	}
	
	.echo-stats-gradient .wp-block-column {
		padding: 1rem 0;
	}
}

/* ============================================
   FRIENDS DIGITAL AGENCY GROUP STYLES
   ============================================ */

/* Sailec Font - Using Inter as fallback (very similar geometric sans) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.friends-page {
	--friends-yellow: #FFE500;
	--friends-yellow-light: #FFF3B0;
	--friends-black: #000000;
	--friends-white: #FFFFFF;
	--friends-gray: #666666;
	--friends-gray-light: #F5F5F5;
	--friends-gray-border: #E5E5E5;
	
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--friends-black);
	background: var(--friends-white);
}

/* Friends Page: Force sans-serif for ALL headings (friendventure-style) */
.friends-page h1,
.friends-page h2,
.friends-page h3,
.friends-page h4,
.friends-page h5,
.friends-page h6,
.friends-page .wp-block-heading {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Yellow Buttons */
.friends-btn-primary .wp-block-button__link {
	background: var(--friends-yellow, #FFE500) !important;
	color: var(--friends-black, #000) !important;
	border: none !important;
	font-weight: 600 !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.friends-btn-primary .wp-block-button__link:hover {
	background: #E6CE00 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 24px rgba(255, 229, 0, 0.4) !important;
}

/* Yellow highlight text */
.friends-highlight {
	background: linear-gradient(180deg, transparent 50%, var(--friends-yellow) 50%);
	padding: 0 0.25em;
}

/* Section styling */
.friends-section {
	padding: clamp(4rem, 10vw, 8rem) 0;
}

.friends-section-alt {
	background: var(--friends-gray-light);
}

.friends-section-yellow {
	background: var(--friends-yellow);
}

/* Hero styling */
.friends-hero {
	min-height: 90vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.friends-hero-title {
	font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	letter-spacing: -0.03em !important;
	color: var(--friends-black) !important;
}

/* Counter animation */
.friends-counter {
	font-size: clamp(3rem, 8vw, 5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}

.friends-counter-label {
	font-size: 1rem;
	color: var(--friends-gray);
	margin-top: 0.5rem;
}

/* Agency cards */
.friends-agency-card {
	background: var(--friends-white);
	border: 1px solid var(--friends-gray-border);
	border-radius: 12px;
	padding: 2rem;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.friends-agency-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	border-color: var(--friends-yellow);
}

/* Case cards */
.friends-case-card {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 4/3;
}

.friends-case-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.friends-case-card:hover img {
	transform: scale(1.05);
}

.friends-case-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2rem;
	background: linear-gradient(transparent, rgba(0,0,0,0.8));
	color: white;
}

/* Location dots */
.friends-location-dot {
	width: 12px;
	height: 12px;
	background: var(--friends-yellow);
	border-radius: 50%;
	display: inline-block;
	margin-right: 0.75rem;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.2); opacity: 0.7; }
}

/* Career section */
.friends-career-highlight {
	background: var(--friends-yellow);
	padding: 3rem;
	border-radius: 16px;
}

/* Micro animations */
.friends-fade-up {
	opacity: 0;
	transform: translateY(30px);
	animation: friendsFadeUp 0.8s ease forwards;
}

@keyframes friendsFadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Stagger children */
.friends-stagger > *:nth-child(1) { animation-delay: 0s; }
.friends-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.friends-stagger > *:nth-child(3) { animation-delay: 0.2s; }
.friends-stagger > *:nth-child(4) { animation-delay: 0.3s; }
.friends-stagger > *:nth-child(5) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
	.friends-hero {
		min-height: 70vh;
	}
	
	.friends-counter {
		font-size: 2.5rem;
	}
}

/* Fix for case card overlay */
.friends-case-card {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
}

.friends-case-card .wp-block-image {
	margin: 0;
	height: 100%;
}

.friends-case-card .wp-block-image img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.friends-case-card:hover .wp-block-image img {
	transform: scale(1.05);
}

.friends-case-card .friends-case-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2rem;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
	color: white;
	z-index: 10;
}

.friends-case-card .friends-case-overlay p {
	color: rgba(255,255,255,0.8);
	margin-bottom: 0.5rem;
}

.friends-case-card .friends-case-overlay h4 {
	margin: 0;
}

/* Yellow highlight span */
.friends-highlight {
	background: linear-gradient(180deg, transparent 50%, #FFE500 50%);
	padding: 0 0.1em;
}

/* Agency card improvements */
.friends-agency-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.friends-agency-card p:last-of-type {
	margin-top: auto;
}

/* Value list styling */
.friends-value-list li {
	padding: 0.75rem 0;
	border-bottom: 1px solid #e5e5e5;
}

.friends-value-list li:last-child {
	border-bottom: none;
}

/* ==========================================================================
   NOKI LANDING PAGE STYLES
   ========================================================================== */

/* Global Noki Font Override */
.page-template-page-noki,
.page-template-page-noki * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Noki Header */
.noki-header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    z-index: 1000;
}

.noki-header .wp-block-navigation a {
    color: #4A4A4A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.noki-header .wp-block-navigation a:hover {
    color: #5C2D5C;
}

/* Noki Hero Section */
.noki-hero {
    position: relative;
    overflow: hidden;
}

.noki-hero-image img {
    box-shadow: 0 20px 40px rgba(92, 45, 130, 0.15);
}

/* Noki Feature Cards */
.noki-feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.noki-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(92, 45, 130, 0.2);
}

.noki-feature-card .wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

/* Noki Check List */
.noki-check-list {
    list-style: none;
}

.noki-check-list li {
    position: relative;
    padding-left: 0;
}

/* Noki Footer */
.noki-footer-list {
    list-style: none;
}

.noki-footer-list li {
    padding-left: 0;
}

.noki-footer-list a {
    color: #a89bb3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.noki-footer-list a:hover {
    color: #ffffff;
}

/* Noki Buttons */
.page-template-page-noki .wp-block-button__link {
    transition: all 0.2s ease;
}

.page-template-page-noki .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Noki Cards */
.page-template-page-noki .wp-block-group.has-background {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-template-page-noki .has-noki-purple-background-color .wp-block-group.has-background:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Responsive Noki */
@media (max-width: 782px) {
    .noki-hero .wp-block-columns {
        flex-direction: column-reverse;
    }
    
    .noki-hero .wp-block-column {
        flex-basis: 100% !important;
    }
    
    .page-template-page-noki .wp-block-group[style*="padding-left:60px"] {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}


/* ==========================================================================
   NOKI MOBILE FIXES - Pixel Perfect
   ========================================================================== */

@media (max-width: 782px) {
    /* Noki Header Mobile */
    .noki-header .wp-block-group {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .noki-header .wp-block-navigation {
        display: none;
    }
    
    .noki-header .wp-block-buttons {
        flex-direction: row !important;
    }
    
    .noki-header .wp-block-button {
        width: auto !important;
    }
    
    /* Noki Hero Mobile */
    .noki-hero .wp-block-group {
        padding: 24px 16px 40px !important;
    }
    
    .noki-hero .wp-block-columns {
        flex-direction: column-reverse !important;
    }
    
    .noki-hero .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }
    
    .noki-hero h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    
    .noki-hero .wp-block-buttons {
        flex-direction: column !important;
        gap: 12px;
    }
    
    .noki-hero .wp-block-button {
        width: 100% !important;
    }
    
    .noki-hero .wp-block-button__link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    /* Noki Sections Mobile Padding */
    .page-template-page-noki .wp-block-group.alignfull > .wp-block-group {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .page-template-page-noki .wp-block-group[style*="padding-left:60px"],
    .page-template-page-noki .wp-block-group[style*="padding-right:60px"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Noki Section Vertical Padding */
    .page-template-page-noki .wp-block-group[style*="padding-top:80px"] {
        padding-top: 48px !important;
    }
    
    .page-template-page-noki .wp-block-group[style*="padding-bottom:80px"] {
        padding-bottom: 48px !important;
    }
    
    /* Noki Feature Cards Mobile */
    .page-template-page-noki .wp-block-cover {
        min-height: 240px !important;
    }
    
    /* Noki Projects Cards Mobile */
    .has-noki-purple-background-color .wp-block-columns {
        gap: 20px;
    }
    
    /* Noki Info Section Mobile */
    .page-template-page-noki .noki-check-list {
        font-size: 14px !important;
    }
    
    /* Noki News Cards Mobile */
    .page-template-page-noki h3 {
        font-size: 16px !important;
    }
    
    /* Noki Newsletter Mobile */
    .page-template-page-noki .wp-block-group[style*="blockGap"] {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .page-template-page-noki input[type="email"] {
        width: 100% !important;
        min-width: unset !important;
    }
    
    .page-template-page-noki button {
        width: 100% !important;
    }
    
    /* Noki Footer Mobile */
    .has-noki-purple-dark-background-color .wp-block-columns {
        gap: 32px;
    }
    
    .has-noki-purple-dark-background-color .wp-block-column {
        flex-basis: 100% !important;
    }
    
    .has-noki-purple-dark-background-color h4 {
        margin-top: 16px;
    }
    
    /* Footer Bottom Links Mobile */
    .has-noki-purple-dark-background-color .wp-block-group[style*="space-between"] {
        flex-direction: column !important;
        gap: 16px;
        text-align: center;
    }
}

/* Tablet Adjustments */
@media (min-width: 783px) and (max-width: 1024px) {
    .page-template-page-noki .wp-block-group[style*="padding-left:60px"] {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    
    .noki-hero h1 {
        font-size: 40px !important;
    }
}


/* ==========================================================================
   NOKI PIXEL-PERFECT MOBILE FIX (Override Inline Styles)
   ========================================================================== */

/* Force all Noki page content to respect mobile padding */
body.page-template-page-noki .wp-block-group.alignfull > .wp-block-group[style*="padding"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

@media screen and (max-width: 782px) {
    /* Header */
    body.page-template-page-noki header .wp-block-group[style*="padding"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    body.page-template-page-noki .wp-block-navigation {
        display: none !important;
    }
    
    /* Hero Section */
    body.page-template-page-noki .noki-hero .wp-block-group[style*="padding"] {
        padding: 24px 16px 32px 16px !important;
    }
    
    body.page-template-page-noki .noki-hero .wp-block-columns {
        flex-direction: column-reverse !important;
        gap: 24px !important;
    }
    
    body.page-template-page-noki .noki-hero .wp-block-column[style*="flex-basis"] {
        flex-basis: 100% !important;
    }
    
    body.page-template-page-noki .noki-hero h1.wp-block-heading {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-top: 12px !important;
        margin-bottom: 16px !important;
    }
    
    body.page-template-page-noki .noki-hero p {
        font-size: 15px !important;
    }
    
    body.page-template-page-noki .noki-hero .wp-block-buttons {
        flex-direction: column !important;
        margin-top: 24px !important;
    }
    
    body.page-template-page-noki .noki-hero .wp-block-button {
        width: 100% !important;
        margin: 0 !important;
    }
    
    body.page-template-page-noki .noki-hero .wp-block-button__link {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
    
    /* All Sections */
    body.page-template-page-noki main .wp-block-group[style*="padding-top:80px"] {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    
    body.page-template-page-noki main .wp-block-group[style*="padding-left:60px"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Columns */
    body.page-template-page-noki .wp-block-columns {
        flex-direction: column !important;
    }
    
    body.page-template-page-noki .wp-block-column[style*="flex-basis"] {
        flex-basis: 100% !important;
    }
    
    /* Feature Cards */
    body.page-template-page-noki .wp-block-cover[style*="min-height:320px"] {
        min-height: 220px !important;
    }
    
    /* Section Headers */
    body.page-template-page-noki h2.wp-block-heading[style*="font-size:36px"],
    body.page-template-page-noki h2.wp-block-heading[style*="font-size:32px"] {
        font-size: 24px !important;
    }
    
    body.page-template-page-noki h2.wp-block-heading[style*="font-size:28px"] {
        font-size: 22px !important;
    }
    
    /* Project/News Cards */
    body.page-template-page-noki h3.wp-block-heading[style*="font-size:18px"] {
        font-size: 16px !important;
    }
    
    /* Header Row for Projects/News */
    body.page-template-page-noki .wp-block-group[style*="margin-bottom:40px"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 24px !important;
    }
    
    /* Newsletter Form */
    body.page-template-page-noki .wp-block-group[style*="blockGap"] {
        flex-direction: column !important;
    }
    
    body.page-template-page-noki input[style*="min-width"] {
        min-width: unset !important;
        width: 100% !important;
    }
    
    body.page-template-page-noki button[style*="padding:14px"] {
        width: 100% !important;
    }
    
    /* Footer */
    body.page-template-page-noki footer .wp-block-group[style*="padding"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    body.page-template-page-noki footer .wp-block-columns {
        gap: 24px !important;
    }
    
    body.page-template-page-noki footer .wp-block-column[style*="flex-basis"] {
        flex-basis: 100% !important;
    }
    
    body.page-template-page-noki footer h4.wp-block-heading {
        margin-top: 8px !important;
    }
    
    body.page-template-page-noki footer .wp-block-group[style*="space-between"] {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
    
    /* Intro text */
    body.page-template-page-noki .wp-block-group[style*="contentSize:800px"] p {
        font-size: 16px !important;
    }
}

