/* ==========================================================================
   Noetic Lab Cyber — main stylesheet
   Cyber-industrial dark theme, responsive, accessible.
   ========================================================================== */

:root {
	/* ── Tactical Teal palette — matches ScanAnalyzer Android app ──────────── */
	--bg: #020617;              /* slate-950 */
	--bg-elev-1: #0F172A;       /* slate-900 */
	--bg-elev-2: #1E293B;       /* slate-800 */
	--bg-elev-3: #334155;       /* slate-700 */
	--surface: rgba(15, 23, 42, .85);
	--border: rgba(51, 65, 85, .5);
	--border-strong: rgba(20, 184, 166, .35);
	--text: #F8FAFC;            /* slate-50 */
	--text-muted: #94A3B8;      /* slate-400 */
	--text-dim: #64748B;        /* slate-500 */

	--accent: #14B8A6;          /* tactical teal 500 */
	--accent-hover: #2DD4BF;    /* teal 400 */
	--accent-soft: #5EEAD4;     /* teal 300 */
	--accent-warm: #F97316;     /* tactical orange (tokens) */
	--purple: #7B61FF;          /* AI features */
	--success: #00D68F;
	--danger: #FF4747;
	--warning: #FFAB00;

	--grad-accent: linear-gradient(135deg, #14B8A6 0%, #2DD4BF 100%);
	--grad-warm: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
	--grad-purple: linear-gradient(135deg, #7B61FF 0%, #2DD4BF 100%);
	--grad-bg: radial-gradient(1200px 600px at 80% -10%, rgba(20,184,166,.12), transparent 60%),
			   radial-gradient(900px 500px at -10% 20%, rgba(123,97,255,.06), transparent 55%),
			   radial-gradient(1000px 800px at 50% 120%, rgba(249,115,22,.04), transparent 60%);

	--radius: 14px;
	--radius-sm: 8px;
	--radius-lg: 22px;

	--shadow-sm: 0 2px 8px rgba(0,0,0,.3);
	--shadow: 0 10px 40px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.3);
	--shadow-glow: 0 0 0 1px rgba(20,184,166,.2), 0 10px 40px rgba(20,184,166,.12);

	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

	--container: 1240px;
	--header-h: 72px;

	--ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	background-image: var(--grad-bg);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background:
		linear-gradient(rgba(100,160,200,.035) 1px, transparent 1px) 0 0 / 100% 44px,
		linear-gradient(90deg, rgba(100,160,200,.035) 1px, transparent 1px) 0 0 / 44px 100%;
	pointer-events: none;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 90%);
	z-index: 0;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
	position: absolute;
	top: -100px; left: 0;
	background: var(--accent); color: #000;
	padding: 8px 16px; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* -------- Layout helpers -------- */
.container {
	width: min(var(--container), 100% - 48px);
	margin-inline: auto;
	position: relative;
	z-index: 1;
}
.container--narrow { max-width: 760px; }

.section {
	padding: clamp(64px, 10vw, 140px) 0;
	position: relative;
}

.section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 70px); }
.section-kicker {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: .78rem;
	color: var(--accent);
	letter-spacing: .18em;
	padding: 6px 14px;
	border: 1px solid var(--border-strong);
	border-radius: 100px;
	margin-bottom: 18px;
	background: rgba(20,184,166,.04);
}
.section-title {
	margin: 0 0 14px;
}
.section-lead {
	max-width: 720px;
	margin: 0 auto;
	color: var(--text-muted);
	font-size: clamp(1rem, 1.2vw, 1.1rem);
}

