/* 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;
}

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;
}

.prose :where(p, li) {
  color: var(--c-text-soft);
}

.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: browsers without support navigate as usual. The
   header keeps its place while the page underneath rises in. */
@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;
}

/* The page underneath: a short fade out, then it rises in. */
::view-transition-old(root) {
  animation: 180ms ease-in both vt-fade-out;
}

::view-transition-new(root) {
  animation: 380ms cubic-bezier(0.2, 0.8, 0.2, 1) 60ms both vt-rise;
}

/* The page title and the main visual have their own layer (.vt-title,
   .vt-visual): they slide across instead of fading with the page. Forward on a
   link, mirrored on the Back button. */
.vt-title {
  view-transition-name: page-title;
}

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

::view-transition-group(page-title),
::view-transition-group(page-visual) {
  animation: none;
}

::view-transition-image-pair(page-title),
::view-transition-image-pair(page-visual) {
  isolation: auto;
}

/* Each snapshot keeps its own size, anchored top left: the old title is not
   stretched to the new title's box. */
::view-transition-old(page-title),
::view-transition-new(page-title),
::view-transition-old(page-visual),
::view-transition-new(page-visual) {
  inline-size: auto;
  block-size: auto;
  object-fit: none;
  object-position: left top;
}

::view-transition-old(page-title) {
  animation: 260ms cubic-bezier(0.4, 0, 1, 1) both vt-slide-out;
}

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

::view-transition-old(page-visual) {
  animation: 260ms cubic-bezier(0.4, 0, 1, 1) both vt-visual-out;
}

::view-transition-new(page-visual) {
  animation: 620ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both vt-visual-in;
}

:active-view-transition-type(back) {
  &::view-transition-old(page-title) {
    animation-name: vt-slide-out-back;
  }
  &::view-transition-new(page-title) {
    animation-name: vt-slide-in-back;
  }
  &::view-transition-old(page-visual) {
    animation-name: vt-visual-out-back;
  }
  &::view-transition-new(page-visual) {
    animation-name: vt-visual-in-back;
  }
}

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

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

@keyframes vt-slide-out {
  to {
    opacity: 0;
    transform: translateX(-72px);
  }
}

@keyframes vt-slide-in {
  from {
    opacity: 0;
    transform: translateX(96px);
  }
}

@keyframes vt-slide-out-back {
  to {
    opacity: 0;
    transform: translateX(72px);
  }
}

@keyframes vt-slide-in-back {
  from {
    opacity: 0;
    transform: translateX(-96px);
  }
}

@keyframes vt-visual-out {
  to {
    opacity: 0;
    transform: translateX(-48px) scale(0.94);
  }
}

@keyframes vt-visual-in {
  from {
    opacity: 0;
    transform: translateX(140px) scale(0.96);
  }
}

@keyframes vt-visual-out-back {
  to {
    opacity: 0;
    transform: translateX(48px) scale(0.94);
  }
}

@keyframes vt-visual-in-back {
  from {
    opacity: 0;
    transform: translateX(-140px) scale(0.96);
  }
}

/* ---------- 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;
    }
  }
}

/* ---------- 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;
  border-bottom: 1px solid var(--c-line);
  background: #1c3640e0;
  backdrop-filter: blur(10px);
}

.header__bar[data-astro-cid-nen7h5rs] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
  padding-block: .85rem;
}

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

nav[data-astro-cid-nen7h5rs] {
  flex: 1;
}

ul[data-astro-cid-nen7h5rs] {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
}

nav[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs] {
  color: var(--c-text-soft);
  text-decoration: none;
}

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

nav[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs][aria-current="page"] {
  color: var(--c-accent);
  font-weight: 600;
}

@media (width <= 52rem) {
  .header[data-astro-cid-nen7h5rs] {
    position: relative;
  }

  .header__bar[data-astro-cid-nen7h5rs] {
    justify-content: space-between;
    padding-block: .75rem .25rem;
  }

  nav[data-astro-cid-nen7h5rs] {
    order: 3;
    flex-basis: 100%;
    margin-inline: -1rem;
  }

  ul[data-astro-cid-nen7h5rs] {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.25rem;
    padding: .35rem 1rem .6rem;
    scrollbar-width: none;
  }

  li[data-astro-cid-nen7h5rs] {
    flex: none;
  }
}
.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);
}
