/* Bee landing page — dark, terminal-inspired, honey accent */

:root {
	--bg: #0a0a0c;
	--bg-soft: #0d0e12;
	--panel: #111218;
	--panel-2: #15161d;
	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.14);
	--text: #f3f2ed;
	--muted: #9b9ca8;
	--dim: #85869a;
	--honey: #ffcd3c;
	--amber: #e0a000;
	--cyan: #8be9fd;
	--green: #7ee787;
	--radius: 18px;
	--mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(900px 520px at 78% -8%, rgba(255, 205, 60, 0.12), transparent 60%),
		radial-gradient(700px 500px at 8% 4%, rgba(139, 233, 253, 0.06), transparent 62%),
		var(--bg);
}

img,
svg {
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

code,
pre {
	font-family: var(--mono);
	font-size: 0.9em;
}

::selection {
	background: rgba(255, 205, 60, 0.28);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--honey);
	outline-offset: 3px;
	border-radius: 6px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	background: var(--honey);
	color: #1a1405;
	padding: 10px 16px;
	border-radius: 10px;
	font-weight: 600;
	transition: top 0.2s var(--ease);
}

.skip-link:focus {
	top: 16px;
}

.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* Icons */
.icon,
.sprite symbol {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon {
	width: 20px;
	height: 20px;
}

.wrap {
	width: min(1180px, 100% - 48px);
	margin-inline: auto;
}

/* Navigation */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 10, 12, 0.72);
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--line);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.brand-mark {
	width: 30px;
	height: 30px;
	flex: none;
	filter: drop-shadow(0 0 14px rgba(255, 205, 60, 0.35));
}

.brand-mark .hex {
	fill: var(--honey);
}

.brand-mark .eye {
	fill: #211a06;
}

.brand-name {
	font-family: var(--mono);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--text);
}

.badge {
	font-family: var(--mono);
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--amber);
	border: 1px solid rgba(255, 205, 60, 0.28);
	background: rgba(255, 205, 60, 0.07);
	padding: 3px 8px;
	border-radius: 999px;
	white-space: nowrap;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav-links a {
	font-size: 0.9rem;
	color: var(--muted);
	padding: 8px 12px;
	border-radius: 9px;
	transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
	color: var(--text);
	background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active:not(.btn)::after {
	content: "";
	display: block;
	margin: 6px auto 0;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: var(--honey);
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	border-radius: 9px;
	width: 40px;
	height: 38px;
	padding: 10px;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}

.nav-toggle .bar {
	display: block;
	/* Whole pixels: a fractional height rounds to 1px on one bar and 2px on
	   the other, so the two lines look different weights. */
	height: 2px;
	width: 100%;
	background: var(--text);
	transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* Bars sit 5px apart, so each one travels half of that plus its own height
   to meet in the middle and form the X. */
.nav-toggle[aria-expanded="true"] .bar-top {
	transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar-bottom {
	transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	padding: 14px 22px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: linear-gradient(180deg, #ffd85c, var(--honey));
	color: #1c1503;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 2px 6px -2px rgba(0, 0, 0, 0.5);
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 6px 14px -6px rgba(0, 0, 0, 0.55);
}

.btn .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
	transform: translateX(3px);
}

.btn-ghost {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--text);
	box-shadow: none;
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.05);
	box-shadow: none;
}

.btn-sm {
	padding: 10px 16px;
	font-size: 0.85rem;
	border-radius: 10px;
	margin-left: 8px;
}

/* Hero */
.hero {
	padding: 0;
}

/* Opening introduction: the bee introduces itself beside the install
   terminal, so presentation and installation share one block. */
.intro {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 48px;
	align-items: center;
	padding-top: 56px;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--line);
}

.intro-presentation {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 36px;
	align-items: center;
	min-width: 0;
}

.intro-mark {
	width: clamp(84px, 9vw, 116px);
	height: auto;
	flex: none;
	filter: drop-shadow(0 16px 36px rgba(255, 205, 60, 0.38));
}