/* -------- Buttons -------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 100px;
	border: 1px solid transparent;
	font-family: inherit;
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
	transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
	text-decoration: none;
	white-space: nowrap;
	background: none;
}
.btn__icon { display: inline-flex; font-size: 1em; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--compact { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

.btn--primary {
	background: var(--grad-accent);
	color: #041016;
	box-shadow: 0 6px 24px rgba(20,184,166,.3);
}
.btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 36px rgba(20,184,166,.45);
	color: #041016;
}

.btn--ghost {
	background: rgba(20,184,166,.06);
	color: var(--accent);
	border-color: var(--border-strong);
}
.btn--ghost:hover {
	background: rgba(20,184,166,.12);
	border-color: var(--accent);
}

/* -------- Header -------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	background: rgba(5,7,11,.7);
	border-bottom: 1px solid var(--border);
}
.site-header__inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
	text-decoration: none;
}
.site-brand__mark {
	display: inline-flex;
	padding: 8px;
	border-radius: 10px;
	background: var(--grad-accent);
	color: #041016;
}
.site-brand__text strong {
	display: block;
	font-size: 1.02rem;
	letter-spacing: .01em;
}
.site-brand__text small {
	display: block;
	font-size: .72rem;
	color: var(--text-dim);
	font-family: var(--font-mono);
	letter-spacing: .04em;
	text-transform: uppercase;
}

.site-nav__list {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0; padding: 0;
}
.site-nav__list a {
	color: var(--text-muted);
	font-size: .95rem;
	font-weight: 500;
	text-decoration: none;
	transition: color .2s;
}
.site-nav__list a:hover { color: var(--text); }

.site-header__cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
	display: none;
	width: 40px; height: 40px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 10px;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 4px;
	padding: 10px;
}
.nav-toggle span {
	display: block;
	width: 18px; height: 2px;
	background: var(--text);
	transition: transform .25s, opacity .25s;
}

.site-nav-mobile {
	display: none;
	padding: 16px 24px 24px;
	border-bottom: 1px solid var(--border);
	background: var(--bg-elev-1);
}
.site-nav-mobile__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; gap: 4px;
}
.site-nav-mobile__list a {
	display: block;
	padding: 12px 8px;
	color: var(--text);
	border-radius: 8px;
	text-decoration: none;
}
.site-nav-mobile__list a:hover { background: rgba(20,184,166,.06); }

@media (max-width: 900px) {
	.site-nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.site-header__cta .btn--compact { display: none; }
	.site-nav-mobile[data-open="true"] { display: block; }
}

/* -------- Hero -------- */
.section--hero { padding-top: clamp(50px, 8vw, 100px); }
.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: clamp(40px, 6vw, 90px);
	align-items: center;
}
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono);
	font-size: .75rem; letter-spacing: .2em;
	color: var(--accent-hover);
	text-transform: uppercase;
	padding: 6px 12px;
	border: 1px solid var(--border-strong);
	border-radius: 100px;
	margin-bottom: 22px;
	background: rgba(20,184,166,.04);
}
.eyebrow__dot {
	width: 6px; height: 6px;
	background: var(--accent-hover);
	border-radius: 50%;
	box-shadow: 0 0 12px var(--accent-hover);
	animation: pulse 2s infinite;
}

