/* Base tokens, font face, resets, layout containers, and shared UI primitives. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../public/assets/fonts/inter-latin-variable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --color-ink: #0c173f;
  --color-muted: #4d5e8b;
  --color-blue: #0754ff;
  --color-blue-dark: #0042df;
  --color-focus: #003bbb;
  --color-page: #f5f8ff;
  --radius-button: 20px;
  --radius-panel: 30px;
  --container: 76.5rem;
  --gutter: clamp(1.25rem, 7.4vw, 7rem);
  --header-height: clamp(3rem, 4.7vw, 4.25rem);
  --section-gap: clamp(4rem, 8vw, 7.5rem);
  --closing-gap: clamp(2rem, 4vw, 4rem);
  --font-sans: Inter, Arial, Helvetica, sans-serif;

  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-ink);
  background: var(--color-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Hide only the page scrollbar; wheel, touch, and keyboard scrolling remain enabled. */
html,
body {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

html:not(.has-gsap-smoother) {
  scroll-behavior: smooth;
}

body,
h1,
p,
figure {
  margin: 0;
}

body {
  position: relative;
  isolation: isolate;
}

/* Fixed backdrop canvas behind the entire landing page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--color-page) url("../public/assets/images/bg-desktop.webp") center top / cover no-repeat;
  transform: translateZ(0);
}

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

button {
  font: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

#smooth-content {
  position: relative;
  overflow-x: clip;
}

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

.skip-link {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 10;
  padding: 1rem;
  border-radius: 12px;
  background: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-block;
  padding: .5em 1.1em;
  border-radius: 100px;
  color: #004aff;
  background: linear-gradient(100deg, #e8f2ff, #ece8ff);
  font-size: clamp(.625rem, .9vw, .8125rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-block-end: clamp(1.25rem, 1.95vw, 1.75rem);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 3.625rem;
  padding: 1rem 2.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
  transition: background .18s ease, box-shadow .18s ease;
}

.button-primary {
  color: white;
  background: linear-gradient(180deg, #2689ff 0%, #0861ff 45%, #0045e9 100%);
  border-color: #ffffff45;
  box-shadow: inset 0 1px 1px #ffffff66, 0 8px 16px #0b5af51a;
}

.button-primary:hover {
  background: linear-gradient(180deg, #177aff, var(--color-blue-dark));
  box-shadow: inset 0 1px 1px #ffffff66, 0 9px 20px #0b5af52b;
}

.button-small {
  min-height: clamp(2rem, 3.05vw, 2.75rem);
  padding: .65em 1.3em;
  border-radius: 15px;
  font-size: clamp(.75rem, 1.04vw, .9375rem);
}

@media (max-width: 860px) {
  :root {
    --gutter: 1.5rem;
    --header-height: 5rem;
  }

  body::before {
    background-image: url("../public/assets/images/bg-mobile.webp");
  }
}

@media (max-width: 430px) {
  :root {
    --gutter: 1.25rem;
  }
}

@media (forced-colors: active) {
  .button {
    border: 1px solid ButtonText;
  }
}
