/* =============================================
   Palette
   ============================================= */
:root {
  --bg: #ffffff;
  --bg-tint: #f7f8fc;
  --fg: #0e0f1a;
  --fg-secondary: #3a3d52;
  --muted: rgba(14, 15, 26, 0.52);
  --accent: #5858E8;
  --accent-light: #7b7bf2;
  --accent-bg: rgba(88, 88, 232, 0.06);
  --stroke: rgba(14, 15, 26, 0.07);
  --stroke-strong: rgba(14, 15, 26, 0.12);
  --nav-h: 3.5rem;
  --shadow: rgba(88, 88, 232, 0.08);
  --page-px: clamp(1.5rem, 5vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   Loader — intro sequence
   ============================================= */
body.is-loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.loader__logo {
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(0.6rem);
  animation: loaderFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes loaderFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader__jm {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.loader__rest {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-left: 0.4em;
  opacity: 0;
  animation: loaderTextIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes loaderTextIn {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader__logo {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .loader__rest {
    opacity: 1;
    animation: none;
  }
  .loader {
    transition: none;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
}
.skip-link:focus {
  left: 0.5rem;
}

/* =============================================
   Nav — state of the art
   ============================================= */
.site-nav {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(64rem, calc(100vw - 2rem));
  min-height: var(--nav-h);
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(14, 15, 26, 0.06);
  border-radius: 100px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 4px 16px rgba(88, 88, 232, 0.03);
  transition:
    background 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(14, 15, 26, 0.08);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.03),
    0 8px 32px rgba(88, 88, 232, 0.06);
}

/* ---- Logo ---- */
.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.22em;
  font-size: clamp(0.95rem, 0.5vw + 0.88rem, 1.125rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__logo:hover {
  transform: scale(1.02);
}

.logo-jm {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.045em;
  transition: letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__logo:hover .logo-jm {
  letter-spacing: -0.02em;
}

.logo-rest {
  font-weight: 800;
  letter-spacing: -0.018em;
  transition: opacity 0.3s ease;
}

/* ---- Right side group ---- */
.site-nav__right {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.5vw, 1rem);
}

/* ---- Menu links ---- */
.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__menu a {
  position: relative;
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-secondary);
  border-radius: 100px;
  transition:
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__menu a:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

.site-nav__menu a:focus-visible {
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-nav__menu a span {
  position: relative;
  display: inline-block;
}

.site-nav__menu a span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--accent);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__menu a:hover span::after {
  clip-path: inset(0 0 0 0);
}

/* ---- CTA button ---- */
.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition:
    background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-nav__cta:hover {
  background: var(--accent-light);
  box-shadow:
    0 4px 16px rgba(88, 88, 232, 0.28),
    0 1px 3px rgba(88, 88, 232, 0.12);
  transform: translateY(-1px);
}

.site-nav__cta:hover::before {
  opacity: 1;
}

.site-nav__cta:active {
  transform: translateY(0.5px) scale(0.98);
  transition-duration: 0.08s;
}

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

.site-nav__cta-label {
  position: relative;
  z-index: 1;
}

.site-nav__cta-arrow {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__cta:hover .site-nav__cta-arrow {
  transform: translateX(3px);
}

.site-nav__cta-text--short {
  display: none;
}

/* =============================================
   Hero — sticky inside tall wrapper
   ============================================= */
.hero-wrap {
  position: relative;
  height: 300vh;
}

.hero {
  --p1: 0;
  --p2: 0;
  --p3: 0;
  --p4: 0;
  --reveal-scene: 0;
  --glow-strength: 0.44;
  --content-opacity: 1;
  --fade-opacity: 0;

  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: clip;
  display: grid;
  place-items: center;
  padding: var(--nav-h) var(--page-px) 5.5rem;
  isolation: isolate;
}

@media (prefers-reduced-motion: reduce) {
  .hero-wrap {
    height: auto;
  }
  .hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    --p1: 1;
    --p2: 1;
    --p3: 1;
    --p4: 1;
    --reveal-scene: 1;
    --glow-strength: 0.8;
    --content-opacity: 1;
    --fade-opacity: 1;
  }
  .hero__frost { opacity: 0; }
  .hero__vignette { opacity: 0.12; }
  .hero__scrollHint { opacity: 0; }
}

.hero__parallax {
  position: absolute;
  inset: -22vh -10vw;
  z-index: 0;
  transform: translate3d(0, 0, 0);
}

.hero__layer {
  position: absolute;
  inset: 0;
  will-change: transform, opacity, filter;
  transform: translate3d(0, 0, 0) scale(1.012);
  transform-origin: 50% 42%;
  transition: none;
}

.hero__layer--image {
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__watermark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  font-size: clamp(4.5rem, 14vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  opacity: calc(0.12 * (1 - var(--content-opacity, 1)));
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  transition: none;
}

.hero__watermark-jm {
  color: var(--accent);
}

.hero__watermark-rest {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero__layer--glow {
  background:
    radial-gradient(900px 500px at 50% 40%, rgba(88, 88, 232, 0.05), transparent 65%),
    radial-gradient(800px 520px at 70% 55%, rgba(88, 88, 232, 0.03), transparent 65%);
  mix-blend-mode: normal;
  opacity: var(--glow-strength, 0.45);
}

.hero__layer--grain {
  opacity: calc(0.04 + 0.12 * var(--reveal-scene, 0));
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  transform: scale(1.2);
}

.hero__frost {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(247, 248, 252, 0.35) 40%,
    rgba(255, 255, 255, 0.15) 100%
  );
  backdrop-filter: blur(2px) saturate(1.1);
  -webkit-backdrop-filter: blur(2px) saturate(1.1);
  mix-blend-mode: normal;
  opacity: calc(0.7 * (1 - var(--reveal-scene, 0)) + 0.02);
  transition: none;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 78% 70% at 50% 45%,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  opacity: calc(0.28 * (1 - var(--reveal-scene, 0)) + 0.04);
  mix-blend-mode: normal;
  transition: none;
}

.hero__scrollHint {
  position: absolute;
  bottom: clamp(5rem, 12vh, 8rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(88, 88, 232, 0.4);
  pointer-events: none;
  opacity: clamp(0, calc(1 - var(--reveal-scene, 0) * 0.88), 1);
  transition: none;
}

.hero__content {
  position: relative;
  z-index: 4;
  width: min(38rem, 88vw);
  text-align: center;
  padding: 3.2rem 2rem 3.4rem;
  border: 1px solid var(--stroke);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 36px 110px rgba(88, 88, 232, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  opacity: var(--content-opacity, 1);
  transform:
    translateY(calc((1 - var(--content-opacity, 1)) * -1rem))
    scale(calc(0.97 + 0.03 * var(--content-opacity, 1)));
  will-change: opacity, transform;
}

.hero__line {
  will-change: transform, opacity;
  transition: none;
}

.hero__line--eyebrow {
  opacity: calc(0.22 + 0.78 * var(--p1, 0));
  transform: translate3d(0, calc((1 - var(--p1, 0)) * 0.65rem), 0);
  margin-bottom: 0.75rem;
}

.hero__line--title {
  opacity: calc(0.2 + 0.8 * var(--p2, 0));
  transform: translate3d(0, calc((1 - var(--p2, 0)) * 0.85rem), 0);
}

.hero__line--sub {
  opacity: calc(0.2 + 0.8 * var(--p3, 0));
  transform: translate3d(0, calc((1 - var(--p3, 0)) * 0.55rem), 0);
  margin-top: 1rem;
}

.hero__line--cta {
  opacity: calc(0.2 + 0.8 * var(--p4, 0));
  transform: translate3d(0, calc((1 - var(--p4, 0)) * 0.5rem), 0);
  margin-top: 1.6rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.hero .hero__line--title h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--fg);
}

.subhead {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  line-height: 1.7;
  color: var(--muted);
}

.ctaRow {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}
.btn:active {
  transform: translateY(0.5px);
  transition-duration: 0.12s;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  transform: translateY(-0.5px);
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 8px 32px rgba(88, 88, 232, 0.2);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--stroke-strong);
}
.btn--ghost:hover {
  background: var(--accent-bg);
  border-color: rgba(88, 88, 232, 0.2);
  color: var(--accent);
  transform: translateY(-0.5px);
}

.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32vh;
  z-index: 5;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg));
  pointer-events: none;
  opacity: var(--fade-opacity, 0);
}

/* =============================================
   Nav & hero — phones & small tablets
   ============================================= */
@media (max-width: 720px) {
  .site-nav {
    top: max(0.5rem, env(safe-area-inset-top, 0px));
    left: max(0.65rem, env(safe-area-inset-left, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    transform: none;
    width: auto;
    max-width: none;
    min-height: 3.125rem;
    padding: 0.32rem 0.55rem 0.32rem 0.75rem;
    border-radius: 1.125rem;
    gap: 0.35rem;
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.04),
      0 8px 28px rgba(88, 88, 232, 0.06);
  }

  .site-nav.is-scrolled {
    box-shadow:
      0 2px 6px rgba(0, 0, 0, 0.04),
      0 12px 36px rgba(88, 88, 232, 0.08);
  }

  .site-nav__logo {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(0.8rem, 3.5vw, 0.9rem);
    letter-spacing: -0.02em;
  }

  .logo-rest {
    font-weight: 800;
  }

  .site-nav__right {
    flex-shrink: 0;
    gap: 0.15rem;
  }

  .site-nav__menu {
    gap: 0;
  }

  .site-nav__menu a {
    padding: 0.42rem 0.48rem;
    font-size: 0.625rem;
    letter-spacing: 0.055em;
  }

  .site-nav__cta {
    padding: 0.42rem 0.72rem;
    font-size: 0.625rem;
    gap: 0.28rem;
    border-radius: 100px;
  }

  .site-nav__cta-arrow {
    font-size: 0.78rem;
  }

  .site-nav__cta-text--long {
    display: none;
  }

  .site-nav__cta-text--short {
    display: inline;
  }

  .hero {
    padding:
      calc(var(--nav-h) + max(0.5rem, env(safe-area-inset-top, 0px)) + 0.35rem)
      max(1rem, env(safe-area-inset-right, 0px), env(safe-area-inset-left, 0px))
      4.25rem;
  }

  .hero__parallax {
    inset: -14vh -6vw;
  }

  .hero__watermark {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08em;
    font-size: clamp(2.65rem, 14.5vw, 4rem);
    white-space: normal;
    text-align: center;
    max-width: min(100%, calc(100vw - 2rem));
    line-height: 0.95;
    letter-spacing: -0.045em;
    padding: 0 0.5rem;
  }

  .hero__watermark-jm {
    line-height: 1;
  }

  .hero__watermark-rest {
    font-size: 0.36em;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-secondary);
    opacity: 0.72;
    line-height: 1.25;
    margin-top: 0.12em;
  }

  .hero__content {
    width: min(100%, calc(100vw - 1.25rem));
    padding: 1.65rem 1.1rem 1.75rem;
    border-radius: 1.25rem;
  }

  .hero .hero__line--title h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
  }

  .subhead {
    max-width: 36ch;
    font-size: 0.9375rem;
  }

  .hero__scrollHint {
    bottom: max(4.5rem, env(safe-area-inset-bottom, 0px) + 3.5rem);
    font-size: 0.5625rem;
    letter-spacing: 0.22em;
  }
}

@media (max-width: 380px) {
  .site-nav__menu a {
    padding: 0.38rem 0.38rem;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .site-nav__cta {
    padding: 0.38rem 0.58rem;
  }

  .hero__watermark {
    font-size: clamp(2.35rem, 13vw, 3.25rem);
  }
}

/* =============================================
   Sections
   ============================================= */
.section {
  width: min(64rem, 88vw);
  margin: 0 auto;
  padding: clamp(6rem, 14vw, 11rem) 0;
}

.section__head {
  margin-bottom: clamp(4.5rem, 9vw, 7rem);
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.section__head.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .section__head {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section__head h2,
.section h2 {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__lead {
  margin: 1.8rem 0 0;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  max-width: 24ch;
}

/* =============================================
   Feature cards — stacked sticky scroll
   ============================================= */
.section--features {
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}

.features__stack {
  position: relative;
}

.features__spacer {
  display: block;
  height: 60vh;
  pointer-events: none;
}

.features__stack .card {
  position: sticky;
  top: calc(50vh - 6rem);
  width: min(36rem, 100%);
  margin: 0 auto 34vh;
  padding: clamp(2.4rem, 4vw, 3.2rem) clamp(2rem, 3.5vw, 2.8rem);
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  box-shadow:
    0 24px 80px rgba(88, 88, 232, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    background 0.4s ease;
}

.features__stack .card:nth-child(1) { z-index: 1; }
.features__stack .card:nth-child(2) { z-index: 2; }
.features__stack .card:nth-child(3) { z-index: 3; }
.features__stack .card:nth-child(4) { z-index: 4; }
.features__stack .card:nth-child(5) { z-index: 5; }
.features__stack .card:nth-child(6) { z-index: 6; }

.features__stack .card:last-child {
  margin-bottom: 0;
}

.section--process {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--stroke);
}

.features__stack .card:hover {
  border-color: rgba(88, 88, 232, 0.16);
  box-shadow:
    0 30px 90px rgba(88, 88, 232, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.card__index {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.card h3 {
  margin: 0;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.card p {
  margin: 0.9rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 38ch;
}

@media (prefers-reduced-motion: reduce) {
  .features__stack .card {
    position: relative;
    top: auto;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
  }
}

/* =============================================
   Process — vertical timeline
   ============================================= */


.timeline {
  position: relative;
  --rail-x: 1.5rem;
}

@media (min-width: 860px) {
  .timeline {
    --rail-x: 50%;
  }
}

.timeline__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--rail-x);
  width: 1px;
  background: var(--stroke);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(88, 88, 232, 0.2) 100%
  );
  will-change: height;
}

.timeline__tick {
  position: absolute;
  left: 50%;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.4;
  white-space: nowrap;
}

.timeline__tick--start {
  top: -1.6rem;
  transform: translateX(0.75rem);
}

.timeline__tick--end {
  bottom: -1.6rem;
  transform: translateX(0.75rem);
}

@media (min-width: 860px) {
  .timeline__tick--start,
  .timeline__tick--end {
    transform: translateX(1rem);
  }
}

.timeline__steps {
  list-style: none;
  margin: 0;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  position: relative;
  z-index: 1;
}

.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 clamp(1.6rem, 3vw, 2.4rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.timeline__step:last-child {
  padding-bottom: 0;
}

@media (min-width: 860px) {
  .timeline__step {
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
  }

  .timeline__step--right .timeline__content {
    grid-column: 3;
    text-align: left;
    padding-left: clamp(2.5rem, 4vw, 4rem);
  }
  .timeline__step--right .timeline__marker {
    grid-column: 2;
  }

  .timeline__step--left .timeline__content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
    padding-right: clamp(2.5rem, 4vw, 4rem);
  }
  .timeline__step--left .timeline__marker {
    grid-column: 2;
    grid-row: 1;
  }
}

.timeline__marker {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 3rem;
  padding-top: 0.35rem;
  z-index: 2;
}

@media (min-width: 860px) {
  .timeline__marker {
    width: auto;
    padding-top: 0.4rem;
  }
}

.timeline__marker-ring {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(88, 88, 232, calc(0.2 * var(--p, 0)));
  background: transparent;
  transform: scale(calc(0.55 + 0.45 * var(--p, 0)));
  opacity: var(--p, 0);
  will-change: transform, opacity;
  transition: none;
}

.timeline__marker-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  top: 0.6rem;
  background: color-mix(
    in srgb,
    var(--stroke-strong) calc(100% * (1 - var(--p, 0))),
    var(--accent) calc(100% * var(--p, 0))
  );
  box-shadow:
    0 0 calc(8px * var(--p, 0)) rgba(88, 88, 232, 0.3),
    0 0 calc(24px * var(--p, 0)) rgba(88, 88, 232, 0.1);
  transform: scale(calc(0.9 + 0.4 * var(--p, 0)));
  will-change: transform, background;
  transition: none;
}

.timeline__content {
  --step-p: var(--p, 0);
  opacity: calc(0.06 + 0.94 * var(--step-p));
  transform: translate3d(0, calc((1 - var(--step-p)) * 1.6rem), 0);
  will-change: transform, opacity;
  transition: none;
}

@media (min-width: 860px) {
  .timeline__step--right .timeline__content {
    transform: translate3d(
      calc((1 - var(--step-p)) * 1.4rem),
      calc((1 - var(--step-p)) * 1.2rem),
      0
    );
  }
  .timeline__step--left .timeline__content {
    transform: translate3d(
      calc((1 - var(--step-p)) * -1.4rem),
      calc((1 - var(--step-p)) * 1.2rem),
      0
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__step {
    --p: 1 !important;
  }
  .timeline__content {
    transform: none !important;
  }
  .timeline__marker-ring {
    border-color: rgba(88, 88, 232, 0.2);
  }
  .timeline__marker-dot {
    background: var(--accent);
  }
}

.timeline__num {
  display: block;
  margin-bottom: 0.9rem;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(88, 88, 232, calc(0.08 + 0.08 * var(--p, 0)));
  font-variant-numeric: tabular-nums;
  transition: none;
}

.timeline__title {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.timeline__desc {
  margin: 0.6rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 28ch;
}

@media (min-width: 860px) {
  .timeline__step--left .timeline__desc {
    margin-left: auto;
  }
}

/* =============================================
   Color fade transitions
   ============================================= */
.color-fade {
  position: relative;
  z-index: 2;
  width: 100%;
  height: clamp(12rem, 28vw, 22rem);
  pointer-events: none;
}

.color-fade--into-blue {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    rgba(240, 240, 255, 1) 18%,
    rgba(180, 180, 248, 0.6) 50%,
    rgba(108, 108, 236, 0.85) 75%,
    #5858E8 100%
  );
}

.color-fade--out-of-blue {
  background: linear-gradient(
    to bottom,
    #5858E8 0%,
    rgba(108, 108, 236, 0.85) 25%,
    rgba(180, 180, 248, 0.6) 50%,
    rgba(240, 240, 255, 1) 82%,
    var(--bg) 100%
  );
}

/* =============================================
   CTA closer — full-viewport impact
   ============================================= */
.cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(6rem, 12vw, 10rem) var(--page-px);
  text-align: center;
  overflow: hidden;
  border-top: none;
  background: #5858E8;
}

.cta__bg {
  position: absolute;
  inset: -30% -20%;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.cta__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta.is-visible .cta__bg-orb { opacity: 1; }

.cta__bg-orb--1 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  top: 10%;
  left: 5%;
  background: radial-gradient(circle, rgba(120, 100, 255, 0.35) 0%, transparent 70%);
}

.cta__bg-orb--2 {
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  top: 20%;
  right: -5%;
  background: radial-gradient(circle, rgba(70, 60, 220, 0.3) 0%, transparent 70%);
}

.cta__bg-orb--3 {
  width: 40vw;
  height: 40vw;
  max-width: 480px;
  max-height: 480px;
  bottom: 5%;
  left: 30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.cta__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
  opacity: 0;
  transition: opacity 3s ease 0.4s;
}

.cta.is-visible .cta__bg-grid { opacity: 1; }

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
}

.cta__inner > * {
  opacity: 0;
  will-change: transform, opacity;
}

.cta__kicker {
  transform: translateY(1.2rem);
  transition:
    opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta__heading {
  transform: translateY(3rem) scale(0.96);
  transition:
    opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta__sub {
  transform: translateY(2rem);
  transition:
    opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta__btn {
  transform: translateY(1.8rem);
  --cta-btn-ease: cubic-bezier(0.19, 1, 0.22, 1);
  transition:
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.55s var(--cta-btn-ease),
    color 0.55s var(--cta-btn-ease),
    border-color 0.55s var(--cta-btn-ease),
    box-shadow 0.55s var(--cta-btn-ease),
    filter 0.55s ease;
}

.cta.is-visible .cta__inner > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cta.is-visible .cta__kicker  { transition-delay: 0.1s; }
.cta.is-visible .cta__heading { transition-delay: 0.3s; }
.cta.is-visible .cta__sub     { transition-delay: 0.7s; }
.cta.is-visible .cta__btn     { transition-delay: 1.05s; }

@media (prefers-reduced-motion: reduce) {
  .cta__inner > * {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  .cta__btn:hover,
  .cta__btn:active,
  .cta__btn:hover .cta__btn-arrow,
  .cta__btn:active .cta__btn-arrow {
    transform: none !important;
  }
  .cta__bg-orb { opacity: 1; }
  .cta__bg-grid { opacity: 1; }
}

.cta__kicker {
  display: block;
  margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.cta__heading {
  margin: 0;
  font-size: clamp(3rem, 11vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.94;
  color: #fff;
}

.cta__line {
  display: block;
}

.cta__line--accent {
  color: #fff;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .cta__line--accent {
    background: linear-gradient(
      92deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.6) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.15));
  }
}

.cta__sub {
  margin: clamp(1.8rem, 3.5vw, 2.8rem) auto 0;
  max-width: 32ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

.cta__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: clamp(2.8rem, 5vw, 4rem);
  padding: 1.1rem 2.85rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  color: #3a36c9;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 0 0 1px rgba(88, 88, 232, 0.06) inset,
    0 1px 2px rgba(12, 14, 32, 0.05),
    0 8px 24px rgba(8, 10, 32, 0.14),
    0 22px 52px rgba(8, 10, 32, 0.1);
  filter: brightness(1) saturate(1.02);
}

.cta__btn:hover {
  color: #2c28a3;
  border-color: rgba(88, 88, 232, 0.18);
  background: linear-gradient(
    180deg,
    #fff 0%,
    #f9f8ff 55%,
    #f2f0ff 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.99) inset,
    0 0 0 1px rgba(88, 88, 232, 0.12) inset,
    0 2px 6px rgba(12, 14, 32, 0.06),
    0 14px 40px rgba(88, 88, 232, 0.28),
    0 32px 72px rgba(8, 10, 40, 0.22);
  filter: brightness(1.03) saturate(1.05);
  transform: translateY(-4px) scale(1.012) !important;
}

@media (hover: none) {
  .cta__btn {
    background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
    color: #3a36c9;
  }
}

.cta__btn:active {
  transform: translateY(-1px) scale(1) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 1px 2px rgba(15, 17, 40, 0.06),
    0 6px 18px rgba(88, 88, 232, 0.12),
    0 12px 28px rgba(15, 17, 40, 0.12) !important;
  transition:
    transform 0.12s var(--cta-btn-ease, cubic-bezier(0.19, 1, 0.22, 1)),
    box-shadow 0.12s ease;
}

.cta__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 2px #5858e8,
    0 1px 2px rgba(15, 17, 40, 0.04),
    0 6px 20px rgba(15, 17, 40, 0.1),
    0 20px 48px rgba(15, 17, 40, 0.12);
}

.cta__btn-arrow {
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.55s var(--cta-btn-ease, cubic-bezier(0.19, 1, 0.22, 1));
}

.cta__btn:hover .cta__btn-arrow {
  transform: translateX(7px);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: none;
  padding: clamp(3rem, 6vw, 4.5rem) var(--page-px) clamp(3.5rem, 7vw, 5rem);
  margin-top: 0;
  background: var(--bg);
}

.site-footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.site-footer__left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: min(100%, 36rem);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.65;
  color: var(--muted);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__legal a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-secondary);
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-admin {
  opacity: 0.35;
  transition: opacity 0.3s ease, color 0.35s ease;
}

.footer-admin:hover {
  opacity: 1;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  text-decoration: none;
  color: var(--fg-secondary);
  background: transparent;
  border: 1px solid var(--stroke);
  transition:
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__social a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(88, 88, 232, 0.22);
  transform: translateY(-2px);
}

.site-footer__social a:active {
  transform: translateY(0) scale(0.96);
  transition-duration: 0.08s;
}

.site-footer__social a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-footer__social svg {
  display: block;
}

/* =============================================
   Cookie banner
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 9998;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  width: min(48rem, calc(100vw - 2rem));
  padding: 1.1rem 1.8rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(88, 88, 232, 0.04);
  opacity: 1;
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(1rem);
  pointer-events: none;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--fg-secondary);
  flex: 1 1 20rem;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.cookie-banner__text a:hover {
  opacity: 0.75;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition:
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner__btn--accept {
  background: var(--accent);
  color: #fff;
}

.cookie-banner__btn--accept:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 14px rgba(88, 88, 232, 0.22);
  transform: translateY(-1px);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--fg-secondary);
  border: 1px solid var(--stroke-strong);
}

.cookie-banner__btn--decline:hover {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: rgba(88, 88, 232, 0.18);
  transform: translateY(-1px);
}

.cookie-banner__btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.08s;
}

/* =============================================
   Legal pages
   ============================================= */
.legal-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 2.5rem) var(--page-px) 4rem;
}

.legal-page__nav {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.legal-page__back {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  transition: opacity 0.3s ease;
}

.legal-page__back:hover {
  opacity: 0.75;
}

.legal-page__article {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-page__article h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.legal-page__meta {
  margin: 0 0 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.legal-page__article h2 {
  margin: 2rem 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
}

.legal-page__article p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.legal-page__article p:last-child {
  margin-bottom: 0;
}
