/* ============================================================
   MURMUR · Foundations
   Direction: LoveFrom x Moncler. Black on white, aluminium,
   generous silence. Colour only where it carries meaning.
   ============================================================ */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/Instrument-Sans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/Instrument-Sans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/Instrument-Sans-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBM-Plex-Mono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBM-Plex-Mono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  /* Palette. Locked, non negotiable. */
  --black: #111318;
  --white: #ffffff;
  --legora-paper: #fefefc;
  --grey: #f7f8fa;
  --blue: #111318;
  --blue-hover: #30343b;
  --blue-pressed: #000000;
  --murmur-orange: #FDAE7A;
  --murmur-green: #B6B383;
  --murmur-blue: #B6D0E5;
  --murmur-yellow: #E8E1AB;
  --brand-green: var(--murmur-green);
  --brand-green-hover: color-mix(in srgb, var(--murmur-green) 88%, var(--black));
  --brand-green-pressed: color-mix(in srgb, var(--murmur-green) 76%, var(--black));
  --brand-green-mid: var(--murmur-green);
  --brand-green-soft: color-mix(in srgb, var(--murmur-green) 24%, var(--white));
  --ink-soft: #303640;
  --text-muted: #5d6470;
  --text-faint: #7a828e;
  --line: #dde1e7;
  --line-strong: #c7cdd6;
  --orange: var(--murmur-orange); /* brand words, voice, positioning */
  --green: var(--murmur-green);   /* ready, delivered, action */
  --sky: var(--murmur-blue);      /* context, request, understanding */
  --yellow: var(--murmur-yellow); /* proof, facts, differentiators */

  /* Ink levels. Built from opacity, never from new greys. */
  --ink-100: rgba(0, 0, 0, 1);
  --ink-70: rgba(0, 0, 0, 0.70);
  --ink-52: rgba(0, 0, 0, 0.52);
  --ink-38: rgba(0, 0, 0, 0.38);
  --ink-14: rgba(0, 0, 0, 0.14);
  --ink-08: rgba(0, 0, 0, 0.08);

  --paper-100: rgba(255, 255, 255, 1);
  --paper-70: rgba(255, 255, 255, 0.70);
  --paper-46: rgba(255, 255, 255, 0.46);
  --paper-16: rgba(255, 255, 255, 0.16);

  /* Type */
  --font: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-compact: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Sized so the longer headline line still fits the 1400px shell at
     every desktop width. Above ~1560px the shell caps but the font
     would keep growing, so the max matters as much as the vw factor. */
  --t-hero: clamp(2.4rem, 5.2vw, 4.6rem);
  --t-h2: clamp(1.85rem, 3.5vw, 3.4rem);
  --t-h3: clamp(1.15rem, 1.6vw, 1.5rem);
  --t-lead: clamp(1.05rem, 1.45vw, 1.4rem);
  --t-body: clamp(0.95rem, 1.05vw, 1.0625rem);
  --t-small: 0.875rem;
  --t-micro: 0.6875rem;

  --t-stat: clamp(3rem, 6vw, 5.5rem);

  /* Space */
  --gutter: 20px;
  --section-y: clamp(6.5rem, 13vh, 11.5rem);
  --max: 1440px;
  --measure: 62ch;
  --announcement-height: 40px;

  /* Motion. Slow, precise, never decorative. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-micro: 140ms;
  --dur: 220ms;
  --dur-long: 480ms;

  /* Radii */
  --r-outer: 30px;
  --r-inner: 17px;
  --r-pill: 999px;
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* `clip`, not `hidden`: `overflow-x: hidden` turns the element into a
     scroll container, which breaks scroll anchoring and sticky children. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--legora-paper);
  color: var(--black);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

::selection {
  background: var(--blue);
  color: var(--white);
}

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

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--grey { background: var(--grey); }

.section--black {
  background: var(--black);
  color: var(--white);
}

/* ---------- Type primitives ---------- */

.eyebrow {
  font-family: var(--font-compact);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-52);
}

.section--black .eyebrow { color: var(--paper-46); }

.index {
  font-family: var(--font-compact);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-38);
}

.section--black .index { color: var(--paper-46); }

.h2 {
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.h2 span { display: block; }

.lead {
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--ink-70);
  max-width: var(--measure);
}