.hero-title { margin-bottom: 20px; }
.hero-title__accent {
	display: block;
	background: var(--grad-accent);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(2.4rem, 5.6vw, 4.4rem);
	line-height: 1;
}
.hero-title__sub {
	display: block;
	font-size: clamp(1.1rem, 1.8vw, 1.6rem);
	font-weight: 500;
	color: var(--text-muted);
	margin-top: 12px;
}
.hero-lead {
	color: var(--text-muted);
	font-size: 1.06rem;
	max-width: 560px;
	margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding-top: 28px;
	border-top: 1px solid var(--border);
	max-width: 560px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong {
	font-family: var(--font-mono);
	font-size: 1.4rem;
	color: var(--accent);
	font-weight: 700;
}
.hero-stats span {
	font-size: .78rem;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: .08em;
}

/* Hero visual — device frame */
.hero-grid__visual { position: relative; }
.device-frame {
	position: relative;
	aspect-ratio: 9 / 18;
	max-width: 320px;
	margin: 0 auto;
	padding: 14px 10px;
	background: linear-gradient(180deg, #1a2130, #0a0e14);
	border-radius: 42px;
	border: 1px solid var(--border-strong);
	box-shadow:
		inset 0 0 0 2px rgba(0,0,0,.6),
		0 30px 80px rgba(0,0,0,.6),
		0 0 60px rgba(20,184,166,.1);
}
.device-frame::after {
	content: '';
	position: absolute;
	top: 10px; left: 50%;
	transform: translateX(-50%);
	width: 80px; height: 18px;
	background: #000;
	border-radius: 12px;
}
.device-frame__screen {
	height: 100%;
	border-radius: 32px;
	background: #05090d;
	overflow: hidden;
	position: relative;
}
.scan-preview {
	height: 100%;
	padding: 32px 14px 14px;
	display: flex; flex-direction: column; gap: 12px;
}
.scan-preview__header {
	display: flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: .72rem;
	color: var(--text-muted);
}
.scan-preview__dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--accent-hover);
	box-shadow: 0 0 10px var(--accent-hover);
	animation: pulse 1.6s infinite;
}
.scan-preview__canvas {
	flex: 1;
	border-radius: 10px;
	background:
		radial-gradient(circle at 50% 40%, rgba(255,181,71,.4), transparent 30%),
		radial-gradient(circle at 30% 70%, rgba(229,57,53,.25), transparent 22%),
		linear-gradient(180deg, #041125, #061a2e);
	position: relative;
	overflow: hidden;
	box-shadow: inset 0 0 30px rgba(20,184,166,.15);
}
.scan-preview__canvas::before,
.scan-preview__canvas::after {
	content: '';
	position: absolute;
	left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	box-shadow: 0 0 14px var(--accent);
	animation: scanline 3s linear infinite;
}
.scan-preview__canvas::after { animation-delay: 1.5s; opacity: .5; }
.scan-preview__readout {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	font-family: var(--font-mono); font-size: .7rem;
}
.scan-preview__readout span { display: block; color: var(--text-dim); }
.scan-preview__readout strong { color: var(--accent-hover); font-weight: 700; font-size: .85rem; }

.hero-orbit {
	position: absolute;
	inset: -40px;
	border-radius: 50%;
	border: 1px dashed rgba(20,184,166,.12);
	z-index: -1;
	animation: spin 30s linear infinite;
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes scanline { 0% { top: 0%; } 100% { top: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; text-align: center; }
	.hero-lead, .hero-stats { margin-inline: auto; }
	.hero-cta { justify-content: center; }
	.hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* -------- Features -------- */
.section--features { background: rgba(10,14,20,.4); }
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}
.feature-card {
	padding: 28px 26px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	backdrop-filter: blur(10px);
	transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
	position: relative;
	overflow: hidden;
}
.feature-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, transparent 40%, rgba(20,184,166,.04) 100%);
	opacity: 0;
	transition: opacity .3s;
}
.feature-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-glow);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
	display: inline-flex;
	padding: 12px;
	border-radius: 12px;
	background: rgba(20,184,166,.08);
	border: 1px solid var(--border-strong);
	color: var(--accent);
	margin-bottom: 18px;
	width: 50px; height: 50px;
	align-items: center; justify-content: center;
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__title { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card__desc { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* -------- Demo -------- */
.demo-shell {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 24px;
	background: var(--bg-elev-1);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px;
	box-shadow: var(--shadow);
}
.demo-controls { display: flex; flex-direction: column; gap: 16px; }
.demo-controls__group { display: flex; flex-direction: column; gap: 18px; }
.demo-field { display: flex; flex-direction: column; gap: 8px; }
.demo-field > span {
	font-family: var(--font-mono);
	font-size: .72rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: .08em;
	display: flex; justify-content: space-between; align-items: center;
}
.demo-field em {
	font-style: normal;
	color: var(--accent);
	font-size: .85rem;
}
.demo-field select,
.demo-field input[type="range"] {
	width: 100%;
	padding: 10px 12px;
	background: var(--bg-elev-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-family: inherit;
}
.demo-field input[type="range"] { padding: 0; accent-color: var(--accent); }
.demo-seg {
	display: flex; gap: 4px;
	background: var(--bg-elev-2);
	padding: 4px;
	border-radius: 100px;
	border: 1px solid var(--border);
}
.demo-seg button {
	flex: 1;
	padding: 8px 12px;
	border: none;
	background: transparent;
	color: var(--text-muted);
	border-radius: 100px;
	cursor: pointer;
	font-weight: 600;
	font-family: var(--font-mono);
	font-size: .85rem;
}
.demo-seg button.is-active { background: var(--accent); color: #000; }
.demo-note {
	font-size: .75rem;
	color: var(--text-dim);
	margin: 0;
	padding: 12px;
	border-left: 2px solid var(--accent);
	background: rgba(20,184,166,.03);
	border-radius: 4px;
}

.demo-stage { display: flex; flex-direction: column; gap: 16px; }
.demo-stage__tabs {
	display: flex; gap: 4px;
	background: var(--bg-elev-2);
	padding: 4px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
}
.demo-stage__tabs button {
	flex: 1;
	padding: 10px 14px;
	background: transparent;
	border: none;
	color: var(--text-muted);
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500;
	font-size: .9rem;
}
.demo-stage__tabs button.is-active {
	background: var(--bg-elev-3);
	color: var(--accent);
}
.demo-stage__body {
	position: relative;
	aspect-ratio: 16/10;
	background: #030608;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.demo-panel {
	position: absolute; inset: 0;
	opacity: 0; pointer-events: none;
	transition: opacity .3s;
	padding: 20px;
	display: flex; flex-direction: column;
}
.demo-panel.is-active { opacity: 1; pointer-events: auto; }
.demo-panel canvas {
	width: 100%; height: 100%;
	max-height: 100%;
	border-radius: 6px;
	object-fit: contain;
}
.demo-legend {
	display: flex; gap: 14px; flex-wrap: wrap;
	margin-top: 12px;
	font-size: .8rem;
	color: var(--text-muted);
}
.demo-legend__item { display: flex; align-items: center; gap: 6px; }
.demo-legend__item i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.demo-report {
	font-family: var(--font-mono);
	font-size: .88rem;
	line-height: 1.7;
	color: var(--text);
	overflow-y: auto;
	max-height: 100%;
}
.demo-report h5 { color: var(--accent); font-size: 1rem; margin: 0 0 8px; }
.demo-report__placeholder {
	color: var(--text-dim);
	text-align: center;
	margin: auto;
	font-style: italic;
}
.demo-report .tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 100px;
	background: rgba(20,184,166,.1);
	color: var(--accent);
	font-size: .72rem;
	margin-right: 4px;
}

.demo-stage__meters {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter span {
	font-family: var(--font-mono);
	font-size: .72rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: .08em;
}
.meter__bar {
	height: 8px;
	background: var(--bg-elev-2);
	border-radius: 100px;
	overflow: hidden;
	border: 1px solid var(--border);
}
.meter__bar i {
	display: block;
	height: 100%;
	background: var(--grad-accent);
	transition: width .3s var(--ease);
	box-shadow: 0 0 12px var(--accent);
}
.meter__bar--pulse i { background: var(--grad-warm); box-shadow: 0 0 12px var(--accent-warm); }

@media (max-width: 860px) {
	.demo-shell { grid-template-columns: 1fr; padding: 16px; }
}

/* -------- Download -------- */
.download-grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr .8fr;
	gap: 20px;
}
.download-card {
	padding: 32px 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	backdrop-filter: blur(10px);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.download-card--primary {
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(20,184,166,.1), transparent 60%),
		var(--surface);
	border-color: var(--border-strong);
}
.download-card__head { display: flex; justify-content: space-between; align-items: center; }
.pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 100px;
	font-family: var(--font-mono);
	font-size: .7rem;
	letter-spacing: .12em;
	background: rgba(20,184,166,.1);
	color: var(--accent-hover);
	border: 1px solid rgba(20,184,166,.25);
}
.version-chip {
	font-family: var(--font-mono);
	font-size: .78rem;
	color: var(--text-muted);
}
.download-card__hint {
	display: block; margin-top: 8px;
	font-size: .75rem; color: var(--text-dim);
}
.download-meta {
	list-style: none;
	margin: auto 0 0; padding: 20px 0 0;
	border-top: 1px solid var(--border);
	display: flex; flex-direction: column; gap: 10px;
}
.download-meta li {
	display: flex; justify-content: space-between;
	font-size: .85rem;
}
.download-meta span { color: var(--text-muted); }
.download-meta strong {
	font-family: var(--font-mono);
	color: var(--text);
	font-weight: 500;
}

.download-card--qr { align-items: center; text-align: center; }
.qr-wrap {
	padding: 14px;
	background: #fff;
	border-radius: 12px;
	display: inline-block;
}
#apkQR { width: 200px; height: 200px; }
.qr-hint { font-size: .85rem; color: var(--text-muted); margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--text-muted); }
.steps__n {
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 26px; height: 26px; flex-shrink: 0;
	border-radius: 50%;
	background: var(--grad-accent);
	color: #000;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: .78rem;
}

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

/* -------- About -------- */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(30px, 5vw, 70px);
	align-items: start;
}
.about-copy p { color: var(--text-muted); font-size: 1.02rem; }
.about-badges { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.badge {
	padding: 14px 20px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	text-align: center;
}
.badge span {
	display: block;
	font-family: var(--font-mono);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--accent);
	line-height: 1;
}
.badge small {
	display: block;
	font-size: .72rem;
	color: var(--text-muted);
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.about-specs {
	padding: 32px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	backdrop-filter: blur(10px);
}
.about-specs h3 { font-size: 1.15rem; margin-bottom: 20px; color: var(--accent); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; }
.specs { margin: 0; display: flex; flex-direction: column; gap: 0; }
.specs > div {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--border);
	font-size: .9rem;
}
.specs > div:last-child { border-bottom: none; }
.specs dt { color: var(--text-muted); margin: 0; }
.specs dd { margin: 0; font-family: var(--font-mono); color: var(--text); }

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

