:root {
	--ect-bg: #02050c;
	--ect-panel: rgba(4, 15, 29, 0.72);
	--ect-panel-strong: rgba(7, 26, 49, 0.9);
	--ect-cyan: #39e7ff;
	--ect-blue: #2b7fff;
	--ect-text: #e6faff;
	--ect-muted: #90b9c9;
	--ect-line: rgba(57, 231, 255, 0.26);
}

html {
	background: var(--ect-bg);
}

body {
	min-height: 100vh;
	background: var(--ect-bg);
	color: var(--ect-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
	color: var(--ect-cyan);
	text-decoration: none;
}

a:hover,
a:focus {
	color: #ffffff;
}

.ect-site {
	--pointer-x: 50%;
	--pointer-y: 30%;
	position: relative;
	min-height: 100vh;
	overflow-x: hidden;
	isolation: isolate;
	background:
		radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(57, 231, 255, 0.16), transparent 28rem),
		linear-gradient(135deg, #01030a 0%, #051629 45%, #01030a 100%);
}

.ect-background,
.ect-grid,
.ect-scan,
.ect-sweep {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
}

.ect-grid {
	background-image:
		linear-gradient(rgba(57, 231, 255, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(57, 231, 255, 0.07) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 95%);
}

.ect-scan {
	background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 8px);
	mix-blend-mode: screen;
	opacity: 0.3;
}

.ect-sweep {
	background: linear-gradient(115deg, transparent 0 44%, rgba(57, 231, 255, 0.1) 49%, transparent 54% 100%);
	transform: translateX(-70%);
	animation: ectSweep 8s linear infinite;
}

.ect-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px clamp(18px, 4vw, 52px);
	border-bottom: 1px solid var(--ect-line);
	background: rgba(1, 6, 14, 0.72);
	backdrop-filter: blur(18px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.ect-gateway-page .ect-header {
	padding-top: 10px;
	padding-bottom: 10px;
}

.ect-command-page .ect-header {
	padding-top: 8px;
	padding-bottom: 8px;
}

.ect-gateway-page .ect-brand-mark {
	width: 36px;
	height: 36px;
}

.ect-gateway-page .ect-brand-text em,
.ect-command-page .ect-brand-text em,
.ect-gateway-page .ect-nav,
.ect-command-page .ect-nav,
.ect-command-page .ect-footer,
.ect-gateway-page .ect-footer {
	display: none;
}

.ect-command-page .ect-brand-mark {
	width: 34px;
	height: 34px;
}

.ect-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ect-text);
}

.ect-brand-mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(57, 231, 255, 0.62);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(57, 231, 255, 0.25), rgba(43, 127, 255, 0.08));
	box-shadow: 0 0 22px rgba(57, 231, 255, 0.28);
	font-weight: 900;
}

.ect-brand-text {
	display: grid;
	gap: 2px;
}

.ect-brand-text strong {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0;
}

.ect-brand-text em {
	color: var(--ect-muted);
	font-size: 12px;
	font-style: normal;
}

.ect-menu {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ect-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid rgba(57, 231, 255, 0.28);
	border-radius: 8px;
	background: rgba(3, 15, 29, 0.7);
	color: var(--ect-text);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.ect-menu a:hover,
.ect-menu a:focus {
	border-color: rgba(57, 231, 255, 0.8);
	box-shadow: 0 0 18px rgba(57, 231, 255, 0.16);
}

.ect-main {
	width: min(1500px, calc(100% - 32px));
	margin: 0 auto;
}

.ect-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 26px;
	align-items: end;
	padding: clamp(34px, 6vw, 76px) 0 clamp(20px, 4vw, 42px);
}

.ect-kicker {
	margin: 0 0 10px;
	color: var(--ect-cyan);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.ect-hero h1 {
	max-width: 900px;
	margin: 0;
	font-size: clamp(42px, 8vw, 118px);
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: 0;
	text-shadow: 0 0 34px rgba(57, 231, 255, 0.38);
}

.ect-hero p {
	max-width: 720px;
	margin: 18px 0 0;
	color: var(--ect-muted);
	font-size: clamp(16px, 2vw, 20px);
	line-height: 1.55;
}

.ect-telemetry {
	display: grid;
	grid-template-columns: auto auto;
	gap: 8px 16px;
	min-width: 260px;
	padding: 18px;
	border: 1px solid var(--ect-line);
	border-radius: 8px;
	background: var(--ect-panel);
	box-shadow: inset 0 0 22px rgba(57, 231, 255, 0.08);
}

.ect-telemetry span {
	color: var(--ect-muted);
	font-size: 11px;
	font-weight: 800;
}

.ect-telemetry strong {
	color: var(--ect-cyan);
	font-size: 12px;
	text-align: right;
}

.ect-core-wrap {
	padding: 12px 0;
}

.ect-main-command {
	width: min(1540px, calc(100% - 20px));
}

.ect-gateway-main {
	min-height: calc(100vh - 132px);
	display: grid;
	align-items: center;
	padding: clamp(14px, 2.6vw, 28px) 0;
}

.ect-gateway {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 0.46fr);
	gap: clamp(18px, 3vw, 42px);
	align-items: center;
	min-height: 430px;
	padding: clamp(20px, 4vw, 44px);
	border: 1px solid rgba(57, 231, 255, 0.3);
	border-radius: 8px;
	background:
		radial-gradient(circle at 74% 45%, rgba(57, 231, 255, 0.16), transparent 25rem),
		linear-gradient(135deg, rgba(3, 14, 28, 0.88), rgba(1, 6, 14, 0.74));
	box-shadow: 0 30px 120px rgba(0, 0, 0, 0.46), inset 0 0 48px rgba(57, 231, 255, 0.08);
	overflow: hidden;
}

