:root {
	--bg: #ffffff;
	--bg-alt: #f8fafc;
	--ink: #0f172a;
	--mute: #64748b;
	--safe: #ea580c;
	--safe-hover: #c2410c;
	--line: #e2e8f0;
	--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
	--shadow-lg: 0 20px 40px -10px rgb(0 0 0 / 0.1);
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	background: var(--bg);
	color: var(--ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Subtle mesh background */
body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 800px;
	background:
		radial-gradient(at 0% 0%, rgba(234, 88, 12, 0.05) 0px, transparent 50%),
		radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
	z-index: -1;
	pointer-events: none;
}

h1,
h2,
h3 {
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--ink);
}

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

.wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 5%;
}

.text-accent {
	color: var(--safe);
	font-style: italic;
}

/* --- FLOATING NAVBAR --- */
.navbar {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 40px;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(0, 0, 0, 0.06);
	padding: 10px 10px 10px 24px;
	border-radius: 999px;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
	z-index: 100;
	white-space: nowrap;
}

.logo {
	font-weight: 800;
	font-size: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: -0.04em;
}

.logo i {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ink);
	display: grid;
	place-items: center;
}

.navbar .links {
	display: flex;
	gap: 28px;
	font-size: 14px;
	font-weight: 600;
	color: var(--mute);
}

.navbar .links a:hover {
	color: var(--ink);
}

.nav-cta {
	background: var(--ink);
	color: #fff;
	padding: 10px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s;
}

.nav-cta:hover {
	background: #333;
}

/* --- HERO --- */
.hero {
	padding-top: 180px;
	padding-bottom: 100px;
	text-align: center;
}

.badge {
	display: inline-block;
	background: rgba(234, 88, 12, 0.1);
	color: var(--safe);
	font-size: 13px;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 24px;
	border: 1px solid rgba(234, 88, 12, 0.2);
}

.hero h1 {
	font-size: clamp(40px, 6vw, 76px);
	max-width: 18ch;
	margin: 0 auto 24px;
}

.lead {
	font-size: 20px;
	color: var(--mute);
	max-width: 600px;
	margin: 0 auto 40px;
}

.cta-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-bottom: 80px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--safe);
	color: #fff;
	font-weight: 600;
	border-radius: 12px;
	padding: 16px 32px;
	font-size: 16px;
	box-shadow: 0 8px 20px -6px rgba(234, 88, 12, 0.5);
	transition: all 0.2s;
	border: none;
	cursor: pointer;
}

.btn:hover {
	transform: translateY(-2px);
	background: var(--safe-hover);
	box-shadow: 0 12px 25px -6px rgba(234, 88, 12, 0.6);
}

.btn svg {
	width: 20px;
	height: 20px;
}

.btn.full {
	width: 100%;
	margin: 24px 0 12px;
}

.meta {
	font-size: 14px;
	color: var(--mute);
	font-weight: 500;
}

/* --- DEMO FRAME --- */
.demo-frame {
	background: var(--bg-alt);
	border: 1px solid var(--line);
	border-radius: 32px;
	padding: 60px;
	box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
	position: relative;
	overflow: hidden;
}

.demo-frame::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
	background-size: 40px 40px;
	pointer-events: none;
}

.demo {
	display: grid;
	grid-template-columns: 260px 1fr 1.6fr;
	align-items: center;
	position: relative;
	z-index: 1;
}

/* Phone */
.phone {
	background: #fff;
	border-radius: 40px;
	padding: 12px;
	border: 1px solid var(--line);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
	width: 260px;
	position: relative;
}

.notch {
	position: absolute;
	top: 20px;
	left: 50%;
	width: 60px;
	height: 18px;
	margin-left: -30px;
	border-radius: 10px;
	background: var(--bg-alt);
	z-index: 2;
}

.screen {
	background: var(--bg-alt);
	border-radius: 28px;
	padding: 40px 14px 14px;
	color: var(--ink);
	border: 1px solid var(--line);
}