/* -------- Footer -------- */
.site-footer {
	padding: 60px 0 30px;
	background: var(--bg-elev-1);
	border-top: 1px solid var(--border);
	margin-top: 80px;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--border);
}
.site-footer__col h4 {
	font-size: .82rem;
	color: var(--accent);
	margin-bottom: 16px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__col a { color: var(--text-muted); font-size: .9rem; }
.site-footer__col a:hover { color: var(--text); }
.footer-contact { gap: 10px !important; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact span { color: var(--accent); width: 18px; }
.footer-meta { font-size: .78rem; color: var(--text-dim); font-family: var(--font-mono); margin-top: 8px; }
.status-pill {
	display: inline-flex;
	align-items: center; gap: 8px;
	padding: 6px 12px;
	background: rgba(20,184,166,.08);
	border: 1px solid rgba(20,184,166,.2);
	border-radius: 100px;
	font-size: .8rem;
	color: var(--accent-hover);
	font-family: var(--font-mono);
}
.status-dot {
	width: 8px; height: 8px;
	background: var(--accent-hover);
	border-radius: 50%;
	box-shadow: 0 0 8px var(--accent-hover);
	display: inline-block;
	animation: pulse 1.8s infinite;
}
.site-footer__bottom {
	padding-top: 30px;
	text-align: center;
	color: var(--text-dim);
	font-size: .82rem;
}

@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* -------- AI Chat -------- */
.ai-chat {
	position: fixed;
	bottom: 22px; right: 22px;
	z-index: 1000;
}
.ai-chat__fab {
	display: inline-flex;
	align-items: center; gap: 10px;
	padding: 14px 22px 14px 18px;
	background: var(--grad-accent);
	color: #041016;
	border: none;
	border-radius: 100px;
	font-family: inherit;
	font-weight: 700;
	font-size: .95rem;
	cursor: pointer;
	box-shadow: 0 10px 40px rgba(20,184,166,.4);
	transition: transform .2s var(--ease), box-shadow .2s;
	position: relative;
}
.ai-chat__fab:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(20,184,166,.55); }
.ai-chat__fab-icon { display: inline-flex; }
.ai-chat__fab-icon svg { width: 20px; height: 20px; }
.ai-chat__fab-pulse {
	position: absolute;
	inset: 0;
	border-radius: 100px;
	border: 2px solid var(--accent);
	animation: fabPulse 2.4s infinite;
}
@keyframes fabPulse {
	0% { transform: scale(1); opacity: .6; }
	100% { transform: scale(1.2); opacity: 0; }
}

.ai-chat__panel {
	position: absolute;
	bottom: 72px; right: 0;
	width: min(380px, calc(100vw - 44px));
	height: min(580px, calc(100vh - 120px));
	background: var(--bg-elev-1);
	border: 1px solid var(--border-strong);
	border-radius: 20px;
	box-shadow: var(--shadow), 0 0 60px rgba(20,184,166,.15);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: chatIn .3s var(--ease);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ai-chat__panel[hidden] { display: none; }

.ai-chat__header {
	padding: 14px 16px;
	display: flex; justify-content: space-between; align-items: center;
	background: linear-gradient(180deg, rgba(20,184,166,.06), transparent);
	border-bottom: 1px solid var(--border);
}
.ai-chat__brand { display: flex; gap: 12px; align-items: center; }
.ai-chat__avatar {
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--grad-accent);
	color: #041016;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
}
.ai-chat__brand strong { display: block; font-size: .95rem; }
.ai-chat__brand small {
	display: flex; align-items: center; gap: 6px;
	font-size: .72rem; color: var(--text-muted);
	font-family: var(--font-mono);
}
.ai-chat__close {
	width: 32px; height: 32px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 1.2rem;
	line-height: 1;
}
.ai-chat__close:hover { color: var(--text); background: var(--bg-elev-2); }

.ai-chat__body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	scroll-behavior: smooth;
}
.ai-chat__msg { display: flex; }
.ai-chat__msg--user { justify-content: flex-end; }
.ai-chat__bubble {
	max-width: 82%;
	padding: 10px 14px;
	border-radius: 16px;
	font-size: .92rem;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}
