@import 'normalize.css';


/* ---------------------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------------------- */

:root {
	--color-bg: #ffffff;
	--color-surface: #f6f8fc;
	--color-surface-alt: #eef2f9;
	--color-border: #e2e8f0;
	--color-border-strong: #cbd5e1;
	--color-ink: #0b1220;
	--color-text: #0b1220;
	--color-text-soft: #334155;
	--color-muted: #64748b;
	--color-accent: #2563eb;
	--color-accent-hover: #1d4ed8;
	--color-accent-soft: rgba(37, 99, 235, 0.12);
	--color-accent-ring: rgba(37, 99, 235, 0.28);
	--color-accent-2: #7c3aed;

	--color-dark-bg: #070b1a;
	--color-dark-surface: #0f172a;
	--color-dark-text: #e2e8f0;
	--color-dark-muted: #94a3b8;
	--color-dark-border: rgba(255, 255, 255, 0.1);

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--radius-xl: 28px;
	--radius-pill: 999px;

	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.14);
	--shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);

	--max-width: 1120px;
	--container-padding: 24px;

	--nav-height: 72px;

	--transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--nav-height);
}

body,
h1, h2, h3, h4, p, ul, dl, dt, dd {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

@media screen and (min-width: 768px) {
	body {
		font-size: 18px;
	}
}

p {
	margin-bottom: 1.25em;
	color: var(--color-text-soft);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--color-accent-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

ul {
	list-style: none;
}

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


/* ---------------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------------- */

h1, h2, h3, h4 {
	color: var(--color-text);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

h1 {
	font-size: clamp(2.5rem, 5.5vw + 1rem, 4.5rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	margin-bottom: 0.5em;
}

h2 {
	font-size: clamp(1.875rem, 2.5vw + 1rem, 2.75rem);
	margin-bottom: 0.6em;
}

h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5em;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-accent);
	background: var(--color-accent-soft);
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	margin-bottom: 1.25rem;
}

.eyebrow-on-dark {
	color: #bfdbfe;
	background: rgba(59, 130, 246, 0.15);
	border: 1px solid rgba(147, 197, 253, 0.2);
}

.pulse {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
	70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.lead {
	font-size: 1.1rem;
	color: var(--color-text-soft);
	max-width: 58ch;
}

@media screen and (min-width: 768px) {
	.lead {
		font-size: 1.2rem;
	}
}


/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.section {
	padding: 80px 0;
}

@media screen and (min-width: 768px) {
	.section {
		padding: 110px 0;
	}
}

.section-alt {
	background: var(--color-surface);
}

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

.section-header .lead {
	margin: 0 auto;
}

@media screen and (min-width: 768px) {
	.section-header {
		margin-bottom: 64px;
	}
}


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

.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	height: var(--nav-height);
	background: rgba(7, 11, 26, 0.7);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 100%;
}

.nav-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: -0.01em;
}

.nav-brand:hover {
	color: #fff;
	text-decoration: none;
}

.nav-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
	box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

.nav-links {
	display: none;
	gap: 28px;
	font-size: 0.95rem;
	font-weight: 500;
}

.nav-links a {
	color: var(--color-dark-muted);
}

.nav-links a:hover {
	color: #fff;
	text-decoration: none;
}

@media screen and (min-width: 768px) {
	.nav-links {
		display: flex;
	}
}


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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	cursor: pointer;
	white-space: nowrap;
	transition: transform var(--transition), box-shadow var(--transition),
		background-color var(--transition), color var(--transition),
		border-color var(--transition);
	will-change: transform;
}

.btn-sm {
	padding: 10px 18px;
	font-size: 0.9rem;
}

.btn-primary {
	background: var(--color-accent);
	color: #fff;
	box-shadow: 0 10px 24px -10px var(--color-accent);
}

.btn-primary:hover {
	background: var(--color-accent-hover);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 14px 30px -10px var(--color-accent);
	text-decoration: none;
}

.btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 6px 16px -8px var(--color-accent);
}

.btn-ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
	text-decoration: none;
}

.btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--color-accent-ring);
}

.btn:disabled {
	cursor: not-allowed;
	background: #cbd5e1;
	color: #64748b;
	box-shadow: none;
	transform: none;
}

.btn-block {
	width: 100%;
}

.btn-arrow {
	display: inline-block;
	transition: transform var(--transition);
}

.btn:hover .btn-arrow {
	transform: translateX(3px);
}


/* ---------------------------------------------------------------------------
   Alerts
   --------------------------------------------------------------------------- */

.alert {
	padding: 14px 18px;
	margin-bottom: 1.5rem;
	border-radius: var(--radius-md);
	font-size: 0.95rem;
	font-weight: 500;
	border: 1px solid transparent;
}

.alert-success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.alert-danger {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}


/* ---------------------------------------------------------------------------
   Spinner
   --------------------------------------------------------------------------- */

.spinner {
	display: inline-block;
	width: 22px;
	height: 22px;
	margin-left: 12px;
	border: 3px solid var(--color-accent-soft);
	border-top-color: var(--color-accent);
	border-radius: 50%;
	vertical-align: middle;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}


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

#hero {
	position: relative;
	overflow: hidden;
	padding: calc(var(--nav-height) + 72px) 0 96px;
	background: var(--color-dark-bg);
	color: var(--color-dark-text);
	isolation: isolate;
}

@media screen and (min-width: 768px) {
	#hero {
		padding: calc(var(--nav-height) + 112px) 0 140px;
		min-height: 92vh;
		display: flex;
		align-items: center;
	}
}