.screen small {
	display: block;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--mute);
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.ph {
	border: 0;
	padding: 0;
	cursor: pointer;
	aspect-ratio: 1;
	border-radius: 10px;
	position: relative;
	background:
		radial-gradient(
			circle at var(--sx) 40%,
			rgba(255, 255, 255, 0.85) 0 7%,
			transparent 8%
		),
		linear-gradient(var(--s1), var(--s2) 66%, var(--h) 66%);
	transition: all 0.2s;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ph:hover {
	transform: scale(1.04);
}

.ph.on {
	box-shadow: 0 0 0 4px var(--safe);
}

.ph.on::after {
	content: "✓";
	position: absolute;
	top: 4px;
	right: 4px;
	width: 18px;
	height: 18px;
	background: var(--safe);
	color: #fff;
	border-radius: 50%;
	font-size: 11px;
	display: grid;
	place-items: center;
	font-weight: bold;
}

.send {
	width: 100%;
	margin-top: 14px;
	background: var(--ink);
	color: #fff;
	font:
		700 14px "Plus Jakarta Sans",
		sans-serif;
	border: 0;
	border-radius: 10px;
	padding: 14px;
	cursor: pointer;
	transition: all 0.15s;
}

.send:active {
	transform: scale(0.96);
}

.send.shake {
	animation: shake 0.4s;
}

@keyframes shake {
	25% {
		transform: translateX(-5px);
	}
	75% {
		transform: translateX(5px);
	}
}

/* Connection line */
.link {
	height: 2px;
	background: repeating-linear-gradient(
		90deg,
		#cbd5e1 0 6px,
		transparent 6px 12px
	);
	position: relative;
	margin: 0 20px;
}

.pulse {
	position: absolute;
	top: -5px;
	left: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--safe);
	box-shadow: 0 0 16px 4px rgba(234, 88, 12, 0.5);
	opacity: 0;
}

.pulse.go {
	animation: travel 0.75s ease-in forwards;
}

@keyframes travel {
	0% {
		left: 0;
		opacity: 1;
	}
	100% {
		left: calc(100% - 12px);
		opacity: 1;
	}
}

/* Dashboard */
.desk {
	background: var(--bg-alt);
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
	min-height: 360px;
	transition: box-shadow 0.4s;
}

.desk.flash {
	box-shadow:
		0 0 0 3px var(--safe),
		0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.bar {
	height: 44px;
	background: #fff;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mute);
}

.bar b {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #e2e8f0;
}

.bar span {
	margin-left: 12px;
}

.desk-body {
	padding: 24px;
}

.desk-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 20px;
}

.desk-head strong {
	font-size: 20px;
	font-weight: 800;
}

.desk-head em {
	font-style: normal;
	font-size: 14px;
	color: var(--safe);
	font-weight: 700;
}

.empty {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--mute);
	font-size: 14px;
	font-weight: 500;
	padding: 70px 0;
	justify-content: center;
}

.empty i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--safe);
	animation: blink 1.4s infinite;
}

@keyframes blink {
	50% {
		opacity: 0.2;
	}
}

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

