@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
	--bg-deep: #0a0d12;
	--bg-panel: #11141b;
	--border: #1f2430;
	--text-primary: #eef1f6;
	--text-muted: #8893a3;
	--text-faint: #5b6373;
	--accent: #3b82f6;
	--clinical: #14b8a6;
	--radius-lg: 22px;
	--font-display: 'Sora', sans-serif;
	--font-body: 'Inter', sans-serif;
}

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

body {
	font-family: var(--font-body);
	background: var(--bg-deep);
	color: var(--text-primary);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	position: relative;
	overflow: hidden;
}

.pulse-field {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	background:
		radial-gradient(ellipse 65% 55% at 18% 15%, rgba(59, 130, 246, 0.1), transparent 60%),
		radial-gradient(ellipse 60% 50% at 85% 85%, rgba(20, 184, 166, 0.09), transparent 60%);
}

.pulse-field svg {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.pulse-field .node-link {
	stroke: var(--border);
	stroke-width: 1;
	opacity: 0.6;
}

.pulse-field .node-dot {
	fill: var(--clinical);
	opacity: 0.55;
}

.pulse-field .node-group {
	animation: drift 22s ease-in-out infinite;
	transform-origin: center;
}

.pulse-field .node-group.alt {
	animation-duration: 28s;
	animation-delay: -6s;
}

@keyframes drift {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(16px, -12px); }
}

.pulse-field .ekg-line {
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-dasharray: 6 2600;
	animation: ekg-sweep 15s linear infinite;
	opacity: 0.5;
	filter: drop-shadow(0 0 7px rgba(59, 130, 246, 0.35));
}

@keyframes ekg-sweep {
	0% { stroke-dashoffset: 2600; }
	100% { stroke-dashoffset: -400; }
}

@media (prefers-reduced-motion: reduce) {
	.pulse-field .node-group { animation: none; }
	.pulse-field .ekg-line { animation: none; stroke-dasharray: none; opacity: 0.15; }
}

.hero {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: 20px;
	position: relative;
	z-index: 1;
}

.card-home {
	background: var(--bg-panel);
	border: 1px solid var(--border);
	padding: 3.4rem 2.6rem;
	border-radius: var(--radius-lg);
	box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.65);
	width: 100%;
	max-width: 480px;
	text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
	.card-home {
		animation: card-enter .65s cubic-bezier(.16, 1, .3, 1) both;
	}
}

@keyframes card-enter {
	from { opacity: 0; transform: translateY(20px) scale(.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo {
	width: 64px;
	height: 64px;
	margin: 0 auto 1.2rem;
	background: rgba(20, 184, 166, 0.12);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	color: var(--clinical);
	opacity: 0;
	animation: rise-in .5s ease .15s both;
}

@keyframes rise-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

h1 {
	font-family: var(--font-display);
	color: var(--text-primary);
	font-weight: 700;
	font-size: 2rem;
	margin-bottom: .5rem;
	letter-spacing: -0.01em;
	opacity: 0;
	animation: rise-in .5s ease .22s both;
}

.lead {
	color: var(--text-muted);
	font-size: 1rem;
	margin-bottom: 0;
	opacity: 0;
	animation: rise-in .5s ease .28s both;
}

hr {
	border: none;
	height: 1px;
	background: var(--border);
	margin: 1.6rem 0;
	opacity: 0;
	animation: rise-in .5s ease .34s both;
}

p.standalone {
	color: var(--text-muted);
	font-size: .92rem;
	line-height: 1.6;
	margin-bottom: 0;
	opacity: 0;
	animation: rise-in .5s ease .4s both;
}

.mt-4 {
	margin-top: 1.8rem !important;
	opacity: 0;
	animation: rise-in .5s ease .48s both;
}

.btn-lg {
	padding: .9rem 2rem;
	font-weight: 600;
	font-family: var(--font-body);
	border-radius: 10px;
	font-size: 1rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: filter .2s ease, transform .15s ease;
	text-decoration: none;
	display: inline-block;
}

.btn-lg:hover {
	filter: brightness(1.1);
	transform: translateY(-2px);
}

.btn-lg:active {
	transform: scale(.98);
}

.btn-primary {
	background: var(--accent);
	color: #fff;
}

.btn-success {
	background: var(--clinical);
	color: #fff;
}

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