.hello {
	font-size: clamp(1.75rem, 3.2vw, 2.4rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.1;
	margin-bottom: 14px;
}

.intro-lead {
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	color: var(--muted);
	max-width: 66ch;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: 56px;
	align-items: center;
	padding-top: 56px;
}

h1 {
	font-size: clamp(2.5rem, 5.2vw, 4.25rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	font-weight: 700;
	margin-bottom: 22px;
}

h1 em {
	font-style: normal;
	color: var(--honey);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
	h1 em {
		background: linear-gradient(100deg, var(--honey), var(--amber));
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
}

.lead {
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	color: var(--muted);
	max-width: 56ch;
}

.hero-copy .lead {
	margin-bottom: 30px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Terminal window */
.window {
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.window-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.02);
}

.lights {
	display: inline-flex;
	gap: 6px;
}

.lights i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2a2b33;
}

.lights i:first-child {
	background: #3a2b28;
}

.window-title {
	flex: 1;
	text-align: center;
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--dim);
}

/* Mirrors the traffic lights so the title sits in the true centre of the bar. */
.window-bar::after {
	content: "";
	width: 42px;
	flex: none;
}

.hero-demo .window {
	transform: perspective(1400px) rotateX(1.5deg) rotateY(-3deg);
	transition: transform 0.5s var(--ease);
}

.hero-demo .window:hover {
	transform: perspective(1400px) rotateX(0) rotateY(0);
}

/* Stats */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	margin-top: 64px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--line);
}

.stats div {
	background: var(--bg);
	padding: 22px 24px;
}

.stats dt {
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--dim);
	margin-bottom: 6px;
}

.stats dd {
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* Sections */
.section {
	padding: 104px 0;
}

section[id] {
	scroll-margin-top: 88px;
}

.section-alt {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
	border-block: 1px solid var(--line);
}

.section-head {
	max-width: 720px;
	margin-bottom: 52px;
}

h2 {
	font-size: clamp(1.85rem, 3.4vw, 2.7rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	font-weight: 700;
	margin-bottom: 16px;
}

h3 {
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	margin-bottom: 8px;
}

.section-head .lead {
	max-width: 52ch;
}

/* Bento features */
.bento {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

.card {
	position: relative;
	grid-column: span 3;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(600px 200px at 100% 0%, rgba(255, 205, 60, 0.05), transparent 70%),
		var(--panel);
	transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.card:hover {
	border-color: rgba(255, 205, 60, 0.32);
	transform: translateY(-3px);
}

.card p {
	color: var(--muted);
	font-size: 0.94rem;
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

.card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	margin-bottom: 20px;
	color: var(--honey);
	background: rgba(255, 205, 60, 0.09);
	border: 1px solid rgba(255, 205, 60, 0.18);
}

.card-icon .icon {
	width: 21px;
	height: 21px;
}

/* Split layout */
.split {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 64px;
	align-items: center;
}

.split-copy .lead {
	margin-bottom: 22px;
}

.fineprint {
	font-size: 0.86rem;
	color: var(--dim);
	max-width: 46ch;
}

.fineprint code {
	font-size: 0.85em;
	color: var(--cyan);
	background: rgba(139, 233, 253, 0.08);
	border: 1px solid rgba(139, 233, 253, 0.12);
	padding: 1px 6px;
	border-radius: 6px;
}

/* Providers */
.providers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.provider {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 15px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--panel);
	transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.provider:hover {
	border-color: var(--line-strong);
	background: var(--panel-2);
}

.provider-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--cyan);
	box-shadow: 0 0 0 4px rgba(139, 233, 253, 0.12);
}

.provider.local .provider-dot {
	background: var(--honey);
	box-shadow: 0 0 0 4px rgba(255, 205, 60, 0.14);
}

.provider.custom .provider-dot {
	background: var(--dim);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.provider-name {
	font-size: 0.95rem;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.provider-kind {
	font-family: var(--mono);
	font-size: 0.64rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--dim);
}

.local-note {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 48px;
	align-items: center;
	margin-top: 40px;
	padding: 34px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(500px 200px at 0% 0%, rgba(255, 205, 60, 0.07), transparent 70%),
		var(--panel);
}

.local-copy p {
	color: var(--muted);
	font-size: 0.94rem;
	max-width: 52ch;
}

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

.endpoints li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.86rem;
	color: var(--text);
	padding: 11px 14px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--line);
}

.endpoints li::before {
	content: "";
	width: 6px;
	height: 6px;
	flex: none;
	border-radius: 50%;
	background: var(--honey);
	box-shadow: 0 0 0 4px rgba(255, 205, 60, 0.12);
}

/* Steps */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	counter-reset: step;
}

.step {
	position: relative;
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
}

/* Accent drawn as a 2px ring trimmed to the top edge, so it follows the
   card's rounded corners instead of ending in a straight cut. */
.step::after {
	content: "";
	position: absolute;
	inset: -1px;
	padding: 2px;
	border-radius: var(--radius);
	background: linear-gradient(90deg, var(--honey), transparent 70%) top left / 100% 2px no-repeat;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	opacity: 0.55;
	pointer-events: none;
}

