/*
 * Nordic Tech Lab - main stylesheet
 *
 * Design source: home.png (dark navy hero, cyan accents, glass panels).
 * Structure: 1. Fonts  2. Design tokens  3. Base  4. Utilities  5. Components
 *            6. Header  7. Sections (in page order)  8. Footer  9. Consent  10. Motion
 *
 * Mobile-first. Breakpoints (mirrored as --bp-* tokens for reference and for main.js):
 *   640px  small tablets       768px  tablets          960px  hero two columns
 *   1024px small desktops      1140px desktop navigation
 */

/* 1. Fonts ------------------------------------------------------------------ */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-var.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-var.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched local fallbacks keep the layout stable while the web fonts load.
   Values measured in Edge: Manrope ascent 1.066 em, descent 0.300 em; Manrope 400 is 3.0 % wider than
   Arial, Manrope 700-800 is 2.1 % wider than Arial Bold. */
@font-face {
	font-family: "Manrope Fallback";
	font-weight: 400 549;
	src: local("Arial"), local("ArialMT");
	size-adjust: 103%;
	ascent-override: 103.5%;
	descent-override: 29.1%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Manrope Fallback";
	font-weight: 550 900;
	src: local("Arial Bold"), local("Arial-BoldMT");
	size-adjust: 102.1%;
	ascent-override: 104.4%;
	descent-override: 29.4%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Inter Fallback";
	src: local("Arial");
	size-adjust: 107.12%;
	ascent-override: 90.44%;
	descent-override: 22.52%;
	line-gap-override: 0%;
}

/* 2. Design tokens ------------------------------------------------------------ */

:root {
	/* Brand colours (sampled from home.png) */
	--color-navy-950: #050d18;
	--color-navy-900: #071421;
	--color-navy-850: #081425;
	--color-navy-800: #0b1a2b;
	--color-navy-700: #12263a;
	--color-cyan-300: #55f0f7;
	--color-cyan-200: #8ff6fa;
	--color-cyan-100: #b3f4fb;
	--color-cyan-400: #31d7e0;
	--color-cyan-600: #1aa7d4;
	--color-blue-600: #1f78bd;

	/* Text */
	--color-ink: #0a1324;
	--color-text: #2f4255;
	--color-text-muted: #546679;
	--color-on-dark: #eaf3f9;
	--color-on-dark-muted: #b8cad8;

	/* Surfaces */
	--color-page: #f4f9fd;
	--color-band: #edf5fb;
	--color-surface: #ffffff;
	--color-line: #dce8f1;
	--color-line-strong: #c3d4e2;
	--color-focus: #1f78bd;

	/* Typography */
	--font-heading: "Manrope", "Manrope Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-body: "Inter", "Inter Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
	--fs-h1: clamp(2.375rem, 0.9rem + 3.6vw, 3.625rem);
	--fs-h2: clamp(1.875rem, 1.3rem + 1.9vw, 2.875rem);
	--fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	--fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--fs-body: 1rem;
	--fs-small: 0.9375rem;
	--fs-xsmall: 0.8125rem;
	--fs-eyebrow: 0.75rem;
	--lh-tight: 1.1;
	--lh-body: 1.6;

	/* Spacing scale */
	--space-2xs: 0.25rem;
	--space-xs: 0.5rem;
	--space-sm: 0.75rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2rem;
	--space-2xl: 3rem;
	--space-3xl: 4rem;
	--section-space: clamp(3.5rem, 2.2rem + 4.5vw, 5.75rem);

	/* Layout */
	--container: 1260px;
	--container-wide: 1350px;
	--gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
	--header-height: 72px;

	/* Shape */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-xl: 22px;
	--radius-pill: 999px;

	/* Shadows */
	--shadow-card: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 22px 44px -32px rgba(17, 66, 105, 0.5);
	--shadow-raised: 0 18px 40px -26px rgba(17, 66, 105, 0.55);
	--shadow-dark: 0 30px 60px -36px rgba(3, 10, 20, 0.85);
	--shadow-glow: 0 12px 30px -12px rgba(85, 240, 247, 0.65);

	/* Motion */
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--transition-fast: 160ms var(--ease);
	--transition: 240ms var(--ease);

	/* Breakpoints (reference values; media queries below use the same numbers) */
	--bp-sm: 640px;
	--bp-md: 768px;
	--bp-lg: 1024px;
	--bp-nav: 1140px;
}

