/* Home page hero
---------------------------------------- */
:root {
	--jt-teal: #008d96;
	--jt-teal-bright: #19c6d1;
	--jt-cyan: #7ff0f7;
	--jt-ink: #06161a;
	--jt-ink-2: #0b2127;
	--jt-text: #e8f6f7;
	--jt-muted: #9cc0c3;
	--jt-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--jt-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

#hero.jt-hero {
	position: relative;
	isolation: isolate;
	min-height: calc(100vh - 80px);
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	padding: 5rem 0 6rem;
	background: radial-gradient(120% 90% at 20% 0%, var(--jt-ink-2) 0%, var(--jt-ink) 60%);
	color: var(--jt-text);
	font-family: var(--jt-font);
	overflow: hidden;
}

.jt-hero-inner { width: 100%; }
/* Drifting teal light */
.jt-hero-glow {
	position: absolute;
	z-index: -2;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .55;
	will-change: transform;
}

.jt-hero-glow-a {
	width: 46vw; height: 46vw;
	left: -10vw; top: -14vw;
	background: var(--jt-teal);
	animation: jt-drift-a 18s ease-in-out infinite alternate;
}

.jt-hero-glow-b {
	width: 38vw; height: 38vw;
	right: -8vw; bottom: -12vw;
	background: var(--jt-teal-bright);
	opacity: .35;
	animation: jt-drift-b 22s ease-in-out infinite alternate;
}

@keyframes jt-drift-a { to { transform: translate(8vw, 6vw) scale(1.15); } }
@keyframes jt-drift-b { to { transform: translate(-7vw, -5vw) scale(1.2); } }

/* Faint dotted grid, fading out toward the edges */
.jt-hero-grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(127, 240, 247, .22) 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
}

.jt-hero-inner {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 3rem;
	align-items: center;
}

/* Copy */
.jt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jt-cyan);
	padding: .4rem .9rem;
	border: 1px solid rgba(127, 240, 247, .25);
	border-radius: 999px;
	background: rgba(0, 141, 150, .12);
}

.jt-eyebrow-dot, .jt-live {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--jt-teal-bright);
	box-shadow: 0 0 0 0 rgba(25, 198, 209, .6);
	animation: jt-pulse 2s infinite;
}

@keyframes jt-pulse {
	70% { box-shadow: 0 0 0 9px rgba(25, 198, 209, 0); }
	100% { box-shadow: 0 0 0 0 rgba(25, 198, 209, 0); }
}

.jt-hero-title {
	margin: 1.4rem 0 0;
	font-size: clamp(2.2rem, 4.4vw, 3.9rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.035em;
	color: var(--jt-strong);
}

.jt-nowrap { white-space: nowrap; }

.jt-gradient-text {
	display: block;
	background: linear-gradient(95deg, var(--jt-teal-bright), var(--jt-cyan) 60%, var(--jt-grad-end));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.jt-hero-blurb {
	margin-top: 1.5rem;
	max-width: 34rem;
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	line-height: 1.6;
	color: var(--jt-muted);
}

.jt-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2.2rem;
}

.jt-btn {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .85rem 1.6rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.jt-btn i { transition: transform .2s ease; }
.jt-btn:hover i { transform: translateX(5px); }

.jt-btn-primary {
	color: #fff;
	background: linear-gradient(135deg, var(--jt-teal), var(--jt-teal-bright));
	box-shadow: 0 8px 28px rgba(0, 141, 150, .45);
}

.jt-btn-primary:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 36px rgba(25, 198, 209, .55);
}

.jt-btn-ghost {
	color: var(--jt-text);
	border: 1px solid rgba(127, 240, 247, .3);
	background: rgba(255, 255, 255, .04);
}

.jt-btn-ghost:hover {
	color: #fff;
	transform: translateY(-2px);
	border-color: var(--jt-cyan);
	background: rgba(127, 240, 247, .08);
}

.jt-hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.8rem;
	margin: 2.6rem 0 0;
	padding: 1.2rem 0 0;
	list-style: none;
	border-top: 1px solid rgba(127, 240, 247, .15);
	color: var(--jt-muted);
	font-size: .95rem;
}

.jt-hero-trust strong { color: var(--jt-strong); }

/* Code card */
.jt-hero-visual {
	position: relative;
	animation-name: jt-rise, jt-bob;
	animation-duration: .8s, 7s;
	animation-delay: var(--d, 0ms), 1s;
	animation-timing-function: ease, ease-in-out;
	animation-fill-mode: both, none;
	animation-iteration-count: 1, infinite;
	animation-direction: normal, alternate;
}

@keyframes jt-bob { to { transform: translateY(-12px); } }

.jt-code-card {
	border-radius: 10px;
	background: rgba(8, 28, 33, .72);
	border: 1px solid rgba(127, 240, 247, .22);
	box-shadow: 0 30px 80px rgba(var(--jt-shadow-rgb), calc(.55 * var(--jt-shadow-k))), 0 0 60px rgba(0, 141, 150, .25);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	overflow: hidden;
}