.step-num {
	display: inline-block;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	color: var(--honey);
	margin-bottom: 14px;
}

.step p {
	color: var(--muted);
	font-size: 0.93rem;
}

.guarantees {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}

.guarantee p {
	color: var(--dim);
	font-size: 0.9rem;
}

.guarantee p a {
	color: var(--muted);
	text-decoration: underline;
	text-decoration-color: rgba(255, 205, 60, 0.4);
	text-underline-offset: 3px;
	transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.guarantee p a:hover {
	color: var(--honey);
	text-decoration-color: var(--honey);
}

/* Decorative dash: drawn as a box so screen readers do not read it as part
   of the heading text. */
.guarantee h3::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 2px;
	margin-right: 8px;
	vertical-align: middle;
	border-radius: 2px;
	background: var(--honey);
}

/* Commands */
.commands {
	display: grid;
	gap: 2px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--line);
}

.commands li {
	display: grid;
	grid-template-columns: 130px 1fr;
	align-items: baseline;
	gap: 16px;
	padding: 13px 20px;
	background: var(--panel);
	transition: background 0.2s var(--ease);
}

.commands li:hover {
	background: var(--panel-2);
}

.commands code {
	color: var(--honey);
	font-size: 0.84rem;
}

.commands span {
	color: var(--muted);
	font-size: 0.88rem;
}

.install {
	display: grid;
	gap: 18px;
	align-content: center;
	min-width: 0;
}

/* Get-started panel: a window chrome around plain copy, so the block keeps
   the app feel without showing any commands. */
.install-body {
	padding: 24px 24px 26px;
}

.install-title {
	font-family: var(--sans);
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 16px;
}

.platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.platforms li {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--honey);
	border: 1px solid rgba(255, 205, 60, 0.22);
	background: rgba(255, 205, 60, 0.07);
	padding: 5px 11px;
	border-radius: 999px;
}

.install-note {
	font-size: 0.82rem;
	line-height: 1.6;
	color: var(--dim);
	max-width: 44ch;
}

/* Desktop app mock: sidebar, chat and details panel inside the hero window */
/* The window is the query container: the sidebar and details panel drop out
   when the window itself is narrow, not when the page is. */
.app-window {
	container-type: inline-size;
}

.app-body {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 118px;
	height: 360px;
	font-size: 0.68rem;
	line-height: 1.5;
}

.app-rail,
.app-details {
	padding: 12px 10px;
	background: rgba(0, 0, 0, 0.22);
	min-width: 0;
}

.app-rail {
	border-right: 1px solid var(--line);
}

.app-details {
	border-left: 1px solid var(--line);
}

.rail-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.rail-ws {
	font-family: var(--mono);
	font-weight: 600;
	color: var(--honey);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rail-plus {
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	flex: none;
	border: 1px solid var(--line-strong);
	border-radius: 5px;
	color: var(--muted);
	font-size: 0.7rem;
}

.rail-list {
	display: grid;
	gap: 1px;
	margin-bottom: 10px;
}

.rail-list li {
	padding: 4px 7px;
	border-radius: 6px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rail-list li.is-active {
	background: rgba(255, 205, 60, 0.1);
	color: var(--text);
}

.rail-label {
	font-family: var(--mono);
	font-size: 0.56rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--dim);
	margin: 12px 7px 4px;
}

.app-chat {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.chat-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
}

.chat-title {
	font-weight: 600;
	font-size: 0.72rem;
}

.chat-meta {
	font-family: var(--mono);
	font-size: 0.55rem;
	color: var(--dim);
}

.chat-scroll {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	padding: 12px;
	overflow: hidden;
}

.bubble {
	max-width: 92%;
	padding: 6px 9px;
	border-radius: 9px;
	color: #d6d7de;
}

.bubble.user {
	align-self: flex-end;
	background: rgba(255, 205, 60, 0.1);
	border: 1px solid rgba(255, 205, 60, 0.18);
}

.bubble.bee {
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--line);
}

.bubble-meta {
	display: block;
	margin-top: 4px;
	font-family: var(--mono);
	font-size: 0.55rem;
	color: var(--dim);
}

.tool-card {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 4px 8px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: rgba(0, 0, 0, 0.28);
	min-width: 0;
}

.tool-name {
	font-family: var(--mono);
	font-size: 0.6rem;
	color: var(--cyan);
	flex: none;
}