/* 3. Base --------------------------------------------------------------------- */

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

/* scroll-padding keeps anchor targets and keyboard-focused elements clear of the sticky header. */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-height) + var(--space-md));
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--color-text);
	background-color: var(--color-page);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-heading);
	color: var(--color-ink);
	text-wrap: balance;
}

h1 {
	font-size: var(--fs-h1);
	font-weight: 760;
	line-height: 1.06;
	letter-spacing: -0.03em;
}

h2 {
	font-size: var(--fs-h2);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

h3 {
	font-size: var(--fs-h3);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

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

img {
	height: auto;
}

button {
	font: inherit;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
}

::selection {
	background: var(--color-cyan-100);
	color: var(--color-ink);
}

/* 4. Utilities ------------------------------------------------------------------ */

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container-wide {
	max-width: calc(var(--container-wide) + 2 * var(--gutter));
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: var(--space-sm);
	left: var(--space-sm);
	z-index: 100;
	padding: var(--space-sm) var(--space-lg);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	color: var(--color-ink);
	font-family: var(--font-heading);
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-200%);
	transition: transform var(--transition-fast);
}

.skip-link:focus {
	transform: none;
}

.icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon-solid {
	fill: currentColor;
	stroke: none;
}

.text-accent {
	color: var(--color-cyan-300);
}

/* 5. Components ------------------------------------------------------------------ */

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65em;
	min-height: 52px;
	padding: 0.8em 1.6em;
	border: 1.5px solid transparent;
	border-radius: 10px;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition), transform var(--transition-fast);
}

.btn .icon {
	width: 1.2em;
	height: 1.2em;
	transition: transform var(--transition-fast);
}

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

.btn-primary {
	background-color: var(--color-cyan-300);
	color: var(--color-navy-950);
	box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
	background-color: var(--color-cyan-200);
	box-shadow: 0 16px 34px -12px rgba(85, 240, 247, 0.8);
	transform: translateY(-1px);
}

.btn-dark {
	background-color: var(--color-navy-900);
	color: var(--color-on-dark);
}

.btn-dark:hover {
	background-color: var(--color-navy-700);
	transform: translateY(-1px);
}

.btn-outline {
	background-color: transparent;
	border-color: rgba(200, 230, 250, 0.45);
	color: var(--color-on-dark);
}

.btn-outline:hover {
	border-color: var(--color-cyan-300);
	color: var(--color-cyan-300);
}

.btn-sm {
	min-height: 44px;
	padding: 0.6em 1.25em;
	font-size: 0.9375rem;
	border-radius: 8px;
}

.link-underline {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-on-dark);
	text-decoration: underline;
	text-decoration-color: var(--color-cyan-300);
	text-decoration-thickness: 2px;
	text-underline-offset: 10px;
	transition: color var(--transition-fast);
}

.link-underline:hover {
	color: var(--color-cyan-300);
}

/* Eyebrow label with the cyan rule */
.eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs) var(--space-sm);
	margin-bottom: var(--space-md);
	font-family: var(--font-heading);
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #26384b;
}

.eyebrow::before {
	content: "";
	width: 34px;
	height: 2px;
	border-radius: 2px;
	background: var(--color-cyan-400);
	margin-right: 0.4em;
}

.eyebrow-on-dark {
	color: #d3e2ee;
}

/* Section heading: title on the left, lead text on the right (desktop) */
.section {
	padding-block: var(--section-space);
}

.section-head {
	display: grid;
	gap: var(--space-md) var(--space-3xl);
	margin-bottom: clamp(1.75rem, 1rem + 2.4vw, 2.75rem);
}

.section-lead {
	max-width: 31em;
	font-size: var(--fs-lead);
	color: var(--color-text);
}

.section-head-on-dark h2 {
	color: #ffffff;
}

.section-head-on-dark .section-lead {
	color: var(--color-on-dark-muted);
}

@media (min-width: 900px) {
	.section-head {
		grid-template-columns: 1fr 1fr;
		align-items: end;
	}

	.section-head .section-lead {
		padding-bottom: 0.35em;
	}
}

/* Icon chips */
.icon-chip {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	flex: none;
	border-radius: var(--radius-md);
	background: var(--color-cyan-100);
	color: #08304a;
}

.icon-chip .icon {
	width: 24px;
	height: 24px;
}

