@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Sora:wght@400;500;600;700;800&display=swap");

:root {
	--bg: #08101e;
	--bg-soft: rgba(255, 255, 255, 0.04);
	--surface: rgba(255, 255, 255, 0.06);
	--surface-strong: rgba(255, 255, 255, 0.1);
	--surface-glass: rgba(13, 26, 44, 0.64);
	--text: #e5eefc;
	--muted: #9eb0cf;
	--line: rgba(255, 255, 255, 0.1);
	--accent: #79a8ff;
	--accent-2: #7ef0c5;
	--accent-3: #ffc680;
	--shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	--radius: 24px;
	--radius-sm: 16px;
	--container: 1180px;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

.topbar {
	pointer-events: none;
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999;
	top: 4px;
	width: 89%;
	height: 11px;
	display: block;
	background: oklch(24.38% 0.0338 242.8);
	/* Hack to style the browser UI while making it invisible to the user */
	mask-image: linear-gradient(to right, transparent, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, transparent);
}
html {
	scroll-behavior: smooth;
	background-color: #050b16;
}
body {
	margin: 0;
	font-family: "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--text);
	position: relative;
	isolation: isolate;
	min-height: 100dvh;
	min-height: 100vh;
	overflow-x: clip;
	padding-bottom: env(safe-area-inset-bottom);
	background-color: #050b16;
	background:
		radial-gradient(circle at 8% 6%, rgba(121, 168, 255, 0.22), transparent 30%),
		radial-gradient(circle at 92% -6%, rgba(126, 240, 197, 0.16), transparent 34%),
		radial-gradient(circle at 52% 104%, rgba(255, 198, 128, 0.08), transparent 38%),
		linear-gradient(180deg, #050b16 0%, #0a1326 45%, #090f1f 100%);
	line-height: 1.6;
}

body::before,
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
}

body::before {
	background:
		radial-gradient(circle at 12% 22%, rgba(121, 168, 255, 0.2), transparent 34%),
		radial-gradient(circle at 78% 30%, rgba(126, 240, 197, 0.14), transparent 30%),
		radial-gradient(circle at 50% 82%, rgba(255, 198, 128, 0.1), transparent 32%);
	filter: blur(8px);
	animation: ambient-shift 14s ease-in-out infinite alternate;
}

body::after {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 34px 34px, 34px 34px;
	mask-image: radial-gradient(circle at 50% 40%, black 22%, transparent 78%);
	opacity: 0.32;
}

@keyframes ambient-shift {
	0% {
		transform: translate3d(-1.2%, -1%, 0) scale(1);
	}
	50% {
		transform: translate3d(0.8%, 1.2%, 0) scale(1.04);
	}
	100% {
		transform: translate3d(1.6%, -0.6%, 0) scale(1.02);
	}
}

a {
	color: inherit;
	text-decoration: none;
}
img {
	max-width: 100%;
	display: block;
}

.container {
	width: min(calc(100% - 32px), var(--container));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(16px);
	background: var(--surface-glass);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 14px 42px rgba(2, 6, 15, 0.42);
}

@media (display-mode: standalone) {
	.site-header {
		padding-top: env(safe-area-inset-top);
	}
}

body>img[referrerpolicy="no-referrer-when-downgrade"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 16px;
	position: relative;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-weight: 800;
	letter-spacing: 0.015em;
}

.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(121, 168, 255, 0.24), rgba(126, 240, 197, 0.18));
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	font-size: 14px;
	color: #ffffff;
	animation: pulse-mark 3.6s ease-in-out infinite;
}

@keyframes pulse-mark {
	0%,
	100% {
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 rgba(121, 168, 255, 0);
	}
	50% {
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(121, 168, 255, 0.34);
	}
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 22px;
	color: var(--muted);
	font-size: 15px;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex-direction: column;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	cursor: pointer;
	padding: 0;
}

.nav-toggle-line {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 999px;
	background: #dce8ff;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle-line:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-line:nth-child(2) {
	opacity: 0;
}

.nav-open .nav-toggle-line:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.nav-links a {
	position: relative;
	transition: color 0.24s ease;
}

.nav-links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -5px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.26s ease;
}

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

.nav-links a:hover::after {
	transform: scaleX(1);
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	font-weight: 600;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-cta-mobile {
	display: none;
}

.nav-cta:hover,
.button:hover {
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.1);
}

