* { box-sizing: border-box; }

:root {
	--accent: #7c6cff;
	--accent-bright: #a79dff;
	--accent-dim: #4c3fb8;
	--bg: #08080f;
	--surface: rgba(20, 20, 32, .7);
	--surface-solid: #11111b;
	--line: rgba(255, 255, 255, .09);
	--text: #f5f5f7;
	--text-2: #aaaab5;
	--text-3: #74747d;
	--code: #0a0a12;
	--shadow: rgba(0, 0, 0, .5);
	--bubble: linear-gradient(145deg, rgba(124, 108, 255, .34), rgba(124, 108, 255, .16));
	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg: #f6f5fb;
	--surface: rgba(255, 255, 255, .75);
	--surface-solid: #ffffff;
	--line: rgba(72, 62, 138, .13);
	--text: #1b1b24;
	--text-2: #565462;
	--text-3: #83808e;
	--code: #f6f5fc;
	--shadow: rgba(72, 62, 138, .22);
	--bubble: linear-gradient(145deg, rgba(124, 108, 255, .18), rgba(124, 108, 255, .08));
	color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Google Sans", system-ui, sans-serif;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

.glow {
	position: fixed;
	z-index: 0;
	width: 780px;
	height: 780px;
	border-radius: 50%;
	filter: blur(110px);
	opacity: .35;
	pointer-events: none;
}

.glow-a { top: -340px; right: -160px; background: var(--accent); }
.glow-b { top: 38%; left: -380px; background: #4f7cff; opacity: .16; }

:root[data-theme="light"] .glow { opacity: .2; }

main, .nav, .footer { position: relative; z-index: 1; }

/* Nav ------------------------------------------------------------ */

.nav {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: min(1120px, 100% - 32px);
	margin: 14px auto 0;
	padding: 10px 14px 10px 18px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
	backdrop-filter: blur(18px) saturate(1.3);
}

.nav-brand { display: flex; align-items: center; gap: 9px; }
.nav-logo { width: 22px; height: 26px; object-fit: contain; }
.nav-wordmark { width: 56px; filter: brightness(0) invert(1); }
:root[data-theme="light"] .nav-wordmark { filter: brightness(0); }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
	padding: 7px 13px;
	border-radius: 10px;
	color: var(--text-2);
	font-size: 14px;
	transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--accent-glow-soft, rgba(124, 108, 255, .14)); color: var(--text); }

.nav-actions { display: flex; gap: 8px; }

/* Buttons -------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, background .15s;
}

.btn:hover { transform: translateY(-1px); }

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

.btn.primary {
	border-color: transparent;
	background: linear-gradient(135deg, var(--accent-bright), var(--accent));
	color: #fff;
	box-shadow: 0 10px 28px -10px var(--accent);
}

.btn.primary:hover { box-shadow: 0 14px 34px -10px var(--accent); }

.btn.large { padding: 14px 26px; border-radius: 14px; font-size: 16px; }

/* Hero ----------------------------------------------------------- */

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(1120px, 100% - 32px);
	margin: 0 auto;
	padding: 84px 0 40px;
	text-align: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 13px;
}

.eyebrow-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #80e2bd;
	box-shadow: 0 0 10px #80e2bd;
}

.hero h1 {
	margin: 24px 0 18px;
	font-size: clamp(42px, 8vw, 84px);
	font-weight: 700;
	letter-spacing: -.04em;
	line-height: 1.02;
}

.grad {
	background: linear-gradient(120deg, var(--accent-bright), var(--accent) 45%, #62a0ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lede {
	max-width: 620px;
	margin: 0;
	color: var(--text-2);
	font-size: clamp(16px, 2.2vw, 19px);
}

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.fine { margin: 16px 0 0; color: var(--text-3); font-size: 13px; }

/* Product preview ------------------------------------------------ */

.preview {
	width: min(760px, 100%);
	margin-top: 56px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--surface);
	backdrop-filter: blur(20px);
	box-shadow: 0 50px 100px -40px var(--shadow), 0 0 0 1px rgba(124, 108, 255, .06);
	text-align: left;
	animation: rise 1s cubic-bezier(.2, .7, .2, 1) .15s both;
}

.preview-bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
}

.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.preview-bar em { margin-left: 8px; color: var(--text-3); font-size: 12px; font-style: normal; }

.preview-body { padding: 22px; display: grid; gap: 20px; }

.p-msg { display: flex; gap: 12px; }
.p-msg.user { justify-content: flex-end; }

.p-bubble {
	max-width: 78%;
	padding: 11px 17px;
	border: 1px solid rgba(124, 108, 255, .3);
	border-radius: 20px 20px 5px 20px;
	background: var(--bubble);
	font-size: 15px;
}