.icon-chip-dark {
	background: rgba(85, 240, 247, 0.1);
	border: 1px solid rgba(85, 240, 247, 0.24);
	color: var(--color-cyan-300);
}

/* 6. Header ------------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: var(--color-navy-850);
	color: var(--color-on-dark);
	border-bottom: 1px solid transparent;
	transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
	border-bottom-color: rgba(150, 210, 240, 0.12);
	box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.7);
}

.site-header :focus-visible,
.hero :focus-visible,
.tech :focus-visible,
.cta :focus-visible,
.consent :focus-visible {
	outline-color: var(--color-cyan-300);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	min-height: var(--header-height);
}

.brand {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	flex: none;
}

/* Logo image (mark + lettering), aspect ratio 4.94 : 1. */
.brand-logo {
	width: auto;
	height: 40px;
}

@media (min-width: 768px) {
	.brand-logo {
		height: 48px;
	}
}

.nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(150, 210, 240, 0.25);
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	cursor: pointer;
}

.nav-toggle .icon {
	width: 24px;
	height: 24px;
}

.nav-toggle-close,
.nav-toggle[aria-expanded="true"] .nav-toggle-open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
	display: block;
}

.nav-link,
.submenu a {
	text-decoration: none;
	transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.submenu a:hover {
	color: var(--color-cyan-300);
}

.submenu-toggle {
	display: inline-grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.submenu-toggle .icon {
	width: 18px;
	height: 18px;
	transition: transform var(--transition-fast);
}

.submenu-toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

/* Mobile and tablet navigation: a panel below the header bar */
@media (max-width: 1139.98px) {
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100dvh - var(--header-height));
		overflow-y: auto;
		padding: var(--space-xs) var(--gutter) var(--space-xl);
		background-color: var(--color-navy-850);
		border-top: 1px solid rgba(150, 210, 240, 0.12);
		box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.8);
	}

	.site-header.is-nav-open .site-nav {
		display: block;
	}

	.nav-list > li {
		border-bottom: 1px solid rgba(150, 210, 240, 0.1);
	}

	.nav-link {
		display: flex;
		align-items: center;
		min-height: 52px;
		font-family: var(--font-heading);
		font-size: 1.0625rem;
		font-weight: 600;
	}

	.nav-item-submenu {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.submenu-toggle {
		width: 48px;
		height: 48px;
	}

	.submenu {
		display: none;
		grid-column: 1 / -1;
		padding: 0 0 var(--space-sm) var(--space-md);
	}

	.nav-item-submenu.is-open .submenu {
		display: block;
	}

	.submenu a {
		display: flex;
		align-items: center;
		min-height: 44px;
		color: var(--color-on-dark-muted);
	}

	.nav-cta {
		width: 100%;
		margin-top: var(--space-lg);
	}
}

/* Desktop navigation */
@media (min-width: 1140px) {
	.nav-toggle {
		display: none;
	}

	.site-nav {
		display: flex;
		flex: 1;
		align-items: center;
	}

	.nav-list {
		display: flex;
		align-items: center;
		gap: clamp(1.5rem, 0.2rem + 2vw, 2.4rem);
		margin-inline: auto;
	}

	.nav-link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		font-family: var(--font-heading);
		font-size: clamp(0.9375rem, 0.4625rem + 0.667vw, 1.0625rem);
		font-weight: 600;
		color: var(--color-on-dark);
	}

	.nav-item-submenu {
		position: relative;
		display: flex;
		align-items: center;
		gap: 0.15rem;
	}

	.submenu-toggle {
		width: 28px;
		height: 32px;
	}

	.submenu {
		position: absolute;
		top: calc(100% + 12px);
		left: -14px;
		display: none;
		min-width: 270px;
		padding: var(--space-xs);
		background-color: #0d1e31;
		border: 1px solid rgba(150, 210, 240, 0.16);
		border-radius: var(--radius-lg);
		box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.85);
	}

	/* Invisible bridge so the pointer can travel from the link to the panel. */
	.submenu::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -14px;
		height: 14px;
	}

	.nav-item-submenu.is-open .submenu {
		display: block;
	}

	.submenu a {
		display: block;
		padding: 0.65rem 0.85rem;
		border-radius: var(--radius-sm);
		font-size: 0.9375rem;
		color: #d6e4ee;
	}

	.submenu a:hover {
		background-color: rgba(85, 240, 247, 0.08);
	}

	.nav-cta {
		flex: none;
		min-height: 48px;
		font-size: 1rem;
	}
}