.tool-arg {
	font-family: var(--mono);
	font-size: 0.58rem;
	color: var(--dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tool-ok {
	margin-left: auto;
	font-size: 0.56rem;
	color: var(--green);
	white-space: nowrap;
	flex: none;
}

.composer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 12px 12px;
	padding: 8px 10px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.3);
}

.composer-placeholder {
	flex: 1;
	color: var(--dim);
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.composer-chip {
	font-family: var(--mono);
	font-size: 0.54rem;
	color: var(--honey);
	border: 1px solid rgba(255, 205, 60, 0.24);
	background: rgba(255, 205, 60, 0.07);
	padding: 2px 6px;
	border-radius: 999px;
	white-space: nowrap;
}

.detail-list {
	display: grid;
	gap: 6px;
	padding: 0 7px;
}

.detail-list div {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	font-size: 0.62rem;
}

.detail-list dt {
	color: var(--dim);
}

.detail-list dd {
	font-family: var(--mono);
	color: var(--text);
}

/* Short facts under the bento grid */
.facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 36px;
	padding-top: 30px;
	border-top: 1px solid var(--line);
}

.facts h3 {
	font-size: 0.95rem;
}

.facts h3::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 2px;
	margin-right: 8px;
	vertical-align: middle;
	border-radius: 2px;
	background: var(--honey);
}

.facts p {
	color: var(--dim);
	font-size: 0.88rem;
}

@container (max-width: 500px) {
	.app-body {
		grid-template-columns: 150px minmax(0, 1fr);
	}

	.app-details {
		display: none;
	}
}

@container (max-width: 380px) {
	.app-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.app-rail {
		display: none;
	}
}

/* Footer */
.footer {
	border-top: 1px solid var(--line);
	padding: 40px 0;
}

.footer-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 0.85rem;
	color: var(--dim);
}

.footer-brand {
	gap: 8px;
}

.footer-brand .brand-mark {
	width: 24px;
	height: 24px;
	opacity: 0.85;
}

.footer-brand .brand-name {
	font-size: 0.98rem;
}

.footer-inner p:first-of-type {
	flex: 1;
	min-width: 220px;
}

.copyright {
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--dim);
}

/* Grid children must be allowed to shrink, or long <pre> lines widen the page */
.hero-grid > *,
.intro > *,
.intro-presentation > *,
.split > *,
.local-note > *,
.bento > * {
	min-width: 0;
}

/* Responsive */
/* Below this width the install terminal no longer fits beside the
   presentation, so it drops underneath. */
@media (max-width: 1080px) {
	.intro {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
		padding-top: 40px;
		padding-bottom: 36px;
		justify-items: start;
	}

	.install {
		width: 100%;
		max-width: 520px;
	}
}

@media (max-width: 1000px) {
	.hero-grid,
	.split {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.hero-demo .window {
		transform: none;
	}

	.hero-grid {
		padding-top: 40px;
	}

	.stats {
		grid-template-columns: repeat(2, 1fr);
		margin-top: 48px;
	}

	.bento {
		grid-template-columns: repeat(2, 1fr);
	}

	.span-2,
	.span-3,
	.span-4 {
		grid-column: span 1;
	}

	.local-note {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.steps,
	.guarantees,
	.facts {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.guarantees {
		gap: 24px;
	}

	.facts {
		gap: 18px;
	}
}

@media (max-width: 780px) {
	.wrap {
		width: min(1180px, 100% - 36px);
	}

	.nav-toggle {
		display: flex;
	}

	.nav-links {
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 14px 18px 20px;
		background: rgba(10, 10, 12, 0.98);
		border-bottom: 1px solid var(--line);
		display: none;
	}

	.nav-links.open {
		display: flex;
	}

	/* The underline is a desktop-only cue; in the stacked menu the active
	   item is marked by its background instead. */
	.nav-links a.active:not(.btn)::after {
		display: none;
	}

	.nav-links a {
		padding: 12px;
	}

	.nav-links a.active {
		background: rgba(255, 205, 60, 0.1);
	}

	.nav-links .btn {
		justify-content: center;
		margin: 8px 0 0;
	}

	.badge {
		display: none;
	}

	.intro {
		padding-top: 30px;
	}

	.intro-presentation {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
		justify-items: start;
	}

	.section {
		padding: 72px 0;
	}

	.bento {
		grid-template-columns: 1fr;
	}

	.card {
		padding: 24px;
	}

	.providers {
		grid-template-columns: 1fr;
	}

	.local-note {
		padding: 24px;
	}

	.commands li {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.stats div {
		padding: 18px;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

@media (max-width: 420px) {
	.actions .btn {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