.ai-chat__msg--bot .ai-chat__bubble {
	background: var(--bg-elev-2);
	border: 1px solid var(--border);
	border-bottom-left-radius: 4px;
	color: var(--text);
}
.ai-chat__msg--user .ai-chat__bubble {
	background: var(--grad-accent);
	color: #041016;
	border-bottom-right-radius: 4px;
	font-weight: 500;
}
.ai-chat__bubble strong { color: var(--accent); }
.ai-chat__msg--user .ai-chat__bubble strong { color: #041016; }
.ai-chat__typing {
	display: inline-flex; gap: 4px;
	padding: 12px 14px;
	background: var(--bg-elev-2);
	border-radius: 16px;
	border-bottom-left-radius: 4px;
	border: 1px solid var(--border);
}
.ai-chat__typing i {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--text-muted);
	animation: bounce 1.2s infinite;
}
.ai-chat__typing i:nth-child(2) { animation-delay: .15s; }
.ai-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.ai-chat__suggestions {
	padding: 8px 16px 0;
	display: flex; gap: 6px; flex-wrap: wrap;
	border-top: 1px solid var(--border);
	padding-top: 10px;
}
.ai-chat__suggestions button {
	padding: 6px 12px;
	background: var(--bg-elev-2);
	border: 1px solid var(--border);
	color: var(--text-muted);
	border-radius: 100px;
	font-size: .78rem;
	cursor: pointer;
	font-family: inherit;
	transition: all .2s;
}
.ai-chat__suggestions button:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: rgba(20,184,166,.05);
}