@media (min-width: 1140px) and (hover: hover) {
	.nav-item-submenu:hover .submenu {
		display: block;
	}
}

/* 7. Sections -------------------------------------------------------------------------- */

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	color: var(--color-on-dark);
	background-color: var(--color-navy-900);
	background-image:
		url("../images/hero-waves.svg"),
		radial-gradient(55% 75% at 80% 62%, rgba(18, 96, 158, 0.55), rgba(7, 20, 33, 0) 72%),
		radial-gradient(35% 45% at 100% 0%, rgba(22, 112, 172, 0.3), rgba(7, 20, 33, 0) 70%);
	background-repeat: no-repeat;
	background-position: right center, 0 0, 0 0;
	background-size: cover, 100% 100%, 100% 100%;
}

.hero-inner {
	display: grid;
	align-items: center;
	gap: var(--space-xl);
	padding-block: clamp(2.25rem, 1.5rem + 2.4vw, 3.4rem) clamp(2.5rem, 1.6rem + 2.4vw, 3.4rem);
}

.hero h1 {
	color: #ffffff;
	margin-bottom: var(--space-lg);
}

.hero-copy {
	position: relative;
	z-index: 1;
	max-width: 36rem;
}

.hero-lead {
	max-width: 30em;
	margin-bottom: var(--space-xl);
	font-size: var(--fs-lead);
	color: var(--color-on-dark-muted);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-md) var(--space-xl);
}

@media (min-width: 960px) {
	.hero-inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--space-lg);
	}
}

@media (min-width: 1200px) {
	.hero-inner {
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	}
}

/* Hero illustration: a glass browser window built from HTML and tilted in 3D.
   Inside .hero-art 1em is 1 % of the illustration width (set by font-size below), so every
   inner size is written in em and the whole composition scales as one piece. */
.hero-art {
	position: relative;
	width: 100%;
	max-width: 560px;
	justify-self: center;
	font-size: min(5.6px, calc((100vw - 2 * var(--gutter)) / 100));
	pointer-events: none;
	user-select: none;
}

.hero-art::after {
	content: "";
	position: absolute;
	left: 6%;
	right: 2%;
	bottom: -4%;
	height: 26%;
	background: radial-gradient(50% 50% at 50% 50%, rgba(43, 170, 240, 0.4), rgba(43, 170, 240, 0) 72%);
}

.hero-scene {
	position: relative;
	aspect-ratio: 640 / 430;
	transform: perspective(260em) rotateX(9deg) rotateY(-21deg) rotateZ(-3deg);
	transform-style: preserve-3d;
}

.glass-window {
	position: absolute;
	left: 15%;
	top: 6%;
	width: 75%;
	height: 82%;
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	grid-template-rows: auto 1fr 30%;
	gap: 2.8em 3.2em;
	padding: 3em 3.4em 3.6em;
	border-radius: 3.6em;
	border: 1.5px solid rgba(160, 228, 255, 0.5);
	border-bottom-color: rgba(120, 240, 255, 0.85);
	transform-style: preserve-3d;
	background: linear-gradient(140deg, rgba(130, 205, 255, 0.2) 0%, rgba(40, 120, 185, 0.1) 45%, rgba(20, 80, 140, 0.16) 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		inset 0 0 6em rgba(80, 190, 255, 0.1),
		0 6em 12em -3em rgba(0, 0, 0, 0.6),
		0 0 8em rgba(40, 170, 255, 0.16);
}

/* Back plate offset in depth: reads as the thickness of a glass slab. */
.glass-window::before {
	content: "";
	position: absolute;
	inset: -1.5px;
	border-radius: inherit;
	border: 1.5px solid rgba(110, 225, 255, 0.4);
	background: rgba(30, 120, 190, 0.08);
	transform: translateZ(-2.6em) translate(0.9em, 1.1em);
}

.glass-window::after {
	content: "";
	position: absolute;
	left: 6%;
	right: 6%;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(110, 243, 255, 0), #8af7ff 50%, rgba(110, 243, 255, 0));
	box-shadow: 0 0 3em 0.6em rgba(80, 230, 255, 0.45);
}

.glass-window-bar {
	grid-column: 1 / -1;
	display: flex;
	gap: 1.4em;
}

.glass-window-bar i {
	width: 1.9em;
	height: 1.9em;
	border-radius: 50%;
	background: rgba(175, 238, 255, 0.85);
}

.glass-window-photo {
	overflow: hidden;
	border-radius: 1.8em;
	border: 1px solid rgba(200, 240, 255, 0.45);
	box-shadow: 0 2.4em 5em rgba(0, 0, 0, 0.35);
}

.glass-window-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.glass-window-side {
	display: flex;
	flex-direction: column;
	gap: 1.9em;
	padding-top: 0.8em;
}

.glass-window-side i,
.glass-window-text i {
	display: block;
	height: 1.5em;
	border-radius: 1em;
	background: rgba(195, 232, 250, 0.5);
}

.glass-window-side i:nth-child(2) {
	width: 82%;
}

.glass-window-side i:nth-child(3) {
	width: 58%;
}

.glass-window-side b {
	flex: 1;
	margin-top: 1.4em;
	border-radius: 1.6em;
	border: 1px solid rgba(170, 230, 255, 0.22);
	background: rgba(150, 210, 240, 0.12);
}

.glass-window-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.6em;
}

