:root {
	color-scheme: dark;
	--bg: #08111f;
	--bg-soft: #0f172a;
	--bg-elev: rgba(15, 23, 42, 0.78);
	--line: rgba(148, 163, 184, 0.18);
	--line-strong: rgba(96, 165, 250, 0.35);
	--text: #e5eefb;
	--muted: #9fb2cc;
	--accent: #49a6ff;
	--accent-2: #83d2ff;
	--success: #7dd3fc;
	--danger: #fca5a5;
	--shadow: 0 18px 60px rgba(2, 8, 23, 0.45);
	--radius: 24px;
	--radius-sm: 16px;
	--max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background:
		radial-gradient(circle at top right, rgba(73, 166, 255, 0.12), transparent 26%),
		radial-gradient(circle at bottom left, rgba(131, 210, 255, 0.08), transparent 28%),
		linear-gradient(180deg, #09111e 0%, #07101d 100%);
	color: var(--text);
}

.bg-grid {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: radial-gradient(circle at center, black 20%, transparent 85%);
}

.site-header,
.section,
.site-footer {
	width: min(calc(100% - 32px), var(--max));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 16px;
	padding: 14px 18px;
	background: rgba(7, 16, 29, 0.72);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 999px;
	box-shadow: var(--shadow);
}

.brand {
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--text);
	text-decoration: none;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.site-nav a,
.legal-links a,
.link-list a,
.posts-list a {
	color: var(--muted);
	text-decoration: none;
}

.site-nav a:hover,
.legal-links a:hover,
.link-list a:hover,
.posts-list a:hover {
	color: var(--text);
}

.section {
	padding: 44px 0;
}

.hero {
	min-height: calc(100vh - 120px);
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	align-items: center;
	gap: 32px;
}

.eyebrow,
.card-eyebrow,
.status-kicker,
.status-label {
	color: var(--accent-2);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	font-weight: 700;
}

.hero h1,
.section h2,
.side-card h3 {
	margin: 0;
	line-height: 0.95;
}

.hero h1 {
	font-size: clamp(3rem, 8vw, 6rem);
	margin-top: 8px;
}

.hero-rotator {
	min-height: 3rem;
	margin: 18px 0 8px;
	font-size: clamp(1.25rem, 2vw, 1.8rem);
	color: #cfe6ff;
	font-weight: 600;
}

.hero-intro,
#about-copy,
#message-copy,
.notice-box p,
.microcopy,
.form-state,
.site-footer p,
.status-note {
	color: var(--muted);
	line-height: 1.75;
}

.hero-intro {
	max-width: 62ch;
	font-size: 1.05rem;
}

.cta-row,
.form-actions,
.meta-pills,
.tab-switch,
.field-row,
.status-grid,
.legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.button {
	appearance: none;
	border: none;
	border-radius: 999px;
	text-decoration: none;
	padding: 14px 18px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.button:hover,
.tab-button:hover { transform: translateY(-1px); }
.button-primary {
	background: linear-gradient(135deg, var(--accent), #2b83f6);
	color: white;
	box-shadow: 0 12px 32px rgba(43, 131, 246, 0.32);
}
.button-secondary,
.tab-button {
	background: rgba(255,255,255,0.03);
	color: var(--text);
	border: 1px solid rgba(255,255,255,0.08);
}

.meta-pills {
	list-style: none;
	padding: 0;
	margin: 22px 0 0;
}

.meta-pills li {
	padding: 10px 14px;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 999px;
	background: rgba(255,255,255,0.03);
	color: #d8e7fb;
}

.hero-visual {
	display: grid;
	gap: 18px;
}

.portrait-frame,
.card,
.status-card {
	background: var(--bg-elev);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.portrait-frame {
	padding: 16px;
}

.portrait-frame img {
	width: 100%;
	display: block;
	aspect-ratio: 1 / 1.1;
	object-fit: cover;
	object-position: center top;
	border-radius: calc(var(--radius) - 8px);
}

.status-card,
.card {
	padding: 22px;
}

.status-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
	margin-bottom: 18px;
}

.cards,
.message-grid {
	display: grid;
	gap: 18px;
}

.cards {
	grid-template-columns: 1.2fr 0.8fr;
}

.message-grid {
	grid-template-columns: 1.1fr 0.7fr;
	align-items: start;
}

.card-wide h2,
.section-head h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.section-head { max-width: 70ch; margin-bottom: 18px; }
.posts-list,
.link-list {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
}
.posts-list li,
.link-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.posts-list li:last-child,
.link-list li:last-child { border-bottom: none; }

.form-card label {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
}

.form-card span,
.side-card strong { font-weight: 600; }

input,
select,
textarea {
	width: 100%;
	border: 1px solid rgba(255,255,255,0.09);
	background: rgba(255,255,255,0.03);
	color: var(--text);
	border-radius: 14px;
	padding: 14px 15px;
	font: inherit;
}

textarea { resize: vertical; min-height: 180px; }
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--line-strong);
	box-shadow: 0 0 0 4px rgba(73, 166, 255, 0.12);
}

.tab-button.active {
	background: rgba(73, 166, 255, 0.12);
	border-color: rgba(73, 166, 255, 0.35);
}

.notice-box {
	margin-top: 24px;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,0.08);
	background: rgba(255,255,255,0.03);
}

.legal-links { margin-top: 24px; color: var(--muted); }
.site-footer { padding: 0 0 54px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-state.ok { color: var(--success); }
.form-state.error { color: var(--danger); }

@media (max-width: 980px) {
	.hero,
	.cards,
	.message-grid {
		grid-template-columns: 1fr;
	}

	.site-header {
		border-radius: 24px;
		align-items: flex-start;
	}

	.site-nav { width: 100%; }
	.hero { min-height: auto; padding-top: 18px; }
}

@media (max-width: 640px) {
	.site-header,
	.section,
	.site-footer { width: min(calc(100% - 20px), var(--max)); }
	.hero h1 { line-height: 1; }
	.button,
	.tab-button { width: 100%; text-align: center; }
}