.ect-gateway::before,
.ect-gateway::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.ect-gateway::before {
	inset: 12px;
	border: 1px solid rgba(57, 231, 255, 0.16);
	border-radius: 8px;
}

.ect-gateway::after {
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(57, 231, 255, 0.52), transparent);
	opacity: 0.52;
}

.ect-gateway-copy {
	position: relative;
	z-index: 2;
}

.ect-gateway-copy h1 {
	max-width: 820px;
	margin: 0;
	font-size: clamp(58px, 10vw, 132px);
	line-height: 0.88;
	text-transform: uppercase;
	letter-spacing: 0;
	text-shadow: 0 0 38px rgba(57, 231, 255, 0.42);
}

.ect-gateway-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 12px;
}

.ect-access-form {
	display: grid;
	gap: 10px;
	max-width: 680px;
	margin-top: 22px;
}

.ect-access-form label {
	color: var(--ect-cyan);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.ect-access-form div {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.ect-access-form input {
	flex: 1;
	min-width: 0;
	height: 46px;
	border: 1px solid rgba(57, 231, 255, 0.36);
	border-radius: 8px;
	background: rgba(1, 7, 17, 0.82);
	color: var(--ect-text);
	padding: 0 15px;
	font-size: 18px;
	letter-spacing: 0;
	box-shadow: inset 0 0 20px rgba(57, 231, 255, 0.08);
}

.ect-access-form input:focus {
	border-color: rgba(57, 231, 255, 0.86);
	outline: none;
	box-shadow: 0 0 24px rgba(57, 231, 255, 0.16), inset 0 0 20px rgba(57, 231, 255, 0.08);
}

.ect-access-error {
	margin: 0;
	color: #ff6f89;
	font-size: 13px;
	font-weight: 700;
}

.ect-primary-action,
.ect-secondary-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0;
}

.ect-primary-action {
	border: 1px solid rgba(57, 231, 255, 0.82);
	background: linear-gradient(135deg, rgba(57, 231, 255, 0.28), rgba(43, 127, 255, 0.22));
	color: var(--ect-text);
	box-shadow: 0 0 28px rgba(57, 231, 255, 0.22);
}

.ect-secondary-action {
	border: 1px solid rgba(57, 231, 255, 0.28);
	background: rgba(2, 9, 19, 0.72);
	color: var(--ect-text);
}

.ect-primary-action:hover,
.ect-secondary-action:hover,
.ect-primary-action:focus,
.ect-secondary-action:focus {
	color: #ffffff;
	border-color: rgba(57, 231, 255, 0.95);
	transform: translateY(-1px);
}

.ect-gateway-panel {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 14px;
	padding: clamp(14px, 2.4vw, 22px);
	border: 1px solid rgba(57, 231, 255, 0.32);
	border-radius: 8px;
	background: rgba(1, 7, 17, 0.7);
	box-shadow: inset 0 0 34px rgba(57, 231, 255, 0.08);
}

.ect-access-ring {
	position: relative;
	display: grid;
	place-items: center;
	width: min(100%, 220px);
	aspect-ratio: 1;
	margin: 0 auto;
	border: 1px solid rgba(57, 231, 255, 0.45);
	border-radius: 50%;
	background:
		radial-gradient(circle, rgba(230, 250, 255, 0.9) 0 3%, rgba(57, 231, 255, 0.46) 4% 18%, rgba(43, 127, 255, 0.16) 19% 46%, transparent 47%),
		rgba(3, 15, 29, 0.62);
	box-shadow: 0 0 48px rgba(57, 231, 255, 0.24), inset 0 0 44px rgba(57, 231, 255, 0.14);
}

.ect-access-ring::before,
.ect-access-ring::after {
	content: "";
	position: absolute;
	inset: 12%;
	border: 1px solid rgba(57, 231, 255, 0.24);
	border-radius: 50%;
	animation: ectGatewaySpin 12s linear infinite;
}

.ect-access-ring::after {
	inset: 26%;
	animation-duration: 8s;
	animation-direction: reverse;
}

.ect-access-ring strong {
	position: relative;
	z-index: 1;
	font-size: clamp(30px, 4vw, 48px);
	text-shadow: 0 0 20px rgba(230, 250, 255, 0.86);
}

.ect-gateway-status {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ect-gateway-status li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0 0;
	border-bottom: 1px solid rgba(57, 231, 255, 0.15);
}

.ect-gateway-status span {
	color: var(--ect-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.ect-gateway-status strong {
	color: var(--ect-cyan);
	font-size: 12px;
	text-transform: uppercase;
	text-align: right;
}

.ect-gateway-orbit {
	position: absolute;
	inset: auto -92px -128px auto;
	width: 360px;
	aspect-ratio: 1;
	opacity: 0.42;
	pointer-events: none;
}

.ect-gateway-orbit span {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(57, 231, 255, 0.26);
	border-radius: 50%;
	animation: ectGatewaySpin 16s linear infinite;
}

.ect-gateway-orbit span:nth-child(2) {
	inset: 17%;
	animation-duration: 10s;
	animation-direction: reverse;
}

.ect-gateway-orbit span:nth-child(3) {
	inset: 34%;
	animation-duration: 7s;
}

.ect-core-wrap .ecc-shell {
	border: 1px solid rgba(57, 231, 255, 0.28);
	border-radius: 8px;
	box-shadow: 0 30px 120px rgba(0, 0, 0, 0.45), 0 0 60px rgba(57, 231, 255, 0.08);
}

.ect-command-page .ect-core-wrap .ecc-shell {
	min-height: calc(100vh - 78px);
}

.ect-content-main {
	padding: clamp(34px, 6vw, 76px) 0;
}

.ect-content-grid {
	display: grid;
	gap: 22px;
}

.ect-panel,
.ect-entry {
	padding: clamp(20px, 4vw, 38px);
	border: 1px solid var(--ect-line);
	border-radius: 8px;
	background: var(--ect-panel);
	backdrop-filter: blur(18px);
	box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.ect-entry-header h1,
.ect-entry-header h2,
.ect-panel h1 {
	margin: 0 0 18px;
	font-size: clamp(30px, 4vw, 58px);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0;
}

.ect-entry-content {
	color: #d9f5fb;
	line-height: 1.75;
}

.ect-entry-content > *:first-child {
	margin-top: 0;
}

.ect-entry-content > *:last-child {
	margin-bottom: 0;
}

.ect-featured {
	margin: 0 0 24px;
}

.ect-featured img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid var(--ect-line);
}

.ect-plugin-missing {
	min-height: 420px;
	display: grid;
	place-items: center;
}

.ect-footer {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: center;
	margin-top: 28px;
	padding: 22px clamp(18px, 4vw, 52px);
	border-top: 1px solid var(--ect-line);
	color: var(--ect-muted);
	background: rgba(1, 6, 14, 0.56);
}

.ect-footer div {
	display: grid;
	gap: 4px;
}

.ect-footer strong {
	color: var(--ect-text);
	font-size: 12px;
}

.ect-footer span,
.ect-footer a {
	font-size: 12px;
}

.nav-links,
.page-links {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.nav-links a,
.nav-links span,
.page-links a,
.page-links span {
	padding: 8px 11px;
	border: 1px solid var(--ect-line);
	border-radius: 8px;
	background: rgba(3, 15, 29, 0.7);
}

@keyframes ectSweep {
	to {
		transform: translateX(70%);
	}
}

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

@media (max-width: 880px) {
	.ect-header {
		position: relative;
		display: grid;
	}

	.ect-menu {
		flex-wrap: wrap;
	}

	.ect-hero {
		grid-template-columns: 1fr;
	}

	.ect-gateway {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.ect-gateway-panel {
		display: none;
	}

	.ect-telemetry {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 560px) {
	.ect-main {
		width: min(100% - 20px, 1500px);
	}

	.ect-header,
	.ect-footer {
		padding-inline: 12px;
	}

	.ect-brand-text em {
		display: none;
	}

	.ect-hero h1 {
		font-size: 42px;
	}

	.ect-gateway-copy h1 {
		font-size: 58px;
	}

	.ect-primary-action,
	.ect-secondary-action {
		width: 100%;
	}

	.ect-access-form div {
		display: grid;
	}

	.ect-footer {
		display: grid;
	}
}