.glass-window-text i:nth-child(1) {
	width: 74%;
}

.glass-window-text i:nth-child(2) {
	width: 60%;
}

.glass-window-text i:nth-child(3) {
	width: 42%;
}

.glass-window-video {
	display: grid;
	place-items: center;
	border-radius: 1.8em;
	border: 1px solid rgba(170, 232, 255, 0.45);
	background: linear-gradient(150deg, rgba(150, 215, 245, 0.28), rgba(40, 110, 170, 0.18));
	box-shadow: 0 2em 5em rgba(0, 0, 0, 0.35);
	transform: translateZ(4em);
}

.glass-window-video .icon {
	width: 6.5em;
	height: 6.5em;
	color: rgba(210, 244, 255, 0.9);
}

.glass-chip {
	position: absolute;
	border-radius: 2.6em;
	border: 1.5px solid rgba(170, 236, 255, 0.6);
	background: linear-gradient(145deg, rgba(160, 228, 255, 0.3), rgba(40, 120, 180, 0.16));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.45),
		0 3em 8em rgba(0, 0, 0, 0.45),
		0 0 6em rgba(60, 200, 255, 0.2);
	transform: translateZ(9em);
}

.glass-chip-code {
	left: 2%;
	top: 37%;
	width: 21%;
	height: 25%;
	display: grid;
	place-items: center;
}

.glass-chip-code .icon {
	width: 11em;
	height: 11em;
	color: #86eef9;
	stroke-width: 1.6;
}

.glass-chip-chart {
	right: -1%;
	top: 31%;
	width: 31%;
	height: 26%;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2.1em;
	padding: 4.2em 4em;
}

.glass-chip-chart i {
	width: 3.3em;
	border-radius: 0.8em;
	background: linear-gradient(180deg, #74f6fc, #26aee6);
	box-shadow: 0 0 2.4em rgba(80, 230, 250, 0.55);
}

.glass-chip-chart i:nth-child(1) { height: 22%; }
.glass-chip-chart i:nth-child(2) { height: 38%; }
.glass-chip-chart i:nth-child(3) { height: 55%; }
.glass-chip-chart i:nth-child(4) { height: 74%; }
.glass-chip-chart i:nth-child(5) { height: 96%; }

@media (min-width: 960px) {
	.hero-art {
		max-width: 720px;
		font-size: clamp(4.3px, 0.465vw, 6.7px);
		justify-self: end;
		margin-block: -2.5rem -1.5rem;
		margin-right: -2.5rem;
	}
}

/* Statistics band */
.stats {
	background: linear-gradient(180deg, #edf5fb 0%, #f2f8fd 100%);
	border-bottom: 1px solid #e2ecf4;
}

.stats-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-lg) var(--space-xs);
	text-align: center;
}

.stat + .stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 22%;
	bottom: 22%;
	width: 1px;
	background: var(--color-line-strong);
}

.stat-icon {
	width: 40px;
	height: 40px;
	color: var(--color-cyan-600);
	stroke-width: 1.5;
}

.stat-value {
	display: block;
	font-family: var(--font-heading);
	font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--color-ink);
}

