/**
 * Marketing Landing Page Stylesheet for AI Compliance Bot
 * Exact replica of Streamlit's Porcelain & Aurora scroll-driven story (streamlit_app.py:3962-5221)
 */

/* Hide sidebar and collapsed controls on landing page */
.landing-root ~ #sidebar-root,
body:has(.landing-root) #sidebar-root,
body:has(.landing-root) #topbar-root {
  display: none !important;
}

body:has(.landing-root) {
  background: #fbfbfd !important;
}

/* Porcelain & aurora: a soft near-white field carries the whole story,
   and the only chroma in the composition is a low-saturation lilac
   (company) / sage (vendor) pair plus the single dark decision core. */
.landing-root {
  --landing-ink: #1d1d1f;
  --landing-ink-soft: rgba(29, 29, 31, 0.68);
  --landing-ink-mute: rgba(29, 29, 31, 0.55);
  --landing-company: #5361b8;
  --landing-vendor: #4e7342;
  --landing-paper: #fbfbfd;
  --landing-nav-ink: #1d1d1f;
  --landing-nav-surface: rgba(220, 223, 237, 0.9);
  --landing-nav-line: rgba(29, 29, 31, 0.11);
  overflow: clip;
  background: var(--landing-paper);
  color: var(--landing-ink);
  color-scheme: light;
  font-family: var(--font, "Inter", "Segoe UI", sans-serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  min-height: 100vh;
}

.landing-root * {
  box-sizing: border-box;
}

.landing-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 3rem));
  min-height: 4.9rem;
  margin-inline: auto;
  padding: 0.55rem 0.75rem 0.55rem 1.05rem;
  border: 1px solid var(--landing-nav-line);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1) 62%),
    var(--landing-nav-surface);
  box-shadow:
    0 1rem 2.6rem rgba(24, 30, 56, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(29, 29, 31, 0.05);
  color: var(--landing-nav-ink);
  backdrop-filter: blur(1.4rem) saturate(118%);
  -webkit-backdrop-filter: blur(1.4rem) saturate(118%);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--landing-ink);
  font-size: 0.94rem;
  font-weight: 620;
  letter-spacing: -0.022em;
}

.landing-brand__mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 0.72rem;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.24), transparent 46%),
    linear-gradient(148deg, #353957, #1a1b24 74%);
  box-shadow:
    0 0.5rem 1.1rem rgba(24, 30, 56, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #eff0fd;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.landing-nav__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--landing-ink-mute);
  font-size: 0.66rem;
  font-weight: 620;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing-nav__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--landing-vendor);
  box-shadow:
    0 0 0 0.3rem rgba(78, 115, 66, 0.1),
    0 0 0.9rem rgba(78, 115, 66, 0.24);
}

/* padding, not margin: a top margin on the nav collapsed through this
   section and exposed a pale strip above the bar. */
.landing-flow-wrap {
  border: 0;
  padding-top: 0.75rem;
  background: linear-gradient(
    180deg,
    #fbfbfd 0%,
    #f6f6fa 68%,
    #f0f0f7 100%
  );
  color: var(--landing-ink);
}

.landing-flow-story {
  position: relative;
  height: 720vh;
  min-height: 4600px;
  view-timeline-name: --landing-flow;
  view-timeline-axis: block;
}

.landing-flow-stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: min(1560px, 100%);
  height: 100vh;
  min-height: 760px;
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(2.3rem, 4.6vw, 4.2rem) clamp(1.25rem, 3.7vw, 3.8rem);
  background:
    linear-gradient(to bottom, transparent 64%, rgba(238, 239, 247, 0.96) 100%),
    radial-gradient(circle at 50% 60%, rgba(130, 137, 232, 0.13), transparent 24rem),
    radial-gradient(circle at 50% 60%, rgba(226, 152, 190, 0.07), transparent 37rem),
    radial-gradient(circle at 14% 6%, rgba(120, 168, 108, 0.07), transparent 30rem),
    linear-gradient(158deg, #fdfdfe 0%, #f5f6fa 52%, #efeff7 100%);
  isolation: isolate;
}

.landing-flow-stage::before,
.landing-flow-stage::after {
  position: absolute;
  top: 38%;
  bottom: -34%;
  width: 55%;
  border-top: 1px solid rgba(29, 29, 31, 0.055);
  background: rgba(25, 30, 54, 0.014);
  content: "";
}