.ai-chat__composer {
	padding: 10px 12px;
	display: flex; gap: 8px;
	border-top: 1px solid var(--border);
	background: var(--bg-elev-2);
}
.ai-chat__composer input {
	flex: 1;
	padding: 10px 14px;
	background: var(--bg-elev-3);
	border: 1px solid var(--border);
	border-radius: 100px;
	color: var(--text);
	font-family: inherit;
	font-size: .92rem;
	outline: none;
}
.ai-chat__composer input:focus { border-color: var(--accent); }
.ai-chat__composer button {
	width: 40px; height: 40px; flex-shrink: 0;
	background: var(--grad-accent);
	color: #041016;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.1rem;
	font-weight: 700;
}
.ai-chat__footer {
	padding: 8px 16px;
	font-size: .7rem;
	color: var(--text-dim);
	text-align: center;
	background: var(--bg-elev-2);
	border-top: 1px solid var(--border);
}

@media (max-width: 500px) {
	.ai-chat { bottom: 12px; right: 12px; }
	.ai-chat__fab-label { display: none; }
	.ai-chat__fab { padding: 14px; }
	.ai-chat__panel { width: calc(100vw - 24px); height: calc(100vh - 100px); }
}

/* -------- 404 -------- */
.error-card {
	padding: 60px 30px;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}
