:root {
	--color-bg: #f7f7f7;
	--color-surface: #ededed;
	--color-text: #101010;
	--color-text-muted: #4b5258;
	--color-border: rgba(0, 0, 0, 0.08);
	--color-accent: #0d9488;
	--color-accent-hover: #0f766e;
	--color-accent-contrast: #ffffff;

	--font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;

	--shadow-soft: 0 1px 2px rgba(15, 20, 25, 0.06), 0 8px 24px rgba(15, 20, 25, 0.06);

	--max-width: 1280px;
	--measure: 70ch;
	--space-section: 6rem;
}

[data-theme='dark'] {
	--color-bg: #101010;
	--color-surface: #151515;
	--color-text: #f7f7f7;
	--color-text-muted: #a8b0b8;
	--color-border: rgba(255, 255, 255, 0.18);
	--color-accent: #2dd4bf;
	--color-accent-hover: #5eead4;
	--color-accent-contrast: #101010;

	--shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 2.5rem 1.5rem var(--space-section);
}

.breadcrumb {
	margin: 0 0 3rem;
	font-size: 0.95rem;
}

.breadcrumb a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--color-accent);
	font-weight: 500;
}

.breadcrumb a:hover {
	color: var(--color-accent-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.breadcrumb svg {
	flex-shrink: 0;
}

section {
	margin-top: var(--space-section);
}

h1,
h2,
h3 {
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--color-text);
	line-height: 1.2;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color 120ms ease;
}

a:hover {
	color: var(--color-accent-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.section-title {
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 2rem;
	line-height: 1.1;
}

@media (min-width: 1024px) {
	.section-title {
		font-size: 3rem;
	}
}

.hero h1 {
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
}

@media (min-width: 1024px) {
	.hero h1 {
		font-size: 3.75rem;
	}
}

.hero-eyebrow {
	margin: 0 0 0.9rem;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--color-text);
}

.hero-greeting {
	color: var(--color-accent);
}

.hero-lead {
	font-size: 1.25rem;
	color: var(--color-text-muted);
	margin: 0 0 1.5rem;
	max-width: var(--measure);
}

.hero-ctas {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.icon-link {
	display: inline-flex;
	color: var(--color-text);
	transition: color 120ms ease;
}

.icon-link:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.callout {
	--callout-color: var(--color-accent);
	--callout-bg: rgba(13, 148, 136, 0.08);

	margin: 0 0 1.5rem;
	padding: 0.85rem 1.1rem;
	background: var(--callout-bg);
	border-radius: var(--radius-sm);
	color: var(--color-text);
	font-size: 0.95rem;
}

.callout-caution {
	--callout-color: #d4183d;
	--callout-bg: rgba(212, 24, 61, 0.08);
}

[data-theme='dark'] .callout-caution {
	--callout-color: #f87171;
	--callout-bg: rgba(248, 113, 113, 0.12);
}

.callout-title {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.35rem;
	color: var(--callout-color);
	font-weight: 700;
	letter-spacing: 0.005em;
}

.callout-title svg {
	flex-shrink: 0;
}

.callout-body {
	margin: 0;
	color: var(--color-text);
}

.callout-body strong {
	font-weight: 600;
}

.panels {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.panels iframe {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	box-shadow: var(--shadow-soft);
	width: 100%;
	min-height: 16rem;
}

@media (min-width: 1024px) {
	.panels {
		grid-template-columns: 1fr 1fr;
	}

	.panels iframe {
		min-height: 18rem;
	}
}

.controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.25rem;
	padding: 1.5rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
}

button {
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: -0.005em;
	padding: 0.85rem 1.75rem;
	min-height: 3rem;
	border-radius: var(--radius-md);
	border: 1px solid transparent;
	background: var(--color-accent);
	color: var(--color-accent-contrast);
	cursor: pointer;
	touch-action: manipulation;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.15),
		0 1px 2px rgba(15, 20, 25, 0.12),
		0 4px 12px rgba(13, 148, 136, 0.25);
	transition:
		background 120ms ease,
		box-shadow 160ms ease,
		transform 80ms ease;
}

button:hover:not(:disabled) {
	background: var(--color-accent-hover);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.18),
		0 2px 4px rgba(15, 20, 25, 0.14),
		0 8px 20px rgba(13, 148, 136, 0.35);
	transform: translateY(-1px);
}

button:active:not(:disabled) {
	transform: translateY(1px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		0 1px 2px rgba(15, 20, 25, 0.18),
		0 1px 3px rgba(13, 148, 136, 0.2);
}

button:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
}

[data-theme='dark'] button {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 1px 2px rgba(0, 0, 0, 0.4),
		0 4px 12px rgba(45, 212, 191, 0.18);
}

[data-theme='dark'] button:hover:not(:disabled) {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		0 2px 4px rgba(0, 0, 0, 0.5),
		0 8px 20px rgba(45, 212, 191, 0.28);
}

.cta-link {
	font-weight: 500;
}

.status {
	font-size: 0.95rem;
	color: var(--color-text-muted);
	flex: 1 1 100%;
}

@media (min-width: 30rem) {
	.status {
		flex: 1 1 auto;
	}
}

footer {
	margin-top: var(--space-section);
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: 0.9rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	min-height: 0;
	background: transparent;
	color: var(--color-text);
	border: none;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: color 120ms ease;
	letter-spacing: 0;
	font-weight: inherit;
	gap: 0;
}

.theme-toggle:hover:not(:disabled),
.theme-toggle:active:not(:disabled) {
	color: var(--color-accent);
	background: transparent;
	box-shadow: none;
	transform: none;
}

.theme-toggle svg {
	width: 1.5rem;
	height: 1.5rem;
}

[data-theme='dark'] .theme-toggle,
.theme-toggle {
	box-shadow: none;
}

footer p {
	margin: 0;
}

.hidden {
	display: none;
}

.section-measure {
	max-width: var(--measure);
}

.section-measure p {
	margin: 0 0 1rem;
}

.feature-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.feature-list li {
	position: relative;
	padding-left: 1.25rem;
	color: var(--color-text-muted);
}

.feature-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-accent);
}

.feature-list strong {
	color: var(--color-text);
	font-weight: 600;
}

.flow-label {
	margin: 1.5rem 0 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.data-flow {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.95rem;
	line-height: 1.7;
	padding: 1rem 1.25rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow-x: auto;
	color: var(--color-text);
}

.muted {
	color: var(--color-text-muted);
}

code {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.92em;
	padding: 0.1em 0.35em;
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
}

@media (max-width: 600px) {
	body {
		font-size: 16px;
	}

	main {
		padding: 2.5rem 1.25rem 4rem;
	}

	.hero h1 {
		font-size: 2.25rem;
	}

	.section-title {
		font-size: 1.85rem;
		margin-bottom: 1.5rem;
	}

	.hero-lead {
		font-size: 1.1rem;
	}

	:root {
		--space-section: 4rem;
	}
}