.landing-flow-stage::before {
  left: -4%;
  transform: skewY(18deg);
}

.landing-flow-stage::after {
  right: -4%;
  transform: skewY(-18deg);
}

.landing-flow-stage::before,
.landing-flow-stage::after {
  pointer-events: none;
}

/* Optically centred inside the nav bar: 0.75rem wrap padding +
   (4.9rem nav - 3.9rem link) / 2. */
.landing-entry-dock {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  z-index: 10001;
  display: grid;
  grid-template-columns: repeat(2, minmax(15rem, 1fr));
  gap: 0.8rem;
  width: min(34rem, calc(100% - 2.5rem));
  transform: translateX(-50%);
  animation: landing-entry-dock-travel 1ms linear both;
  animation-timeline: scroll(root block);
  backface-visibility: hidden;
  isolation: isolate;
}

.landing-entry-dock::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(42rem, 92vw);
  aspect-ratio: 1.65;
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 50%, rgba(130, 137, 232, 0.34), transparent 38%),
    radial-gradient(circle at 66% 48%, rgba(120, 168, 108, 0.26), transparent 39%),
    radial-gradient(circle at 50% 52%, rgba(228, 164, 198, 0.24), transparent 62%);
  content: "";
  filter: blur(2.5rem);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
  animation: landing-entry-glow 1ms linear both;
  animation-timeline: scroll(root block);
  pointer-events: none;
}

.landing-entry-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 3.9rem;
  overflow: hidden;
  padding: 0.6rem 0.6rem 0.6rem 0.95rem;
  border: 1px solid rgba(83, 97, 184, 0.32);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26) 62%),
    rgba(219, 224, 250, 0.96);
  box-shadow:
    0 0.6rem 1.5rem rgba(24, 30, 56, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(29, 29, 31, 0.05);
  color: var(--landing-ink) !important;
  cursor: pointer;
  text-decoration: none !important;
  backdrop-filter: blur(1.15rem) saturate(112%);
  -webkit-backdrop-filter: blur(1.15rem) saturate(112%);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.landing-entry-link::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 5% 14%, rgba(130, 137, 232, 0.16), transparent 44%),
    linear-gradient(118deg, rgba(130, 137, 232, 0.08), transparent 56%);
  content: "";
  pointer-events: none;
}

.landing-entry-link--vendor::before {
  background:
    radial-gradient(circle at 5% 14%, rgba(120, 168, 108, 0.16), transparent 44%),
    linear-gradient(118deg, rgba(120, 168, 108, 0.08), transparent 56%);
}

.landing-entry-link--vendor {
  border-color: rgba(78, 115, 66, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26) 62%),
    rgba(211, 230, 206, 0.96);
}

