:root {
	--it-bg: #000000;
	--it-bg-elevated: #0a0a0a;
	--it-panel: #111111;
	--it-border: rgba(255, 255, 255, 0.1);
	--it-text: #ededed;
	--it-muted: #888888;
	--it-accent: #ffffff;
	--it-accent-hover: #e5e5e5;
	--it-accent-soft: rgba(255, 255, 255, 0.08);
	--it-accent-rgb: 255, 255, 255;
	--it-green: #ffffff;
	--it-radius: 12px;
	--it-max: 1180px;
	--it-font: "Inter", system-ui, -apple-system, sans-serif;
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--it-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--it-text);
	background: var(--it-bg);
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

.it-landing {
	position: relative;
}

.it-landing__glow {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 60% 45% at 15% -5%, rgba(255, 255, 255, 0.05), transparent 55%),
		radial-gradient(ellipse 50% 40% at 85% 10%, rgba(255, 255, 255, 0.04), transparent 50%),
		radial-gradient(ellipse 40% 30% at 50% 100%, rgba(255, 255, 255, 0.03), transparent 55%);
}

.it-landing__grid {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.14;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black, transparent);
}

.it-shell {
	position: relative;
	z-index: 1;
}

.it-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(16px);
}

.it-nav__inner {
	max-width: var(--it-max);
	margin: 0 auto;
	padding: 0 24px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.it-brand {
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.it-brand__logo {
	width: 22px;
	height: auto;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	animation: it-logo-glitch 2s steps(1, end) infinite;
}

.it-brand:hover .it-brand__logo {
	animation-duration: 0.8s;
}

@keyframes it-logo-glitch {
	0%,
	86%,
	100% {
		transform: translate3d(0, 0, 0);
		filter: none;
		clip-path: none;
	}

	87% {
		transform: translate3d(-2px, 1px, 0) skewX(-5deg);
		filter: drop-shadow(3px 0 0 #ff3864) drop-shadow(-3px 0 0 #36d6ff);
	}

	88% {
		transform: translate3d(3px, -2px, 0) skewX(4deg);
		filter: drop-shadow(-2px 0 0 #ff3864) drop-shadow(2px 0 0 #36d6ff);
		clip-path: inset(10% 0 58% 0);
	}

	89% {
		transform: translate3d(-3px, 0, 0) skewX(-2deg);
		filter: drop-shadow(4px 0 0 #ff3864) drop-shadow(-4px 0 0 #36d6ff);
		clip-path: inset(52% 0 14% 0);
	}

	90% {
		transform: translate3d(2px, 2px, 0);
		filter: drop-shadow(-3px 0 0 #ff3864) drop-shadow(3px 0 0 #36d6ff);
		clip-path: inset(28% 0 36% 0);
	}

	91% {
		transform: translate3d(-1px, -1px, 0);
		filter: drop-shadow(2px 0 0 rgba(255, 56, 100, 0.7));
		clip-path: none;
	}

	92% {
		transform: translate3d(1px, 0, 0);
		filter: drop-shadow(-2px 0 0 rgba(54, 214, 255, 0.6));
	}

	93%,
	95% {
		transform: translate3d(0, 0, 0);
		filter: none;
		clip-path: none;
	}

	94% {
		transform: translate3d(-2px, 1px, 0);
		filter: drop-shadow(3px 0 0 #ff3864) drop-shadow(-3px 0 0 #36d6ff);
	}
}

.it-brand__name {
	display: none;
}

.it-nav__links {
	display: flex;
	align-items: center;
	gap: 28px;
}

.it-nav__links a {
	font-size: 0.875rem;
	color: var(--it-muted);
	transition: color 0.15s ease;
}

.it-nav__links a:hover {
	color: var(--it-text);
}

.it-nav__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.it-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.it-btn:hover {
	transform: translateY(-1px);
}

.it-btn--primary {
	background: #ffffff;
	color: #000000;
	border-color: #ffffff;
}

.it-btn--primary:hover {
	background: var(--it-accent-hover);
	border-color: var(--it-accent-hover);
}

.it-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.14);
	color: var(--it-text);
}

.it-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.2);
}

.it-btn--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.it-hero {
	max-width: var(--it-max);
	margin: 0 auto;
	padding: 96px 24px 72px;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
}

.it-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	margin-bottom: 20px;
	border-radius: 999px;
	border: 1px solid var(--it-border);
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.75rem;
	color: var(--it-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.it-hero__eyebrow-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.it-hero__title {
	margin: 0 0 20px;
	font-size: clamp(2.4rem, 5vw, 3.75rem);
	line-height: 1.05;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.it-hero__title em {
	font-style: normal;
	color: var(--it-accent);
}

.it-hero__lead {
	margin: 0 0 32px;
	max-width: 34rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--it-muted);
}

.it-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.it-hero__visual {
	position: relative;
	min-height: min(420px, 52vh);
	width: 100%;
	border: none;
	border-radius: 0;
	background: transparent;
	overflow: visible;
	box-shadow: none;
}

.it-hero-demo,
.it-hero-demo__panel {
	width: 100%;
	height: 100%;
	min-height: min(420px, 52vh);
}

.it-hero-demo__panel {
	position: relative;
}

.it-hero-demo__upload,
.it-hero-demo__inspector,
.it-hero-demo__palette {
	position: absolute;
	inset: 0;
}

.it-hero-demo__upload {
	display: flex;
	flex-direction: column;
	padding: 0 0 18%;
	animation: it-hero-upload-scene 24s linear infinite;
}

.it-hero-demo__dropzone {
	position: relative;
	flex: 1;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 0;
}

.it-hero-demo__dropzone-hint {
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.42);
	z-index: 0;
	animation: it-hero-dropzone-hint 24s ease-in-out infinite;
}

.it-hero-demo__drag {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	pointer-events: none;
	animation: it-hero-font-drag 24s ease-in-out infinite;
}

.it-hero-demo__file {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 88px;
	height: 68px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.it-hero-demo__file-glyph {
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.92);
}

.it-hero-demo__file-name {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.65rem;
	color: rgba(255, 255, 255, 0.5);
}

.it-hero-demo__cursor {
	position: absolute;
	right: -4px;
	bottom: -2px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.it-hero-demo__process {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	min-height: 42px;
	padding: 0 8%;
	text-align: center;
	animation: it-hero-process 24s ease-in-out infinite;
}

.it-hero-demo__bar-track {
	height: 6px;
	margin-bottom: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.it-hero-demo__bar-fill {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #ffffff);
	animation: it-hero-bar 24s ease-in-out infinite;
}

.it-hero-demo__status,
.it-hero-demo__success {
	display: block;
	font-size: 0.78rem;
	line-height: 1.2;
}

.it-hero-demo__status {
	color: rgba(255, 255, 255, 0.52);
	animation: it-hero-status 24s ease-in-out infinite;
}

.it-hero-demo__success {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	color: #86efac;
	font-weight: 600;
	animation: it-hero-success 24s ease-in-out infinite;
}

.it-hero-demo__inspector {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 8% 8% 8% 22%;
	animation: it-hero-inspector-scene 24s linear infinite;
}

.it-hero-demo__studio {
	position: absolute;
	inset: 0;
	animation: it-hero-studio-scene 24s linear infinite;
}

.it-hero-demo__studio .it-tool-preview-studio {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	background: transparent;
}

.it-hero-demo__studio .it-tool-preview-studio__stage {
	flex: 1;
	display: grid;
	place-items: center;
	padding: 8% 6%;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 62%),
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: auto, 16px 16px, 16px 16px;
}

.it-hero-demo__studio .it-tool-preview-studio__logo-scale {
	position: relative;
	display: inline-block;
}

.it-hero-demo__studio-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.it-hero-demo__studio-object {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	--hero-base-w: 48;
	--hero-base-h: 56;
	--hero-scale: 0.58;
}

.it-hero-demo__studio-recolor-cursor {
	position: absolute;
	left: 0;
	top: 0;
	width: 30px;
	height: 30px;
	z-index: 12;
	opacity: 0;
	pointer-events: none;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
	will-change: transform, opacity, left, top;
}

.it-hero-demo__studio-recolor-cursor img {
	display: block;
	width: 30px;
	height: 30px;
}

.it-hero-demo__studio-stack.is-picking-color .it-hero-demo__studio-recolor-cursor.is-visible img {
	transform: scale(0.94);
}

.it-hero-demo__studio-scale-slot {
	position: relative;
	width: calc(var(--hero-base-w) * var(--hero-scale) * 1px);
	min-height: calc(var(--hero-base-h) * var(--hero-scale) * 1px);
}

.it-hero-demo__studio .it-scale {
	display: inline-block;
	position: relative;
	vertical-align: top;
}

.it-hero-demo__studio .it-hero-demo__studio-scale-slot .it-scale {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.it-hero-demo__studio .it-tool-preview-studio__pen {
	position: absolute;
	left: 50%;
	top: calc(50% - 8px);
	width: 26px;
	height: 26px;
	z-index: 6;
	opacity: 0;
	pointer-events: none;
	transform: translate(-36px, -40px);
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.it-hero-demo__studio .it-tool-preview-studio__pen img {
	display: block;
	width: 26px;
	height: 26px;
}

.it-hero-demo__studio .it-tool-preview-studio__logo-scale.is-drawing .it-scale__box,
.it-hero-demo__studio .it-tool-preview-studio__logo-scale.is-drawing .it-scale__cursor {
	opacity: 0 !important;
}

.it-hero-demo__studio .it-tool-preview-studio__logo-scale.is-drawing .it-tool-preview-studio__tints {
	opacity: 0.35;
}

.it-hero-demo__studio .it-scale-wrap {
	display: inline-block;
	position: relative;
	transform: scale(1);
	transform-origin: 50% 50%;
	will-change: transform;
}

.it-hero-demo__studio .it-scale.is-js-scale .it-scale-wrap,
.it-hero-demo__studio .it-scale.is-js-scale .it-scale__cursor,
.it-hero-demo__studio .it-scale.is-js-scale .it-scale__tooltip-value,
.it-hero-demo__studio .it-scale.is-js-scale .it-scale__handle--br,
.it-hero-demo__studio .it-scale.is-js-scale .it-scale__cursor-ls {
	animation: none !important;
}

.it-hero-demo__studio .it-tool-preview-studio__logo {
	display: block;
	width: 48px;
	height: auto;
	filter: none;
	opacity: 1;
	clip-path: none;
}

.it-hero-demo__studio .it-tool-preview-studio__logo-scale .it-scale__box {
	opacity: 1;
}

.it-hero-demo__studio .it-scale__box {
	position: absolute;
	inset: -5px;
	border: 1px solid rgba(59, 130, 246, 0.88);
	border-radius: 2px;
	opacity: 1;
	pointer-events: none;
}

.it-hero-demo__studio .it-scale__tooltip {
	position: absolute;
	top: -1.55em;
	left: 50%;
	transform: translateX(-50%);
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.96);
	color: #0a0b0d;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.68rem;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.it-hero-demo__studio .it-scale__handle {
	position: absolute;
	width: 6px;
	height: 6px;
	background: #fff;
	border: 1px solid rgba(59, 130, 246, 0.45);
	border-radius: 1px;
}

.it-hero-demo__studio .it-scale__handle--tl { top: -4px; left: -4px; }
.it-hero-demo__studio .it-scale__handle--tr { top: -4px; right: -4px; }
.it-hero-demo__studio .it-scale__handle--bl { bottom: -4px; left: -4px; }
.it-hero-demo__studio .it-scale__handle--br {
	bottom: -4px;
	right: -4px;
	border-color: rgba(59, 130, 246, 0.95);
	box-shadow: 0 0 6px rgba(59, 130, 246, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.it-hero-demo__studio .it-scale.is-grabbing .it-scale__handle--br {
	transform: scale(1.2);
	box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.it-hero-demo__studio .it-scale__cursor {
	position: absolute;
	right: -4px;
	bottom: -4px;
	width: 30px;
	height: 30px;
	z-index: 5;
	opacity: 0;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
	will-change: transform, opacity;
}

.it-hero-demo__studio .it-scale__cursor-ls {
	display: block;
	width: 30px;
	height: 30px;
}

.it-hero-demo__studio .it-scale.is-grabbing .it-scale__cursor-ls,
.it-hero-demo__studio .it-tool-preview-studio__logo-scale.is-picking-color .it-scale__cursor-ls {
	transform: scale(0.94);
}

.it-hero-demo__studio .it-tool-preview-studio__logo-scale.is-picking-color .it-tool-preview-studio__tints {
	opacity: 1;
}

.it-hero-demo__studio .it-tool-preview-studio__logo-scale.is-picking-color .it-scale__box {
	opacity: 0.45;
}

.it-hero-demo__studio .it-tool-preview-studio__tints {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
	opacity: 0.35;
	transition: opacity 0.25s ease;
}

.it-hero-demo__studio .it-tool-preview-studio__tint {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--tint);
	border: 1.5px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transform: scale(0.92);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.it-hero-demo__studio .it-tool-preview-studio__tint.is-active {
	transform: scale(1.12);
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.it-hero-demo__glyph {
	font-size: clamp(5rem, 16vw, 9rem);
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.88);
	z-index: 1;
	animation: it-hero-inspector-weight 2.8s ease-in-out infinite;
}

.it-hero-demo__metric {
	position: absolute;
	left: 8%;
	right: 8%;
	height: 1px;
	background: rgba(255, 255, 255, 0.22);
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left center;
	animation: it-hero-inspector-line 2.8s ease-out infinite;
}

.it-hero-demo__metric--asc { top: 22%; animation-delay: 0.05s; }
.it-hero-demo__metric--cap { top: 32%; animation-delay: 0.12s; }
.it-hero-demo__metric--x { top: 48%; background: none; border-top: 1px dashed rgba(255, 255, 255, 0.18); height: 0; animation-delay: 0.19s; }
.it-hero-demo__metric--base { top: 62%; background: rgba(255, 255, 255, 0.45); animation-delay: 0.26s; }
.it-hero-demo__metric--desc { top: 76%; animation-delay: 0.33s; }

.it-hero-demo__readout {
	position: absolute;
	right: 8%;
	bottom: 8%;
	padding: 6px 12px;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.5);
	opacity: 0;
	animation: it-hero-inspector-readout 2.8s ease-out infinite;
}

/* Hero — Color Palette (scaled up from toolbox card) */
.it-hero-demo__palette {
	display: flex;
	flex-direction: column;
	animation: it-hero-palette-scene 24s linear infinite;
}

.it-hero-demo__palette-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: min(420px, 52vh);
	background: transparent;
}

.it-hero-demo__palette-stage {
	position: relative;
	flex: 1;
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 12% 10% 14%;
}

.it-hero-demo__palette-dropzone {
	position: relative;
	display: grid;
	place-items: center;
	width: 134px;
	height: 100px;
	border: 2px dashed rgba(255, 255, 255, 0.22);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	animation: it-hero-palette-dropzone 24s ease-in-out infinite;
}

.it-hero-demo__palette-dropzone-hint {
	font-size: 0.88rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.42);
	letter-spacing: 0.02em;
	animation: it-hero-palette-hint 24s ease-in-out infinite;
}

.it-hero-demo__palette-landed {
	position: absolute;
	inset: 6px;
	border-radius: 8px;
	background: linear-gradient(145deg, #264653 0%, #2a9d8f 28%, #e9c46a 52%, #f4a261 72%, #e76f51 100%);
	opacity: 0;
	transform: scale(0.88);
	animation: it-hero-palette-landed 24s ease-in-out infinite;
}

.it-hero-demo__palette-drag {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: flex-start;
	gap: 4px;
	margin-left: -66px;
	margin-top: -48px;
	pointer-events: none;
	animation: it-hero-palette-drag 24s ease-in-out infinite;
}

.it-hero-demo__palette-file {
	width: 50px;
	height: 38px;
	border-radius: 6px;
	background: linear-gradient(145deg, #264653 0%, #2a9d8f 35%, #e9c46a 60%, #e76f51 100%);
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.it-hero-demo__palette-cursor {
	flex-shrink: 0;
	margin-top: 10px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.it-hero-demo__palette-process {
	position: absolute;
	left: 50%;
	bottom: 14%;
	width: min(172px, 72%);
	transform: translateX(-50%);
	text-align: center;
	animation: it-hero-palette-process 24s ease-in-out infinite;
}

.it-hero-demo__palette-bar-track {
	height: 5px;
	margin-bottom: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.it-hero-demo__palette-bar-fill {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #ffffff);
	animation: it-hero-palette-bar 24s ease-in-out infinite;
}

.it-hero-demo__palette-status,
.it-hero-demo__palette-success {
	display: block;
	font-size: 0.78rem;
	line-height: 1.2;
}

.it-hero-demo__palette-status {
	color: rgba(255, 255, 255, 0.52);
	animation: it-hero-palette-status 24s ease-in-out infinite;
}

.it-hero-demo__palette-success {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	color: #86efac;
	font-weight: 600;
	animation: it-hero-palette-success 24s ease-in-out infinite;
}

.it-hero-demo__palette-swatches {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	height: 62px;
	flex-shrink: 0;
	animation: it-hero-palette-swatches-wrap 24s ease-in-out infinite;
}

.it-hero-demo__palette-swatch {
	background: #1a1a1a;
}

.it-hero-demo__palette-swatch:nth-child(1) { animation: it-hero-palette-swatch-reveal 24s ease-in-out infinite; }
.it-hero-demo__palette-swatch:nth-child(2) { animation: it-hero-palette-swatch-reveal 24s ease-in-out infinite 0.06s; }
.it-hero-demo__palette-swatch:nth-child(3) { animation: it-hero-palette-swatch-reveal 24s ease-in-out infinite 0.12s; }
.it-hero-demo__palette-swatch:nth-child(4) { animation: it-hero-palette-swatch-reveal 24s ease-in-out infinite 0.18s; }
.it-hero-demo__palette-swatch:nth-child(5) { animation: it-hero-palette-swatch-reveal 24s ease-in-out infinite 0.24s; }

@keyframes it-hero-upload-scene {
	0%, 57.9% { opacity: 0; visibility: hidden; }
	58%, 69.9% { opacity: 1; visibility: visible; }
	70%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes it-hero-inspector-scene {
	0%, 69.9% { opacity: 0; visibility: hidden; }
	70%, 81.9% { opacity: 1; visibility: visible; }
	82%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes it-hero-palette-scene {
	0%, 81.9% { opacity: 0; visibility: hidden; }
	82%, 95.9% { opacity: 1; visibility: visible; }
	96%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes it-hero-studio-scene {
	0%, 57.9% { opacity: 1; visibility: visible; }
	58%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes it-hero-font-drag {
	0%, 58% {
		transform: translate(calc(-50% - 112px), calc(-50% - 96px));
		opacity: 0;
	}

	58.75% { opacity: 1; }

	62.5% {
		transform: translate(-50%, -50%);
		opacity: 1;
	}

	64% {
		transform: translate(calc(-50% + 2px), calc(-50% + 4px)) scale(0.96);
		opacity: 1;
	}

	65.5%, 100% {
		transform: translate(calc(-50% + 2px), calc(-50% + 4px)) scale(0.96);
		opacity: 0;
	}
}

@keyframes it-hero-dropzone-hint {
	0%, 58% { opacity: 0; transform: scale(1); }
	58.375%, 61.75% { opacity: 1; transform: scale(1); }
	62.5%, 63.625% { opacity: 0.85; transform: scale(1.03); }
	64%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes it-hero-process {
	0%, 64.7% { opacity: 0; transform: translateY(8px); }
	64.75%, 69.25% { opacity: 1; transform: translateY(0); }
	69.3%, 100% { opacity: 0; transform: translateY(8px); }
}

@keyframes it-hero-bar {
	0%, 64.75% { width: 0; }
	68.125% { width: 100%; }
	70%, 100% { width: 100%; }
}

@keyframes it-hero-status {
	0%, 64.75% { opacity: 0; }
	65.125%, 67.75% { opacity: 1; }
	68.125%, 100% { opacity: 0; }
}

@keyframes it-hero-success {
	0%, 67.75% { opacity: 0; transform: translateY(4px); visibility: hidden; }
	68.125%, 69.625% { opacity: 1; transform: translateY(0); visibility: visible; }
	70%, 100% { opacity: 0; transform: translateY(4px); visibility: hidden; }
}

@keyframes it-hero-palette-drag {
	0%, 82.84% { transform: translate(-55px, -40px); opacity: 0; }
	83.4% { opacity: 1; }
	86.2% { transform: translate(0, 0); opacity: 1; }
	86.76% { transform: translate(2px, 3px) scale(0.96); opacity: 0.85; }
	87.32%, 100% { transform: translate(2px, 3px) scale(0.96); opacity: 0; }
}

@keyframes it-hero-palette-dropzone {
	0%, 82% { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); }
	85.92%, 87.32% { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
	88.72%, 100% { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.02); box-shadow: none; }
}

@keyframes it-hero-palette-hint {
	0%, 82% { opacity: 1; }
	84.2%, 100% { opacity: 0; }
}

@keyframes it-hero-palette-landed {
	0%, 86.48% { opacity: 0; transform: scale(0.88); }
	87.32%, 91.52% { opacity: 1; transform: scale(1); }
	92.92%, 100% { opacity: 0; transform: scale(0.96); }
}

@keyframes it-hero-palette-process {
	0%, 86.76% { opacity: 0; transform: translateX(-50%) translateY(4px); }
	87.32%, 92.92% { opacity: 1; transform: translateX(-50%) translateY(0); }
	93.48%, 100% { opacity: 0; transform: translateX(-50%) translateY(4px); }
}

@keyframes it-hero-palette-bar {
	0%, 87.32% { width: 0; }
	91.52% { width: 100%; }
	100% { width: 100%; }
}

@keyframes it-hero-palette-status {
	0%, 87.32% { opacity: 0; }
	87.88%, 91.24% { opacity: 1; }
	91.8%, 100% { opacity: 0; }
}

@keyframes it-hero-palette-success {
	0%, 91.24% { opacity: 0; transform: translateY(3px); }
	91.8%, 92.92% { opacity: 1; transform: translateY(0); }
	93.48%, 100% { opacity: 0; transform: translateY(3px); }
}

@keyframes it-hero-palette-swatches-wrap {
	0%, 91.52% { opacity: 0; transform: translateY(8px); }
	92.36%, 94.44% { opacity: 1; transform: translateY(0); }
	95.28%, 100% { opacity: 0; transform: translateY(8px); }
}

@keyframes it-hero-palette-swatch-reveal {
	0%, 91.8% { background: #1a1a1a; }
	92.64%, 94.44% { background: var(--c); }
	95.28%, 100% { background: #1a1a1a; }
}

@keyframes it-hero-inspector-line {
	0%, 12% { opacity: 0; transform: scaleX(0); }
	22%, 78% { opacity: 1; transform: scaleX(1); }
	88%, 100% { opacity: 0; transform: scaleX(0); }
}

@keyframes it-hero-inspector-weight {
	0%, 20%, 100% { transform: scale(1); opacity: 0.88; }
	40%, 60% { transform: scale(1.06); opacity: 1; letter-spacing: 0.02em; }
}

@keyframes it-hero-inspector-readout {
	0%, 30% { opacity: 0; transform: translateY(4px); }
	40%, 75% { opacity: 1; transform: translateY(0); }
	85%, 100% { opacity: 0; transform: translateY(4px); }
}

.it-marquee {
	border-block: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.015);
	padding: 18px 0;
	overflow: hidden;
}

.it-marquee__track {
	display: flex;
	width: max-content;
	flex-shrink: 0;
	animation: it-marquee 36s linear infinite;
}

.it-marquee__group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	min-width: max-content;
}

.it-marquee__item {
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
	white-space: nowrap;
	flex-shrink: 0;
}

.it-marquee__item::after {
	content: "·";
	margin-inline: 32px;
	color: rgba(255, 255, 255, 0.15);
}

@keyframes it-marquee {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.it-marquee__track,
	.it-brand__logo {
		animation: none;
	}
}

.it-section {
	max-width: var(--it-max);
	margin: 0 auto;
	padding: 88px 24px;
}

.it-section__head {
	max-width: 640px;
	margin-bottom: 40px;
}

.it-section__label {
	display: block;
	margin-bottom: 12px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.it-section__title {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.it-section__desc {
	margin: 0;
	color: var(--it-muted);
	line-height: 1.65;
}

.it-tools {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.it-tool-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 280px;
	padding: 22px;
	border-radius: var(--it-radius);
	border: 1px solid var(--it-border);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.it-tool-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.14);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.it-tool-card--live:hover {
	border-color: rgba(255, 255, 255, 0.18);
}

.it-tool-card--soon {
	opacity: 0.72;
}

.it-tool-card--soon:hover {
	transform: none;
	box-shadow: none;
	border-color: var(--it-border);
}

.it-tool-card__badge {
	align-self: flex-start;
	padding: 4px 10px;
	margin-bottom: 16px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.it-tool-card__badge--live {
	background: rgba(255, 255, 255, 0.07);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.it-tool-card__badge--soon {
	background: rgba(255, 255, 255, 0.04);
	color: var(--it-muted);
	border: 1px solid var(--it-border);
}

.it-tool-card__icon {
	width: 40px;
	height: 40px;
	margin-bottom: 16px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
}

.it-tool-card__icon svg {
	width: 20px;
	height: 20px;
}

.it-tool-card__title {
	margin: 0 0 8px;
	font-size: 1.125rem;
	font-weight: 600;
}

.it-tool-card__desc {
	margin: 0 0 auto;
	padding-bottom: 20px;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--it-muted);
}

.it-tool-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #ffffff;
}

.it-tool-card__link svg {
	width: 16px;
	height: 16px;
	transition: transform 0.15s ease;
}

.it-tool-card--live:hover .it-tool-card__link svg {
	transform: translateX(3px);
}

.it-tool-card__soon-label {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.35);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.it-tool-card--featured {
	grid-column: span 2;
	min-height: 240px;
	flex-direction: row;
	align-items: stretch;
	gap: 24px;
	padding: 0;
	overflow: hidden;
}

.it-tool-card--studio {
	position: relative;
	min-height: 340px;
	border-color: rgba(255, 255, 255, 0.1);
	background: transparent;
}

.it-nav__links a.is-active,
.it-nav__links a[aria-current="page"] {
	color: var(--it-text);
}

.it-page-hero {
	max-width: var(--it-max);
	margin: 0 auto;
	padding: 72px 24px 24px;
}

.it-page-hero__eyebrow {
	margin: 0 0 16px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--it-muted);
}

.it-page-hero__title {
	margin: 0 0 16px;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.08;
}

.it-page-hero__lead {
	margin: 0;
	max-width: 42rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--it-muted);
}

.it-section--compact {
	padding-top: 56px;
	padding-bottom: 56px;
}

.it-section--compact + .it-section--compact {
	padding-top: 0;
}

.it-tool-card--studio::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(102deg, rgba(10, 11, 13, 0.98) 0%, rgba(10, 11, 13, 0.92) 34%, rgba(10, 11, 13, 0.55) 58%, rgba(10, 11, 13, 0.2) 100%),
		url("/assets/landing/color-palette-card-bg.png") center top / cover no-repeat;
	z-index: 0;
	pointer-events: none;
}

.it-tool-card--palette {
	position: relative;
	min-height: 280px;
	border-color: rgba(255, 255, 255, 0.1);
	background: transparent;
	overflow: hidden;
}

#tools .it-tool-card--stack.it-tool-card--palette {
	background: #0a0b0d;
	min-height: 320px;
}

.it-tool-card--palette::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(10, 11, 13, 0.96) 0%, rgba(10, 11, 13, 0.82) 42%, rgba(10, 11, 13, 0.45) 100%),
		url("/assets/landing/color-palette-card-bg.png") center bottom / cover no-repeat;
	z-index: 0;
	pointer-events: none;
}

.it-tool-card--palette:hover {
	border-color: rgba(255, 255, 255, 0.18);
}

.it-tool-card--palette:not(.it-tool-card--stack) .it-tool-card__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.it-tool-card--studio:hover {
	border-color: rgba(255, 255, 255, 0.18);
}

.it-tool-card--featured .it-tool-card__body {
	flex: 1;
	padding: 28px;
	display: flex;
	flex-direction: column;
}

.it-tool-card--studio .it-tool-card__body {
	position: relative;
	z-index: 1;
	max-width: 420px;
}

.it-tool-card__thumb {
	width: 42%;
	min-width: 220px;
	background: #0e0f11;
	border-left: 1px solid var(--it-border);
}

.it-tool-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.88;
}

.it-cta {
	max-width: var(--it-max);
	margin: 0 auto 88px;
	padding: 0 24px;
}

.it-cta__box {
	padding: 48px;
	border-radius: calc(var(--it-radius) + 2px);
	border: 1px solid var(--it-border);
	background:
		radial-gradient(ellipse 70% 80% at 0% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
		var(--it-panel);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.it-cta__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 600;
}

.it-cta__desc {
	margin: 0;
	color: var(--it-muted);
}

.it-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 32px 24px 40px;
}

.it-footer__inner {
	max-width: var(--it-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.it-footer__copy {
	margin: 0;
	font-size: 0.8rem;
	color: var(--it-muted);
}

.it-footer__meta {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 960px) {
	.it-hero {
		grid-template-columns: 1fr;
		padding-top: 72px;
	}

	.it-hero__visual,
	.it-hero-demo,
	.it-hero-demo__panel {
		min-height: min(52vw, 420px);
	}

	.it-tools {
		grid-template-columns: 1fr 1fr;
	}

	.it-tool-card--featured {
		grid-column: span 2;
		flex-direction: column;
	}

	.it-tool-card--studio {
		min-height: 300px;
	}

	.it-tool-card--studio::before {
		background:
			linear-gradient(180deg, rgba(10, 11, 13, 0.97) 0%, rgba(10, 11, 13, 0.82) 45%, rgba(10, 11, 13, 0.55) 100%),
			url("/assets/landing/layout-studio-preview.png") center top / cover no-repeat;
	}

	.it-tool-card--studio .it-tool-card__body {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.it-page-hero {
		padding-top: 48px;
	}

	.it-nav__links {
		display: none;
	}

	.it-nav__actions .it-btn--ghost {
		display: none;
	}

	.it-tools {
		grid-template-columns: 1fr;
	}

	.it-tool-card--featured {
		grid-column: span 1;
	}

	.it-cta__box {
		padding: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.it-hero-demo__upload,
	.it-hero-demo__inspector,
	.it-hero-demo__palette,
	.it-hero-demo__studio,
	.it-hero-demo__dropzone,
	.it-hero-demo__dropzone-hint,
	.it-hero-demo__drag,
	.it-hero-demo__process,
	.it-hero-demo__bar-fill,
	.it-hero-demo__status,
	.it-hero-demo__success,
	.it-hero-demo__palette-dropzone,
	.it-hero-demo__palette-dropzone-hint,
	.it-hero-demo__palette-landed,
	.it-hero-demo__palette-drag,
	.it-hero-demo__palette-process,
	.it-hero-demo__palette-bar-fill,
	.it-hero-demo__palette-status,
	.it-hero-demo__palette-success,
	.it-hero-demo__palette-swatches,
	.it-hero-demo__palette-swatch,
	.it-hero-demo__glyph,
	.it-hero-demo__metric,
	.it-hero-demo__readout {
		animation: none !important;
	}

	.it-hero-demo__upload,
	.it-hero-demo__inspector,
	.it-hero-demo__palette {
		opacity: 0;
		visibility: hidden;
	}

	.it-hero-demo__studio {
		opacity: 1;
		visibility: visible;
	}

	.it-hero-demo__metric,
	.it-hero-demo__readout {
		opacity: 1;
		transform: none;
	}
}
