/*
 * NEON.EE — theme styles.
 * Values are taken 1:1 from the approved Claude Design (neon.ee-design/Homepage.dc.html).
 * Tokens (palette, fonts, sizes) live in theme.json; this file holds the section layouts.
 */

:root {
	--neon-gutter: 56px;
	--neon-max: 1400px;
	--neon-header-h: 99px;
	--neon-ink: #070708;
	--neon-night: #0f0f11;
	--neon-coal: #141416;
	--neon-paper: #ecebe8;
	--neon-ash: #a9a7a2;
	--neon-smoke: #8d8b87;
	--neon-mist: #cfcdc8;
	--neon-heading: var(--wp--preset--font-family--heading, 'Quicksand', 'Nunito', sans-serif);
}

/* Quicksand has no Cyrillic: Russian headings use Nunito (approved typography decision). */
html:lang(ru) {
	--wp--preset--font-family--heading: 'Nunito', sans-serif;
	--neon-heading: 'Nunito', sans-serif;
}

/* Nunito 200 matches the stroke of Quicksand Light 300 at display sizes (cf. Typography v2: thinnest weights). */
html:lang(ru) .neon-hero__title.wp-block-heading,
html:lang(ru) .neon-s h2.wp-block-heading,
html:lang(ru) .neon-cta__title.wp-block-heading,
html:lang(ru) .neon-stat__value,
html:lang(ru) .neon-page__title {
	font-weight: 200;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

input::placeholder {
	color: #6f6d69;
}

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

.screen-reader-text:focus {
	background: var(--neon-paper);
	color: var(--neon-ink);
}

/* Template parts sit flush; sections handle their own spacing. */
.wp-site-blocks > *,
.neon-main.neon-home,
.neon-home .wp-block-post-content > *,
.neon-s > *,
.neon-s .is-layout-flow > *,
.neon-s .wp-block-group > *,
.neon-s p,
.neon-s h1,
.neon-s h2,
.neon-s h3,
.neon-s figure {
	margin-block: 0;
}

.neon-s {
	position: relative;
}

/* The design sets no body line-height (= normal); only the explicitly styled elements differ. */
.neon-s,
.neon-header,
.neon-footer {
	line-height: normal;
}

.neon-s figure.wp-block-image {
	margin: 0;
}

.neon-s > .neon-s__inner {
	/* content-box as in the design: max 1400px of content + gutters (core sets border-box on groups) */
	box-sizing: content-box;
	max-width: var(--neon-max);
	margin-inline: auto;
	padding-inline: var(--neon-gutter);
}

/* ---------- Shared type ---------- */

.neon-eyebrow {
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--neon-smoke);
}

.neon-h2,
.neon-s h2.wp-block-heading {
	font-family: var(--neon-heading);
	font-weight: 300;
	font-size: clamp(38px, 4.4vw, 64px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}

.neon-intro {
	max-width: 440px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--neon-ash);
	text-wrap: pretty;
}

.neon-split {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 80px;
	align-items: flex-end;
	justify-content: space-between;
}

.neon-split__title {
	max-width: 640px;
}

.neon-credit {
	position: absolute;
	right: 24px;
	bottom: 20px;
	z-index: 2;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
}

/* ---------- Pills (header link + core/button styles) ---------- */

.neon-pill,
.wp-block-button .wp-block-button__link {
	display: inline-block;
	border-radius: 99px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	text-decoration: none;
}

.neon-pill--light,
.wp-block-button.is-style-neon-solid .wp-block-button__link {
	background: var(--neon-paper);
	color: #0a0a0b;
	padding: 17px 32px;
	border: 0;
}

.wp-block-button.is-style-neon-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	padding: 16px 31px;
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.wp-block-button.is-style-neon-dark .wp-block-button__link {
	background: var(--neon-coal);
	color: #f2f1ee;
	padding: 16px 30px;
	border: 0;
}

.neon-pill:hover,
.wp-block-button .wp-block-button__link:hover {
	text-decoration: none;
}

.neon-pill--light:hover,
.wp-block-button.is-style-neon-solid .wp-block-button__link:hover {
	color: #0a0a0b;
	background: #fff;
}

.wp-block-button.is-style-neon-outline .wp-block-button__link:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.75);
}

.wp-block-button.is-style-neon-dark .wp-block-button__link:hover {
	color: #fff;
	background: #000;
}

.neon-pill--small {
	padding: 11px 22px;
	font-size: 15px;
}

.neon-actions.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

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

.neon-header {
	position: relative;
	z-index: 20;
	background: var(--neon-ink);
}

.neon-header.is-overlay {
	position: absolute;
	inset: 0 0 auto 0;
	background: transparent;
}