.stat-label {
	display: block;
	margin-top: 0.2em;
	font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.125rem);
	line-height: 1.35;
	color: var(--color-text);
}

@media (min-width: 768px) {
	.stat {
		flex-direction: row;
		justify-content: center;
		gap: clamp(1rem, 0.4rem + 1.5vw, 1.6rem);
		padding-block: clamp(1.6rem, 1rem + 1.4vw, 2.25rem);
		text-align: left;
	}

	.stat-icon {
		width: clamp(44px, 2rem + 1.5vw, 58px);
		height: clamp(44px, 2rem + 1.5vw, 58px);
	}
}

/* About */
.about-layout {
	display: grid;
	gap: var(--space-lg);
}

.feature-grid {
	display: grid;
	gap: var(--space-md);
}

.feature-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	box-shadow: var(--shadow-card);
}

.feature-card .icon-chip {
	margin-bottom: var(--space-2xs);
}

.feature-card h3 {
	font-size: 1.1875rem;
}

.feature-card p {
	font-size: var(--fs-small);
	color: var(--color-text-muted);
}

.assurance-panel {
	padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
	border-radius: var(--radius-xl);
	color: var(--color-on-dark-muted);
	background:
		radial-gradient(80% 70% at 100% 100%, rgba(41, 140, 210, 0.5), rgba(11, 26, 43, 0) 65%),
		linear-gradient(140deg, var(--color-navy-700) 0%, var(--color-navy-800) 60%, #0a1828 100%);
	box-shadow: var(--shadow-dark);
}

.assurance-title {
	margin-bottom: var(--space-lg);
	font-size: 1.25rem;
	color: #ffffff;
}

.assurance-list {
	display: grid;
	gap: var(--space-lg);
}

.assurance-list li {
	display: flex;
	align-items: center;
	gap: var(--space-md);
}

.assurance-list strong {
	display: block;
	font-family: var(--font-heading);
	font-size: 1.1875rem;
	line-height: 1.25;
	color: #ffffff;
}

.assurance-list span {
	display: block;
	font-size: var(--fs-small);
}

@media (min-width: 640px) {
	.feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	.assurance-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start;
	}

	.assurance-list li {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (min-width: 1024px) {
	.about-layout {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}

	.assurance-panel {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

/* Services */
.services {
	padding-top: 0;
}

.service-grid {
	display: grid;
	gap: var(--space-md);
}

.service-card {
	position: relative;
	display: grid;
	overflow: hidden;
	border-radius: var(--radius-xl);
	border: 1px solid rgba(255, 255, 255, 0.85);
	background: linear-gradient(118deg, #f1f8fd 0%, #e4f0f9 42%, #cbe3f2 100%);
	box-shadow: var(--shadow-card);
	color: var(--color-text);
}

.service-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.6rem 1.5rem 0.5rem;
}

.service-body h3 {
	margin-bottom: var(--space-sm);
	font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
}

.service-body p {
	max-width: 19em;
	margin-bottom: var(--space-lg);
	font-size: clamp(0.9375rem, 0.88rem + 0.2vw, 1.0625rem);
}

.arrow-chip {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 40px;
	margin-top: auto;
	border-radius: 10px;
	background-color: #a6f2fa;
	color: var(--color-navy-950);
	transition: background-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.arrow-chip .icon {
	width: 22px;
	height: 22px;
}

.arrow-chip:hover {
	background-color: var(--color-cyan-300);
	transform: translateX(3px);
}

.service-art {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 1rem 1.25rem;
	perspective: 1000px;
}

.service-art img {
	width: 100%;
	max-width: 340px;
	transform: rotateY(-16deg) rotateX(5deg);
}

.service-card-dark {
	border-color: rgba(120, 190, 235, 0.14);
	color: var(--color-on-dark-muted);
	background:
		radial-gradient(70% 95% at 94% 100%, rgba(41, 140, 210, 0.62), rgba(11, 26, 43, 0) 62%),
		linear-gradient(135deg, #142a3f 0%, #0c1c2d 58%, #0b1a2a 100%);
	box-shadow: var(--shadow-dark);
}

.service-card-dark h3 {
	color: #ffffff;
}

.service-card-dark .arrow-chip {
	background-color: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.service-card-dark .arrow-chip:hover {
	background-color: var(--color-cyan-300);
	color: var(--color-navy-950);
}

.service-card-dark :focus-visible {
	outline-color: var(--color-cyan-300);
}

@media (min-width: 560px) {
	.service-card {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		min-height: 250px;
	}

	.service-body {
		padding: clamp(1.5rem, 1.1rem + 1vw, 2.1rem) 0 clamp(1.4rem, 1rem + 1vw, 1.9rem) clamp(1.4rem, 1rem + 1vw, 2.1rem);
	}

	.service-art {
		padding: 0.75rem 0 0.75rem 0;
	}

	.service-art img {
		width: 112%;
		max-width: 420px;
		margin-right: -6%;
	}
}

@media (min-width: 900px) {
	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.125rem;
	}
}

/* Technologies (dark band) */
.tech {
	color: var(--color-on-dark-muted);
	background-color: var(--color-navy-900);
	background-image:
		url("../images/tech-waves.svg"),
		radial-gradient(45% 70% at 88% 0%, rgba(22, 100, 160, 0.42), rgba(7, 20, 33, 0) 72%),
		radial-gradient(40% 60% at 0% 100%, rgba(22, 100, 160, 0.28), rgba(7, 20, 33, 0) 72%);
	background-repeat: no-repeat;
	background-position: center bottom, 0 0, 0 0;
	background-size: 100% auto, 100% 100%, 100% 100%;
}

.tech-grid {
	display: grid;
	gap: var(--space-md);
}

.tech-group {
	padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(150, 215, 245, 0.16);
	background: linear-gradient(160deg, rgba(120, 200, 255, 0.09), rgba(20, 80, 130, 0.05));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tech-group-head {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
}

.tech-group h3 {
	font-size: 1.1875rem;
	color: #ffffff;
}

.tech-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.tech-list li {
	padding: 0.5rem 0.9rem;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(160, 225, 250, 0.24);
	background: rgba(255, 255, 255, 0.05);
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	color: #e3eef6;
}

@media (min-width: 640px) {
	.tech-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1140px) {
	.tech-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Process */
.process-list {
	display: grid;
	gap: var(--space-xl);
}

.process-step {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--space-md) 1.1rem;
	align-items: start;
}

.step-number {
	display: grid;
	place-items: center;
	min-width: 54px;
	height: 44px;
	padding-inline: 0.6rem;
	border-radius: 9px;
	background: var(--color-cyan-100);
	font-family: var(--font-heading);
	font-size: 1.3125rem;
	font-weight: 700;
	color: var(--color-navy-950);
}

.step-icon {
	width: 30px;
	height: 30px;
	margin-bottom: 0.55rem;
	color: var(--color-ink);
	stroke-width: 1.6;
}

.step-body h3 {
	margin-bottom: 0.45rem;
	font-size: clamp(1.1875rem, 1.1rem + 0.25vw, 1.375rem);
}

.step-body p {
	font-size: clamp(0.9375rem, 0.9rem + 0.12vw, 1rem);
	color: var(--color-text);
}

@media (min-width: 640px) {
	.process-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-2xl) var(--space-xl);
	}
}

@media (min-width: 1100px) {
	.process-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-md);
	}

	.process-step:not(:last-child) {
		padding-right: 3.6rem;
	}

	/* Connector line between two steps, at the height of the number chips. */
	.process-step:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 22px;
		right: 0.6rem;
		width: 2.4rem;
		height: 1px;
		background: #9db4c7;
	}
}

/* Call to action band */
.cta {
	padding-bottom: var(--space-md);
}

.cta-band {
	position: relative;
	display: grid;
	gap: var(--space-lg);
	align-items: center;
	overflow: hidden;
	padding: clamp(1.75rem, 1rem + 2.4vw, 2.75rem) clamp(1.5rem, 0.5rem + 3.4vw, 4rem);
	border-radius: var(--radius-xl);
	color: #c9d8e4;
	background-color: #0b1927;
	background-image:
		url("../images/cta-waves.svg"),
		linear-gradient(100deg, #0b1927 0%, #0a1d2f 55%, #07283f 100%);
	background-repeat: no-repeat;
	background-position: right bottom, 0 0;
	background-size: auto 100%, 100% 100%;
	box-shadow: var(--shadow-dark);
}

.cta-band h2 {
	margin-bottom: var(--space-sm);
	font-size: clamp(1.625rem, 1.15rem + 1.5vw, 2.375rem);
	color: #ffffff;
}

.cta-band p {
	max-width: 34em;
	font-size: var(--fs-lead);
}

.cta-band .btn {
	justify-self: start;
}

@media (min-width: 900px) {
	.cta-band {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: var(--space-2xl);
	}

	.cta-band .btn {
		justify-self: end;
	}
}

/* Contact */
.contact-layout {
	display: grid;
	gap: var(--space-xl);
}

.contact-intro h2 {
	margin-bottom: var(--space-md);
}

.contact-intro .btn {
	margin-top: var(--space-xl);
}

.contact-list {
	display: grid;
	gap: 0.9rem;
}

.contact-card {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	min-height: 84px;
	padding: 1.1rem 1.35rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-line);
	background: var(--color-surface);
	box-shadow: var(--shadow-card);
	color: var(--color-ink);
	text-decoration: none;
	transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition);
}

a.contact-card:hover {
	border-color: #7fe3f0;
	box-shadow: var(--shadow-raised);
	transform: translateY(-2px);
}

.contact-text {
	min-width: 0;
}

.contact-label {
	display: block;
	margin-bottom: 0.2rem;
	font-family: var(--font-heading);
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.contact-value {
	display: block;
	font-family: var(--font-heading);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-ink);
	overflow-wrap: anywhere;
}

@media (min-width: 900px) {
	.contact-layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--space-3xl);
		align-items: center;
	}
}