.error-card__code {
	font-family: var(--font-mono);
	font-size: 5rem;
	font-weight: 700;
	background: var(--grad-accent);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	line-height: 1;
	margin-bottom: 20px;
}

/* -------- Generic WP content -------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 30px;
}
.post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
.post-card__body { padding: 20px; }
.post-card__title a { color: var(--text); text-decoration: none; }
.post-card__title a:hover { color: var(--accent); }
.page-content { color: var(--text-muted); font-size: 1.02rem; }
.page-content a { color: var(--accent); }

/* -------- Utilities -------- */
.is-hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	html { scroll-behavior: auto; }
}

/* ==========================================================================
   ΝΕΑ COMPONENTS — Language switcher, Videos, Tokens, Kicker variants
   ========================================================================== */

/* -------- Language Switcher -------- */
.lang-switcher {
	position: relative;
}
.lang-switcher__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 14px 12px;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: var(--text-muted);
	font-family: inherit;
	font-size: .94rem;
	font-weight: 500;
	cursor: pointer;
	transition: color .18s, background .18s;
}
.lang-switcher__trigger:hover,
.lang-switcher__trigger:focus-visible {
	color: var(--text);
	background: rgba(20,184,166,.06);
}
.lang-switcher[data-open="true"] .lang-switcher__trigger { color: var(--accent); }
.lang-switcher[data-open="true"] .lang-switcher__caret { color: var(--accent); }
.lang-switcher__flag { font-size: 1.05rem; line-height: 1; }
.lang-switcher__code {
	font-family: var(--font-mono);
	letter-spacing: .04em;
	color: var(--accent);
}
.lang-switcher__caret {
	font-size: .7rem;
	color: var(--text-muted);
	transition: transform .2s;
}
.lang-switcher[data-open="true"] .lang-switcher__caret { transform: rotate(180deg); }

.lang-switcher__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 180px;
	list-style: none;
	margin: 0; padding: 6px;
	background: var(--bg-elev-1);
	border: 1px solid var(--border-strong);
	border-radius: 14px;
	box-shadow: var(--shadow);
	z-index: 200;
	animation: langIn .2s var(--ease);
}
.lang-switcher__menu[hidden] { display: none; }
.lang-switcher__menu li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--text);
	text-decoration: none;
	font-size: .9rem;
	transition: background .15s;
}
.lang-switcher__menu li a:hover,
.lang-switcher__menu li a.is-active {
	background: rgba(20,184,166,.1);
	color: var(--accent);
}
.lang-switcher__menu li a.is-active { font-weight: 600; }

@keyframes langIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
	.lang-switcher__menu { right: auto; left: 0; }
}

/* -------- Videos -------- */
.section--videos { background: linear-gradient(180deg, transparent, rgba(15,23,42,.4) 50%, transparent); }

.videos-empty {
	text-align: center;
	padding: 60px 30px;
	color: var(--text-muted);
	background: var(--surface);
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-lg);
}
.videos-empty svg { margin: 0 auto 16px; color: var(--accent); }
.videos-empty p { margin: 0; font-size: .95rem; }

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
}
.video-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	backdrop-filter: blur(10px);
	transition: border-color .3s, transform .3s var(--ease);
	position: relative;
}
.video-card:hover {
	border-color: var(--border-strong);
	transform: translateY(-2px);
}
.video-card--featured {
	grid-column: span 2;
}
.video-card__embed {
	position: relative;
	aspect-ratio: 16/9;
	background: #000;
}
.video-card__embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.videos-cta { text-align: center; margin-top: 30px; }