.section--black .lead { color: var(--paper-70); }

.body {
  max-width: var(--measure);
  color: var(--ink-70);
}

.section--black .body { color: var(--paper-70); }

.cite {
  display: block;
  font-family: var(--font-compact);
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section--black .cite { color: var(--paper-46); }

/* ---------- Statistic primitives ---------- */

.stat__value {
  display: block;
  font-size: var(--t-stat);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 1rem;
  max-width: 30ch;
  color: var(--ink-70);
  line-height: 1.42;
}

.section--black .stat__label { color: var(--paper-70); }

.stat__cite { margin-top: 0.85rem; }

/* ---------- Hardware surface ----------
   brand-dna 12. The aluminium edge is the brand's signature object.
   Reserved for key moments: the product demonstration and the
   conversion block. Never on a button, a logo or a decoration. */

.hardware {
  position: relative;
  border-radius: var(--r-outer);
  background: var(--white);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.03),
    0 40px 90px -50px rgba(0, 0, 0, 0.30),
    0 8px 26px -18px rgba(0, 0, 0, 0.22);
}

/* A 1px ring: lit along the top edge, darker along the bottom. */
.hardware::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(0, 0, 0, 0.10) 42%,
    rgba(0, 0, 0, 0.07) 62%,
    rgba(0, 0, 0, 0.20) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

@media (max-width: 520px) {
  .hardware { border-radius: 22px; }
}

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

.btn {
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px 0 20px;
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.006em;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:hover {
  --btn-bg: var(--black);
}

.btn:active {
  --btn-bg: var(--black);
}

.btn i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  background: transparent;
  color: inherit;
  font-style: normal;
  font-size: 0.72em;
  line-height: 1;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur-micro) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:hover i {
  background: transparent;
  color: var(--blue);
  transform: translate(2px, -1px);
}

.btn:active i {
  background: transparent;
  color: var(--blue-pressed);
  transform: translate(1px, 0);
}

.section--black .btn,
.btn--inverse {
  --btn-bg: var(--white);
  --btn-fg: var(--black);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-small);
  color: var(--ink-52);
  transition: color var(--dur-micro) var(--ease);
}

.link:hover { color: var(--blue); }
.link i { font-style: normal; transition: transform var(--dur-micro) var(--ease); }
.link:hover i { transform: translateX(3px); }

/* ---------- Editorial conversion cue ---------- */

.micro-cta {
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.micro-cta p {
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-52);
}

.micro-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--black);
  transition: color var(--dur-micro) var(--ease);
}

.micro-cta a i {
  font-size: 0.78em;
  font-style: normal;
  transition: transform var(--dur-micro) var(--ease);
}

.micro-cta a:hover { color: var(--blue); }
.micro-cta a:hover i { transform: translate(2px, -1px); }

.section--black .micro-cta {
  border-top-color: rgba(255, 255, 255, 0.24);
}

.section--black .micro-cta p { color: var(--paper-70); }
.section--black .micro-cta a { color: var(--white); }
.section--black .micro-cta a:hover { color: var(--blue); }

/* ---------- Navigation ---------- */

.announcement {
  position: fixed;
  inset: 0 0 auto;
  z-index: 101;
  height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-green);
  color: var(--black);
}

.announcement__link {
  min-height: 100%;
  padding-inline: var(--gutter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1;
  white-space: nowrap;
}

.announcement__link i {
  font-size: 0.78em;
  font-style: normal;
  opacity: 0.72;
  transition:
    opacity var(--dur-micro) var(--ease),
    transform var(--dur-micro) var(--ease);
}

.announcement__link:hover i {
  opacity: 1;
  transform: translateX(3px);
}

.announcement__link:focus-visible {
  outline-color: var(--black);
  outline-offset: -4px;
}

.nav {
  --nav-height: 72px;
  --nav-logo-width: 134px;
  --nav-logo-height: 32px;
  --nav-link-size: 0.9375rem;
  --nav-link-weight: 500;
  --nav-link-tracking: -0.01em;
  --nav-cta-height: 42px;
  --nav-cta-text-size: 0.875rem;
  --nav-cta-icon-size: 30px;
  position: fixed;
  inset: var(--announcement-height) 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  padding-inline:
    max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--black);
  transition: color var(--dur) var(--ease);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 -1px rgba(17, 19, 24, 0.08);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav.is-scrolled::before { opacity: 1; }

.nav__brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: var(--nav-logo-width);
  height: var(--nav-logo-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav__brand img {
  width: var(--nav-logo-width);
  height: var(--nav-logo-height);
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: filter var(--dur) var(--ease);
}

.nav__links {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 1.9rem);
  font-size: var(--nav-link-size);
  font-weight: var(--nav-link-weight);
  letter-spacing: var(--nav-link-tracking);
  color: var(--ink-soft);
}

.nav__links a {
  position: relative;
  padding-block: 0.4rem;
  transition: color 180ms var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--ease);
}

.nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__links a[aria-current="page"] {
  color: var(--blue);
}

.nav__links a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}

.nav__cta {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--nav-cta-height);
  padding: 0 5px 0 16px;
  border: 1px solid var(--brand-green);
  border-radius: var(--r-pill);
  background: var(--brand-green);
  color: var(--black);
  font-size: var(--nav-cta-text-size);
  font-weight: var(--nav-link-weight);
  letter-spacing: var(--nav-link-tracking);
  opacity: 1;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.nav__cta i {
  width: var(--nav-cta-icon-size);
  height: var(--nav-cta-icon-size);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 var(--nav-cta-icon-size);
  background: var(--white);
  color: var(--black);
  font-size: 0.72em;
  font-style: normal;
  line-height: 1;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur-micro) var(--ease),
    transform var(--dur) var(--ease);
}

.nav__cta:hover {
  border-color: var(--brand-green-hover);
  background: var(--brand-green-hover);
  color: var(--black);
  opacity: 1;
}

.nav__cta:hover i {
  background: var(--white);
  color: var(--black);
  transform: translate(2px, -1px);
}

.nav__cta:active i {
  background: var(--white);
  color: var(--black);
  transform: translate(1px, 0);
}

/* Mobile menu. A <details> disclosure so it works without JS. */

.nav__menu { display: none; }

.nav__menu > summary {
  width: 40px;
  height: 40px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}

.nav__menu > summary::-webkit-details-marker { display: none; }

.nav__menu > summary i {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav__menu[open] > summary i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__menu[open] > summary i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.nav__panel {
  position: fixed;
  inset: calc(var(--announcement-height) + 72px) 0 auto 0;
  display: grid;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--ink-08);
  color: var(--black);
}

.nav__panel a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--ink-08);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.022em;
}

.nav__panel a:last-child { border-bottom: 0; }
.nav__panel a:hover { color: var(--blue); }

.nav__panel small {
  font-family: var(--font-compact);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  color: var(--ink-38);
}

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

.footer {
  padding-block: clamp(3rem, 6vh, 5rem);
  border-top: 1px solid var(--ink-08);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.footer__brand {
  position: relative;
  width: 100px;
  height: 26px;
  overflow: hidden;
  opacity: 0.9;
}

.footer__brand img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: var(--t-small);
  color: var(--text-muted);
}

.footer__links a:hover { color: var(--blue); }

.footer__note {
  justify-self: end;
  font-family: var(--font-compact);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Unified site footer ---------- */

.site-footer {
  --blue: #111318;
  background: #fff;
  border-top: 1px solid var(--ink-08);
  color: var(--black);
}

.site-footer__inner {
  min-height: clamp(340px, 35vw, 440px);
  padding-block: clamp(52px, 6vw, 76px) 28px;
  display: flex;
  flex-direction: column;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(420px, 7fr);
  gap: 40px;
  align-items: start;
}

.site-footer__brand {
  width: min(420px, 100%);
  display: block;
}

.site-footer__brand img {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer__links {
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 2.6vw, 36px);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: var(--t-small);
}

.site-footer__links a {
  transition: color var(--dur-micro) var(--ease);
}

.site-footer__links a:hover,
.site-footer__links a[aria-current="page"] {
  color: var(--blue);
}

.site-footer__bottom {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--ink-08);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-muted);
  font-family: var(--font-compact);
  font-size: var(--t-micro);
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Shared pre-footer CTA ---------- */