.jt-code-bar {
	display: flex;
	align-items: center;
	gap: .6rem;
	height: 34px;
	padding: 0 0 0 .8rem;
	border-bottom: 1px solid rgba(127, 240, 247, .12);
	background: rgba(255, 255, 255, .04);
}

.jt-win-icon { flex: none; }

.jt-code-file {
	margin: 0;
	font: 400 .78rem var(--jt-font);
	color: var(--jt-text);
}

.jt-win-controls { display: flex; align-self: stretch; margin-left: auto; }

.jt-win-btn {
	display: grid;
	place-items: center;
	width: 46px;
	color: var(--jt-text);
	transition: background-color .15s ease;
}

.jt-win-btn:hover { background: rgba(255, 255, 255, .1); }
.jt-win-close:hover { background: #c42b1c; color: #fff; }

.jt-code-body {
	margin: 0;
	padding: 1.3rem 1.4rem 1.6rem;
	min-height: 17rem;
	font: 400 clamp(.78rem, 1.1vw, .92rem)/1.75 var(--jt-mono);
	color: #cfe9eb;
	white-space: pre;
	overflow-x: auto;
}

.jt-code-body code { font: inherit; color: inherit; }
.c-k { color: #ff8fb1; }
.c-t { color: var(--jt-cyan); }
.c-m { color: #ffd479; }
.c-s { color: #9ee493; }

.jt-caret {
	display: inline-block;
	width: .55em; height: 1.1em;
	vertical-align: text-bottom;
	background: var(--jt-teal-bright);
	animation: jt-blink 1s steps(1) infinite;
}

@keyframes jt-blink { 50% { opacity: 0; } }

.jt-float-card {
	position: absolute;
	right: 1.5rem;
	bottom: -1.6rem;
	display: flex;
	flex-direction: column;
	gap: .2rem;
	padding: .9rem 1.2rem;
	border-radius: 14px;
	background: rgba(8, 28, 33, .85);
	border: 1px solid rgba(127, 240, 247, .25);
	box-shadow: 0 16px 40px rgba(var(--jt-shadow-rgb), calc(.5 * var(--jt-shadow-k)));
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.jt-float-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--jt-muted); }
.jt-float-value { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--jt-strong); }

/* Scroll cue */
.jt-scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 1.6rem;
	transform: translateX(-50%);
}

.jt-scroll-mouse {
	display: block;
	width: 24px; height: 40px;
	border: 2px solid rgba(127, 240, 247, .5);
	border-radius: 14px;
	position: relative;
}

.jt-scroll-mouse span {
	position: absolute;
	left: 50%; top: 8px;
	width: 4px; height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--jt-teal-bright);
	animation: jt-wheel 1.6s ease-in-out infinite;
}

@keyframes jt-wheel {
	0% { opacity: 0; transform: translateY(0); }
	30% { opacity: 1; }
	100% { opacity: 0; transform: translateY(14px); }
}

/* Load-in */
.jt-rise {
	animation: jt-rise .8s ease both;
	animation-delay: var(--d, 0ms);
}

@keyframes jt-rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 991px) {
	#hero.jt-hero { padding: 3.5rem 0 6rem; }
	.jt-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
	.jt-float-card { right: 1rem; bottom: -1.4rem; }
	.jt-hero-glow { filter: blur(70px); opacity: .4; }
}

@media (prefers-reduced-motion: reduce) {
	.jt-hero *, .jt-hero-glow, .jt-hero-visual { animation: none !important; }
}

/* Eyebrow used as a link (home hero -> Google Maps) */
a.jt-eyebrow {
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

a.jt-eyebrow:hover,
a.jt-eyebrow:focus-visible {
	color: #fff;
	background: rgba(0, 141, 150, .28);
	border-color: var(--jt-border-hot, rgba(127, 240, 247, .5));
}

.jt-eyebrow-icon { font-size: .7em; opacity: .7; margin-left: .15rem; }

/* Radar ping from the dot while the link is hovered or focused */
a.jt-eyebrow .jt-eyebrow-dot { position: relative; flex: none; }

a.jt-eyebrow .jt-eyebrow-dot::before,
a.jt-eyebrow .jt-eyebrow-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1.5px solid var(--jt-cyan);
	opacity: 0;
	pointer-events: none;
}

a.jt-eyebrow:hover .jt-eyebrow-dot::before,
a.jt-eyebrow:focus-visible .jt-eyebrow-dot::before { animation: jt-radar 1.8s ease-out infinite; }

a.jt-eyebrow:hover .jt-eyebrow-dot::after,
a.jt-eyebrow:focus-visible .jt-eyebrow-dot::after { animation: jt-radar 1.8s ease-out .9s infinite; }

@keyframes jt-radar {
	0% { transform: scale(1); opacity: .9; }
	100% { transform: scale(7); opacity: 0; }
}
