/* Marketing pages: home, pricing, docs, download, sign in. */
.wrap {
	width: min(1200px, 100% - 48px);
	margin: 0 auto;
}

/* ------------------------------------------------------------ nav */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	background: rgba(6, 6, 6, 0.72);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s;
}

.nav.scrolled {
	border-bottom-color: var(--line);
}

.nav .wrap {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 68px;
}

.nav .brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
}

.nav .brand .n-mark {
	font-size: 22px;
}

.nav .brand .wordmark {
	height: 17px;
}

.nav .links {
	display: flex;
	gap: 22px;
	margin-left: 14px;
	font-size: 14px;
	color: var(--muted);
}

.nav .links a:hover,
.nav .links a[aria-current='page'] {
	color: var(--text);
}

.nav .actions {
	margin-left: auto;
	display: flex;
	gap: 10px;
	align-items: center;
}

.nav .menu {
	display: none;
	margin-left: auto;
	background: none;
	border: 1px solid var(--line);
	border-radius: 10px;
	width: 42px;
	height: 38px;
	cursor: pointer;
}

@media (max-width: 1080px) {
	.nav .links,
	.nav .actions .signin {
		display: none;
	}
	.nav .menu {
		display: grid;
		place-items: center;
	}
	.nav .actions {
		margin-left: 0;
	}
	.nav.open .links {
		display: flex;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		margin: 0;
		background: rgba(6, 6, 6, 0.97);
		border-bottom: 1px solid var(--line);
		padding: 8px 24px 20px;
	}
	.nav.open .links a {
		padding: 14px 0;
		border-bottom: 1px solid var(--line);
		font-size: 16px;
		color: var(--text);
	}
}

/* ------------------------------------------------------------ type */
.h-hero {
	font-size: clamp(44px, 7.2vw, 96px);
	line-height: 0.98;
	letter-spacing: -0.05em;
	font-weight: 600;
	margin: 0;
}

.h-1 {
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.02;
	letter-spacing: -0.045em;
	font-weight: 600;
	margin: 0;
}

.h-2 {
	font-size: clamp(24px, 2.6vw, 32px);
	line-height: 1.15;
	letter-spacing: -0.03em;
	font-weight: 600;
	margin: 0;
}

.lead {
	font-size: clamp(17px, 1.6vw, 20px);
	color: var(--muted);
	max-width: 620px;
	margin: 0;
	line-height: 1.55;
}

.grey-text {
	color: var(--dim);
}

/* ------------------------------------------------------------ sections */
section {
	position: relative;
}

.section {
	padding: 120px 0;
	border-top: 1px solid var(--line);
}

.section-head {
	display: grid;
	gap: 18px;
	margin-bottom: 56px;
	max-width: 760px;
}

/* hero */
.hero {
	position: relative;
	min-height: min(860px, calc(100svh - 68px));
	display: flex;
	align-items: center;
	overflow: hidden;
}

.hero canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero .wrap {
	position: relative;
	display: grid;
	gap: 30px;
	padding: 90px 0 110px;
}

