/* Backlog.md product site — design system
   Type scale: Tailwind defaults. Spacing: fixed token set. Radius: Tailwind values.
   Motion: cubic-bezier(0.22, 1, 0.36, 1). No background gradients except hero heading text. */

@font-face {
	font-family: "Geist";
	src:
		url("https://cdn.jsdelivr.net/npm/geist@1.4.2/dist/fonts/geist-sans/Geist-Variable.woff2") format("woff2"),
		url("https://unpkg.com/geist@1.4.2/dist/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Geist Mono";
	src:
		url("https://cdn.jsdelivr.net/npm/geist@1.4.2/dist/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2"),
		url("https://unpkg.com/geist@1.4.2/dist/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* surfaces (dark theme) */
	--bg: #000000;
	--surface-1: #181818;
	--surface-2: #1f1f1f;
	--surface-3: #272727;
	--surface-4: #313131;
	--surface-wash: #131209;

	/* text */
	--text: #ffffff;
	--text-2: #9b9b9b;
	--text-3: #6e6e6e;

	/* brand */
	--accent: #00c4cc;
	--accent-deep: #1b3a5c;
	--accent-soft: rgba(0, 196, 204, 0.12);

	/* lines */
	--line: #272727;
	--line-strong: #313131;

	/* spacing tokens */
	--sp-0: 0;
	--sp-25: 2px;
	--sp-50: 4px;
	--sp-75: 8px;
	--sp-100: 12px;
	--sp-200: 16px;
	--sp-300: 24px;
	--sp-400: 32px;
	--sp-500: 40px;
	--sp-600: 48px;
	--sp-700: 64px;
	--sp-800: 80px;
	--sp-900: 96px;

	/* radius */
	--r-sm: 2px;
	--r: 4px;
	--r-md: 6px;
	--r-lg: 8px;
	--r-xl: 12px;
	--r-2xl: 16px;
	--r-3xl: 24px;

	/* motion */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--dur-layout: 500ms;
	--dur-color: 300ms;

	--font: "Geist", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
		"Microsoft YaHei", sans-serif;
	--mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--sp-800);
	-webkit-text-size-adjust: 100%;
}

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

img {
	max-width: 100%;
	display: block;
}

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

button {
	font-family: inherit;
	color: inherit;
	background: none;
	border: none;
	cursor: pointer;
}

:focus-visible {
	outline: var(--sp-25) solid var(--accent);
	outline-offset: var(--sp-25);
	border-radius: var(--r);
}

::selection {
	background: var(--accent);
	color: var(--bg);
}

/* ---------- text styles ---------- */

.heading-1 {
	font-size: 60px;
	line-height: 60px;
	font-weight: 600;
	text-wrap: balance;
}

.heading-2 {
	font-size: 48px;
	line-height: 48px;
	font-weight: 600;
	text-wrap: balance;
}

.heading-3 {
	font-size: 36px;
	line-height: 40px;
	font-weight: 600;
	text-wrap: balance;
}

.heading-4 {
	font-size: 30px;
	line-height: 36px;
	font-weight: 600;
	text-wrap: balance;
}

.heading-5 {
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
	text-wrap: balance;
}

.heading-6 {
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	text-wrap: balance;
}

.title-1 {
	font-size: 20px;
	line-height: 28px;
	font-weight: 500;
}

.title-2 {
	font-size: 18px;
	line-height: 28px;
	font-weight: 500;
}

.title-3 {
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
}

.title-4 {
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}

.title-5 {
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
}

.body-1 {
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
}

.body-2 {
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
}

.body-3 {
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	text-wrap: pretty;
}

.body-4 {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}

.body-5 {
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	text-wrap: pretty;
}

.body-6 {
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	text-wrap: pretty;
}

.button-lg {
	font-size: 18px;
	line-height: 28px;
	font-weight: 600;
}

.button-md {
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
}

.button-sm {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}

.button-xsm {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
}

.caption-1 {
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}

.caption-2 {
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
}

.caption-3 {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
}

.caption-4 {
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
}

.caption-5 {
	font-size: 12px;
	line-height: 16px;
	font-weight: 400;
}

.mono {
	font-family: var(--mono);
}

/* ---------- layout ---------- */

.container {
	width: 100%;
	max-width: 1160px;
	margin-inline: auto;
	padding-inline: var(--sp-300);
}

.container-narrow {
	width: 100%;
	max-width: 860px;
	margin-inline: auto;
	padding-inline: var(--sp-300);
}

.section {
	padding-block: var(--sp-900);
}

.section-tight {
	padding-block: var(--sp-700);
}

.stack-100 > * + * {
	margin-top: var(--sp-100);
}
.stack-200 > * + * {
	margin-top: var(--sp-200);
}
.stack-300 > * + * {
	margin-top: var(--sp-300);
}
.stack-400 > * + * {
	margin-top: var(--sp-400);
}
.stack-500 > * + * {
	margin-top: var(--sp-500);
}
.stack-600 > * + * {
	margin-top: var(--sp-600);
}

.skip-link {
	position: absolute;
	left: var(--sp-300);
	top: var(--sp-300);
	transform: translateY(-200%);
	background: var(--surface-3);
	color: var(--text);
	padding: var(--sp-75) var(--sp-200);
	border-radius: var(--r-lg);
	z-index: 100;
	transition: transform var(--dur-layout) var(--ease);
}

.skip-link:focus-visible {
	transform: translateY(0);
}

/* ---------- navigation ---------- */

.nav {
	position: fixed;
	top: var(--sp-200);
	left: 50%;
	transform: translateX(-50%);
	z-index: 60;
	width: min(1160px, calc(100% - 32px));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-200);
	padding: var(--sp-75) var(--sp-100);
	border: 1px solid var(--line);
	border-radius: var(--r-2xl);
	background: rgba(24, 24, 24, 0.72);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	transition: background var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease);
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: var(--sp-100);
	padding: var(--sp-50) var(--sp-75);
	border-radius: var(--r-lg);
}