.prefooter-cta {
  --prefooter-radius: clamp(24px, 2vw, 28px);
  --glass-text-primary: #202022;
  --glass-text-secondary: #787a7e;
  --glass-text-muted: #8e8e91;
  --glass-edge-light: rgba(255, 255, 255, 0.96);
  --glass-edge-dark: rgba(10, 11, 12, 0.88);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(72px, 8vw, 128px);
  background:
    linear-gradient(
      180deg,
      #c8cacb 0%,
      #d5d8da 22%,
      #e5e8ea 43%,
      #edf0f2 58%,
      #edf0f2 100%
    );
}

.prefooter-cta::before,
.prefooter-cta::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}

.prefooter-cta::before {
  width: min(46vw, 720px);
  aspect-ratio: 1;
  top: -54%;
  right: -9%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 69%);
}

.prefooter-cta::after {
  width: min(34vw, 520px);
  aspect-ratio: 1;
  bottom: -43%;
  left: 2%;
  background: radial-gradient(circle, rgba(154, 159, 163, 0.16), rgba(154, 159, 163, 0) 72%);
}

.prefooter-cta .shell {
  position: relative;
  z-index: 1;
}

.prefooter-cta__card {
  width: min(100%, 1240px);
  min-height: clamp(500px, 40vw, 580px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--prefooter-radius);
  corner-shape: squircle;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.18) 47%,
      rgba(255, 255, 255, 0.08) 100%
    );
  color: var(--glass-text-primary);
  -webkit-backdrop-filter: blur(20px) saturate(0.85);
  backdrop-filter: blur(20px) saturate(0.85);
  box-shadow:
    0 -1px 0 var(--glass-edge-dark),
    0 1.5px 0 rgba(8, 9, 10, 0.92),
    inset 0 1px 0 var(--glass-edge-light),
    inset 1px 0 0 rgba(255, 255, 255, 0.32),
    inset -1px 0 0 rgba(60, 64, 68, 0.14),
    0 10px 24px rgba(70, 75, 80, 0.035);
}

.prefooter-cta__copy {
  min-width: 0;
  padding: clamp(34px, 4.2vw, 64px) clamp(28px, 3.5vw, 54px) clamp(28px, 3.2vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.prefooter-cta__eyebrow {
  margin: 0 0 clamp(30px, 4vw, 62px);
  font-family: var(--font-compact);
  font-size: var(--t-micro);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glass-text-muted);
}

.prefooter-cta h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.5rem, 4.2vw, 4.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.prefooter-cta__copy > p:not(.prefooter-cta__eyebrow) {
  max-width: 36ch;
  margin: clamp(28px, 3vw, 44px) 0 0;
  color: var(--glass-text-secondary);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.prefooter-cta__button {
  min-height: 48px;
  margin-top: auto;
  padding: 7px 7px 7px 20px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.53),
      rgba(255, 255, 255, 0.28)
    );
  color: #222224;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(25, 27, 28, 0.52),
    0 -1px 2px rgba(40, 42, 44, 0.06);
  transition:
    background var(--dur-micro) var(--ease),
    box-shadow var(--dur-micro) var(--ease),
    transform var(--dur-micro) var(--ease),
    color var(--dur-micro) var(--ease);
}

.prefooter-cta__button i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      rgba(245, 245, 243, 0.72),
      rgba(207, 209, 208, 0.72)
    );
  color: #4b4c4a;
  font-size: 0.95rem;
  font-style: normal;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(70, 72, 72, 0.22),
    0 1px 2px rgba(40, 42, 42, 0.08);
  transition:
    background var(--dur-micro) var(--ease),
    transform var(--dur-micro) var(--ease);
}

.prefooter-cta__button:hover {
  color: #202022;
  transform: translateY(-1px);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.68),
      rgba(255, 255, 255, 0.38)
    );
}

.prefooter-cta__button:hover i {
  transform: translate(2px, -1px);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 253, 0.82),
      rgba(215, 217, 217, 0.8)
    );
}

.prefooter-cta__button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(30, 32, 34, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}

.prefooter-cta__button:focus-visible {
  outline: 2px solid rgba(45, 47, 50, 0.55);
  outline-offset: 3px;
}

