/* ==========================================================================
   Design system v2. Google-adjacent: white ground, generous space, colour used
   sparingly as accent and in gradient keywords.
   ========================================================================== */

:root {
	/* Brand accents */
	--blue: #4285f4;
	--blue-ink: #1a73e8;
	--red: #ea4335;
	--red-ink: #d93025;
	--yellow: #fbbc04;
	--yellow-ink: #f29900;
	--green: #34a853;
	--green-ink: #188038;
	--purple: #9b72cb;

	/* Ground and ink */
	--bg: #ffffff;
	--bg-soft: #f8f9fa;
	--bg-sink: #f1f3f4;
	--ink: #1f1f1f;
	--ink-2: #444746;
	--ink-3: #747775;
	--line: #e3e3e3;
	--line-soft: #efefef;

	/* Tints for cards */
	--tint-blue: #e8f0fe;
	--tint-red: #fce8e6;
	--tint-yellow: #fef7e0;
	--tint-green: #e6f4ea;

	/* Signature gradient, used on keywords */
	--grad: linear-gradient(96deg, #4285f4 0%, #9b72cb 48%, #d96570 100%);

	/* Space */
	--s1: 8px;
	--s2: 16px;
	--s3: 24px;
	--s4: 32px;
	--s5: 48px;
	--s6: 72px;
	--s7: 112px;
	--s8: 160px;

	/* Shape */
	--r-sm: 12px;
	--r-md: 20px;
	--r-lg: 28px;
	--r-xl: 40px;
	--r-pill: 999px;

	--container: 1160px;
	--nav-h: 68px;

	--font-display: "Figtree", "Google Sans", system-ui, sans-serif;
	--font-text: "Inter", system-ui, -apple-system, sans-serif;

	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.08;
	text-wrap: balance;
}

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

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

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

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

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
	border-radius: 6px;
}

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

.wrap {
	width: min(100% - var(--s5), var(--container));
	margin-inline: auto;
}

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

.section-head {
	max-width: 760px;
	margin-bottom: var(--s6);
}

.eyebrow {
	font-family: var(--font-text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-3);
	margin-bottom: var(--s3);
}

h2.section-title {
	font-size: clamp(32px, 4.4vw, 52px);
}

.section-head p {
	margin-top: var(--s3);
	font-size: clamp(17px, 1.5vw, 20px);
	color: var(--ink-2);
	max-width: 62ch;
}

/* --- Gradient keyword ----------------------------------------------------- */

.g {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	/* keeps descenders from clipping in some browsers */
	padding-bottom: 0.06em;
}

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

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 26px;
	border-radius: var(--r-pill);
	font-family: var(--font-text);
	font-size: 16px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
		background-color 220ms var(--ease), border-color 220ms var(--ease);
	white-space: nowrap;
}

.btn svg {
	transition: transform 260ms var(--ease);
}

.btn:hover svg {
	transform: translateX(4px);
}

.btn-primary {
	background: var(--ink);
	color: #fff;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(31, 31, 31, 0.24);
}

.btn-ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}

.btn-ghost:hover {
	background: var(--bg-soft);
	border-color: var(--ink-3);
	transform: translateY(-2px);
}

/* --- Reveal on scroll ----------------------------------------------------- */

/* Hidden only when JS is running (the `js` class is set by an inline script in
   the head). Without JS, or if the script fails, everything stays visible
   rather than leaving a blank page. */
.js .reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 700ms var(--ease), transform 700ms var(--ease);
	transition-delay: calc(var(--i, 0) * 70ms);
	will-change: opacity, transform;
}

.js .reveal.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

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