.landing-entry-link:hover,
.landing-entry-link:focus-visible {
  border-color: rgba(83, 97, 184, 0.62);
  box-shadow:
    0 1.1rem 2.6rem rgba(24, 30, 56, 0.2),
    0 0 2.2rem rgba(130, 137, 232, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.landing-entry-link:focus-visible {
  outline: 2px solid #5361b8;
  outline-offset: 3px;
}

.landing-entry-link--vendor:hover,
.landing-entry-link--vendor:focus-visible {
  border-color: rgba(78, 115, 66, 0.62);
  box-shadow:
    0 1.1rem 2.6rem rgba(28, 40, 24, 0.18),
    0 0 2.2rem rgba(120, 168, 108, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.landing-entry-link--vendor:focus-visible {
  outline-color: #4e7342;
}

.landing-entry-link span,
.landing-entry-link strong,
.landing-entry-link b {
  position: relative;
  z-index: 1;
}

.landing-entry-link span {
  align-self: end;
  color: var(--landing-company);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.landing-entry-link--vendor span {
  color: var(--landing-vendor);
}

.landing-entry-link strong {
  align-self: start;
  margin-top: 0.32rem;
  color: var(--landing-ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.1;
}

.landing-entry-link b {
  grid-row: 1 / 3;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-left: 0.5rem;
  border: 1px solid rgba(83, 97, 184, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--landing-ink);
  font-size: 0.92rem;
  font-weight: 400;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.landing-entry-link--vendor b {
  border-color: rgba(78, 115, 66, 0.26);
  background: rgba(255, 255, 255, 0.62);
}

.landing-entry-link:hover b,
.landing-entry-link:focus-visible b {
  border-color: rgba(83, 97, 184, 0.4);
  background: rgba(83, 97, 184, 0.15);
  transform: translateX(0.14rem);
}

.landing-entry-link--vendor:hover b,
.landing-entry-link--vendor:focus-visible b {
  border-color: rgba(78, 115, 66, 0.4);
  background: rgba(78, 115, 66, 0.15);
}

.landing-flow-hero {
  position: absolute;
  top: clamp(0.75rem, 2vh, 1.25rem);
  left: 50%;
  z-index: 4;
  width: min(58rem, calc(100% - 3rem));
  color: var(--landing-ink);
  text-align: center;
  transform: translateX(-50%);
  animation: landing-flow-hero-recede 1ms linear both;
  animation-timeline: --landing-flow;
  animation-range: entry 0% exit 100%;
  pointer-events: none;
}

.landing-flow-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(29, 29, 31, 0.5);
  font-size: 0.65rem;
  font-weight: 640;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.landing-flow-hero__eyebrow::before,
.landing-flow-hero__eyebrow::after {
  width: 2rem;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.62;
}

.landing-flow-hero h1 {
  max-width: 50rem;
  margin: 0.68rem auto 0;
  color: var(--landing-ink);
  font-size: clamp(2.6rem, 4.5vw, 4.65rem);
  font-weight: 620;
  letter-spacing: -0.062em;
  line-height: 0.96;
  text-wrap: balance;
}

/* The second line carries the only gradient in the type: lilac into
   sage, tying the company and vendor lanes into one statement. */
.landing-flow-hero h1 span {
  background: linear-gradient(96deg, #5361b8 0%, #726fbe 46%, #4e7342 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.landing-flow-hero p {
  max-width: 44rem;
  margin: 0.58rem auto 0;
  color: var(--landing-ink-soft);
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  line-height: 1.42;
  text-wrap: balance;
}

.landing-flow-canvas {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.8rem, 2.2vw, 2rem);
  min-height: 0;
  padding-top: clamp(5.5rem, 11vh, 7.5rem);
}

.landing-lane-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  height: clamp(20rem, 47vh, 26rem);
}

.landing-lane__role {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--landing-ink-mute);
  font-size: 0.63rem;
  font-weight: 640;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-lane-shell--vendor .landing-lane__role {
  right: 0;
  left: auto;
}

.landing-lane__role i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--landing-company);
  box-shadow: 0 0 0 0.25rem rgba(83, 97, 184, 0.12);
}

.landing-lane-shell--vendor .landing-lane__role i {
  background: var(--landing-vendor);
  box-shadow: 0 0 0 0.25rem rgba(78, 115, 66, 0.12);
}

.landing-chaos-path {
  position: absolute;
  inset: 2.2rem 0 0;
  width: 100%;
  height: calc(100% - 2.2rem);
  overflow: visible;
  opacity: 0.72;
  animation: landing-chaos-dissolve 1ms linear both;
  animation-timeline: --landing-flow;
  animation-range: entry 0% exit 100%;
  pointer-events: none;
}

.landing-chaos-path path {
  fill: none;
  stroke: rgba(60, 66, 120, 0.34);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-dasharray: 2.5 7;
  vector-effect: non-scaling-stroke;
}

.landing-lane {
  position: absolute;
  inset: 3rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.3rem, 0.8vw, 0.7rem);
}

.landing-lane::after {
  position: absolute;
  top: calc(50% + 1.825rem);
  right: 5%;
  left: 5%;
  z-index: -1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(29, 29, 31, 0.22), transparent);
  content: "";
  opacity: 0;
  transform: translateY(-50%) scaleX(0.35);
  animation: landing-rail-resolve 1ms linear both;
  animation-timeline: --landing-flow;
  animation-range: entry 0% exit 100%;
}

.landing-flow-step {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(2.8rem, auto) 3.2rem;
  place-items: center;
  gap: 0.85rem;
  min-width: 0;
  opacity: 0.82;
  transform: translate(var(--start-x), var(--start-y)) rotate(var(--start-r));
  animation: landing-untangle-step 1ms linear both;
  animation-timeline: --landing-flow;
  animation-range: entry 0% exit 100%;
}

.landing-flow-step:nth-child(1) {
  --start-x: 1.6rem;
  --start-y: -4.9rem;
  --start-r: -7deg;
}

.landing-flow-step:nth-child(2) {
  --start-x: 2.2rem;
  --start-y: 4.2rem;
  --start-r: 6deg;
}

.landing-flow-step:nth-child(3) {
  --start-x: -1.3rem;
  --start-y: -0.7rem;
  --start-r: -4deg;
}

.landing-flow-step:nth-child(4) {
  --start-x: -1.8rem;
  --start-y: 5.2rem;
  --start-r: 7deg;
}

.landing-flow-step:nth-child(5) {
  --start-x: -2.4rem;
  --start-y: -4.2rem;
  --start-r: -5deg;
}

.landing-lane-shell--vendor .landing-flow-step:nth-child(1) {
  --start-x: -1.9rem;
  --start-y: 4.7rem;
  --start-r: 7deg;
}

.landing-lane-shell--vendor .landing-flow-step:nth-child(2) {
  --start-x: -2.2rem;
  --start-y: -4.4rem;
  --start-r: -7deg;
}

.landing-lane-shell--vendor .landing-flow-step:nth-child(3) {
  --start-x: 1.2rem;
  --start-y: 0.9rem;
  --start-r: 4deg;
}

.landing-lane-shell--vendor .landing-flow-step:nth-child(4) {
  --start-x: 1.7rem;
  --start-y: -5.1rem;
  --start-r: -6deg;
}

.landing-lane-shell--vendor .landing-flow-step:nth-child(5) {
  --start-x: 2.3rem;
  --start-y: 4.1rem;
  --start-r: 6deg;
}

.landing-step__name {
  display: grid;
  place-items: center;
  min-height: 2.25rem;
  max-width: 7.2rem;
  padding: 0.42rem 0.56rem;
  border: 1px solid rgba(29, 29, 31, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0.25rem 0.7rem rgba(24, 30, 56, 0.05);
  color: rgba(29, 29, 31, 0.78);
  font-size: clamp(0.55rem, 0.62vw, 0.66rem);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  backdrop-filter: blur(8px);
}

.landing-step__number {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #5f6dc4, #47529f);
  box-shadow:
    0 0.6rem 1.4rem rgba(56, 70, 148, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
}

.landing-lane-shell--vendor .landing-step__number {
  background: linear-gradient(180deg, #5f8752, #4a6b40);
  box-shadow:
    0 0.6rem 1.4rem rgba(56, 84, 46, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.landing-ai-boundary {
  position: absolute;
  inset: 5.4rem -0.45rem 1.1rem;
  z-index: 1;
  border: 1.5px solid rgba(83, 97, 184, 0.34);
  border-radius: 4rem;
  box-shadow:
    inset 0 0 2rem rgba(130, 137, 232, 0.07),
    0 0 1.4rem rgba(130, 137, 232, 0.09);
  opacity: 0;
  transform: scaleX(0.48) scaleY(0.82);
  animation: landing-boundary-draw 1ms linear both;
  animation-timeline: --landing-flow;
  animation-range: entry 0% exit 100%;
  pointer-events: none;
}

.landing-lane-shell--vendor .landing-ai-boundary {
  border-color: rgba(78, 115, 66, 0.32);
  box-shadow:
    inset 0 0 2rem rgba(120, 168, 108, 0.06),
    0 0 1.4rem rgba(120, 168, 108, 0.08);
}

.landing-ai-boundary span {
  position: absolute;
  bottom: -0.9rem;
  left: 50%;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: linear-gradient(96deg, #5361b8, #726fbe 52%, #5c8450);
  box-shadow: 0 0.7rem 1.6rem rgba(40, 48, 100, 0.28);
  color: #ffffff;
  font-size: 0.59rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateX(-50%) translateY(0.7rem) scale(0.82);
  animation: landing-ai-label-reveal 1ms linear both;
  animation-timeline: --landing-flow;
  animation-range: entry 0% exit 100%;
}

/* Required local-deployment disclosure: this build binds locally and has
   no auth or tenancy, so the public page states that plainly. */
.landing-note {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.15rem 1.25rem 2.4rem;
  color: var(--landing-ink-mute);
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.landing-note i {
  display: inline-block;
  flex: none;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--landing-company);
  opacity: 0.55;
}

.landing-decision {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: clamp(10.5rem, 14vw, 13rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 999px;
  background: linear-gradient(158deg, #272b42 0%, #15161f 62%, #101017 100%);
  box-shadow:
    0 1.6rem 3.2rem rgba(28, 37, 80, 0.2),
    0 0.5rem 1.1rem rgba(28, 37, 80, 0.11);
}

@media (min-width: 981px) {
  .landing-decision {
    transform: translateY(clamp(2.75rem, 6vh, 3.25rem));
  }
}

.landing-decision::before {
  position: absolute;
  inset: -1.9rem;
  border: 1px solid rgba(29, 29, 31, 0.07);
  border-radius: inherit;
  content: "";
  box-shadow:
    0 0 0 0.85rem rgba(130, 137, 232, 0.045),
    0 0 0 1.8rem rgba(120, 168, 108, 0.03);
}

.landing-wheel {
  position: absolute;
  inset: -1.6rem;
  width: calc(100% + 3.2rem);
  height: calc(100% + 3.2rem);
  overflow: visible;
  animation: landing-orbit 26s linear infinite;
}

.landing-wheel circle {
  fill: none;
  stroke: rgba(29, 29, 31, 0.16);
  stroke-width: 0.55;
  stroke-dasharray: 1.2 3.4;
}

/* The label rides ~20px clear of the orb at every clamp size, and a
   paper-coloured halo is painted behind the glyphs so they stay legible
   where the orb's soft shadow darkens the canvas underneath. */
.landing-wheel text {
  fill: rgba(29, 29, 31, 0.82);
  font-size: 7.4px;
  font-weight: 700;
  letter-spacing: 2px;
  paint-order: stroke fill;
  stroke: rgba(251, 251, 253, 0.92);
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.landing-decision__state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 1rem;
  text-align: center;
}

.landing-decision__state small {
  color: rgba(186, 190, 244, 0.86);
  font-size: 0.6rem;
  font-weight: 660;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Explicit light values: this text lives inside the dark decision core,
   so it must not follow the light-theme ink token. */
.landing-decision__state b {
  display: block;
  margin-top: 0.4rem;
  color: #f5f5f7;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.03em;
}

.landing-decision__state--one {
  animation: landing-state-one 1ms linear both;
  animation-timeline: --landing-flow;
  animation-range: entry 0% exit 100%;
}

.landing-decision__state--two {
  animation: landing-state-two 1ms linear both;
  animation-timeline: --landing-flow;
  animation-range: entry 0% exit 100%;
}

.landing-decision__state--three {
  animation: landing-state-three 1ms linear both;
  animation-timeline: --landing-flow;
  animation-range: entry 0% exit 100%;
}

.landing-core-activation {
  position: absolute;
  inset: 0.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.55);
  animation: landing-core-awaken 1ms linear both;
  animation-timeline: --landing-flow;
  animation-range: entry 0% exit 100%;
}

.landing-spectrum {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 30%, rgba(152, 159, 255, 0.94), transparent 37%),
    radial-gradient(circle at 72% 27%, rgba(139, 168, 255, 0.86), transparent 38%),
    radial-gradient(circle at 67% 76%, rgba(255, 150, 196, 0.86), transparent 38%),
    radial-gradient(circle at 30% 73%, rgba(160, 228, 180, 0.78), transparent 40%),
    #353a6b;
  box-shadow:
    inset 0 0 1.2rem rgba(255, 255, 255, 0.26),
    0 0 1.2rem rgba(152, 159, 255, 0.34),
    0 0 2.8rem rgba(139, 168, 255, 0.26),
    0 0 5.5rem rgba(255, 150, 196, 0.16);
  filter: saturate(1.25);
  animation: landing-spectrum-breathe 3.8s ease-in-out infinite;
}

.landing-spectrum::before,
.landing-spectrum::after {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 45% 55% 60% 40%;
  content: "";
  filter: blur(12px);
  mix-blend-mode: screen;
}

.landing-spectrum::before {
  top: -12%;
  left: -8%;
  background: linear-gradient(135deg, #8c92ff, #7c94ff);
  animation: landing-spectrum-drift-one 5.2s ease-in-out infinite alternate;
}

.landing-spectrum::after {
  right: -10%;
  bottom: -14%;
  background: linear-gradient(135deg, #ff92c3, #8fe2b6);
  animation: landing-spectrum-drift-two 6.4s ease-in-out infinite alternate;
}

.landing-core-activation strong {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 790;
  letter-spacing: 0.13em;
  text-shadow: 0 1px 0.8rem rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}

@keyframes landing-chaos-dissolve {
  0%, 25% { opacity: 0.72; }
  42%, 100% { opacity: 0; }
}

@keyframes landing-untangle-step {
  0%, 15% {
    opacity: 0.82;
    transform: translate(var(--start-x), var(--start-y)) rotate(var(--start-r));
  }
  43%, 100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
}

@keyframes landing-rail-resolve {
  0%, 30% { opacity: 0; transform: translateY(-50%) scaleX(0.35); }
  48%, 100% { opacity: 1; transform: translateY(-50%) scaleX(1); }
}

@keyframes landing-boundary-draw {
  0%, 48% { opacity: 0; transform: scaleX(0.48) scaleY(0.82); }
  66%, 100% { opacity: 1; transform: scaleX(1) scaleY(1); }
}

@keyframes landing-ai-label-reveal {
  0%, 58% { opacity: 0; transform: translateX(-50%) translateY(0.7rem) scale(0.82); }
  69%, 100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes landing-state-one {
  0%, 22% { opacity: 1; transform: scale(1); }
  33%, 100% { opacity: 0; transform: scale(0.88); }
}

@keyframes landing-state-two {
  0%, 25% { opacity: 0; transform: scale(0.88); }
  35%, 48% { opacity: 1; transform: scale(1); }
  57%, 100% { opacity: 0; transform: scale(0.88); }
}

@keyframes landing-state-three {
  0%, 44% { opacity: 0; transform: scale(0.88); }
  52%, 61% { opacity: 1; transform: scale(1); }
  69%, 100% { opacity: 0; transform: scale(0.88); }
}

@keyframes landing-core-awaken {
  0%, 64% { opacity: 0; transform: scale(0.55); filter: blur(10px); }
  73% { opacity: 1; transform: scale(1.08); filter: blur(0); }
  78%, 100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes landing-entry-dock-travel {
  0%, 90% { transform: translateX(-50%) scale(1); }
  97%, 100% {
    transform: translate(-50%, calc(100vh - 6.1rem)) scale(1.035);
  }
}

@keyframes landing-entry-glow {
  0%, 91% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
  97% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.08); }
  100% { opacity: 0.78; transform: translate(-50%, -50%) scale(1); }
}

@keyframes landing-flow-hero-recede {
  0%, 52% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  70%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-1.5rem) scale(0.975);
  }
}

@keyframes landing-orbit {
  to { transform: rotate(360deg); }
}

@keyframes landing-spectrum-breathe {
  0%, 100% { transform: scale(0.94) rotate(-2deg); filter: saturate(1.18) brightness(0.95); }
  50% { transform: scale(1.04) rotate(2deg); filter: saturate(1.42) brightness(1.12); }
}

@keyframes landing-spectrum-drift-one {
  from { transform: translate(-8%, -5%) rotate(0deg) scale(0.95); }
  to { transform: translate(33%, 28%) rotate(135deg) scale(1.16); }
}

@keyframes landing-spectrum-drift-two {
  from { transform: translate(6%, 8%) rotate(0deg) scale(1.08); }
  to { transform: translate(-34%, -24%) rotate(-150deg) scale(0.9); }
}

@supports not (animation-timeline: view()) {
  .landing-flow-step,
  .landing-ai-boundary,
  .landing-ai-boundary span,
  .landing-core-activation,
  .landing-entry-dock,
  .landing-entry-dock::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .landing-chaos-path,
  .landing-decision__state {
    display: none;
  }

  .landing-lane::after {
    animation: none !important;
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }

  .landing-ai-boundary span {
    transform: translateX(-50%) !important;
  }

  .landing-entry-dock {
    transform: translateX(-50%) !important;
  }

  .landing-entry-dock::before {
    opacity: 0.18 !important;
    transform: translate(-50%, -50%) scale(0.72) !important;
  }

  .landing-flow-hero {
    animation: none !important;
    opacity: 1 !important;
    transform: translateX(-50%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-root *,
  .landing-root *::before,
  .landing-root *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-timeline: auto !important;
    transition-duration: 0.01ms !important;
  }

  .landing-entry-dock,
  .landing-entry-dock::before {
    animation: none !important;
  }

  .landing-flow-step,
  .landing-ai-boundary,
  .landing-core-activation,
  .landing-entry-dock {
    opacity: 1 !important;
    transform: none !important;
  }

  .landing-chaos-path,
  .landing-decision__state {
    display: none;
  }

  .landing-lane::after,
  .landing-ai-boundary span {
    opacity: 1 !important;
  }

  .landing-ai-boundary span {
    transform: translateX(-50%) !important;
  }

  .landing-entry-dock {
    transform: translateX(-50%) !important;
  }

  .landing-entry-dock::before {
    opacity: 0.18 !important;
    transform: translate(-50%, -50%) scale(0.72) !important;
  }

  .landing-flow-hero {
    animation: none !important;
    opacity: 1 !important;
    transform: translateX(-50%) !important;
  }
}

/* The entry dock is viewport-centred and overlays the nav, so the meta
   strapline is retired before the two can touch. */
@media (max-width: 1180px) {
  .landing-nav__meta {
    display: none;
  }
}

@media (max-width: 980px) {
  .landing-flow-canvas {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1.8rem;
  }

  .landing-decision {
    grid-row: 2;
    width: 10rem;
  }

  .landing-lane-shell {
    height: 10.5rem;
  }

  .landing-lane {
    inset: 1.8rem 0 0;
  }

  .landing-lane::after {
    top: calc(50% + 1.425rem);
  }

  .landing-chaos-path {
    inset: 1.6rem 0 0;
    height: calc(100% - 1.6rem);
  }

  .landing-ai-boundary {
    inset: 4.15rem -0.25rem 0;
  }

  .landing-flow-step {
    grid-template-rows: minmax(2.4rem, auto) 2.7rem;
    gap: 0.45rem;
  }

  .landing-step__number {
    width: 2.65rem;
    height: 2.65rem;
  }
}

@media (max-width: 680px) {
  .landing-nav {
    width: min(100% - 1.5rem, 1180px);
  }

  .landing-nav__meta {
    display: none;
  }

  .landing-flow-story {
    height: auto;
    min-height: 0;
  }

  .landing-flow-stage {
    position: relative;
    height: auto;
    min-height: 1180px;
  }

  .landing-entry-dock {
    top: 1.5rem;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    width: min(25rem, calc(100% - 1.5rem));
    animation: none !important;
    transform: translateX(-50%) !important;
  }

  .landing-entry-dock::before {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(0.72);
    animation: none !important;
  }

  .landing-entry-link {
    min-height: 3.9rem;
  }

  .landing-flow-hero {
    top: 11rem;
    width: calc(100% - 1.5rem);
    animation: none !important;
    opacity: 1 !important;
    transform: translateX(-50%) !important;
  }

  .landing-flow-hero__eyebrow {
    font-size: 0.56rem;
  }

  .landing-flow-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .landing-flow-hero p {
    max-width: 32rem;
    font-size: 0.78rem;
  }

  .landing-flow-step,
  .landing-ai-boundary,
  .landing-core-activation {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .landing-chaos-path,
  .landing-decision__state {
    display: none;
  }

  .landing-lane::after {
    top: calc(50% + 1.225rem);
    animation: none !important;
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }

  .landing-ai-boundary span {
    animation: none !important;
    opacity: 1;
  }

  .landing-flow-canvas {
    padding-top: 21rem;
  }

  .landing-ai-boundary span {
    padding: 0.36rem 0.56rem;
    font-size: 0.48rem;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .landing-step__name {
    min-height: 2rem;
    padding: 0.32rem 0.25rem;
    font-size: 0.49rem;
  }

  .landing-step__number {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 0.7rem;
  }
}