.nav-brand img {
	width: 24px;
	height: 24px;
	border-radius: var(--r-sm);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: var(--sp-50);
	list-style: none;
	margin: var(--sp-0);
	padding: var(--sp-0);
}

.nav-link {
	display: block;
	padding: var(--sp-75) var(--sp-100);
	border-radius: var(--r-lg);
	color: var(--text-2);
	transition: color var(--dur-color) var(--ease), background var(--dur-color) var(--ease);
}

.nav-link:hover {
	color: var(--text);
	background: var(--surface-3);
}

.nav-link[aria-current="true"] {
	color: var(--text);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: var(--sp-75);
}

.nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: var(--r-lg);
	border: 1px solid var(--line);
	align-items: center;
	justify-content: center;
}

.nav-toggle:hover {
	background: var(--surface-3);
}

.nav-toggle-bar {
	position: relative;
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text);
	border-radius: var(--r-sm);
	transition: transform var(--dur-layout) var(--ease), opacity var(--dur-color) var(--ease);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: var(--text);
	border-radius: var(--r-sm);
	transition: transform var(--dur-layout) var(--ease);
}

.nav-toggle-bar::before {
	transform: translateY(-6px);
}

.nav-toggle-bar::after {
	transform: translateY(6px);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
	transform: translateY(0) rotate(-90deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
	transform: translateY(0) rotate(-90deg);
	opacity: 0;
}

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 55;
	display: none;
	flex-direction: column;
	justify-content: center;
	padding: var(--sp-700) var(--sp-300);
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.mobile-menu.is-open {
	display: flex;
}

.mobile-menu a {
	display: block;
	padding: var(--sp-100) var(--sp-0);
	color: var(--text);
	border-bottom: 1px solid var(--line);
	opacity: 0;
	transform: translateY(var(--sp-300));
}

.mobile-menu.is-entered a {
	opacity: 1;
	transform: translateY(0);
	transition: opacity var(--dur-layout) var(--ease), transform var(--dur-layout) var(--ease);
}

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-75);
	padding: var(--sp-75) var(--sp-100);
	border-radius: var(--r-lg);
	transition: background var(--dur-color) var(--ease), transform var(--dur-color) var(--ease),
		border-color var(--dur-color) var(--ease), color var(--dur-color) var(--ease);
}

.btn:active {
	transform: scale(0.98);
}

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

.btn-primary:hover {
	background: #33d3d9;
}

.btn-secondary {
	border: 1px solid var(--line-strong);
	color: var(--text);
	background: var(--surface-2);
}

.btn-secondary:hover {
	background: var(--surface-3);
	border-color: var(--surface-4);
}

.btn-ghost {
	color: var(--text-2);
}

.btn-ghost:hover {
	color: var(--text);
	background: var(--surface-3);
}

.btn-slim {
	padding: var(--sp-50) var(--sp-100);
	border-radius: var(--r-md);
}

/* ---------- hero ---------- */

.hero {
	position: relative;
	padding-top: 176px;
	padding-bottom: var(--sp-900);
	overflow: hidden;
}

