/* =====================================================================
   FL ECOSYSTEM — Homepage (editorial story rebuild)
   Self-contained stylesheet for index.html only.
   Legacy/shared page-shell styles live in legacy-homepage-style.css.

   Direction: pale editorial canvas, one flowing story, a single curved
   journey line, large premium serif headlines, FL gradient highlights,
   floating glass UI panels, lots of breathing room.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand solution colours */
  --create:  #FF6A00;
  --manage:  #007BFF;
  --connect: #8A2BE2;
  --promote: #FF2080;
  --learn:   #FFC400;

  /* Signature FL gradient */
  --grad: linear-gradient(100deg, #FF6A00 0%, #8A2BE2 52%, #007BFF 100%);

  /* Editorial neutrals on a pale canvas */
  --ink:       #1b1530;   /* headlines        */
  --ink-soft:  #36304c;   /* strong text      */
  --body:      #5b5675;   /* body copy        */
  --muted:     #8a85a1;   /* labels / hints   */
  --bg:        #f6f3fb;   /* pale lavender    */
  --panel:     #ffffff;
  --line:      #e8e3f1;
  --line-soft: #f0ecf6;

  /* Type */
  --serif: "Playfair Display", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing / shape */
  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 48px);
  --hdr-h: 78px;
  --gap-moment: clamp(96px, 18vh, 230px);

  /* Soft elevation */
  --sh-soft: 0 30px 70px -34px rgba(40, 20, 80, .35), 0 10px 30px -18px rgba(40, 20, 80, .18);
}

html[data-theme="dark"] {
  --ink:       #f7f3ff;
  --ink-soft:  #e7e1f3;
  --body:      #c7c1d5;
  --muted:     #938ca8;
  --bg:        #06070b;
  --panel:     rgba(255,255,255,.07);
  --line:      rgba(255,255,255,.11);
  --line-soft: rgba(255,255,255,.07);
  --sh-soft: 0 34px 90px -50px rgba(0,0,0,1), 0 0 0 1px rgba(255,255,255,.05);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  transition: background .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }

::selection { background: rgba(138, 43, 226, .16); }

/* ---------- Helpers ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  z-index: 300; transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

/* ---------- Pale canvas auras (gentle hazes, behind everything) ---------- */
.aura {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
}
.aura::before, .aura::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px);
}
.aura::before {
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  top: -16vh; right: -10vw;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 106, 0, .14), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(138, 43, 226, .12), transparent 62%);
  opacity: .9;
}
.aura::after {
  width: 56vw; height: 56vw; max-width: 700px; max-height: 700px;
  bottom: -18vh; left: -14vw;
  background: radial-gradient(circle, rgba(0, 123, 255, .12), transparent 64%);
  opacity: .85;
}

/* =====================================================================
   HEADER — minimal
   ===================================================================== */
.site-hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--hdr-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-hdr.is-scrolled {
  background: rgba(246, 243, 251, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(40, 20, 80, .06);
}
.site-hdr__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-hdr__actions { display: inline-flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__logo-wrap {
  position: relative; display: inline-flex; flex: none; isolation: isolate;
}
/* colour glows that follow the orbit nodes (no blob, no halo) */
.brand__logo-wrap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 122%; height: 122%;
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 106, 0, .30), transparent 26%),
    radial-gradient(circle at 76% 26%, rgba(0, 123, 255, .26), transparent 26%),
    radial-gradient(circle at 26% 76%, rgba(138, 43, 226, .26), transparent 26%),
    radial-gradient(circle at 76% 76%, rgba(255, 196, 0, .24), transparent 26%);
  filter: blur(7px);
}
.brand__logo {
  position: relative;
  width: 56px; height: 56px; flex: none;
  object-fit: contain;
  filter: saturate(1.12) drop-shadow(0 2px 5px rgba(40, 20, 80, .14));
}
.brand__name {
  font-weight: 600; font-size: .96rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-soft);
  white-space: nowrap;
}

.theme-toggle {
  position: relative;
  width: 46px; height: 38px; border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px; background: rgba(255,255,255,.58);
  color: var(--ink-soft); cursor: pointer;
  box-shadow: 0 12px 28px -18px rgba(40,20,80,.42), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -20px rgba(40,20,80,.5); }
