/* Design "Structure v2 · Hybride LKN + calques": the LKN ground (deep teal), white
   text, the yellow accent, Sora for headings. Light bands (.section--light) carry
   the explanatory sections. */
@font-face {
  font-family: 'Sora';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/sora-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-weight: 700 800;
  font-display: swap;
  src: url('/fonts/sora-latin-700-normal.woff2') format('woff2');
}

:root {
  --c-bg: hsl(197 39% 18%);
  --c-bg-deep: hsl(197 39% 16%);
  --c-surface: hsl(197 39% 21%);
  --c-surface-2: hsl(197 30% 25%);
  --c-text: hsl(0 0% 100%);
  --c-text-soft: hsl(0 0% 92%);
  --c-muted: hsl(200 15% 75%);
  --c-line: hsl(197 25% 30%);
  --c-line-strong: hsl(197 25% 36%);
  --c-accent: hsl(50 97% 69%);
  --c-accent-ink: hsl(197 39% 15%);
  --c-light: hsl(197 30% 95%);
  --c-light-ink: hsl(197 39% 15%);
  --c-light-muted: hsl(197 25% 30%);
  --c-light-line: hsl(197 25% 85%);
  --c-ok: hsl(150 55% 62%);
  --radius: 14px;
  --radius-sm: 6px;
  --wrap: 1240px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--c-text);
  background: var(--c-bg);
}

img,
iframe,
video {
  max-width: 100%;
}

a {
  color: var(--c-accent);
}

a:hover {
  color: hsl(50 97% 80%);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  /* modern-web-guidance « typography »: balanced headlines */
  text-wrap: balance;
}

/* Running text: no orphan word at the end of a paragraph, long URLs wrap. */
p,
li,
dd,
figcaption,
blockquote {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.25rem, 3.4vw + 1rem, 3.625rem);
  margin: 0 0 0.5em;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem);
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  font-weight: 700;
}

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

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

/* The dark band, one step deeper than the ground. */
.section--alt {
  background: var(--c-bg-deep);
  border-block: 1px solid var(--c-line);
}

/* The light band: explanatory sections, as in the design. */
.section--light {
  background: var(--c-light);
  color: var(--c-light-ink);
  --c-muted: var(--c-light-muted);
  --c-line: var(--c-light-line);
  --c-surface: hsl(0 0% 100%);
  color-scheme: light;
}

.section--light a:not(.btn) {
  color: var(--c-light-ink);
}

.eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.section--light .eyebrow {
  color: var(--c-light-muted);
}

.lead {
  font-size: 1.1875rem;
  color: var(--c-muted);
  max-width: 46rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--c-accent);
  cursor: pointer;
  font-size: 1rem;
  transition: background 150ms;
}

.btn:hover {
  background: hsl(50 97% 78%);
  border-color: hsl(50 97% 78%);
  color: var(--c-accent-ink);
}

.btn--sm {
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
}

.btn--lg {
  min-height: 52px;
  padding: 0.85rem 1.7rem;
  font-size: 1.0625rem;
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-line-strong);
  font-weight: 500;
}

.btn--ghost:hover {
  background: var(--c-surface);
  border-color: var(--c-line-strong);
  color: var(--c-text);
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

/* At most three columns: six cards make two even rows instead of 4 + 2.
   22rem cards fit three across the 1240px wrap, never four. */
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.card h3 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid var(--c-line-strong);
  color: var(--c-muted);
}

.badge--ok {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
}

/* A browser window around a screenshot or a video. */
.window {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  box-shadow: 0 40px 90px hsl(197 60% 5% / 0.6);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.75rem;
  color: var(--c-muted);
}

.window__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: hsl(197 25% 34%);
}

.window__bar span {
  margin-left: 8px;
}

.window img,
.window video {
  display: block;
  width: 100%;
}

.prose {
  max-width: 46rem;
}

/* Long reading: lines of 60 to 75 characters, a looser rhythm, paragraphs
   spaced, hyphenation on narrow screens (French, from <html lang="fr">). */