.prefooter-cta__visual {
  position: relative;
  min-width: 0;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(
      145deg,
      rgba(245, 246, 247, 0.28),
      rgba(219, 222, 224, 0.08)
    );
  box-shadow:
    inset 1px 0 0 rgba(63, 66, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.prefooter-cta__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1) contrast(0.94);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.94) 62%, rgba(0, 0, 0, 0.7) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.94) 62%, rgba(0, 0, 0, 0.7) 100%);
}

/* ---------- Reveal ----------
   Content is visible by default. The hidden state is only applied
   once JS has confirmed it can reveal it again, so a failed or
   blocked script can never swallow the page. */

.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-long) var(--ease),
    transform var(--dur-long) var(--ease);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav {
    --nav-logo-width: 114px;
    --nav-logo-height: 27px;
    --nav-link-size: 0.875rem;
    --nav-cta-text-size: 0.875rem;
    height: var(--nav-height);
    padding-inline: var(--gutter);
    grid-template-columns: 1fr auto 1fr;
  }

  .nav__brand {
    grid-column: 2;
    width: var(--nav-logo-width);
    height: var(--nav-logo-height);
  }

  .nav__brand img {
    width: var(--nav-logo-width);
    height: var(--nav-logo-height);
  }

  .nav__links { display: none; }

  .nav__menu {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: block;
  }

  .nav__menu > summary {
    width: auto;
    height: 40px;
    display: flex;
    align-items: center;
    font-size: var(--nav-link-size);
  }

  .nav__menu > summary::before { content: "Menu"; }
  .nav__menu[open] > summary::before { content: "Close"; }
  .nav__menu > summary i { display: none; }

  .nav__cta {
    grid-column: 3;
    min-height: var(--nav-cta-height);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--black);
    font-size: 0;
  }

  .nav__cta::before {
    content: "Demo";
    font-size: var(--nav-cta-text-size);
  }

  .nav__cta i { display: none; }

  .nav__cta:hover {
    border-color: transparent;
    background: transparent;
    color: var(--brand-green);
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.75rem;
  }

  .footer__note { justify-self: center; }

  .site-footer__inner {
    min-height: 360px;
    padding-block: 44px 24px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer__brand {
    width: min(360px, 82vw);
  }

  .site-footer__links {
    padding-top: 0;
    justify-content: flex-start;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .prefooter-cta {
    padding-block: clamp(56px, 10vw, 88px);
  }

  .prefooter-cta__card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .prefooter-cta__copy {
    min-height: clamp(420px, 70vw, 500px);
  }

  .prefooter-cta__visual {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
    box-shadow:
      inset 0 1px 0 rgba(63, 66, 68, 0.08),
      inset 1px 0 0 rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 520px) {
  :root { --announcement-height: 36px; }

  .announcement__link {
    gap: 5px;
    padding-inline: 6px;
    font-size: clamp(0.5625rem, 2.75vw, 0.75rem);
  }

  .micro-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .nav__brand {
    --nav-logo-width: 105px;
    --nav-logo-height: 25px;
    width: var(--nav-logo-width);
    height: var(--nav-logo-height);
  }

  .nav__brand img {
    width: var(--nav-logo-width);
    height: var(--nav-logo-height);
  }

  .prefooter-cta {
    --prefooter-radius: 24px;
    padding-block: 48px;
  }

  .prefooter-cta__card {
    border-radius: var(--prefooter-radius);
  }

  .prefooter-cta__copy {
    min-height: 390px;
    padding: 26px 20px 22px;
  }

  .prefooter-cta__eyebrow {
    margin-bottom: 34px;
  }

  .prefooter-cta h2 {
    max-width: 11ch;
    font-size: clamp(2.25rem, 11.5vw, 3.15rem);
  }

  .prefooter-cta__copy > p:not(.prefooter-cta__eyebrow) {
    margin-top: 24px;
  }

  .prefooter-cta__button {
    width: 100%;
    justify-content: space-between;
  }

  .prefooter-cta__visual {
    aspect-ratio: 5 / 4;
  }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 48px; }
}

@media (min-width: 1440px) {
  :root { --gutter: 64px; }
}

/* ---------- Reduced motion ---------- */

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

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

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

/* Preserve Perplexity's brand turquoise in every context, including
   selected demo controls that otherwise turn third-party marks white. */
img[src*="perplexity.svg"] {
  filter: none !important;
}