.theme-toggle:focus-visible { outline: 3px solid rgba(0,123,255,.45); outline-offset: 3px; }
.theme-toggle__icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: opacity .22s ease, transform .22s ease;
}
.theme-toggle__icon svg { width: 18px; height: 18px; }
.theme-toggle__icon--moon { opacity: 0; transform: translateY(5px) scale(.88); }
html[data-theme="dark"] .theme-toggle__icon--sun { opacity: 0; transform: translateY(-5px) scale(.88); }
html[data-theme="dark"] .theme-toggle__icon--moon { opacity: 1; transform: none; }

html[data-theme="dark"] .site-hdr.is-scrolled {
  background: rgba(6,7,11,.72);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
html[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: #f7f3ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 50px -36px rgba(0,0,0,1);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: inherit; font-weight: 600; cursor: pointer;
  border: 0; border-radius: 999px;
  color: #fff; background: var(--grad);
  box-shadow: 0 16px 34px -14px rgba(138, 43, 226, .55), 0 6px 16px -8px rgba(0, 123, 255, .45);
  transition: transform .2s ease, box-shadow .28s ease, filter .2s ease;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(138, 43, 226, .62), 0 10px 22px -10px rgba(0, 123, 255, .5); }
.pill:focus-visible { outline: 3px solid rgba(0, 123, 255, .5); outline-offset: 3px; }
.pill--sm { padding: 11px 20px; font-size: .92rem; }
.pill--lg { padding: 18px 34px; font-size: 1.06rem; }
.pill__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}

/* =====================================================================
   STORY SHELL + JOURNEY LINE
   ===================================================================== */
.story { position: relative; }

/* The single curved journey line that runs the whole page */
.journey {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.journey__glow  { fill: none; stroke: url(#fl-journey); stroke-width: 9;   stroke-linecap: round; opacity: .22; filter: blur(8px); }
.journey__track { fill: none; stroke: url(#fl-journey); stroke-width: 2.2; stroke-linecap: round; opacity: .16; }
.journey__path  { fill: none; stroke: url(#fl-journey); stroke-width: 2.6; stroke-linecap: round; opacity: .95; }

/* Everything sits above the line */
.story > section { position: relative; z-index: 1; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--hdr-h) + 6vh) var(--pad) 7vh;
}
/* Hero mini "Online Presence Review" panel (CSS only) */
.hero__panel {
  margin-bottom: clamp(30px, 5vw, 56px);
  animation: float 9s ease-in-out infinite;
  --rot: -2deg;
}
.mini {
  width: clamp(248px, 30vw, 300px);
  text-align: left;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--sh-soft);
}
html[data-theme="dark"] .mini {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  box-shadow: var(--sh-soft);
}
html[data-theme="dark"] .mini__bar { background: rgba(255,255,255,.13); }
.mini__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mini__label {
  font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mini__score {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  font-size: .82rem; font-weight: 700; color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 18px -8px rgba(138, 43, 226, .6);
}
.mini__rows { display: flex; flex-direction: column; gap: 11px; }
.mini__rows li {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}
.mini__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mini__dot.ok   { background: #22b07a; box-shadow: 0 0 0 3px rgba(34, 176, 122, .14); }
.mini__dot.warn { background: var(--create); box-shadow: 0 0 0 3px rgba(255, 106, 0, .14); }
.mini__bar { margin-left: auto; width: 96px; height: 6px; border-radius: 5px; background: var(--line); overflow: hidden; }
.mini__bar i { display: block; height: 100%; border-radius: 5px; background: var(--grad); }

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.hero__title .ln2 { display: block; }

.hero__lede {
  margin: clamp(24px, 3.5vw, 36px) auto 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--body);
}

.hero__cta { margin-top: clamp(34px, 4.5vw, 46px); }

.hero__scroll {
  margin-top: clamp(40px, 7vh, 72px);
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted);
}
.hero__chev {
  width: 22px; height: 22px; color: var(--connect);
  animation: nudge 2.4s ease-in-out infinite;
}

/* =====================================================================
   STORY MOMENTS
   ===================================================================== */
.moment {
  padding-block: var(--gap-moment);
}
.moment__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(40px, 6vw, 96px);
}
/* Alternating placement */
.moment--right .moment__visual { order: 2; }
.moment--right .moment__text   { order: 1; }
.moment--left  .moment__visual { order: 1; }
.moment--left  .moment__text   { order: 2; }

.moment__label {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 20px;
}
.moment__heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.moment__body {
  margin-top: clamp(18px, 2.4vw, 26px);
  max-width: 42ch;
  font-size: 1.08rem;
  color: var(--body);
}
.moment--right .moment__body { /* keep readable measure on either side */ }

/* =====================================================================
   FLOATING GLASS PANELS (CSS-only fake UI)
   ===================================================================== */
.moment__visual { position: relative; display: flex; justify-content: center; }

/* soft coloured orb behind each panel */
.moment__visual::before {
  content: ""; position: absolute; z-index: 0;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent, rgba(138, 43, 226, .22)), transparent 68%);
  filter: blur(46px); opacity: .8;
  top: 8%; right: -6%;
}

.panel {
  --accent-solid: var(--connect);
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  padding: 18px;
  box-shadow:
    0 40px 80px -34px color-mix(in srgb, var(--accent-solid) 50%, rgba(30, 16, 60, .5)),
    0 10px 26px -16px rgba(30, 16, 60, .25);
  animation: float 11s ease-in-out infinite;
}
.moment--right .panel { transform: rotate(1.4deg); }
.moment--left  .panel { transform: rotate(-1.4deg); }

/* floating caption chip */
.panel__chip {
  position: absolute; top: -14px; left: 22px; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--accent-solid);
  padding: 6px 13px; border-radius: 999px;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent-solid) 75%, transparent);
}

