:root {
	--bg: #08142a;
	--bg-soft: #102345;
	--panel: rgba(9, 23, 47, 0.84);
	--panel-strong: rgba(13, 32, 64, 0.96);
	--line: rgba(129, 164, 255, 0.18);
	--line-strong: rgba(135, 196, 255, 0.38);
	--text: #eaf1ff;
	--muted: #9aabce;
	--accent: #4fd1ff;
	--accent-strong: #2aa8ff;
	--accent-warm: #7ee787;
	--danger: #ff7b8e;
	--shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
	--radius-xl: 32px;
	--radius-lg: 24px;
	--radius-md: 18px;
	--radius-sm: 14px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	font-family: "IBM Plex Sans", sans-serif;
	background:
		radial-gradient(circle at top left, rgba(79, 209, 255, 0.16), transparent 34%),
		radial-gradient(circle at top right, rgba(126, 231, 135, 0.12), transparent 26%),
		linear-gradient(160deg, #061121 0%, #0b1c38 58%, #07101d 100%);
	color: var(--text);
	padding: 24px;
}

button,
input {
	font: inherit;
}

button {
	border: 0;
	background: none;
}

.page-shell {
	width: min(1240px, 100%);
	margin: 0 auto;
	display: grid;
	gap: 24px;
}

.hero,
.workspace,
.results-area {
	border: 1px solid var(--line);
	background: var(--panel);
	backdrop-filter: blur(16px);
	box-shadow: var(--shadow);
	border-radius: var(--radius-xl);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
	gap: 24px;
	padding: 34px;
	position: relative;
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	inset: auto -60px -80px auto;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(79, 209, 255, 0.22), transparent 68%);
	filter: blur(2px);
	pointer-events: none;
}

.eyebrow,
.section-kicker,
.metric-label,
.summary-label {
	font-family: "Barlow", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.77rem;
	color: var(--accent);
	font-weight: 700;
}

.hero-copy,
.hero-panel,
.dashboard,
.workspace,
.results-area,
.query-card,
.insight-panel,
.result-card {
	position: relative;
	z-index: 1;
}

.hero-copy h1,
.section-heading h2 {
	font-family: "Barlow", sans-serif;
	font-weight: 800;
	line-height: 1;
}

.hero-copy h1 {
	font-size: clamp(2.7rem, 5vw, 4.7rem);
	max-width: 12ch;
	margin-top: 14px;
}

.hero-text,
.section-text,
.metric-card p,
.summary-card p,
.empty-state p,
.result-meta,
.field-hint,
.status-banner span {
	color: var(--muted);
	line-height: 1.65;
}

.hero-text {
	max-width: 62ch;
	margin-top: 18px;
	font-size: 1.02rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.hero-btn,
.action-btn,
.copy-btn {
	border-radius: 999px;
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-btn:hover,
.action-btn:hover,
.copy-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.hero-btn {
	padding: 14px 22px;
	font-weight: 700;
	font-family: "Barlow", sans-serif;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	border: 1px solid transparent;
	color: var(--text);
}

.hero-btn-primary,
.action-btn-primary,
.copy-btn {
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	color: #05111d;
	font-weight: 700;
}

.hero-btn-secondary,
.action-btn-secondary {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--line-strong);
	color: var(--text);
}

.hero-panel {
	display: grid;
	gap: 14px;
	align-content: center;
}

.metric-card,
.summary-card,
.query-card,
.insight-panel,
.result-card,
.empty-state {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--panel-strong);
	border-radius: var(--radius-lg);
}

.metric-card {
	padding: 20px;
}

.metric-card strong,
.summary-card h3,
.result-card h3,
.empty-state h3 {
	display: block;
	font-family: "Barlow", sans-serif;
	font-size: 1.26rem;
	font-weight: 700;
	margin-top: 10px;
	margin-bottom: 8px;
}

.metric-card-highlight {
	background: linear-gradient(160deg, rgba(79, 209, 255, 0.16), rgba(13, 32, 64, 0.96));
	border-color: rgba(79, 209, 255, 0.28);
}

.dashboard {
	display: grid;
	gap: 24px;
}

.workspace,
.results-area {
	padding: 30px;
}

.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 20px;
	margin-bottom: 22px;
}

.section-heading h2 {
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	margin-top: 8px;
}

.section-text {
	max-width: 55ch;
}

.workspace-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
	gap: 22px;
	align-items: start;
}

.query-card,
.insight-panel {
	padding: 24px;
	min-height: 100%;
}