.hero .ctas {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.hero .cmd {
	margin-top: 26px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: rgba(8, 8, 8, 0.8);
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.hero .cmd b {
	color: var(--text);
	font-weight: 400;
}

.hero-copy {
	max-width: 760px;
}

/* product mock window */
.window {
	border-radius: 18px;
	border: 1px solid var(--line);
	background: #0a0a0a;
	overflow: hidden;
	box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.window .bar {
	height: 40px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	border-bottom: 1px solid var(--line);
}

.window .bar i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #333;
}

.window .bar span {
	margin-left: 10px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

/* feature grid */
.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
}

.grid-3 > * {
	background: var(--bg);
}

@media (max-width: 960px) {
	.grid-3 {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.grid-3 {
		grid-template-columns: 1fr;
	}
}

.feature {
	padding: 34px 32px 36px;
	display: grid;
	gap: 14px;
	align-content: start;
	min-height: 340px;
	transition: background 0.3s;
}

.feature:hover {
	background: var(--bg-2);
}

.feature .top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.feature h3 {
	margin: 10px 0 0;
	font-size: 22px;
	letter-spacing: -0.03em;
	font-weight: 600;
}

.feature p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

.feature .viz {
	margin-top: auto;
	padding-top: 18px;
}

/* AI section */
.split {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 64px;
	align-items: center;
}

.split > *,
.hero .wrap > *,
.grid-3 > *,
.plans > * {
	min-width: 0;
}

@media (max-width: 960px) {
	.split {
		grid-template-columns: 1fr;
		gap: 44px;
	}
}

.agents {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 32px;
}

.agent {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--bg-2);
}

.agent .tile {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	font-size: 14px;
}

.agent b {
	display: block;
	font-size: 15px;
	font-weight: 600;
}

.agent span {
	font-size: 13px;
	color: var(--muted);
}

.chat-mock {
	padding: 22px;
	display: grid;
	gap: 16px;
}

.bubble {
	padding: 14px 16px;
	border-radius: 16px;
	font-size: 14.5px;
	line-height: 1.55;
	max-width: 92%;
}

.bubble.user {
	justify-self: end;
	background: #1a1a1a;
	border: 1px solid var(--line);
}

.bubble.ai {
	border: 1px solid var(--line);
	background: #0c0c0c;
}

.bubble .meta {
	margin-top: 12px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.kbd {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 24px;
	padding: 0 7px;
	border: 1px solid var(--line-2);
	border-bottom-width: 2px;
	border-radius: 7px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--text);
}

/* code tabs */
.tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.tabs button {
	height: 32px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: none;
	cursor: pointer;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

.tabs button[aria-selected='true'] {
	color: #0a0a0a;
	background: var(--text);
	border-color: var(--text);
}

/* studio section (light, like the device shots) */
.studio {
	background: linear-gradient(180deg, #f2f2f0 0%, var(--studio) 60%, #d9d9d6 100%);
	color: var(--ink);
	border-top: 0;
}

.studio .lead,
.studio .label,
.studio .muted {
	color: var(--ink-muted);
}

.studio .chip {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.55);
	border-color: rgba(0, 0, 0, 0.14);
}

.studio .btn {
	color: var(--ink);
	border-color: rgba(0, 0, 0, 0.2);
}

.studio .btn.primary {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

.studio .input {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.14);
	color: var(--ink);
}

.device {
	position: relative;
}

.device .laptop {
	position: relative;
	width: 100%;
	aspect-ratio: 880 / 625;
}

.device .laptop > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.device .laptop .screen {
	position: absolute;
	left: 4.318%;
	top: 4.32%;
	width: 91.7%;
	height: 84.16%;
	overflow: hidden;
	border-radius: 6px 6px 0 0;
	background: #000;
}

.device .laptop .screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
}

.device .laptop .notch {
	position: absolute;
	left: 44.66%;
	top: 4.32%;
	width: 11.02%;
	height: 2.72%;
	background: #050505;
	border-radius: 0 0 8px 8px;
}

.device::after {
	content: '';
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: -4%;
	height: 8%;
	background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.3), transparent 70%);
	z-index: -1;
}

.store-badge {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 12px 22px 12px 14px;
	border-radius: 16px;
	background: var(--ink);
	color: #fff;
}

.store-badge small {
	display: block;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	opacity: 0.65;
}

.store-badge b {
	font-size: 22px;
	letter-spacing: -0.03em;
	font-weight: 600;
	line-height: 1.1;
}

/* film */
.film {
	position: relative;
	border-radius: var(--r);
	overflow: hidden;
	border: 1px solid var(--line);
	aspect-ratio: 16 / 9;
	background: #000;
}

.film video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.film .play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
	border: 0;
	cursor: pointer;
	color: #fff;
}

.film .play span {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 54px;
	padding: 0 26px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: #0a0a0a;
	font-weight: 600;
}

