/* Idenq Animations Base */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@100..700&display=swap');

:root {
	--primary: #2e5bff;
	--primary-hover: #1b42d8;
	--accent-cyan: #00f0ff;
	--background-light: #f5f8f8;
	--background-dark: #0a0c14;
	--surface-dark: #11141f;
	--surface-darker: #05060a;
	--border-dark: #1e2536;
	--text-dim: #94a3b8;
}

.idenq-crypto-char {
	display: inline-block;
	transform-origin: 50% 60%;
	backface-visibility: hidden;
	will-change: transform;
	font-variant-ligatures: none;
}

.js-reveal {
	opacity: 0;
	transform: translateY(24px);
	will-change: opacity, transform;
}

.js-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@keyframes scan {
	0% {
		top: 0%;
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	90% {
		opacity: 1;
	}

	100% {
		top: 100%;
		opacity: 0;
	}
}

@keyframes pulse {

	0%,
	100% {
		transform: scale(1);
		opacity: 0.8;
	}

	50% {
		transform: scale(1.12);
		opacity: 1;
	}
}

@keyframes ping {
	0% {
		transform: scale(0.5);
		opacity: 0.6;
	}

	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* X-Ray Effect */
.effect-xray .idenq-hero__image {
	filter: grayscale(100%) contrast(1.2) brightness(0.8);
}

.idenq-hero__xray-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0, 20, 50, 0.8) 100%);
	mix-blend-mode: overlay;
	pointer-events: none;
	z-index: 2;
}

/* Scanner Line (Shared by X-Ray and Scan) */
.effect-xray .scanner-line,
.effect-scan .scanner-line {
	height: 100%;
	width: 2px;
	background: #00f0ff;
	position: absolute;
	left: 0;
	top: 0;
	animation: scan-x 3s ease-in-out infinite;
	box-shadow: 0 0 15px #00f0ff;
	z-index: 3;
	opacity: 0.7;
	pointer-events: none;
}

@keyframes scan-x {

	0%,
	100% {
		left: 5%;
	}

	50% {
		left: 95%;
	}
}

/* Stop scanner animation when complete */
.scanner-line--stopped {
	animation: none !important;
}

/* Glitch Effect - Constant Animation */
.effect-glitch .idenq-hero__image {
	position: relative;
	transform: translateZ(0);
	/* Hardware accel */
}

.effect-glitch .idenq-hero__image::before,
.effect-glitch .idenq-hero__image::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	opacity: 0.6;
	mix-blend-mode: hard-light;
	pointer-events: none;
	z-index: 1;
}

.effect-glitch .idenq-hero__image::before {
	animation: glitch-img-1 4s infinite linear alternate-reverse;
	clip-path: inset(0 0 0 0);
}

.effect-glitch .idenq-hero__image::after {
	animation: glitch-img-2 4s infinite linear alternate-reverse;
	clip-path: inset(0 0 0 0);
}

@keyframes glitch-img-1 {
	0% {
		clip-path: inset(20% 0 80% 0);
		transform: translate(-2px, 0);
	}

	20% {
		clip-path: inset(60% 0 10% 0);
		transform: translate(2px, 0);
	}

	40% {
		clip-path: inset(40% 0 50% 0);
		transform: translate(-2px, 0);
	}

	60% {
		clip-path: inset(80% 0 5% 0);
		transform: translate(2px, 0);
	}

	80% {
		clip-path: inset(10% 0 70% 0);
		transform: translate(-2px, 0);
	}

	100% {
		clip-path: inset(30% 0 20% 0);
		transform: translate(2px, 0);
	}
}

@keyframes glitch-img-2 {
	0% {
		clip-path: inset(10% 0 60% 0);
		transform: translate(2px, 0);
	}

	20% {
		clip-path: inset(30% 0 20% 0);
		transform: translate(-2px, 0);
	}

	40% {
		clip-path: inset(70% 0 10% 0);
		transform: translate(2px, 0);
	}

	60% {
		clip-path: inset(20% 0 50% 0);
		transform: translate(-2px, 0);
	}

	80% {
		clip-path: inset(50% 0 30% 0);
		transform: translate(2px, 0);
	}

	100% {
		clip-path: inset(0% 0 80% 0);
		transform: translate(-2px, 0);
	}
}

/* Mouse Glow */
.idenq-mouse-glow {
	position: fixed;
	top: 0;
	left: 0;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle at center, rgba(46, 91, 255, 0.35), rgba(46, 91, 255, 0) 70%);
	pointer-events: none;
	opacity: 0;
	z-index: 1;
	mix-blend-mode: screen;
	transform: translate(-9999px, -9999px);
	will-change: transform, opacity;
}