.neon-header__inner {
	width: 100%;
	max-width: var(--neon-max);
	margin: 0 auto;
	box-sizing: border-box;
	padding: 28px var(--neon-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	font-size: 15px;
	font-weight: 400;
}

.neon-header__logo {
	font-family: 'Quicksand', sans-serif;
	font-weight: 400;
	font-size: 26px;
	color: #fff;
}

.neon-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.neon-menu a {
	color: #d8d6d1;
}

.neon-menu a:hover,
.neon-menu .current-menu-item > a {
	color: #fff;
}

.neon-header__aside {
	display: flex;
	align-items: center;
	gap: 22px;
}

.neon-lang {
	color: var(--neon-ash);
}

.neon-lang a {
	color: inherit;
}

.neon-lang a:hover {
	color: #fff;
}

.neon-header .neon-lang .is-current {
	color: #d8d6d1;
}

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

.neon-hero {
	min-height: min(94vh, 980px);
	display: flex;
	flex-direction: column;
	padding-top: var(--neon-header-h);
	box-sizing: border-box;
}

.neon-hero__media {
	position: absolute !important;
	inset: 0;
	z-index: 0;
}

.neon-hero__media img,
.neon-cta__media img,
.neon-tech__media img,
.neon-apps__stage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.neon-hero__media img {
	object-position: 65% 50%;
}

.neon-hero::before,
.neon-hero::after {
	content: '';
	position: absolute;
	z-index: 1;
	pointer-events: none;
}

.neon-hero::before {
	inset: 0;
	background: linear-gradient(90deg, rgba(7, 7, 8, 0.94) 0%, rgba(7, 7, 8, 0.72) 38%, rgba(7, 7, 8, 0.1) 72%, rgba(7, 7, 8, 0.25) 100%);
}

.neon-hero::after {
	left: 0;
	right: 0;
	bottom: 0;
	height: 42%;
	background: linear-gradient(0deg, #070708 0%, rgba(7, 7, 8, 0) 100%);
}

.neon-hero__content {
	position: relative;
	z-index: 2;
	flex: 1;
	width: 100%;
	max-width: var(--neon-max);
	margin: 0 auto;
	box-sizing: border-box;
	padding: 80px var(--neon-gutter) 120px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 30px;
}

.neon-eyebrow--hero {
	color: #c9c7c2;
}

.neon-hero__title.wp-block-heading {
	max-width: 760px;
	font-family: var(--neon-heading);
	font-weight: 300;
	font-size: clamp(48px, 7vw, 104px);
	line-height: 1.02;
	letter-spacing: -0.025em;
	text-wrap: pretty;
}

.neon-hero__lead {
	max-width: 520px;
	font-size: 19px;
	line-height: 1.65;
	color: var(--neon-mist);
	text-wrap: pretty;
}

/* ---------- Benefits / value ---------- */

.neon-value {
	background: var(--neon-night);
}

.neon-value > .neon-s__inner {
	padding-block: 140px 120px;
	display: flex;
	flex-direction: column;
	gap: 80px;
}

.neon-benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 0 56px;
}

.neon-benefit {
	padding: 30px 0 34px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.neon-num {
	font-size: 14px;
	color: var(--neon-smoke);
}

.neon-benefit__title.wp-block-heading,
.neon-app__title.wp-block-heading {
	font-family: var(--neon-heading);
	font-weight: 400;
	font-size: 26px;
	line-height: normal;
	letter-spacing: 0;
}

.neon-benefit__text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--neon-ash);
}

.neon-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 80px;
}

.neon-stat {
	flex: 1 1 240px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.neon-stat__value {
	font-family: var(--neon-heading);
	font-weight: 300;
	font-size: clamp(56px, 6vw, 88px);
	line-height: 1;
	letter-spacing: -0.03em;
}

.neon-stat__label {
	font-size: 16px;
	color: var(--neon-mist);
}

.neon-draft {
	font-size: 13px;
	color: #e6b46a;
}

/* ---------- Applications ---------- */

.neon-apps {
	background: var(--neon-ink);
	padding: 140px 0;
}

.neon-apps > .neon-s__inner {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 56px 72px;
	align-items: center;
}

.neon-apps__stage {
	flex: 1.4 1 520px;
	min-width: 0;
	position: relative;
	margin-left: calc(-1 * var(--neon-gutter));
}

.neon-apps__frame {
	position: relative;
	aspect-ratio: 5 / 4;
	overflow: hidden;
}

.neon-apps__stage figure {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.5s;
}

.neon-apps__stage figure.is-active {
	opacity: 1;
}

.neon-apps__frame::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(7, 7, 8, 0) 55%, #070708 100%), linear-gradient(0deg, #070708 0%, rgba(7, 7, 8, 0) 30%), linear-gradient(180deg, #070708 0%, rgba(7, 7, 8, 0) 18%);
}