/* pricing cards */
.plans {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

@media (max-width: 1100px) {
	.plans {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 620px) {
	.plans {
		grid-template-columns: 1fr;
	}
}

.plan {
	padding: 30px 26px;
	display: grid;
	gap: 18px;
	align-content: start;
}

.plan .price {
	font-size: 44px;
	letter-spacing: -0.05em;
	font-weight: 600;
	line-height: 1;
}

.plan .price small {
	font-size: 15px;
	letter-spacing: 0;
	color: var(--muted);
	font-weight: 500;
	margin-left: 4px;
}

.plan ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
	font-size: 14.5px;
	color: #cfcfcc;
}

.plan li {
	display: flex;
	gap: 10px;
}

.plan li::before {
	content: '';
	flex: none;
	width: 6px;
	height: 6px;
	margin-top: 9px;
	border-radius: 2px;
	background: var(--text);
}

.plan.featured {
	border-color: rgba(255, 255, 255, 0.35);
	background: linear-gradient(180deg, #141414, #0c0c0c);
}

/* FAQ */
.faq details {
	border-bottom: 1px solid var(--line);
	padding: 22px 0;
}

.faq summary {
	cursor: pointer;
	list-style: none;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.faq summary::after {
	content: '+';
	font-family: var(--mono);
	color: var(--muted);
}

.faq details[open] summary::after {
	content: '–';
}

.faq p {
	color: var(--muted);
	margin: 14px 0 0;
	max-width: 760px;
}

/* docs */
.docs {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 64px;
	padding: 60px 0 120px;
}

.docs nav {
	position: sticky;
	top: 100px;
	align-self: start;
	display: grid;
	gap: 4px;
	font-size: 14px;
}

.docs nav a {
	padding: 7px 12px;
	border-radius: 9px;
	color: var(--muted);
}

.docs nav a:hover,
.docs nav a.active {
	color: var(--text);
	background: rgba(255, 255, 255, 0.05);
}

.docs nav .label {
	margin: 18px 12px 6px;
}

.docs article {
	min-width: 0;
	max-width: 800px;
}

.docs article h2 {
	font-size: 30px;
	letter-spacing: -0.035em;
	margin: 70px 0 14px;
	scroll-margin-top: 90px;
	font-weight: 600;
}

.docs article h2:first-of-type {
	margin-top: 24px;
}

.docs article h3 {
	font-size: 18px;
	margin: 30px 0 10px;
	font-weight: 600;
}

.docs article p,
.docs article li {
	color: #c9c9c6;
}

.docs article pre {
	margin: 16px 0;
}

@media (max-width: 860px) {
	.docs {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.docs nav {
		position: static;
		display: flex;
		flex-wrap: wrap;
	}
	.docs nav .label {
		display: none;
	}
}

/* auth */
.auth {
	min-height: calc(100svh - 68px);
	display: grid;
	place-items: center;
	padding: 60px 0;
}

.auth .card {
	width: min(440px, 100% - 32px);
	padding: 36px 32px;
	display: grid;
	gap: 18px;
}

.seg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
}

.seg button {
	height: 38px;
	border: 0;
	border-radius: 999px;
	background: none;
	cursor: pointer;
	color: var(--muted);
	font-weight: 600;
	font-size: 14px;
}

.seg button[aria-selected='true'] {
	background: var(--text);
	color: #0a0a0a;
}

.form-error {
	color: var(--red);
	font-size: 14px;
	min-height: 20px;
}

.form-error:empty {
	min-height: 0;
	margin-top: -18px;
}

.form-ok {
	color: var(--green);
	font-size: 14px;
}

.oauth {
	display: grid;
	gap: 10px;
}

.oauth .btn {
	justify-content: center;
	gap: 10px;
}

.oauth-icon {
	filter: invert(1);
}

.oauth-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 0;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.oauth-or::before,
.oauth-or::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--line);
}

.turnstile:empty {
	display: none;
}

.auth-links a {
	color: var(--muted);
}

.auth-links a:hover {
	color: var(--text);
}

/* footer */
footer.site {
	border-top: 1px solid var(--line);
	padding: 56px 0 44px;
	font-size: 14px;
	color: var(--muted);
}

footer.site .wrap {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 40px;
}

footer.site h4 {
	margin: 0 0 14px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 400;
	color: var(--dim);
}

footer.site a {
	display: block;
	padding: 4px 0;
}

footer.site a:hover {
	color: var(--text);
}

footer.site .legal {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 12px;
}

@media (max-width: 760px) {
	footer.site .wrap {
		grid-template-columns: 1fr 1fr;
	}
	footer.site .about {
		grid-column: 1 / -1;
	}
	.section {
		padding: 84px 0;
	}
}

/* reveal on scroll */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

@media (max-width: 640px) {
	.table th:nth-child(2),
	.table td:nth-child(2) {
		display: none;
	}
}