.prose :where(p, li) {
  max-width: 68ch;
  color: var(--c-text-soft);
  line-height: 1.7;
}

.prose :where(p) {
  margin-block: 0 1.1em;
}

.prose :where(li + li) {
  margin-top: 0.4em;
}

@media (max-width: 40em) {
  .prose :where(p, li) {
    hyphens: auto;
  }
}

.prose :where(h2, h3) {
  margin-top: 2.5rem;
}

input,
select,
textarea {
  font: inherit;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
}

table {
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--c-line);
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Page transitions (cross-document view transitions) ----------
   A progressive enhancement (modern-web-guidance « cross-document-transitions »):
   browsers without support navigate as usual. The page cross-fades; the page
   title (the h1) and the hero visual (.vt-visual) rise in on their own layer.
   The header does not move: its old snapshot is dropped, so it never shows
   twice during the fade. Off for visitors who ask for reduced motion. */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

.header {
  view-transition-name: site-header;
}

::view-transition-group(site-header) {
  animation: none;
}

::view-transition-old(site-header) {
  display: none;
}

::view-transition-new(site-header) {
  animation: none;
}

::view-transition-old(root) {
  animation: 180ms ease-in both vt-fade-out;
}

::view-transition-new(root) {
  animation: 300ms ease-out 60ms both vt-fade-in;
}

/* One title and one visual per page: the h1 and the hero's .vt-visual. */
main h1 {
  view-transition-name: page-title;
}

.vt-visual {
  view-transition-name: page-visual;
}

/* No morph between two different titles or pictures: the old one fades,
   the new one rises in where it belongs. */
::view-transition-group(page-title),
::view-transition-group(page-visual) {
  animation: none;
}

::view-transition-old(page-title),
::view-transition-old(page-visual) {
  display: none;
}

::view-transition-new(page-title) {
  animation: 420ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both vt-rise;
}

::view-transition-new(page-visual) {
  animation: 520ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both vt-settle;
}

@keyframes vt-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
  }
}