.neon-apps__stage .neon-credit {
	left: 24px;
	right: auto;
	bottom: 18px;
	color: rgba(255, 255, 255, 0.5);
}

.neon-apps__text {
	flex: 1 1 360px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.neon-s .neon-apps__text > .neon-h2 {
	margin-top: 16px;
	text-wrap: wrap; /* this heading has no text-wrap: pretty in the design */
}

.neon-s .neon-apps__text > .neon-apps__list {
	margin-top: 36px;
	display: flex;
	flex-direction: column;
}

.neon-app {
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.neon-app__title.wp-block-heading {
	font-size: 28px;
	color: var(--neon-smoke);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

.neon-app__note {
	font-size: 16px;
	line-height: 1.6;
	color: var(--neon-ash);
}

/* Without JS (and in the editor) every item shows its photo and text. */
.neon-apps:not(.is-enhanced) .neon-app__img {
	margin-bottom: 12px;
}

.neon-apps:not(.is-enhanced) .neon-app__title {
	color: #fff;
}

.neon-apps:not(.is-enhanced) > .neon-s__inner > .neon-credit {
	display: none;
}

/* JS-enhanced: photos move into the stage, one category is active. */
.neon-apps.is-enhanced .neon-app {
	cursor: pointer;
}

.neon-apps.is-enhanced .neon-app__title::after {
	content: '';
	font-family: var(--wp--preset--font-family--body);
	font-size: 20px;
}

.neon-apps.is-enhanced .neon-app.is-active .neon-app__title {
	color: #fff;
}

.neon-apps.is-enhanced .neon-app.is-active .neon-app__title::after {
	content: '→';
}

.neon-apps.is-enhanced .neon-app:not(.is-active) .neon-app__note {
	display: none;
}

.neon-app__toggle {
	all: unset;
	cursor: pointer;
	flex: 1;
}

.neon-app__toggle:focus-visible {
	outline: 2px solid var(--neon-paper);
	outline-offset: 4px;
}

/* ---------- Designer (section shell; designer UI is styled by the bridge plugin) ---------- */

.neon-designer-s {
	background: var(--neon-night);
}

.neon-designer-s > .neon-s__inner {
	padding-block: 140px;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.neon-designer-s .neon-split {
	gap: 24px 80px;
}

.neon-split__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 680px;
}

.neon-designer-s .neon-intro {
	max-width: 420px;
}

/* ---------- Technology ---------- */

.neon-tech {
	background: var(--neon-ink);
	overflow: hidden;
}

.neon-tech__media {
	position: absolute !important;
	right: 0;
	top: 0;
	width: min(52%, 860px);
	height: 100%;
	z-index: 0;
}

.neon-tech::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	width: min(52%, 860px);
	height: 100%;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, #070708 0%, rgba(7, 7, 8, 0.55) 35%, rgba(7, 7, 8, 0.1) 100%), linear-gradient(0deg, #070708 0%, rgba(7, 7, 8, 0) 25%), linear-gradient(180deg, #070708 0%, rgba(7, 7, 8, 0) 25%);
}

.neon-tech > .neon-s__inner {
	position: relative;
	z-index: 2;
	padding-block: 160px;
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.neon-tech__text {
	max-width: 620px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.neon-tech__body {
	font-size: 18px;
	line-height: 1.7;
	color: #bdbbb6;
	text-wrap: pretty;
}

.neon-tech__row {
	max-width: 620px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px 48px;
	align-items: center;
}

.neon-tech-diagram {
	flex: 0 0 260px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.neon-tech-diagram__base {
	position: relative;
	width: 260px;
	height: 96px;
	background: linear-gradient(180deg, rgba(190, 205, 215, 0.28), rgba(140, 155, 165, 0.14));
	border-radius: 3px;
}

.neon-tech-diagram__base > span {
	position: absolute;
	display: block;
}

.neon-tech-diagram__channel {
	left: 100px;
	top: 0;
	width: 60px;
	height: 62px;
	background: #070708;
}

.neon-tech-diagram__glow {
	left: 100px;
	top: 0;
	width: 60px;
	height: 40px;
	background: #fff4e6;
	border-radius: 6px 6px 2px 2px;
	box-shadow: 0 0 14px #ffb35c, 0 0 34px #ffb35c, 0 -10px 60px rgba(255, 179, 92, 0.6);
}

.neon-tech-diagram__led {
	left: 106px;
	top: 44px;
	width: 48px;
	height: 14px;
	background: #d6d3cc;
	border-radius: 2px;
}

.neon-layers.wp-block-list {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: neon-layer;
	font-size: 16px;
	color: var(--neon-mist);
}

.neon-layers li {
	display: flex;
	gap: 16px;
	margin: 0;
	counter-increment: neon-layer;
}

.neon-layers li::before {
	content: counter(neon-layer, decimal-leading-zero);
	flex: 0 0 24px;
	color: var(--neon-smoke);
}

/* ---------- Trust (light section) ---------- */

.neon-trust {
	background: #e9e7e2;
	color: #141416;
}

.neon-trust > .neon-s__inner {
	padding-block: 140px;
	display: flex;
	flex-direction: column;
	gap: 72px;
}

.neon-trust .neon-split {
	gap: 28px 80px;
}

.neon-trust__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px 48px;
}

.neon-trust__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 24px;
	border-top: 1px solid rgba(20, 20, 22, 0.25);
}

.neon-trust__title.wp-block-heading {
	font-family: var(--neon-heading);
	font-weight: 500;
	font-size: 22px;
	line-height: normal;
	letter-spacing: 0;
	color: #141416;
}

.neon-trust__text {
	font-size: 16px;
	line-height: 1.6;
	color: #4a4946;
}

.neon-trust a:not(.wp-block-button__link) {
	color: #141416;
}

/* ---------- Closing CTA ---------- */

.neon-cta {
	min-height: 520px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.neon-cta__media {
	position: absolute !important;
	inset: 0;
	z-index: 0;
}

.neon-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(7, 7, 8, 0.55) 0%, rgba(7, 7, 8, 0.6) 60%, #070708 100%);
}

.neon-cta__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--neon-max);
	margin: 0 auto;
	padding: 120px var(--neon-gutter);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 28px;
}

.neon-cta__title.wp-block-heading {
	max-width: 820px;
	font-family: var(--neon-heading);
	font-weight: 300;
	font-size: clamp(40px, 5vw, 76px);
	line-height: 1.06;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}

.neon-cta__text {
	max-width: 520px;
	font-size: 18px;
	line-height: 1.65;
	color: #d8d6d1;
}

.neon-cta .neon-actions.wp-block-buttons {
	justify-content: center;
}

.neon-cta .is-style-neon-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.45);
}

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