.sheet .item {
	animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.sheet .ph {
	width: 100%;
	cursor: default;
	aspect-ratio: 3/2;
	box-shadow: 0 0 0 2px var(--safe);
}

.sheet small {
	display: block;
	font:
		12px/1.2 ui-monospace,
		Menlo,
		monospace;
	font-weight: 600;
	color: var(--mute);
	margin-top: 8px;
}

@keyframes pop {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
}

/* --- FEATURES --- */
.sec {
	padding: 120px 0;
}

.sec h2 {
	font-size: clamp(32px, 4vw, 48px);
	margin-bottom: 60px;
	text-align: center;
}

.frames {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.frame {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 40px;
	transition: all 0.3s;
	box-shadow: var(--shadow);
	text-align: center;
}

.frame:hover {
	border-color: var(--ink);
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.icon {
	font-size: 32px;
	margin-bottom: 24px;
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	background: var(--bg-alt);
	border-radius: 16px;
	border: 1px solid var(--line);
}

.frame h3 {
	font-size: 20px;
	margin-bottom: 12px;
}

.frame p {
	color: var(--mute);
	font-size: 16px;
	line-height: 1.7;
}

/* --- DARK UPDATE SECTION --- */
.sec-dark {
	background: var(--ink);
	color: #fff;
	padding: 120px 0;
	border-radius: 40px 40px 0 0;
}

.sec-dark h2 {
	color: #fff;
	margin-bottom: 20px;
}

.lead-dark {
	color: #94a3b8;
	font-size: 20px;
	margin-bottom: 40px;
}

.two {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 80px;
	align-items: center;
}

.how {
	list-style: none;
	counter-reset: s;
	display: grid;
	gap: 20px;
}

.how li {
	counter-increment: s;
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 16px;
	align-items: center;
	font-size: 18px;
	color: #cbd5e1;
	font-weight: 500;
}

.how li::before {
	content: counter(s);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 16px;
}

/* Card */
.card-dark {
	background: #1e293b;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 24px;
	color: #94a3b8;
	font-size: 14px;
	font-weight: 600;
}

.card-top strong {
	font-size: 42px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.04em;
}

.card-dark h3 {
	font-size: 16px;
	color: #fff;
	margin-bottom: 16px;
}

.card-dark ul {
	list-style: none;
	display: grid;
	gap: 12px;
	font-size: 15px;
	color: #cbd5e1;
	margin-bottom: 24px;
}

.card-dark li {
	padding-left: 26px;
	position: relative;
}

.card-dark li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--safe);
	font-weight: 800;
}

.card-dark .meta {
	text-align: center;
	font-weight: 600;
	color: #94a3b8;
}

.card-dark .btn {
	box-shadow: none;
	background: #fff;
	color: var(--ink);
}

.card-dark .btn:hover {
	background: #f1f5f9;
}

/* Cursor glow */
.glow {
	position: fixed;
	top: 0;
	left: 0;
	width: 420px;
	height: 420px;
	margin: -210px 0 0 -210px;
	background: radial-gradient(circle, rgba(234, 88, 12, 0.12), transparent 65%);
	pointer-events: none;
	z-index: -1;
	transition: transform 0.15s ease-out;
	will-change: transform;
	/* hidden until the first mouse move, so it doesn't sit in the top-left corner on load */
	opacity: 0;
}
.glow.on {
	opacity: 1;
}

/* no cursor on touch devices, so don't show it */
@media (hover: none) {
	.glow {
		display: none;
	}
}

/* Accessibility: visible keyboard focus */
:focus-visible {
	outline: 3px solid var(--safe);
	outline-offset: 3px;
	border-radius: 8px;
}

/* Features section */
.sec-alt {
	background: var(--bg-alt);
	border-block: 1px solid var(--line);
}

.kicker {
	text-align: center;
	color: var(--safe);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.sec-alt .frame {
	background: var(--bg);
}

/* --- INSTALL SECTION (timeline + installer mock) --- */
.setup {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}

.setup .kicker,
.setup h2 {
	text-align: left;
}

.setup h2 {
	margin-bottom: 48px;
}

.steps {
	list-style: none;
	position: relative;
	display: grid;
	gap: 36px;
}

/* Vertical connector line */
.steps::before {
	content: "";
	position: absolute;
	left: 23px;
	top: 24px;
	bottom: 24px;
	width: 2px;
	background: repeating-linear-gradient(
		to bottom,
		var(--line) 0 6px,
		transparent 6px 12px
	);
}

.steps li {
	position: relative;
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 24px;
	align-items: start;
}

.num {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 18px;
	background: var(--bg);
	color: var(--safe);
	border: 2px solid var(--safe);
	position: relative;
	z-index: 1;
}

.steps li:last-child .num {
	background: var(--safe);
	color: #fff;
}

.steps h3 {
	font-size: 20px;
	margin: 6px 0 6px;
}

.steps p {
	color: var(--mute);
	font-size: 16px;
	line-height: 1.7;
}

/* Installer window */
.installer {
	background: var(--bg-alt);
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.installer-body {
	display: grid;
	justify-items: center;
	gap: 20px;
	padding: 56px 40px 48px;
	text-align: center;
}

.installer-body strong {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.progress {
	width: 100%;
	max-width: 320px;
	height: 10px;
	background: var(--line);
	border-radius: 999px;
	overflow: hidden;
}

.progress i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--safe);
	border-radius: 999px;
	animation: fill 5s ease-in-out infinite;
}

.installer-status {
	position: relative;
	height: 24px;
	width: 100%;
	font-size: 14px;
	font-weight: 600;
	color: var(--mute);
}

.st {
	position: absolute;
	inset: 0;
}

.st-run {
	animation: st-run 5s infinite;
}

.st-done {
	color: var(--safe);
	opacity: 0;
	animation: st-done 5s infinite;
}

@keyframes fill {
	0% {
		width: 0;
	}
	75%,
	100% {
		width: 100%;
	}
}

@keyframes st-run {
	0%,
	75% {
		opacity: 1;
	}
	80%,
	100% {
		opacity: 0;
	}
}

@keyframes st-done {
	0%,
	78% {
		opacity: 0;
	}
	85%,
	100% {
		opacity: 1;
	}
}

@media (max-width: 960px) {
	.setup {
		grid-template-columns: 1fr;
		gap: 48px;
	}
}

/* Footer */
footer {
	background: var(--ink);
	color: #94a3b8;
	font-size: 14px;
	font-weight: 500;
	padding: 32px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .wrap.foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 32px;
}

.foot-left {
	display: flex;
	align-items: center;
	gap: 10px;
}
.foot-left .logo {
	color: #fff;
	font-size: 18px;
}
.foot-left .logo i {
	background: rgba(255, 255, 255, 0.1);
}
.foot-left .by {
	font-style: italic;
	font-weight: 400;
}

footer a {
	transition: color 0.2s;
}
.foot-left .by a {
	color: #fff;
	font-style: normal;
	font-weight: 600;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.foot-left .by a:hover,
.foot-mail:hover {
	color: var(--safe);
	border-color: var(--safe);
}

.copy {
	font-size: 13px;
}

@media (max-width: 720px) {
	footer .wrap.foot {
		flex-direction: column;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* Responsive */
@media (max-width: 960px) {
	.navbar {
		width: 90%;
		justify-content: space-between;
		padding: 8px 16px;
	}
	.navbar .links {
		display: none;
	}
	.theme-toggle {
		bottom: 20px;
		right: 20px;
		padding: 10px;
	}
	.demo-frame {
		padding: 30px 10px;
	}
	.demo {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 40px;
	}
	.link {
		display: none;
	}
	.frames,
	.two {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.sec-dark {
		border-radius: 0;
	}
	.cta-row {
		flex-direction: column;
		gap: 12px;
	}
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99;
	background: var(--bg-alt);
	border: 1px solid var(--line);
	color: var(--mute);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border-radius: 50%;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
	transition: all 0.2s;
}

.theme-toggle:hover {
	color: var(--ink);
	transform: translateY(-2px);
	box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.2);
}

.theme-toggle svg {
	width: 20px;
	height: 20px;
}

/* --- DARK MODE OVERRIDES --- */
[data-theme="dark"] {
	--bg: #0f172a;
	--bg-alt: #1e293b;
	--ink: #f8fafc;
	--mute: #94a3b8;
	--line: #334155;
	--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
	--shadow-lg: 0 20px 40px -10px rgb(0 0 0 / 0.5);
}

[data-theme="dark"] body::before {
	opacity: 0.1;
}

[data-theme="dark"] .navbar {
	background: rgba(15, 23, 42, 0.8);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .logo i {
	background: var(--bg-alt);
}

[data-theme="dark"] .nav-cta {
	background: var(--safe);
	color: #fff;
}

[data-theme="dark"] .nav-cta:hover {
	background: var(--safe-hover);
}

[data-theme="dark"] .demo-frame {
	box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .demo-frame::before {
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

[data-theme="dark"] .phone {
	background: #0f172a;
	border-color: #334155;
}

[data-theme="dark"] .screen {
	background: #1e293b;
	border-color: #334155;
}

[data-theme="dark"] .notch {
	background: #1e293b;
}

[data-theme="dark"] .send {
	background: var(--bg);
}

[data-theme="dark"] .bar {
	background: #0f172a;
	border-color: #334155;
}

[data-theme="dark"] .bar b {
	background: #334155;
}

[data-theme="dark"] .icon {
	background: #0f172a;
	border-color: #334155;
}

[data-theme="dark"] .sec-dark {
	background: #020617;
}

[data-theme="dark"] footer {
	background: #020617;
}

[data-theme="dark"] .card-dark {
	background: #0f172a;
}

[data-theme="dark"] .card-dark .btn {
	background: var(--safe);
	color: #fff;
}

[data-theme="dark"] .card-dark .btn:hover {
	background: var(--safe-hover);
}

[data-theme="dark"] .sec-alt .frame {
	background: #0f172a;
}

[data-theme="dark"] .theme-toggle {
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .theme-toggle:hover {
	box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.75);
}