@media (max-width: 900px) {
	.video-card--featured { grid-column: auto; }
}

/* -------- Tokens & API -------- */
.section--tokens {
	background:
		radial-gradient(900px 400px at 80% 20%, rgba(249,115,22,.04), transparent 60%),
		var(--bg);
}
.section-kicker--warm {
	color: var(--accent-warm);
	border-color: rgba(249,115,22,.35);
	background: rgba(249,115,22,.04);
}

.tokens-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 28px;
}
.tokens-col {
	padding: 32px 30px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	backdrop-filter: blur(10px);
}
.tokens-col h3 {
	font-size: 1.15rem;
	margin-bottom: 18px;
	color: var(--text);
}
.tokens-icon {
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(249,115,22,.1);
	border: 1px solid rgba(249,115,22,.3);
	border-radius: 12px;
	color: var(--accent-warm);
	margin-bottom: 16px;
}
.tokens-icon svg { width: 22px; height: 22px; }

.steps--numbered { gap: 16px; }
.steps--numbered .steps__n {
	background: var(--grad-warm);
}

.scope-list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.scope-list li {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	gap: 4px 14px;
	padding: 14px;
	background: var(--bg-elev-2);
	border: 1px solid var(--border);
	border-radius: 10px;
	transition: border-color .2s;
}
.scope-list li:hover { border-color: var(--border-strong); }
.scope-code {
	grid-row: 1 / span 2;
	align-self: center;
	padding: 6px 10px;
	background: rgba(249,115,22,.08);
	color: var(--accent-warm);
	border: 1px solid rgba(249,115,22,.25);
	border-radius: 6px;
	font-family: var(--font-mono);
	font-size: .8rem;
	font-weight: 600;
	white-space: nowrap;
}
.scope-list li strong {
	font-size: .92rem;
	color: var(--text);
}
.scope-list li span {
	font-size: .82rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.tokens-example {
	background: var(--bg-elev-1);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 28px;
}
.tokens-example__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 18px 24px;
	border-bottom: 1px solid var(--border);
	background: var(--bg-elev-2);
	flex-wrap: wrap;
}
.tokens-example__head h4 {
	margin: 0 0 4px;
	font-size: .9rem;
	color: var(--accent-warm);
	text-transform: none;
	letter-spacing: normal;
}
.tokens-example__head p {
	margin: 0;
	font-size: .82rem;
	color: var(--text-muted);
}
.tokens-code {
	margin: 0;
	padding: 20px 24px;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: .82rem;
	line-height: 1.6;
	color: var(--text);
	background: transparent;
}
.tokens-code code {
	color: var(--text);
	background: none;
	white-space: pre;
}

.tokens-security {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	padding: 28px 30px;
	background: linear-gradient(135deg, rgba(123,97,255,.04), rgba(20,184,166,.04));
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	margin-bottom: 28px;
}
.tokens-security__icon {
	width: 56px; height: 56px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(123,97,255,.1);
	border: 1px solid rgba(123,97,255,.3);
	border-radius: 14px;
	color: var(--purple);
}
.tokens-security__body h4 {
	margin: 0 0 12px;
	color: var(--purple);
	font-size: .9rem;
}
.tokens-security__body ul {
	margin: 0; padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tokens-security__body li {
	position: relative;
	padding-left: 22px;
	font-size: .9rem;
	color: var(--text-muted);
}
.tokens-security__body li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--success);
	font-weight: 700;
}

.tokens-cta { text-align: center; }

.btn--warm {
	background: var(--grad-warm);
	color: #fff;
	box-shadow: 0 6px 24px rgba(249,115,22,.3);
}
.btn--warm:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 36px rgba(249,115,22,.45);
	color: #fff;
}

@media (max-width: 860px) {
	.tokens-grid { grid-template-columns: 1fr; }
	.tokens-security { grid-template-columns: 1fr; text-align: left; }
	.tokens-example__head { flex-direction: column; align-items: flex-start; }
}