.neon-footer {
	background: var(--neon-coal);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.neon-footer__inner {
	max-width: var(--neon-max);
	margin: 0 auto;
	padding: 96px var(--neon-gutter) 40px;
	display: flex;
	flex-direction: column;
	gap: 72px;
}

.neon-footer__top {
	display: flex;
	flex-wrap: wrap;
	gap: 56px 80px;
	justify-content: space-between;
}

.neon-footer__brand {
	flex: 1 1 300px;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.neon-footer__logo {
	font-family: 'Quicksand', sans-serif;
	font-weight: 300;
	font-size: 56px;
	line-height: 1;
	color: #fff;
}

.neon-footer__logo:hover {
	text-decoration: none;
}

.neon-footer__tagline {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--neon-ash);
}

.neon-footer__company {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--neon-smoke);
}

.neon-footer__cols {
	flex: 2 1 480px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 36px 40px;
	font-size: 16px;
}

.neon-footer__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.neon-footer__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0.12em;
	line-height: normal;
	text-transform: uppercase;
	color: var(--neon-smoke);
}

.neon-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.neon-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-style: normal;
}

.neon-footer__muted {
	color: var(--neon-ash);
}

.neon-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	justify-content: space-between;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 14px;
	color: var(--neon-smoke);
}

.neon-footer .neon-lang {
	display: flex;
	gap: 18px;
	color: var(--neon-smoke);
}

.neon-footer .neon-lang__sep {
	display: none;
}

.neon-footer .neon-lang .is-current {
	color: var(--neon-paper);
}

/* ---------- Inner pages ---------- */

.neon-main.neon-page {
	padding: 80px var(--neon-gutter) 140px;
}

.neon-page__title.wp-block-post-title,
.neon-page h1.neon-page__title {
	font-family: var(--neon-heading);
	font-weight: 300;
	font-size: clamp(40px, 5vw, 76px);
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin-bottom: 40px;
}

.neon-prose {
	font-size: 18px;
	line-height: 1.7;
	color: #cfcdc8;
}

.neon-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Small screens ----------
 * The approved design is fluid (flex-wrap / auto-fit) with a fixed 56px gutter on every
 * width, and that is kept. PROPOSED (not approved yet): a 24px gutter below 600px for a
 * wider text measure on phones — enable by uncommenting:
 *
 * @media (max-width: 600px) { :root { --neon-gutter: 24px; } }
 */

@media (prefers-reduced-motion: reduce) {
	.neon-apps__stage figure {
		transition: none;
	}
}