.hero {
	padding: 92px 0 56px;
	position: relative;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 18px auto auto 4%;
	width: min(420px, 54vw);
	height: min(420px, 54vw);
	background: radial-gradient(circle, rgba(121, 168, 255, 0.14), transparent 70%);
	filter: blur(6px);
	pointer-events: none;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 28px;
	align-items: stretch;
}

.hero-copy,
.hero-panel,
.card,
.timeline,
.contact-box {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04));
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	border-radius: var(--radius);
	backdrop-filter: blur(8px);
}

.hero-copy {
	padding: 38px;
	position: relative;
	overflow: hidden;
}

.hero-copy::after {
	content: "";
	position: absolute;
	inset: auto -120px -110px auto;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(121, 168, 255, 0.22), transparent 70%);
	pointer-events: none;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 999px;
	color: #d8e6ff;
	background: linear-gradient(135deg, rgba(121, 168, 255, 0.2), rgba(126, 240, 197, 0.14));
	border: 1px solid rgba(121, 168, 255, 0.18);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

h1, h2, h3, h4, p {
	margin: 0;
}

h1 {
	margin-top: 22px;
	font-size: clamp(38px, 7vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.04em;
	max-width: 12ch;
	color: #f4f9ff;
	background: linear-gradient(120deg, #f4f9ff 8%, #b7d0ff 56%, #9ff4dc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-wrap: balance;
}

.lead {
	margin-top: 22px;
	font-size: clamp(18px, 2vw, 21px);
	color: var(--muted);
	max-width: 42rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 22px;
	border-radius: 999px;
	font-weight: 700;
	transition: 0.2s ease;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.button-primary {
	color: #06101f;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-color: transparent;
	box-shadow: 0 14px 30px rgba(67, 109, 196, 0.35);
}

.button-secondary {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
}

.hero-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 28px;
}

.hero-point {
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.hero-point:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
}

.hero-point strong {
	display: block;
	font-size: 20px;
	margin-bottom: 4px;
}

.hero-point span {
	color: var(--muted);
	font-size: 14px;
}

.hero-panel {
	padding: 24px;
	position: relative;
	overflow: hidden;
}

.hero-panel::before {
	content: "";
	position: absolute;
	inset: auto -40px -60px auto;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(126, 240, 197, 0.22), transparent 70%);
	pointer-events: none;
}

.panel-title {
	font-size: 14px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 18px;
}

.terminal {
	border-radius: 20px;
	background: #07101c;
	border: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.terminal-top {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.02);
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}

.terminal-body {
	padding: 18px 18px 20px;
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 14px;
	line-height: 1.8;
	color: #cfe0ff;
	min-height: 250px;
}

.terminal-line {
	color: #7ef0c5;
}
.terminal-muted {
	color: #7e90b2;
}

main section {
	padding: 34px 0;
}

.section-head {
	margin-bottom: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.section-head h2 {
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.section-head p {
	color: var(--muted);
	max-width: 760px;
	font-size: 17px;
}

.grid-3,
.grid-2,
.project-grid,
.contact-grid,
.tech-grid {
	display: grid;
	gap: 18px;
}

.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact-grid {
	grid-template-columns: 1fr 1.1fr;
}
.tech-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
	padding: 24px;
	transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
	position: relative;
	overflow: hidden;
}

.card::before {
	content: "";
	position: absolute;
	inset: -80% auto auto -20%;
	width: 56%;
	height: 220%;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
	transform: rotate(22deg) translateX(-220%);
	transition: transform 0.6s ease;
	pointer-events: none;
}

.card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
	transform: rotate(22deg) translateX(280%);
}

.card h3 {
	font-size: 22px;
	margin-bottom: 10px;
	letter-spacing: -0.02em;
}

.card p {
	color: var(--muted);
	font-size: 16px;
}

.service-card p {
	margin-bottom: 16px;
}

.service-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.service-tag {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid rgba(126, 240, 197, 0.34);
	background: linear-gradient(135deg, rgba(126, 240, 197, 0.18), rgba(121, 168, 255, 0.12));
	color: #dcfff3;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-tag:hover {
	transform: translateY(-2px);
	border-color: rgba(126, 240, 197, 0.54);
	background: linear-gradient(135deg, rgba(126, 240, 197, 0.3), rgba(121, 168, 255, 0.2));
}

.icon {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: inline-grid;
	place-items: center;
	margin-bottom: 16px;
	background: rgba(121, 168, 255, 0.12);
	border: 1px solid rgba(121, 168, 255, 0.18);
	color: #d8e6ff;
	font-weight: 700;
}

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

.tag {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #dce8ff;
	font-weight: 600;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tag:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.1);
}