.hero-backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 50% at 80% 0%, rgba(37, 99, 235, 0.35), transparent 60%),
		radial-gradient(50% 40% at 15% 100%, rgba(124, 58, 237, 0.3), transparent 60%),
		radial-gradient(40% 30% at 90% 90%, rgba(14, 165, 233, 0.2), transparent 60%);
}

.hero-backdrop::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 30%, transparent 80%);
}

.hero-content {
	position: relative;
	max-width: 820px;
}

.hero-content h1,
.hero-content h2,
.hero-content h3 {
	color: #fff;
}

.hero-content .lead {
	color: var(--color-dark-muted);
	font-size: 1.15rem;
	margin-bottom: 2.5rem;
}

@media screen and (min-width: 768px) {
	.hero-content .lead {
		font-size: 1.25rem;
	}
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 3.5rem;
}

.hero-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding: 24px 0 0;
	border-top: 1px solid var(--color-dark-border);
	max-width: 640px;
}

.hero-meta dt {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-dark-muted);
	margin-bottom: 4px;
}

.hero-meta dd {
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	margin: 0;
}

@media screen and (max-width: 576px) {
	.hero-meta {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}


/* ---------------------------------------------------------------------------
   Services
   --------------------------------------------------------------------------- */

.card-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media screen and (min-width: 768px) {
	.card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.service-card {
	position: relative;
	padding: 32px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
	transform: translateY(-4px);
	border-color: var(--color-accent-soft);
	box-shadow: var(--shadow-md);
}

.service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 20px;
	border-radius: var(--radius-md);
	background: var(--color-accent-soft);
	color: var(--color-accent);
}

.service-icon svg {
	width: 24px;
	height: 24px;
}

.service-card p {
	margin: 0;
	color: var(--color-text-soft);
}


/* ---------------------------------------------------------------------------
   About
   --------------------------------------------------------------------------- */

.about-grid {
	display: grid;
	gap: 48px;
	align-items: center;
}

@media screen and (min-width: 768px) {
	.about-grid {
		grid-template-columns: 5fr 6fr;
		gap: 72px;
	}
}

.about-media {
	position: relative;
	max-width: 500px;
	margin: 0 auto;
	width: 100%;
}

.about-media::before {
	content: "";
	position: absolute;
	inset: 16px -16px -16px 16px;
	background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
	border-radius: var(--radius-lg);
	z-index: 0;
	opacity: 0.85;
}

.profile-image {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	background: var(--color-surface);
}

.about-copy {
	max-width: 560px;
}


/* ---------------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------------- */

.contact-wrap {
	max-width: 640px;
}

#contactForm {
	text-align: left;
	background: var(--color-bg);
	padding: 32px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-card);
	max-width: none;
	margin: 0 auto;
}

@media screen and (min-width: 576px) {
	#contactForm {
		padding: 44px;
	}
}

.field {
	margin-bottom: 20px;
}

label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--color-text);
	letter-spacing: 0.01em;
}

input,
textarea {
	width: 100%;
	padding: 13px 16px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--color-text);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	transition: border-color var(--transition), box-shadow var(--transition),
		background-color var(--transition);
}

input::placeholder,
textarea::placeholder {
	color: var(--color-muted);
}

input:hover,
textarea:hover {
	border-color: var(--color-border-strong);
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 4px var(--color-accent-ring);
}

input:disabled,
textarea:disabled {
	cursor: not-allowed;
	background: var(--color-surface-alt);
	color: var(--color-muted);
	border-color: var(--color-border);
}

textarea {
	resize: vertical;
	min-height: 140px;
	max-width: 100%;
	line-height: 1.55;
}

#contactForm .btn {
	margin-top: 8px;
}


/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

#footer {
	position: relative;
	overflow: hidden;
	background: var(--color-dark-bg);
	color: var(--color-dark-muted);
	padding: 72px 0 28px;
	font-size: 0.95rem;
	border-top: 1px solid var(--color-dark-border);
	isolation: isolate;
}

.footer-backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 80% at 0% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
		radial-gradient(50% 70% at 100% 0%, rgba(124, 58, 237, 0.16), transparent 60%);
}

.footer-grid {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
	margin-bottom: 56px;
}

@media screen and (min-width: 576px) {
	.footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px;
	}
}

.footer-heading {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-dark-muted);
	margin-bottom: 18px;
}

.footer-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.98rem;
}

.footer-list li {
	color: #e2e8f0;
}

.footer-list a {
	color: #e2e8f0;
	font-weight: 500;
}

.footer-list a:hover {
	color: #fff;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-size: 100% 1px;
	background-position: 0 100%;
}

.footer-status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 600;
}

.footer-note {
	margin-top: 10px;
	color: var(--color-dark-muted);
	font-size: 0.9rem;
}

.footer-bottom {
	padding-top: 28px;
	border-top: 1px solid var(--color-dark-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	font-size: 0.88rem;
}

@media screen and (min-width: 576px) {
	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.footer-copy {
	color: var(--color-dark-muted);
	margin: 0;
}

.footer-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-dark-muted);
	font-weight: 600;
	padding: 8px 14px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--color-dark-border);
	transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.footer-back svg {
	width: 14px;
	height: 14px;
	transition: transform var(--transition);
}

.footer-back:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.04);
	text-decoration: none;
}

.footer-back:hover svg {
	transform: translateY(-2px);
}