.p-avatar {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	padding: 7px;
	border-radius: 50%;
	background: var(--surface-solid);
	box-shadow: 0 0 0 1px var(--line);
}

.p-text { min-width: 0; font-size: 15px; }
.p-text p { margin: 0 0 12px; }
.p-text code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--code);
	color: var(--accent-bright);
	font-size: .9em;
}

.p-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	padding: 4px 12px 4px 9px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text-2);
	font-size: 12px;
}

.p-chip i { width: 7px; height: 7px; border-radius: 50%; background: #80e2bd; }

.p-code { margin: 0 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--code); }
.p-code-head {
	display: flex;
	justify-content: space-between;
	padding: 6px 12px;
	border-bottom: 1px solid var(--line);
	color: var(--text-3);
	font-size: 11px;
}
.p-code pre {
	margin: 0;
	padding: 12px 14px;
	overflow-x: auto;
	font: 13px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	color: var(--text-2);
}

.caret {
	display: inline-block;
	width: 7px;
	height: 15px;
	margin-left: 3px;
	vertical-align: -2px;
	background: var(--accent);
	animation: blink 1s steps(2) infinite;
}

/* Sections ------------------------------------------------------- */

.section {
	width: min(1120px, 100% - 32px);
	margin: 0 auto;
	padding: 90px 0 10px;
}

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }

.kicker {
	color: var(--accent-bright);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.section h2, .final h2 {
	margin: 10px 0 12px;
	font-size: clamp(28px, 4.4vw, 44px);
	letter-spacing: -.03em;
	line-height: 1.1;
}

.section-head p, .split-text p { margin: 0; color: var(--text-2); font-size: 17px; }

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

.card {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	backdrop-filter: blur(12px);
	transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s;
}

.card:hover {
	transform: translateY(-4px);
	border-color: rgba(124, 108, 255, .35);
	box-shadow: 0 24px 50px -26px var(--accent);
}

.card-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 16px;
	border-radius: 13px;
	background: var(--bubble);
	color: var(--accent-bright);
}

.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text p { margin-bottom: 24px; }
.split-text h2 { margin-top: 10px; }

.conn {
	display: grid;
	gap: 10px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--surface);
	box-shadow: 0 40px 80px -40px var(--shadow);
}

.conn-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface-solid);
}

.conn-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.conn-row i.ok { background: #80e2bd; box-shadow: 0 0 10px #80e2bd; }
.conn-row b { font-weight: 600; }
.conn-row span { margin-left: auto; color: var(--text-3); font-size: 13px; }

/* Plans ---------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
}

.plan.featured {
	border-color: rgba(124, 108, 255, .55);
	background: linear-gradient(180deg, rgba(124, 108, 255, .16), var(--surface));
	box-shadow: 0 30px 60px -34px var(--accent);
}

.ribbon {
	position: absolute;
	top: -11px;
	right: 18px;
	padding: 3px 11px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent-bright), var(--accent));
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}

.plan h3 { margin: 0 0 8px; font-size: 16px; color: var(--text-2); }
.price { font-size: 38px; font-weight: 700; letter-spacing: -.03em; }
.price span { margin-left: 6px; color: var(--text-3); font-size: 13px; font-weight: 400; letter-spacing: 0; }

.plan ul { flex: 1; margin: 16px 0 22px; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan li { padding-left: 24px; position: relative; color: var(--text-2); font-size: 14.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-bright); font-weight: 700; }

/* Final CTA + footer --------------------------------------------- */

.final {
	width: min(1120px, 100% - 32px);
	margin: 100px auto 0;
	padding: 64px 24px;
	border: 1px solid rgba(124, 108, 255, .3);
	border-radius: 28px;
	background:
		radial-gradient(600px 240px at 50% 0%, rgba(124, 108, 255, .3), transparent 70%),
		var(--surface);
	text-align: center;
}

.final p { margin: 0; color: var(--text-2); font-size: 17px; }

.footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	width: min(1120px, 100% - 32px);
	margin: 0 auto;
	padding: 40px 0 36px;
	color: var(--text-3);
	font-size: 13px;
}

.footer a, .footer button {
	margin-left: 16px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

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

/* Motion --------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}

/* Responsive ----------------------------------------------------- */

@media (max-width: 960px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.split { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
	.nav-links { display: none; }
	.hero { padding-top: 56px; }
	.grid, .plans { grid-template-columns: 1fr; }
	.btn.large { width: 100%; }
	.cta { width: 100%; }
	.p-bubble { max-width: 92%; }
}