/* 8. Footer ------------------------------------------------------------------------------- */

.site-footer {
	padding-top: clamp(2.5rem, 1.8rem + 2.4vw, 3.5rem);
	border-top: 1px solid #e0ebf4;
	background: var(--color-band);
	font-size: var(--fs-small);
	color: var(--color-text);
}

.footer-grid {
	display: grid;
	gap: var(--space-xl);
}

.footer-logo {
	margin-bottom: var(--space-md);
}

.footer-logo img {
	width: auto;
	height: 46px;
}

.footer-tagline {
	max-width: 22em;
	font-size: 1rem;
}

.footer-title {
	margin-bottom: var(--space-md);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
}

.site-footer address {
	font-style: normal;
}

.footer-contact li {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.footer-contact li + li {
	margin-top: var(--space-sm);
}

.footer-contact .icon {
	width: 20px;
	height: 20px;
	color: var(--color-ink);
}

.footer-contact a,
.footer-links a {
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer-contact a:hover,
.footer-links a:hover {
	color: var(--color-blue-600);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-contact a,
.footer-links a {
	display: inline-block;
	padding-block: 2px;
}

.footer-links li + li {
	margin-top: 0.3rem;
}

.footer-links-arrows a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	max-width: 15rem;
}

.footer-links-arrows .icon {
	width: 16px;
	height: 16px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xs) var(--space-lg);
	margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
	padding-block: 1.1rem;
	border-top: 1px solid #d6e3ee;
	font-size: var(--fs-xsmall);
}

.footer-text-button {
	min-height: 32px;
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.footer-text-button:hover {
	color: var(--color-blue-600);
}

@media (min-width: 640px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: 1.3fr 1.15fr 1fr 1fr;
		gap: 0;
	}

	.footer-column {
		padding-left: clamp(1.5rem, 0.5rem + 2vw, 2.75rem);
		border-left: 1px solid #d0dfeb;
	}

	.footer-grid > * + * {
		margin-left: clamp(1rem, 0rem + 1.5vw, 2rem);
	}
}

/* Error page (404.html) */
.error-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-color: var(--color-navy-900);
}

.error-hero {
	flex: 1;
	display: flex;
	align-items: center;
	padding-block: var(--section-space);
}

.error-hero h1 {
	max-width: 14em;
}

/* 9. Consent banner ------------------------------------------------------------------------ */

.consent {
	position: fixed;
	left: var(--space-md);
	right: var(--space-md);
	bottom: var(--space-md);
	z-index: 70;
	max-width: 440px;
	padding: 1.35rem;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(150, 210, 240, 0.2);
	background: #0c1c2e;
	color: var(--color-on-dark-muted);
	box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.75);
}

.consent-title {
	margin-bottom: var(--space-xs);
	font-size: 1.0625rem;
	color: #ffffff;
}

.consent-text {
	margin-bottom: var(--space-md);
	font-size: 0.875rem;
}

.consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* 10. Motion ---------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