/* Gradient Text Utility */
.text-gradient-blue {
	background: linear-gradient(90deg, #2e5bff 0%, #00f0ff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-fill-color: transparent;
	font-weight: 800;
}

/* Hero Typography Updates */
.idenq-hero__title {
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}

.idenq-hero__title b,
.idenq-hero__title strong {
	font-weight: 800;
	color: #fff;
}

/* Global Buttons */
.idenq-btn-primary {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	height: 48px;
	padding: 0 32px;
	background-color: var(--primary);
	color: #fff;
	text-decoration: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 16px;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.idenq-btn-primary:hover {
	background-color: var(--primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(46, 91, 255, 0.3);
}

.idenq-btn-ghost {
	/* Defined inline in some widgets but good to have helper here */
	transition: all 0.2s ease;
}

.idenq-btn-ghost:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}

/* Text Effects */

/* Gradient Effect */
.text-effect-gradient {
	background: linear-gradient(90deg, var(--grad-1, #2e5bff) 0%, var(--grad-2, #00f0ff) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent !important;
	/* Force transparent color */
	background-size: 200% auto;
	animation: shine 4s linear infinite;
}

@keyframes shine {
	to {
		background-position: 200% center;
	}
}

/* Glow Effect */
.text-effect-glow {
	color: #fff;
	text-shadow: 0 0 10px rgba(46, 91, 255, 0.8), 0 0 20px rgba(0, 240, 255, 0.5);
	animation: text-pulse 2s ease-in-out infinite alternate;
}

@keyframes text-pulse {
	from {
		text-shadow: 0 0 10px rgba(46, 91, 255, 0.8), 0 0 20px rgba(0, 240, 255, 0.5);
	}

	to {
		text-shadow: 0 0 20px rgba(46, 91, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.8);
		color: #e0f2fe;
	}
}

/* Glitch Effect */
.text-effect-glitch {
	position: relative;
	color: #fff;
}

.text-effect-glitch::before,
.text-effect-glitch::after {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #0a0c14;
	/* Match bg color to hide main text */
}

.text-effect-glitch::before {
	left: 2px;
	text-shadow: -1px 0 #00f0ff;
	clip: rect(44px, 450px, 56px, 0);
	animation: glitch-anim 5s infinite linear alternate-reverse;
}

.text-effect-glitch::after {
	left: -2px;
	text-shadow: -1px 0 #ff00ff;
	clip: rect(44px, 450px, 56px, 0);
	animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
	0% {
		clip: rect(32px, 9999px, 88px, 0);
	}

	5% {
		clip: rect(65px, 9999px, 96px, 0);
	}

	10% {
		clip: rect(12px, 9999px, 80px, 0);
	}

	15% {
		clip: rect(98px, 9999px, 12px, 0);
	}

	20% {
		clip: rect(43px, 9999px, 7px, 0);
	}

	25% {
		clip: rect(3px, 9999px, 54px, 0);
	}

	100% {
		clip: rect(78px, 9999px, 23px, 0);
	}
}

@keyframes glitch-anim-2 {
	0% {
		clip: rect(65px, 9999px, 40px, 0);
	}

	5% {
		clip: rect(12px, 9999px, 3px, 0);
	}

	10% {
		clip: rect(54px, 9999px, 23px, 0);
	}

	15% {
		clip: rect(12px, 9999px, 78px, 0);
	}

	20% {
		clip: rect(89px, 9999px, 43px, 0);
	}

	25% {
		clip: rect(23px, 9999px, 65px, 0);
	}

	100% {
		clip: rect(45px, 9999px, 12px, 0);
	}
}

.idenq-tos p {
	margin: 0 0 16px;
	text-align: justify;
}

/* Title */
.idenq-tos .tos-title {
	font-size: 30px;
	font-weight: 800;
	color: #0b0c10;
	margin: 0 0 6px;
	line-height: 1.2;
}

.idenq-tos .tos-date {
	font-size: 13px;
	color: #999;
	font-style: italic;
	margin: 0 0 32px;
}

/* Section headings */
.idenq-tos h2 {
	font-size: 16px;
	font-weight: 700;
	color: #0b0c10;
	margin: 36px 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #f0f0f4;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Bullet lists */
.idenq-tos ul {
	margin: 8px 0 16px 0;
	padding-left: 24px;
}

.idenq-tos ul li {
	margin-bottom: 6px;
	color: #FFF;
}

/* ── Disclaimer boxes ── */
.idenq-disclaimer-box {
	border-left: 4px solid #c0392b;
	background: #fff8f8;
	border-radius: 0 8px 8px 0;
	padding: 16px 20px;
	margin: 16px 0;
}

.idenq-disclaimer-box .disclaimer-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #c0392b;
	margin-bottom: 6px;
}

.idenq-disclaimer-box .disclaimer-title {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px;
}

.idenq-disclaimer-box p {
	font-size: 14px;
	color: #555;
	margin: 0;
	text-align: left;
}

/* Master warning box */
.idenq-warning-banner {
	background: #0b0c10;
	border-radius: 10px;
	padding: 20px 24px;
	margin: 24px 0 8px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.idenq-warning-banner .warn-icon {
	font-size: 22px;
	flex-shrink: 0;
	margin-top: 2px;
}

.idenq-warning-banner .warn-title {
	font-size: 14px;
	font-weight: 700;
	color: #f5c842;
	margin: 0 0 6px;
}

.idenq-warning-banner .warn-body {
	font-size: 13.5px;
	color: #a0a0b8;
	margin: 0;
	line-height: 1.7;
}

.idenq-warning-banner .warn-body strong {
	color: #e0e0ec;
}

/* Acceptance note */
.idenq-acceptance {
	font-size: 13px;
	color: #888;
	font-style: italic;
	border-top: 1px solid #eee;
	padding-top: 12px;
	margin-top: 8px;
}

/* Footer note */
.idenq-tos-footer {
	font-size: 12px;
	color: #aaa;
	font-style: italic;
	border-top: 1px solid #eee;
	padding-top: 20px;
	margin-top: 40px;
}