.hero-copy {
	position: relative;
	max-width: 680px;
}

.hero-heading {
	background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-sub {
	max-width: 680px;
	color: var(--text-2);
	margin-block: var(--sp-300) var(--sp-400);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-200);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-75);
	padding: var(--sp-50) var(--sp-100);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-3xl);
	background: var(--surface-1);
	color: var(--text-2);
}

.eyebrow-dot {
	width: 6px;
	height: 6px;
	border-radius: var(--r-3xl);
	background: var(--accent);
}

.proof-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-200);
	color: var(--text-3);
}

/* ---------- command block ---------- */

.cmd {
	display: flex;
	align-items: center;
	gap: var(--sp-200);
	max-width: 560px;
	padding: var(--sp-100) var(--sp-100) var(--sp-100) var(--sp-200);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-xl);
	background: var(--surface-2);
}

.cmd code {
	flex: 1;
	min-width: 0;
	color: var(--text);
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

.cmd code::-webkit-scrollbar {
	display: none;
}

.cmd-prompt {
	color: var(--accent);
	user-select: none;
}

/* ---------- media ---------- */

.shot {
	border: 1px solid var(--line);
	border-radius: var(--r-2xl);
	overflow: hidden;
	background: var(--surface-1);
}

.shot img {
	width: 100%;
	height: auto;
}

.shot-frame {
	margin-top: var(--sp-600);
	position: relative;
}

.shot-bar {
	display: flex;
	align-items: center;
	gap: var(--sp-75);
	padding: var(--sp-100) var(--sp-200);
	border-bottom: 1px solid var(--line);
	background: var(--surface-2);
}

.shot-dot {
	width: 10px;
	height: 10px;
	border-radius: var(--r-3xl);
	background: var(--surface-4);
}

/* ---------- tagline reveal ---------- */

.tagline {
	text-align: left;
	max-width: 860px;
}

.tagline-word {
	color: var(--text);
	opacity: 0.28;
	transition: opacity 700ms var(--ease);
}

.tagline-word.is-lit {
	opacity: 1;
}

/* ---------- cards ---------- */

.grid {
	display: grid;
	gap: var(--sp-300);
}

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

.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
	padding: var(--sp-300);
	border: 1px solid var(--line);
	border-radius: var(--r-2xl);
	background: var(--surface-1);
	transition: background var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease),
		transform var(--dur-color) var(--ease);
}

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

.card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--r-lg);
	background: var(--accent-soft);
	color: var(--accent);
	margin-bottom: var(--sp-200);
}

.card-icon svg {
	width: 20px;
	height: 20px;
}

.card p {
	margin: var(--sp-100) 0 0;
	color: var(--text-2);
}

/* ---------- steps ---------- */

.step {
	position: relative;
	padding: var(--sp-300);
	border: 1px solid var(--line);
	border-radius: var(--r-2xl);
	background: var(--surface-1);
}

.step-index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--r-lg);
	background: var(--surface-3);
	color: var(--accent);
	margin-bottom: var(--sp-200);
}

.step p {
	margin: var(--sp-100) 0 0;
	color: var(--text-2);
}

.step-note {
	margin-top: var(--sp-200);
	padding: var(--sp-100) var(--sp-200);
	border-radius: var(--r-lg);
	background: var(--surface-wash);
	color: var(--text-2);
}

/* ---------- feature list ---------- */

.feature-list {
	list-style: none;
	margin: var(--sp-0);
	padding: var(--sp-0);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-200) var(--sp-400);
}

.feature-list li {
	display: flex;
	gap: var(--sp-100);
	color: var(--text-2);
}

.check {
	flex: none;
	margin-top: 5px;
	color: var(--accent);
}

.check svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* ---------- integrations ---------- */

.pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-100);
}

.pill {
	padding: var(--sp-75) var(--sp-200);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-3xl);
	background: var(--surface-1);
	color: var(--text-2);
	transition: color var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease);
}

.pill:hover {
	color: var(--text);
	border-color: var(--surface-4);
}

/* ---------- faq ---------- */

.faq {
	border-top: 1px solid var(--line);
}

.faq-item {
	border-bottom: 1px solid var(--line);
}

.faq-q {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--sp-300);
	padding: var(--sp-300) var(--sp-0);
	text-align: left;
	color: var(--text);
	transition: color var(--dur-color) var(--ease);
}

.faq-q:hover {
	color: var(--accent);
}