.field-grid {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.field-grid-inline {
	grid-template-columns: minmax(110px, 0.3fr) minmax(0, 0.7fr);
}

.field {
	display: grid;
	gap: 8px;
}

.field span {
	font-size: 0.93rem;
	font-weight: 600;
	color: #dbe8ff;
}

.field input {
	width: 100%;
	height: 56px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(255, 255, 255, 0.04);
	padding: 0 18px;
	color: var(--text);
	outline: 0;
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input::placeholder {
	color: rgba(214, 227, 255, 0.45);
}

.field input:focus,
.hero-btn:focus-visible,
.action-btn:focus-visible,
.copy-btn:focus-visible,
.result-card button:focus-visible {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(79, 209, 255, 0.16);
	outline: none;
}

.field-hint {
	font-size: 0.92rem;
	margin-top: 2px;
	margin-bottom: 18px;
}

.action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.action-btn,
.copy-btn {
	padding: 13px 18px;
	font-family: "Barlow", sans-serif;
	font-size: 0.94rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.action-btn-ghost {
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: transparent;
	color: var(--text);
}

.status-banner {
	display: grid;
	gap: 6px;
	padding: 16px 18px;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
}

.status-banner strong {
	font-family: "Barlow", sans-serif;
	font-size: 0.95rem;
	letter-spacing: 0.03em;
}

.status-banner[data-state="success"] {
	border-color: rgba(126, 231, 135, 0.35);
	background: rgba(126, 231, 135, 0.12);
}

.status-banner[data-state="loading"] {
	border-color: rgba(79, 209, 255, 0.35);
	background: rgba(79, 209, 255, 0.12);
}

.status-banner[data-state="error"] {
	border-color: rgba(255, 123, 142, 0.32);
	background: rgba(255, 123, 142, 0.12);
}

.summary-card-primary {
	padding: 22px;
	margin-bottom: 16px;
	background: linear-gradient(160deg, rgba(79, 209, 255, 0.14), rgba(13, 32, 64, 0.96));
	border-color: rgba(79, 209, 255, 0.22);
}

.detail-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.detail-item {
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: grid;
	gap: 8px;
}

.detail-item span {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	font-weight: 700;
}

.detail-item strong {
	font-size: 1.05rem;
	word-break: break-word;
}

.copy-btn {
	width: 100%;
}

.copy-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.section-heading-compact {
	margin-bottom: 18px;
}

.result-list {
	display: grid;
	gap: 14px;
}

.modal-backdrop {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(2, 9, 19, 0.78);
	backdrop-filter: blur(10px);
	z-index: 20;
}

.modal-backdrop[hidden] {
	display: none;
}

.address-modal {
	width: min(980px, 100%);
	max-height: min(84vh, 900px);
	overflow: auto;
	padding: 28px;
	border-radius: 28px;
	border: 1px solid rgba(79, 209, 255, 0.18);
	background: linear-gradient(180deg, rgba(12, 28, 56, 0.98), rgba(7, 18, 35, 0.98));
	box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: start;
	margin-bottom: 12px;
}

.modal-header h2 {
	font-family: "Barlow", sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	margin-top: 8px;
}

.modal-close {
	padding: 12px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	cursor: pointer;
	font-weight: 700;
	transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
	background: rgba(79, 209, 255, 0.16);
	border-color: rgba(79, 209, 255, 0.28);
	transform: translateY(-1px);
	outline: none;
}

.modal-text {
	color: var(--muted);
	margin-bottom: 18px;
	line-height: 1.65;
}

.modal-results {
	display: grid;
	gap: 14px;
}

.result-card,
.empty-state {
	padding: 22px;
}

.result-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	transition: transform 180ms ease, border-color 180ms ease;
}

.result-card:hover {
	transform: translateY(-2px);
	border-color: rgba(79, 209, 255, 0.28);
}

.result-meta {
	font-size: 0.96rem;
}

.result-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(79, 209, 255, 0.12);
	border: 1px solid rgba(79, 209, 255, 0.2);
	color: #b6eeff;
	font-size: 0.82rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.result-card button {
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid rgba(79, 209, 255, 0.22);
	background: rgba(79, 209, 255, 0.12);
	color: var(--text);
	font-weight: 700;
	cursor: pointer;
	min-width: 170px;
	transition: background 180ms ease, transform 180ms ease;
}

.result-card button:hover {
	background: rgba(79, 209, 255, 0.2);
	transform: translateY(-1px);
}

.is-hidden {
	display: none;
}

@media (max-width: 980px) {
	body {
		padding: 16px;
	}

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

	.hero-copy h1 {
		max-width: none;
	}

	.section-heading {
		align-items: start;
		flex-direction: column;
	}
}

@media (max-width: 720px) {
	.hero,
	.workspace,
	.results-area {
		padding: 22px;
		border-radius: 24px;
	}

	.hero-copy h1 {
		font-size: 2.4rem;
	}

	.address-modal {
		padding: 22px;
		border-radius: 24px;
	}

	.modal-header {
		flex-direction: column;
	}

	.section-heading h2 {
		font-size: 1.7rem;
	}

	.field-grid-inline,
	.detail-list,
	.result-card {
		grid-template-columns: 1fr;
	}

	.field input {
		height: 52px;
	}

	.result-card button,
	.copy-btn,
	.action-btn,
	.hero-btn {
		width: 100%;
	}
}