/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	/* Raw palette — blues sampled from salesforce.com's brand palette */
	--blue-900: #001639;
	--blue-800: #032d60;
	--blue-700: #0176d3;
	--blue-600: #0b5cab;
	--blue-500: #1b96ff;
	--blue-100: #eaf5fe;
	--slate-900: #1c1f26;
	--slate-600: #58626c;
	--slate-400: #8b95a1;
	--paper: #f6f8fa;
	--line: #e1e5ea;
	--white: #ffffff;

	/* Semantic */
	--color-bg: var(--white);
	--color-bg-alt: var(--paper);
	--color-border: var(--line);
	--color-text: var(--slate-900);
	--color-text-muted: var(--slate-600);
	--color-primary: var(--blue-700);
	--color-primary-dark: var(--blue-800);
	--color-primary-hover: var(--blue-800);
	--color-primary-contrast: var(--white);
	--color-primary-tint: var(--blue-100);
	--color-accent: var(--blue-700);
	--color-inverse-bg: var(--blue-900);
	--color-inverse-text: var(--white);
	--color-inverse-text-muted: rgba(255, 255, 255, 0.72);
	--color-inverse-border: rgba(255, 255, 255, 0.16);

	/* Type */
	--font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1rem;
	--fs-lg: 1.125rem;
	--fs-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
	--fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
	--fs-3xl: clamp(1.875rem, 1.5rem + 1.75vw, 2.5rem);
	--fs-4xl: clamp(2.25rem, 1.7rem + 2.5vw, 3.25rem);
	--fs-5xl: clamp(2.75rem, 1.9rem + 3.75vw, 4.25rem);
	--lh-tight: 1.15;
	--lh-snug: 1.35;
	--lh-normal: 1.6;

	/* Spacing (4px base) */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-8: 3rem;
	--space-10: 4rem;
	--space-12: 5rem;
	--space-16: 7rem;

	/* Shape */
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--radius-full: 999px;
	--shadow-sm: 0 1px 2px rgba(15, 42, 34, 0.06), 0 1px 1px rgba(15, 42, 34, 0.04);
	--shadow-md: 0 8px 24px rgba(15, 42, 34, 0.1);
	--shadow-lg: 0 20px 48px rgba(15, 42, 34, 0.16);

	/* Layout */
	--container-max: 1200px;
	--container-pad: clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   Font
   ========================================================================== */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-variable-latin.woff2") format("woff2");
}

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

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

[id] {
	scroll-margin-top: 90px;
}

@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;
		scroll-behavior: auto !important;
	}
}

body {
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-normal);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

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

h1 {
	font-size: var(--fs-5xl);
}
h2 {
	font-size: var(--fs-3xl);
}
h3 {
	font-size: var(--fs-xl);
	line-height: var(--lh-snug);
}
h4 {
	font-size: var(--fs-lg);
	line-height: var(--lh-snug);
}

p {
	color: var(--color-text-muted);
}

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

ul,
ol {
	padding-left: 1.25em;
	color: var(--color-text-muted);
}

table {
	border-collapse: collapse;
	width: 100%;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

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

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.container--narrow {
	max-width: 820px;
}

.section {
	padding-block: var(--space-12);
}

.section--tight {
	padding-block: var(--space-8);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
}

.eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-primary);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--space-4);
	top: -100px;
	background: var(--color-inverse-bg);
	color: var(--color-inverse-text);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-sm);
	z-index: 1000;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: var(--space-4);
}

[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1;
		transform: none;
	}
}