/* shared faux-UI atoms */
.ui { display: flex; flex-direction: column; gap: 12px; }
.ui__bar { height: 9px; border-radius: 6px; background: var(--line); }
.ui__bar.w90 { width: 90%; } .ui__bar.w80 { width: 80%; } .ui__bar.w70 { width: 70%; }
.ui__bar.w60 { width: 60%; } .ui__bar.w50 { width: 50%; } .ui__bar.w40 { width: 40%; }
.ui__bar.tall { height: 13px; }
.ui__bar.grad { background: var(--grad); }
.ui__bar.tint { background: color-mix(in srgb, var(--accent-solid) 26%, var(--line)); }

.ui__row { display: flex; align-items: center; gap: 12px; }
.ui__dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.ui__chrome { display: flex; gap: 7px; margin-bottom: 4px; }
.ui__chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.ui__chrome i:nth-child(1) { background: #ffb4a8; }
.ui__chrome i:nth-child(2) { background: #ffd9a8; }
.ui__chrome i:nth-child(3) { background: #b9e6c0; }

.ui__field {
  height: 38px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
}
.ui__btn {
  height: 40px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center;
}
.ui__btn span { width: 42%; height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .85); }

.ui__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); flex: none; }
.ui__media { border-radius: 12px; background: color-mix(in srgb, var(--accent-solid) 14%, #f4f1f9); }
.ui__grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui__grid3 div { aspect-ratio: 1; border-radius: 9px; background: color-mix(in srgb, var(--accent-solid) 16%, #f1edf7); }

.ui__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui__stat { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ui__chart { display: flex; align-items: flex-end; gap: 8px; height: 84px; padding-top: 6px; }
.ui__chart i { flex: 1; border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--accent-solid) 30%, #e7e1f2); }
.ui__chart i.hi { background: var(--grad); }

.ui__pane { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.ui__side { display: flex; flex-direction: column; gap: 9px; padding-right: 4px; border-right: 1px solid var(--line); }
.ui__side .ui__bar { height: 8px; }

.ui__play {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--grad); display: grid; place-items: center;
}
.ui__play::after {
  content: ""; width: 0; height: 0;
  border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.ui__progress { height: 7px; border-radius: 5px; background: var(--line); overflow: hidden; }
.ui__progress i { display: block; height: 100%; border-radius: 5px; background: var(--grad); }

.ui__card { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ui__pad { padding: 6px 4px; }

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.final {
  text-align: center;
  padding: clamp(110px, 20vh, 240px) var(--pad) clamp(96px, 16vh, 200px);
}
.final__heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 20ch; margin-inline: auto;
}
.final__body {
  margin: clamp(22px, 3vw, 32px) auto 0;
  max-width: 54ch;
  font-size: 1.12rem; color: var(--body);
}
.final__cta { margin-top: clamp(34px, 4.5vw, 48px); }

/* =====================================================================
   SCROLL RAIL (progress pillar + chapter label) — right edge
   ===================================================================== */
.rail {
  position: fixed; top: 50%; right: clamp(16px, 2.4vw, 34px); transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 18px;
  pointer-events: none;
}
.rail__label {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: .68rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--connect); opacity: .72;
  transition: opacity .4s ease;
}
.rail__track {
  width: 3px; height: clamp(120px, 22vh, 200px); border-radius: 999px;
  background: rgba(138, 43, 226, .16);
  overflow: hidden;
}
.rail__fill {
  display: block; width: 100%; height: 0%;
  background: var(--grad); border-radius: 999px;
  transition: height .15s linear;
}

/* =====================================================================
   FOOTER — light editorial
   ===================================================================== */
.site-foot {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 88px) var(--pad) clamp(34px, 5vw, 52px);
  border-top: 1px solid var(--line);
}
html[data-theme="dark"] .site-foot { border-top-color: rgba(255,255,255,.10); }
.site-foot__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-foot__logo-wrap {
  position: relative; display: inline-flex; isolation: isolate;
  margin-bottom: 4px;
}
/* single soft glow behind the footer logo — one colour at a time, slowly
   cycling orange → purple → blue → gold. Low opacity + soft blur keep the
   wordmark crisp and avoid any multi-colour haze over the artwork. */
@property --foot-glow {
  syntax: "<color>";
  inherits: false;
  initial-value: rgba(255, 106, 0, 0.5);
}
.site-foot__logo-wrap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(200px, 23vw, 330px); height: clamp(118px, 13vw, 188px);
  /* light: soft dark spotlight lifts the logo so its artwork stays crisp — no colour haze */
  background: radial-gradient(closest-side, rgba(16,13,38,.30), rgba(16,13,38,.10) 58%, transparent 82%);
  filter: blur(20px);
  opacity: 1;
}
@keyframes footGlowCycle {
  0%, 100% { --foot-glow: rgba(255, 106, 0, .5); }  /* orange */
  25%      { --foot-glow: rgba(138, 43, 226, .5); } /* purple */
  50%      { --foot-glow: rgba(0, 123, 255, .5); }  /* blue   */
  75%      { --foot-glow: rgba(255, 196, 0, .5); }  /* gold   */
}
.site-foot__logo {
  position: relative;
  width: clamp(220px, 26vw, 360px); height: auto; object-fit: contain;
  filter: saturate(1.05) contrast(1.04) drop-shadow(0 8px 20px rgba(18,14,45,.20));
}
html[data-theme="dark"] .site-foot__logo {
  filter: saturate(1.12) brightness(1.05) contrast(1.03) drop-shadow(0 10px 26px rgba(0,0,0,.55));
}
html[data-theme="dark"] .site-foot__logo-wrap::before {
  background: radial-gradient(closest-side, rgba(150,134,255,.16), transparent 78%);
}
.site-foot__verbs {
  font-weight: 600; font-size: .82rem; letter-spacing: .12em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 4px; }
.site-foot__links a { color: var(--muted); font-size: .92rem; transition: color .2s ease; }
.site-foot__links a:hover { color: var(--ink); }
.site-foot__copy { margin-top: 8px; font-size: .82rem; color: var(--muted); }

/* =====================================================================
   REVEAL ANIMATION
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }

/* =====================================================================
   MOTION KEYFRAMES
   ===================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)) scale(var(--hover-scale, 1)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)) scale(var(--hover-scale, 1)); }
}
.moment--right .panel { --rot: 1.4deg; }
.moment--left  .panel { --rot: -1.4deg; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .rail { display: none; }
  .moment__inner { grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 8vw, 56px); text-align: center; }
  /* On stacked layout, always show the visual below the text */
  .moment--right .moment__text, .moment--left .moment__text { order: 1; }
  .moment--right .moment__visual, .moment--left .moment__visual { order: 2; }
  .moment__label { margin-bottom: 14px; }
  .moment__body { margin-inline: auto; }
  .panel { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-top: calc(var(--hdr-h) + 10vh); padding-bottom: 8vh; }
  .pill--lg { padding: 16px 26px; font-size: 1rem; }
  .brand__logo { width: 46px; height: 46px; }
  .brand { gap: 10px; }
  .brand__name { font-size: .8rem; letter-spacing: .12em; }
  .moment__visual::before { width: 86%; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__panel, .panel { animation: none; }
  .hero__chev { animation: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; }
}

/* =====================================================================
   ECOSYSTEM PREVIEW VISUALS (clickable product previews)
   ===================================================================== */

/* Registered so the hover scale can transition smoothly while the float
   keyframes read --hover-scale live (composes with translateY + rotate). */
@property --hover-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

.panel--preview {
  --preview-glow-a: color-mix(in srgb, var(--accent-solid) 58%, transparent);
  --preview-glow-b: color-mix(in srgb, var(--accent-solid) 34%, transparent);
  --preview-glow-c: color-mix(in srgb, var(--accent-solid) 20%, transparent);
  display: block;
  isolation: isolate;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: min(100%, 560px);
  max-width: 560px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    --hover-scale .5s cubic-bezier(.22, 1, .36, 1),
    filter .5s cubic-bezier(.22, 1, .36, 1);
}
.panel--preview::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -9% -18% -12%;
  border-radius: 42px;
  background:
    radial-gradient(ellipse at 52% 54%,
      var(--preview-glow-a) 0%,
      var(--preview-glow-b) 34%,
      var(--preview-glow-c) 54%,
      transparent 78%);
  filter: blur(34px);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity .5s cubic-bezier(.22, 1, .36, 1),
    transform .5s cubic-bezier(.22, 1, .36, 1);
}

.moment[data-chapter="The first 3 seconds"] .panel--preview {
  --preview-glow-a: rgba(255, 106, 0, .62);
  --preview-glow-b: rgba(255, 73, 135, .38);
  --preview-glow-c: rgba(255, 177, 109, .24);
}
.moment[data-chapter="The silent test"] .panel--preview {
  --preview-glow-a: rgba(138, 43, 226, .58);
  --preview-glow-b: rgba(255, 73, 170, .34);
  --preview-glow-c: rgba(190, 112, 255, .22);
}
.moment[data-chapter="The moment of truth"] .panel--preview {
  --preview-glow-a: rgba(138, 43, 226, .58);
  --preview-glow-b: rgba(116, 85, 255, .36);
  --preview-glow-c: rgba(184, 124, 255, .22);
}
.moment[data-chapter="The full experience"] .panel--preview {
  --preview-glow-a: rgba(0, 123, 255, .56);
  --preview-glow-b: rgba(45, 178, 255, .34);
  --preview-glow-c: rgba(102, 205, 255, .22);
}
.moment[data-chapter="The foundation"] .panel--preview {
  --preview-glow-a: rgba(255, 196, 0, .62);
  --preview-glow-b: rgba(255, 159, 36, .36);
  --preview-glow-c: rgba(255, 220, 91, .24);
}

/* Hover / keyboard focus: gentle scale(1.02) + slightly stronger accent glow. */
.panel--preview:hover,
.panel--preview:focus-visible {
  --hover-scale: 1.02;
  filter: drop-shadow(0 34px 46px rgba(30, 16, 60, .16));
}
.panel--preview:hover::before,
.panel--preview:focus-visible::before {
  opacity: 1;
  transform: scale(1.1);
}
.panel--preview:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-solid) 70%, #fff);
  outline-offset: 10px;
}

/* The screenshot is the visual; no browser shell, padding, or fixed crop frame. */
.panel__media {
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: visible;
  background: transparent;
}
.panel__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
  filter:
    saturate(1.04)
    contrast(1.02)
    drop-shadow(0 28px 42px rgba(30, 16, 60, .18));
}

/* Subtle "Explore →" overlay, revealed on hover/focus. */
.panel__explore {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: color-mix(in srgb, var(--accent-solid) 88%, transparent);
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--accent-solid) 75%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity .45s cubic-bezier(.22, 1, .36, 1),
    transform .45s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.panel--preview:hover .panel__explore,
.panel--preview:focus-visible .panel__explore {
  opacity: 1;
  transform: translateY(0);
}
.panel__arrow {
  display: inline-block;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.panel--preview:hover .panel__arrow,
.panel--preview:focus-visible .panel__arrow {
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .panel--preview {
    width: min(100%, 620px);
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .panel--preview {
    width: 100%;
    max-width: 100%;
  }
  .panel--preview::before {
    inset: -5% -8% -8%;
    filter: blur(26px);
  }
  .panel__media {
    border-radius: 14px;
  }
  .panel__explore {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
  }
}