.project-card {
	position: relative;
	padding: 24px;
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.project-card:hover {
	transform: translateY(-5px);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 28px 62px rgba(0, 0, 0, 0.42);
}

.project-card::after {
	content: "";
	position: absolute;
	inset: auto -30px -50px auto;
	width: 140px;
	height: 140px;
	background: radial-gradient(circle, rgba(121, 168, 255, 0.18), transparent 70%);
	pointer-events: none;
}

.project-card h3 {
	font-size: 22px;
	margin-bottom: 10px;
}

.project-card p {
	color: var(--muted);
	margin-bottom: 18px;
}

.project-list {
	display: grid;
	gap: 10px;
	color: #d9e6fd;
	font-size: 15px;
}

.project-list span::before {
	content: "•";
	margin-right: 8px;
	color: var(--accent-2);
}

.timeline {
	padding: 24px;
}

.timeline-item {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 16px;
	padding: 14px 0;
}

.timeline-item+.timeline-item {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-step {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(126, 240, 197, 0.12);
	border: 1px solid rgba(126, 240, 197, 0.16);
	color: #dcfff3;
	font-weight: 700;
}

.timeline-item h3 {
	font-size: 20px;
	margin-bottom: 6px;
}

.timeline-item p {
	color: var(--muted);
}

.contact-box {
	padding: 28px;
}

.contact-kicker {
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 13px;
	margin-bottom: 12px;
}

.contact-box h2 {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin-bottom: 12px;
}

.contact-box p {
	color: var(--muted);
	max-width: 52ch;
}

.contact-list {
	display: grid;
	gap: 14px;
	margin-top: 24px;
}

.contact-item {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-item:hover {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
}

.contact-item span {
	color: var(--muted);
}

.contact-item strong {
	text-align: right;
	font-size: 16px;
}

.legal {
	display: none;
	padding: 0 0 12px;
}

.legal.is-visible {
	display: block;
}

.legal-box {
	padding: 20px 24px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	border-radius: var(--radius-sm);
}

.legal-content {
	display: grid;
	gap: 12px;
	color: var(--muted);
	font-size: 14px;
}

.legal-content strong {
	color: var(--text);
}

.footer-link {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.reveal-on-scroll {
	opacity: 0;
	transform: translateY(18px) scale(0.99);
	transition: opacity 0.6s ease, transform 0.6s ease;
	will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
	opacity: 1;
	transform: none;
}

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

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

.footer {
	padding: 26px 0 42px;
	color: var(--muted);
	font-size: 14px;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 22px;
}

@media (max-width: 1080px) {
	.hero-grid,
	.contact-grid,
	.grid-3,
	.project-grid,
	.tech-grid {
		grid-template-columns: 1fr 1fr;
	}

	.hero-points {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.nav {
		min-height: 74px;
		padding: 12px 0;
		flex-wrap: nowrap;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.nav-cta-desktop {
		display: none;
	}

	.nav-links {
		display: none;
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 12px;
		background: rgba(10, 20, 36, 0.96);
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 18px;
		box-shadow: 0 22px 52px rgba(0, 0, 0, 0.44);
		backdrop-filter: blur(10px);
		max-height: calc(100vh - 140px);
		overflow-y: auto;
		overscroll-behavior: contain;
		z-index: 70;
	}

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

	.nav-links a {
		display: block;
		padding: 12px 14px;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.03);
	}

	.nav-links a::after {
		display: none;
	}

	.nav-links .nav-cta-mobile {
		display: inline-flex;
		margin-top: 4px;
		justify-content: center;
		background: rgba(255, 255, 255, 0.08);
	}

	.hero {
		padding-top: 54px;
	}

	.hero-grid,
	.contact-grid,
	.grid-2,
	.grid-3,
	.project-grid,
	.tech-grid {
		grid-template-columns: 1fr;
	}

	.hero-copy,
	.hero-panel,
	.card,
	.timeline,
	.contact-box,
	.project-card {
		padding: 22px;
	}

	.contact-item {
		flex-direction: column;
	}

	.contact-item strong {
		text-align: left;
	}

	.legal-box {
		padding: 18px;
	}
}