.faq-sign {
	flex: none;
	position: relative;
	width: 16px;
	height: 16px;
	margin-top: 4px;
}

.faq-sign::before,
.faq-sign::after {
	content: "";
	position: absolute;
	background: var(--text-2);
	border-radius: var(--r-sm);
	transition: transform var(--dur-layout) var(--ease), opacity var(--dur-layout) var(--ease);
}

.faq-sign::before {
	top: 7px;
	left: 0;
	width: 16px;
	height: 2px;
}

.faq-sign::after {
	top: 0;
	left: 7px;
	width: 2px;
	height: 16px;
}

.faq-q[aria-expanded="true"] .faq-sign::after {
	transform: rotate(90deg);
	opacity: 0;
}

.faq-a {
	display: none;
	padding: 0 var(--sp-600) var(--sp-300) 0;
	color: var(--text-2);
	opacity: 0;
	transform: translateY(-8px);
}

.faq-a.is-open {
	display: block;
}

.faq-a.is-entered {
	opacity: 1;
	transform: translateY(0);
	transition: opacity var(--dur-layout) var(--ease), transform var(--dur-layout) var(--ease);
}

.faq-a p {
	margin: var(--sp-0);
}

/* ---------- cta panel ---------- */

.cta-panel {
	padding: var(--sp-700) var(--sp-500);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-3xl);
	background: var(--surface-1);
	text-align: center;
}

.cta-panel .hero-actions {
	justify-content: center;
}

/* ---------- footer ---------- */

.footer {
	border-top: 1px solid var(--line);
	padding-block: var(--sp-600) var(--sp-500);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: var(--sp-400);
}

.footer h3 {
	margin: var(--sp-0) 0 var(--sp-200);
	color: var(--text-3);
}

.footer ul {
	list-style: none;
	margin: var(--sp-0);
	padding: var(--sp-0);
}

.footer li + li {
	margin-top: var(--sp-100);
}

.footer a {
	color: var(--text-2);
	transition: color var(--dur-color) var(--ease);
}

.footer a:hover {
	color: var(--text);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-200);
	margin-top: var(--sp-500);
	padding-top: var(--sp-300);
	border-top: 1px solid var(--line);
	color: var(--text-3);
}

/* ---------- section heading ---------- */

.section-head {
	max-width: 680px;
}

.section-head p {
	margin: var(--sp-200) 0 0;
	color: var(--text-2);
}

/* ---------- reveal ---------- */

.reveal {
	opacity: 0;
	transform: translateY(var(--sp-400));
	transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- misc ---------- */

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

.dim {
	color: var(--text-3);
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-50);
	padding: var(--sp-50) var(--sp-100);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-lg);
	color: var(--text-2);
	transition: color var(--dur-color) var(--ease), background var(--dur-color) var(--ease);
}

.lang-switch:hover {
	color: var(--text);
	background: var(--surface-3);
}

.copy-state {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-50);
	color: var(--accent);
	opacity: 0;
	transform: translateY(4px);
	transition: opacity var(--dur-color) var(--ease), transform var(--dur-color) var(--ease);
}

.copy-state.is-shown {
	opacity: 1;
	transform: translateY(0);
}

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

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
	.grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.nav-links {
		display: none;
	}
	.nav-toggle {
		display: flex;
	}
	.nav-actions .btn {
		display: none;
	}
	.heading-1 {
		font-size: 48px;
		line-height: 48px;
	}
	.heading-2 {
		font-size: 36px;
		line-height: 40px;
	}
	.heading-3 {
		font-size: 30px;
		line-height: 36px;
	}
	.hero {
		padding-top: 144px;
	}
	.grid-3 {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.section {
		padding-block: var(--sp-700);
	}
	.grid-2,
	.grid-4,
	.feature-list {
		grid-template-columns: 1fr;
	}
	.heading-1 {
		font-size: 36px;
		line-height: 40px;
	}
	.heading-2 {
		font-size: 30px;
		line-height: 36px;
	}
	.heading-3 {
		font-size: 24px;
		line-height: 32px;
	}
	.hero {
		padding-top: 128px;
		padding-bottom: var(--sp-700);
	}
	.cta-panel {
		padding: var(--sp-500) var(--sp-300);
	}
	.footer-grid {
		grid-template-columns: 1fr;
	}
	.faq-a {
		padding-right: var(--sp-300);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.tagline-word {
		opacity: 1;
		transition: none;
	}
	*,
	*::before,
	*::after {
		transition-duration: 1ms !important;
		animation-duration: 1ms !important;
	}
}