@keyframes vt-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes vt-settle {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

/* Content that slides in from the side (scroll-driven motion below) must not
   widen the page: clip, not hidden, so main is no scroll container. */
main {
  overflow-x: clip;
}

/* The root scroller tracks the scroll direction, for the header that hides
   on the way down (Header.astro). In-page targets land below the bar. */
html {
  container-type: scroll-state;
}
:target {
  scroll-margin-top: 5rem;
}

/* ---------- Scroll-driven motion ----------
   All decorative and progressive: without support, or with reduced motion, the
   page is simply there. Only transform and opacity are animated, on the
   compositor. */

/* Reading progress, a thin accent line at the very top. */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), hsl(50 97% 80%));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* The header's shadow, faded in as the page leaves the top. */
.header::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 24px;
  transform: translateY(100%);
  background: linear-gradient(hsl(197 60% 5% / 0.45), transparent);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes grow-progress {
      to {
        transform: scaleX(1);
      }
    }
    @keyframes header-lift {
      to {
        opacity: 1;
      }
    }
    .scroll-progress {
      animation: grow-progress auto linear both;
      animation-timeline: scroll(block root);
    }
    .header::after {
      animation: header-lift auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 160px;
    }
  }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-in {
      from {
        opacity: 0;
        transform: translateY(36px) scale(0.98);
      }
    }
    @keyframes slide-from-right {
      from {
        opacity: 0;
        transform: translateX(80px) rotate(1.5deg) scale(0.94);
      }
    }
    @keyframes slide-from-left {
      from {
        opacity: 0;
        transform: translateX(-80px) rotate(-1.5deg) scale(0.94);
      }
    }
    @keyframes hero-drift {
      to {
        transform: translateY(-90px) scale(0.96);
      }
    }
    @keyframes hero-text-out {
      to {
        opacity: 0.15;
        transform: translateY(-40px);
      }
    }
    @keyframes shot-settle {
      from {
        transform: scale(1.1);
      }
    }

    /* Content blocks rise in as they enter. */
    .reveal {
      animation: reveal-in linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }

    /* Cards of a grid come in one after the other. */
    @supports (width: calc(1px * sibling-index())) {
      :is(.grid, .steps, .tiers, .trades, .guides, .integrations, .points, .notes, .others, .chips) > .reveal {
        animation-range: entry calc(sibling-index() * 6% - 6%) entry calc(sibling-index() * 6% + 64%);
      }
    }

    /* The head of a page: its visual drifts up slower than the page (parallax),
       its text fades as it leaves. */
    :is(.page-hero, .hero) .vt-visual {
      animation: hero-drift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    :is(.page-hero__text, .hero__text) {
      animation: hero-text-out linear both;
      animation-timeline: view();
      animation-range: exit 10% exit 100%;
    }

    /* A screenshot settles in its window while the window crosses the screen. */
    .window img {
      animation: shot-settle linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 60%;
    }
    :is(.page-hero, .hero) .window img {
      animation: none;
    }

    /* Feature rows: the demo arrives from its side. */
    .row .window {
      animation: slide-from-right linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .row--flip .window {
      animation-name: slide-from-left;
    }

    /* Phones: the same rows rise in, a sideways slide reads as a swipe there;
       the hero drifts half as far. */
    @media (max-width: 40em) {
      .row .window,
      .row--flip .window {
        animation-name: reveal-in;
      }
      @keyframes hero-drift {
        to {
          transform: translateY(-45px) scale(0.98);
        }
      }
    }

    /* Videos and figures settle in as they enter. */
    :is(.film__frame, .scale) {
      animation: reveal-in linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

/* ---------- Shared page blocks ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.section-head h2 {
  margin: 0;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--c-muted);
  font-size: 1.125rem;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  line-height: 1.5;
}

.ticks li {
  display: flex;
  gap: 0.6rem;
}

.ticks li::before {
  content: '✓';
  flex: none;
  font-weight: 800;
  color: var(--c-accent);
}

.section--light .ticks li::before {
  color: hsl(197 39% 21%);
}

.icon-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.icon-card h3 {
  margin: 0;
  font-size: 1.1875rem;
}

.icon-card p {
  margin: 0;
  color: var(--c-muted);
}

.icon-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: hsl(50 97% 69% / 0.14);
  color: var(--c-accent);
  font-size: 1.25rem;
}

.section--light .icon-card__icon {
  background: hsl(197 39% 21% / 0.08);
  color: hsl(197 39% 21%);
}

a.card {
  color: inherit;
  text-decoration: none;
  transition: border-color 200ms, transform 200ms;
}

a.card:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

.more {
  font-weight: 700;
  color: var(--c-accent);
}

.section--light .more {
  color: hsl(197 39% 21%);
}
.header[data-astro-cid-nen7h5rs] {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: transform .22s ease-out;
  border-bottom: 1px solid var(--c-line);
  background: #1c3640eb;
  backdrop-filter: blur(10px);
}

.header__bar[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .75rem;
  min-width: 0;
}

.header__bar[data-astro-cid-nen7h5rs] > [data-astro-cid-nen7h5rs] {
  flex-shrink: 0;
  white-space: nowrap;
}

.header__logo[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -.02em;
  color: var(--c-text);
  text-decoration: none;
}

.header__nav[data-astro-cid-nen7h5rs] {
  order: 3;
}

.header__cta[data-astro-cid-nen7h5rs] {
  order: 2;
}

.menu-button[data-astro-cid-nen7h5rs] {
  anchor-name: --menu-button;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .5rem .85rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  background: none;
  color: var(--c-text);
  font: inherit;
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
}

.menu-button[data-astro-cid-nen7h5rs]:hover {
  border-color: var(--c-accent);
}

.site-menu[data-astro-cid-nen7h5rs] {
  position: fixed;
  inset: auto;
  inset-block-start: 4.25rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(22rem, 100dvw - 2rem);
  max-block-size: calc(100dvh - 6rem);
  margin: .5rem 0 0;
  padding: .5rem;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: 0 24px 60px #00000059;
}

.site-menu[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs] {
  display: block;
  padding: .8rem .9rem;
  border-radius: 10px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 1.0625rem;
}

.site-menu[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs]:hover, .site-menu[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs]:focus-visible {
  background: #ffffff0f;
}

.site-menu[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs][aria-current="page"] {
  color: var(--c-accent);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--c-accent);
}

.site-menu[data-astro-cid-nen7h5rs]::backdrop {
  background: #101e2373;
}

@media (prefers-reduced-motion: no-preference) {
  .site-menu[data-astro-cid-nen7h5rs] {
    transition: opacity .18s ease-out, translate .18s ease-out, display .18s, overlay .18s;
    transition-behavior: allow-discrete;
  }

  .site-menu[data-astro-cid-nen7h5rs]:not(:is(:popover-open, .\:popover-open)) {
    opacity: 0;
    translate: 0 -6px;
  }

  @starting-style {
    .site-menu[data-astro-cid-nen7h5rs]:is(:popover-open, .\:popover-open) {
      opacity: 0;
      translate: 0 -6px;
    }
  }
}

.header[data-astro-cid-nen7h5rs].is-wide {
  & .header__nav {
    order: 1;
    margin-inline-end: auto;
  }

  & .header__logo {
    margin-inline-end: 1rem;
  }

  & .menu-button {
    display: none;
  }

  & .site-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: .25rem 1.5rem;
    inline-size: auto;
    max-block-size: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    translate: none;
    font-size: .9375rem;
  }

  & .site-menu::backdrop {
    display: none;
  }

  & .site-menu a {
    display: inline;
    padding: 0;
    color: var(--c-text-soft);
    font-size: inherit;
  }

  & .site-menu a:hover {
    background: none;
    color: var(--c-accent);
  }

  & .site-menu a[aria-current="page"] {
    color: var(--c-accent);
    box-shadow: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .45em;
  }
}

.menu-cta[data-astro-cid-nen7h5rs] {
  display: none;
  padding: .5rem .4rem .4rem;
}

.menu-cta[data-astro-cid-nen7h5rs] .btn[data-astro-cid-nen7h5rs] {
  display: flex;
  color: var(--c-accent-ink);
}

.header[data-astro-cid-nen7h5rs].is-compact {
  & .header__cta {
    display: none;
  }

  & .menu-cta {
    display: block;
  }
}

@container scroll-state((scrolled: bottom) and (scrollable: top)) {
  .header[data-astro-cid-nen7h5rs]:not(.is-wide):not(:focus-within):not(:has(:popover-open)) {
    transform: translateY(-100%);
  }
}

.header[data-astro-cid-nen7h5rs].is-hidden:not(.is-wide):not(:focus-within):not(:has(:is(:popover-open, .\:popover-open))) {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .header[data-astro-cid-nen7h5rs] {
    transition: none;
  }
}

.header[data-astro-cid-nen7h5rs].is-measuring [data-astro-cid-nen7h5rs] {
  transition: none !important;
}

@media (forced-colors: active) {
  .site-menu[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs][aria-current="page"] {
    border-inline-start: 3px solid canvastext;
  }
}

@media (width <= 23rem) {
  .header__bar[data-astro-cid-nen7h5rs] {
    gap: .6rem;
  }

  .menu-button[data-astro-cid-nen7h5rs] span[data-astro-cid-nen7h5rs] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .menu-button[data-astro-cid-nen7h5rs] {
    padding-inline: .7rem;
  }
}
.footer[data-astro-cid-jo6i4kqk] {
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: .875rem;
}

.footer__inner[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 2rem;
}

p[data-astro-cid-jo6i4kqk] {
  margin: 0;
}

nav[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

nav[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk] {
  color: var(--c-muted);
}

nav[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk]:hover {
  color: var(--c-accent);
}
