/* ---------- Tokens — Apple-like, monochrome ---------- */
:root {
  /* Pure neutrals */
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #fafafa;
  --surface-2: #ebebed;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);

  --fg: #1d1d1f;
  --fg-dim: #424245;
  --fg-mute: #6e6e73;
  --fg-faint: #a1a1a6;

  /* Single restrained accent — used very sparingly */
  --accent: #1d1d1f;          /* monochrome by default */
  --accent-soft: rgba(0, 0, 0, 0.06);

  /* Type — system stack like Apple/Livinity */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Geist", system-ui, sans-serif;
  --mono: "SF Mono", "Geist Mono", ui-monospace, Menlo, monospace;

  /* Rhythm */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --max: 1200px;
  --pad: clamp(22px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  min-height: 100vh;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  background: var(--bg);
  overflow-x: hidden;
}

.grain { display: none; }

/* Reset */
h1,h2,h3,h4,h5,p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { position: relative; padding-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(96px, 12vw, 180px); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg-mute);
  display: inline-block;
}

.display {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  font-size: clamp(54px, 10vw, 132px);
  text-wrap: balance;
  color: var(--fg);
}
.display em { font-style: normal; color: var(--fg-mute); font-weight: 700; }

/* "Everything" — real video clipped through the text shape.
   Layout span uses transparent text to reserve correct width; video
   stretches over that footprint; an SVG cover with a text-shaped mask
   paints the page background everywhere EXCEPT inside the letters,
   so the video only shows through the word. */
/* "Everything" — real video clipped through the text shape using
   CSS mask-image (so no rectangular leak outside the text). */
.everything-vid {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  font-style: normal;
  font-weight: 800;
  font-size: 1.18em;
  letter-spacing: -0.04em;
  margin-top: 0.45em;
  padding-top: 0.1em;
  isolation: isolate;
  z-index: 2;
  opacity: 0;
  transform: perspective(1200px) translateZ(-600px) translateY(60px) rotateX(28deg);
  animation: everythingEnter 1.6s cubic-bezier(.16,.84,.24,1) 2.0s forwards;
  transform-origin: center bottom;
  will-change: transform, opacity, filter;
}
@keyframes everythingEnter {
  0%   { opacity: 0; transform: perspective(1200px) translateZ(-600px) translateY(60px) rotateX(28deg) scale(0.7); filter: blur(14px); letter-spacing: 0.06em; }
  35%  { opacity: 0.6; filter: blur(8px); }
  55%  { opacity: 1; filter: blur(0); transform: perspective(1200px) translateZ(120px) translateY(-6px) rotateX(-4deg) scale(1.06); letter-spacing: -0.05em; }
  72%  { transform: perspective(1200px) translateZ(0)    translateY(2px)  rotateX(2deg)  scale(0.99); }
  100% { opacity: 1; filter: blur(0); transform: perspective(1200px) translateZ(0)    translateY(0)    rotateX(0)    scale(1);    letter-spacing: -0.04em; }
}
.everything-vid .ev-video { animation: evVideoIn 1.3s ease-out 2.4s both; }
@keyframes evVideoIn { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: scale(1); } }
.everything-vid .ev-layout {
  color: transparent;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.everything-vid .ev-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  /* Clip the video to the exact shape of the word using an inline SVG mask */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 220' preserveAspectRatio='none'><text x='500' y='120' text-anchor='middle' dominant-baseline='middle' font-family='-apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif' font-weight='800' font-size='200' letter-spacing='-6' textLength='980' lengthAdjust='spacingAndGlyphs' fill='white'>Everything</text></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 220' preserveAspectRatio='none'><text x='500' y='120' text-anchor='middle' dominant-baseline='middle' font-family='-apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif' font-weight='800' font-size='200' letter-spacing='-6' textLength='980' lengthAdjust='spacingAndGlyphs' fill='white'>Everything</text></svg>");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.everything-vid .ev-mask { display: none; }
.everything-vid .ev-cover { display: none; }

/* scroll-driven: Everything zooms toward the viewer while the surrounding
   "Your computer." / "you do." stays put. Grows in place, no blur. */
.everything-vid.scrolled {
  animation: none;
  transform: scale(calc(1 + var(--ev-scroll, 0) * 2.2));
  opacity: 1;
  filter: none;
  transition: none;
}
@keyframes everythingRise {
  0%   { opacity: 0; transform: translateY(80px) scale(0.9); filter: blur(12px); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0)    scale(1);   filter: blur(0); }
}
.everything-vid .ev-layout {
  color: transparent;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.everything-vid .ev-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  border-radius: 4px;
}
.everything-vid .ev-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.everything-vid .ev-cover { fill: var(--bg); }

/* "do" flicker */
.do-flick {
  display: inline-block;
  position: relative;
  width: 2.4ch;
  height: 1em;
  vertical-align: baseline;
  font-style: normal;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}
.do-flick { display: none; }
.type-line { white-space: nowrap; }
.type-computer {
  display: inline-block;
  position: relative;
  font-weight: 200;
  letter-spacing: -0.01em;
  white-space: nowrap;
  vertical-align: bottom;
  clip-path: inset(0 100% 0 0);
  animation: typeIn 1.0s steps(9, end) 0.3s forwards;
}
.type-computer::after {
  content: "";
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  width: 0.03em;
  background: var(--fg);
  right: 100%;
  animation:
    caretFollow 1.0s steps(9, end) 0.3s forwards,
    caretBlink 0.65s steps(2, end) 1.3s 4,
    caretGone 0s linear 3.9s forwards;
}
@keyframes typeIn      { to { clip-path: inset(0 0 0 0); } }
@keyframes caretFollow { to { right: -0.04em; } }
@keyframes caretBlink  { 50% { opacity: 0; } }
@keyframes caretGone   { to { opacity: 0; } }

/* After "computer" typing (ends ~1.3s) — Everything word fades/scales in,
   then "you do." reveals left-to-right with letters emerging from nothing. */
.everything-reveal {
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  filter: blur(8px);
  animation: evIn 1.0s cubic-bezier(.2,.7,.2,1) 1.5s forwards;
}
@keyframes evIn {
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
/* (legacy clip variant — superseded below) */
.do-flick::after { content: "."; color: var(--fg); position: absolute; right: -0.18em; bottom: 0; }
.display .thin { font-weight: 200; letter-spacing: -0.01em; }

/* Sequence:
   0.0s  "Your" fades in (0.6s)
   0.7s  "computer." types out (1.0s)
   1.9s  "Everything" 3D enter (1.6s)  — already set in everything-vid
   3.7s  "you do." slides in from left (0.8s) */
.your-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: yourIn 0.6s cubic-bezier(.2,.7,.2,1) 0s forwards;
}
@keyframes yourIn { to { opacity: 1; transform: translateY(0); } }

.type-computer { animation-delay: 0.7s !important; }
.type-computer::after { animation-delay: 0.7s, 1.7s, 4.3s !important; }

.you-do-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateX(-32px);
  filter: blur(8px);
  animation: youDoIn 0.9s cubic-bezier(.2,.7,.2,1) 3.7s forwards;
}
@keyframes youDoIn {
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--fg);
}
.h2 em { font-style: normal; color: var(--fg-mute); font-weight: 700; }

.lede {
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.4;
  color: var(--fg-mute);
  max-width: 56ch;
  text-wrap: pretty;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.mono { font-family: var(--mono); }
.hairline { height: 1px; background: var(--line); width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: opacity .2s ease, background .25s ease, color .2s ease, border-color .25s ease, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
body.dark .btn-primary:hover {
  box-shadow: 0 0 30px -4px rgba(255,255,255,0.630), 0 0 60px -10px rgba(255,255,255,0.394);
}
body.dark .btn-ghost:hover {
  border-color: rgba(255,255,255,0.540);
  box-shadow: 0 0 24px -6px rgba(255,255,255,0.438);
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-2); border-color: rgba(0,0,0,0.22); }

.btn .dot { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 1240px;
  margin: 14px auto 0;
  transition: max-width .35s cubic-bezier(.2,.7,.2,1),
              border-radius .35s ease,
              background .25s ease,
              top .25s ease;
}
.nav .nav-inner { transition: gap .35s cubic-bezier(.2,.7,.2,1), padding .35s ease, height .25s ease; }
.nav.stuck {
  max-width: 840px;
  border-radius: 999px;
  top: 14px;
}
.nav.stuck .nav-inner { gap: 18px; height: 58px; }
.nav.stuck .nav-links { gap: 22px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 8px 14px; font-size: 13px; }
.nav-cta .btn-icon { padding: 8px 10px; gap: 6px; }
.nav-cta-count { font-size: 12px; color: var(--fg-dim); }
.nav-signin {
  font-size: 13px;
  color: var(--fg-dim);
  text-decoration: none;
  padding: 6px 4px;
  transition: color .2s;
}
.nav-signin:hover { color: var(--fg); }
@media (max-width: 980px) {
  .nav-cta .btn-ghost[href="#install"] { display: none; }
  .nav-cta .btn-icon .nav-cta-count { display: none; }
}
body.dark .nav { background: rgba(0,0,0,0.78); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding-left: 20px;
  padding-right: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fg);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--bg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--fg-dim);
  font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: var(--fg); }

@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(56px, 7vw, 100px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
/* huly.io-inspired animated atmosphere — disabled; dark = inverse of light */
.hero-fx { display: none !important; }
body.dark #liv::before, body.dark #liv::after,
body.dark #apps::before, body.dark #apps::after,
body.dark #apps .marquee::before,
body.dark #install .install::before, body.dark #install .install::after,
body.dark #pricing::before, body.dark #pricing::after,
body.dark .path-card.feat::before,
body.dark #faq::before, body.dark #faq::after,
body.dark .footer::before { display: none !important; animation: none !important; }
body.dark .brandwall { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--fg); opacity: 0.14; }

/* perspective horizon grid */
.hero-fx__grid {
  position: absolute;
  left: 50%; top: 38%;
  width: 140%;
  height: 70%;
  transform: translateX(-50%);
  opacity: 0.55;
  animation: gridDrift 22s ease-in-out infinite alternate;
}
@keyframes gridDrift {
  0%   { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.45; }
  100% { transform: translateX(-50%) translateY(-12px) scale(1.03); opacity: 0.65; }
}

/* the breathing core — soft pulsing disc at top center */
.hero-fx__core {
  position: absolute;
  left: 50%; top: -120px;
  width: 1100px; height: 1100px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
    rgba(255,255,255,0.501) 0%,
    rgba(255,255,255,0.247) 22%,
    rgba(255,255,255,0.090) 45%,
    transparent 65%);
  filter: blur(20px);
  animation: corePulse 7s ease-in-out infinite;
  mix-blend-mode: screen;
}
.hero-fx__core-inner {
  position: absolute;
  left: 50%; top: -40px;
  width: 480px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
    rgba(255,255,255,0.858) 0%,
    rgba(255,255,255,0.470) 18%,
    rgba(255,255,255,0.153) 45%,
    transparent 70%);
  filter: blur(8px);
  animation: coreFlicker 5s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes corePulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.07); }
}
@keyframes coreFlicker {
  0%   { opacity: 0.7;  transform: translateX(-50%) scale(1); }
  50%  { opacity: 1;    transform: translateX(-50%) scale(1.04); }
  100% { opacity: 0.85; transform: translateX(-50%) scale(0.98); }
}

/* concentric ripples expanding out of the core */
/* the Livinity mark at the ripple source — visitor recognizes the origin */
.hero-fx__brand {
  position: absolute;
  left: 50%; top: 80px;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
.hero-fx__brand-mark {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(255,255,255,1.000);
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.153),
    0 0 0 14px rgba(255,255,255,0.068),
    0 0 40px 8px rgba(255,255,255,0.773),
    0 0 90px 20px rgba(255,255,255,0.438);
  animation: brandBreathe 4s ease-in-out infinite;
}
.hero-fx__brand-mark::after {
  content: "";
  position: absolute; inset: 18px;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.9);
}
.hero-fx__brand-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.682);
  animation: brandPulse 4s ease-out infinite;
}
@keyframes brandBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
@keyframes brandPulse {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.5); opacity: 0; }
}

.hero-fx__ripples {
  position: absolute;
  left: 50%; top: 80px;
  width: 0; height: 0;
}
.hero-fx__ripple {
  position: absolute;
  left: 50%; top: 50%;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.423);
  transform: translate(-50%, -50%) scale(0.4);
  animation: ripple 9s ease-out infinite;
  opacity: 0;
}
@keyframes ripple {
  0%   { transform: translate(-50%, -50%) scale(0.35); opacity: 0; border-color: rgba(255,255,255,0.707); }
  8%   { opacity: 0.9; }
  60%  { opacity: 0.35; border-color: rgba(255,255,255,0.311); }
  100% { transform: translate(-50%, -50%) scale(6.5); opacity: 0; border-color: rgba(255,255,255,0.000); }
}

/* embers drifting up — flecks of light */
.hero-fx__embers { position: absolute; inset: 0; }
.ember {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,1.000) 0%, rgba(255,255,255,0.900) 60%, transparent 100%);
  box-shadow: 0 0 8px rgba(255,255,255,0.658);
  animation: emberFloat linear infinite;
  --drift: 0px;
}
@keyframes emberFloat {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(calc(var(--drift) * 0.5), -55vh) scale(1); opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translate(var(--drift), -110vh) scale(0.7); opacity: 0; }
}

/* top sheen — a soft mauve ceiling that catches the eye */
.hero-fx__sheen {
  position: absolute;
  inset: 0 0 auto 0;
  height: 280px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.148) 0%,
    transparent 100%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.hero-top .display {
  min-height: auto;
  display: block;
  margin: 0 0 96px;
}

/* Hey Liv — Apple "hello" inspired greeting card */
.hey-liv {
  margin: 80px auto 40px;
  max-width: 980px;
  padding: 80px 48px 72px;
  border-radius: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  text-align: center;
}
body.dark .hey-liv { background: #0a0a0c; border-color: rgba(255,255,255,0.08); }
.hey-liv-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hey-liv-mark {
  position: absolute;
  inset: 24px 24px auto 24px;
  width: calc(100% - 48px);
  height: 120px;
  color: var(--fg);
  opacity: 0.07;
  z-index: 0;
}
.hey-liv-greet {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(56px, 8vw, 104px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}
.hey-liv-text {
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg-mute) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hey-liv-wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.4s ease-in-out infinite;
  font-size: 1.2em;
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
.hey-liv-sub {
  max-width: 520px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.45;
  color: var(--fg-mute);
  margin: 0;
}
.hey-liv-prompt {
  margin-top: 14px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: min(560px, 86%);
  font-size: 16px;
  color: var(--fg);
  text-align: left;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,0.18);
}
body.dark .hey-liv-prompt { background: #050507; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6); }
.hey-liv-prompt .cursor {
  width: 2px; height: 18px; background: var(--fg);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hey-liv-prompt .prompt-text {
  animation: promptIn 0.5s cubic-bezier(.2,.7,.2,1);
}
@keyframes promptIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hey-liv-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 6px;
}
.hl-chip {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg-mute);
  letter-spacing: 0.01em;
}
@media (max-width: 720px) {
  .hey-liv { padding: 56px 24px 48px; }
  .hey-liv-prompt { min-width: 100%; font-size: 14px; }
}
/* once entrance sequence is done, lock siblings to final state so
   scrolling away and back never replays or hides them. Everything
   keeps responding to scroll via --ev-scroll, but never hides. */
.display.entered .your-reveal,
.display.entered .type-computer,
.display.entered .you-do-reveal {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
}
.display.entered .everything-vid {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
  /* scroll-reactive scale: subtle breathe, never collapses below 1 */
  transform: scale(calc(1 + var(--ev-scroll, 0) * 1.4)) !important;
  transition: transform 0.08s linear;
}
.display.entered .everything-vid .ev-video {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.display.entered .type-computer .tc-inner { width: auto !important; }
.display.entered .type-computer::after { display: none !important; }
.hero-top .lede,
.hero-top .hero-ctas,
.hero-top .hero-stats {
  margin-top: 8px;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-mute);
  font-weight: 500;
}
.hero-meta .pill {
  background: transparent;
  color: var(--fg);
  padding: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 16px;
  text-align: left;
}
.stat-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.stat-num em { font-style: normal; color: var(--fg-mute); font-weight: 600; }
.stat-lbl { font-size: 13px; color: var(--fg-mute); font-weight: 400; }

/* OS window mock — Apple-like restrained */
.osframe-wrap {
  margin-top: clamp(56px, 7vw, 96px);
  position: relative;
}
.osframe-wrap::before { display: none; }

.osframe {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fbfbfd;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 30px 80px -30px rgba(0,0,0,0.22);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
.osframe-wrap { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.osframe-wrap:hover { transform: translateY(-6px); }
body.dark .osframe-wrap:hover .osframe {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    0 40px 100px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 120px -10px rgba(255,255,255,0.731),
    0 0 260px -30px rgba(255,255,255,0.585);
}
.osframe-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #f5f5f7;
  border-bottom: 1px solid var(--line);
}
.lights { display: flex; gap: 7px; }
.lights span { width: 11px; height: 11px; border-radius: 50%; background: #e4e4e6; }
.lights span:nth-child(1) { background: #ff5f57; }
.lights span:nth-child(2) { background: #febc2e; }
.lights span:nth-child(3) { background: #28c840; }
.osbar-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--fg-mute);
  font-weight: 500;
}
.osbar-right { display: flex; gap: 8px; color: var(--fg-mute); }
.osbar-right .chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  font-weight: 500;
}

.osframe-body {
  display: grid;
  grid-template-columns: 220px 1fr 340px;
  min-height: 560px;
  background: var(--bg);
}
@media (max-width: 980px) {
  .osframe-body { grid-template-columns: 1fr; min-height: 0; }
  .os-sidebar, .os-aside { display: none; }
}

.os-sidebar {
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
}
.os-sidebar h5 {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-mute);
  padding: 0 10px 10px;
  text-transform: none;
  letter-spacing: 0;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--fg-dim);
  font-size: 14px;
  cursor: pointer;
  font-weight: 400;
}
.sidebar-item:hover { background: rgba(0,0,0,0.04); color: var(--fg); }
.sidebar-item.active { background: var(--fg); color: var(--bg); }
.sidebar-item.active .badge { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.86); }
.sidebar-item .ico { width: 18px; height: 18px; display: grid; place-items: center; }
.sidebar-item .badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg-mute);
  border: 1px solid var(--line);
  font-weight: 500;
}

.os-main {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.os-main-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.os-main-head h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.os-main-head .sub { font-size: 12px; color: var(--fg-mute); font-weight: 500; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 1100px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
.app-tile {
  position: relative;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 116px;
  overflow: hidden;
  transition: background .25s ease, border-color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  cursor: pointer;
}
.app-tile:hover {
  background: #ebebed;
  border-color: var(--line);
  transform: translateY(-3px);
}
body.dark .app-tile:hover {
  background: #1a1a1f;
  border-color: rgba(255,255,255,0.340);
  box-shadow: 0 0 30px -5px rgba(255,255,255,0.438), 0 12px 30px -10px rgba(0,0,0,0.5);
}
body.dark .app-tile:hover .glyph {
  background: linear-gradient(135deg, rgba(255,255,255,0.940), rgba(255,255,255,0.825));
  box-shadow: 0 0 20px -2px rgba(255,255,255,0.540);
  transform: scale(1.06);
}
.app-tile .glyph { transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s ease, box-shadow .35s ease; }
.app-tile .glyph {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  background: var(--fg);
}
.app-tile .name { font-size: 14px; font-weight: 500; color: var(--fg); }
.app-tile .meta { font-size: 11px; color: var(--fg-mute); font-weight: 500; letter-spacing: 0; text-transform: none; }
.app-tile .status {
  position: absolute;
  top: 14px; right: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #28c840;
}
.app-tile .status.off { background: var(--fg-faint); }

.os-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.os-stat {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.os-stat .l { font-size: 11px; color: var(--fg-mute); font-weight: 500; letter-spacing: 0; text-transform: none; }
.os-stat .v { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; color: var(--fg); }
.os-stat .v em { font-style: normal; color: var(--fg-mute); font-weight: 500; }
.os-stat .bar { height: 4px; border-radius: 2px; background: var(--bg-2); margin-top: 10px; overflow: hidden; }
.os-stat .bar i { display: block; height: 100%; background: var(--fg); border-radius: 2px; }

/* Aside: Liv chat */
.os-aside {
  border-left: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.aside-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
}
.liv-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--fg);
  position: relative;
}
.liv-avatar::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg);
}
.aside-head h4 { font-size: 14px; font-weight: 600; color: var(--fg); }
.aside-head .who { font-size: 11px; color: var(--fg-mute); font-weight: 500; text-transform: none; letter-spacing: 0; }
.aside-head .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #28a444;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.aside-head .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #28c840;
}

.chat {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
}
.bubble.user {
  align-self: flex-end;
  background: var(--fg);
  color: var(--bg);
  border-bottom-right-radius: 6px;
}
.bubble.liv {
  align-self: flex-start;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.bubble.liv .tool {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bubble.liv .tool .ok { color: #28a444; }
.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-faint);
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.chat-input {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
}
.chat-input .field {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--fg-mute);
}
.chat-input .send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
}

/* ---------- Channels ---------- */
.channels {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 0;
  border: 0;
  background: transparent;
}
.channels .lbl {
  font-size: 13px;
  color: var(--fg-mute);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}
.channels .logos { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; justify-content: center; }
.channels .ch { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-dim); font-size: 14px; font-weight: 500; }
.channels .ch svg { width: 18px; height: 18px; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 64px;
}
.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 36px;
  overflow: hidden;
  transition: background .25s ease, transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .25s ease;
}
.card:hover { background: #ebebed; transform: translateY(-4px); }
body.dark .card:hover {
  background: #14141a;
  border-color: rgba(255,255,255,0.255);
  box-shadow: 0 0 60px -10px rgba(255,255,255,0.297), 0 20px 50px -20px rgba(0,0,0,0.6);
}
.card .num {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-mute);
  text-transform: none;
  letter-spacing: 0;
}
.card h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 12px;
  text-wrap: balance;
  color: var(--fg);
}
.card h3 em { font-style: normal; color: var(--fg-mute); font-weight: 600; }
.card p {
  margin-top: 14px;
  color: var(--fg-mute);
  font-size: 17px;
  line-height: 1.45;
  max-width: 44ch;
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
@media (max-width: 900px) {
  .span-7, .span-5, .span-6, .span-4, .span-8 { grid-column: span 12; }
}

.fv {
  margin-top: 32px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.fv-skills {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.skill-row {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
}
.skill-row .tag {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--bg);
  background: var(--fg);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}

.fv-vault {
  position: relative;
  padding: 40px;
  min-height: 240px;
  display: grid;
  place-items: center;
}
.vault {
  width: 140px; height: 140px;
  border-radius: 28px;
  background: var(--fg);
  position: relative;
  display: grid;
  place-items: center;
}
.vault::before { display: none; }
.vault svg { width: 56px; height: 56px; color: var(--bg); }

.fv-mcp {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
}
.mcp-line { color: var(--fg-mute); display: flex; gap: 12px; }
.mcp-line .ts { color: var(--fg-faint); }
.mcp-line.in { color: var(--fg); }
.mcp-line.out { color: #28a444; }
.mcp-line.tool { color: var(--fg-mute); }

/* ---------- Channels (Liv is wherever you are) ---------- */
.channels {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.channel {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.channel:hover { transform: translateY(-2px); border-color: var(--fg-faint); background: rgba(0,0,0,0.02); }
body.dark .channel { background: #0e0e10; border-color: rgba(255,255,255,0.10); color: #f5f5f7; }
body.dark .channel:hover { background: #15151a; border-color: rgba(255,255,255,0.22); }
.channel.wide { grid-column: 1 / -1; }
.channel .ch-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 6px 16px -8px rgba(0,0,0,0.4);
}
.channel .ch-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel .ch-n { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.channel .ch-sub { font-size: 12px; color: var(--fg-mute); }
body.dark .channel .ch-sub { color: #a1a1a8; }
.channel .ch-arr { color: var(--fg-mute); display: grid; place-items: center; }
@media (max-width: 720px) {
  .channels { grid-template-columns: 1fr; }
  .channel.wide { grid-column: auto; }
}

/* ---------- Subscription killer (Stop renting your tools) ---------- */
.apps-head { margin-bottom: 36px; }
.apps-head h2 em { font-style: normal; color: var(--fg-mute); font-weight: 700; }
em.pay-counter, .display em.pay-counter, h2 em.pay-counter {
  font-style: normal !important; font-weight: 800; font-variant-numeric: tabular-nums;
  display: inline-block; min-width: 4ch;
  --pp: 0;
  --pay-c: color-mix(in oklab, #ff3b30 calc((1 - var(--pp)) * 100%), #34ff7a calc(var(--pp) * 100%));
  color: var(--pay-c) !important;
  text-shadow: none;
  transition: color .15s linear;
}
.apps-head .lede em { font-style: normal; color: var(--fg); font-weight: 600; }

.swap-stage {
  position: relative;
  padding: 28px 32px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-2);
  overflow: hidden;
}
body.dark .swap-stage { background: #0a0a0c; border-color: rgba(255,255,255,0.10); }

/* gentle horizontal ticker of subscriptions in the background */
.swap-marquee {
  position: absolute; left: 0; right: 0; top: 14px;
  overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.swap-marquee-track {
  display: inline-flex; gap: 14px; padding-left: 24px;
  animation: swapTicker 38s linear infinite;
  white-space: nowrap;
}
@keyframes swapTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.swap-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px; color: var(--fg-mute);
  background: var(--bg);
}
body.dark .swap-chip { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
.swap-chip-name { font-weight: 600; color: var(--fg-dim); }
.swap-chip-price { color: var(--fg-mute); font-variant-numeric: tabular-nums; }

/* the central focal point — paid → free */
.swap-hero {
  position: relative; z-index: 1;
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
  padding: 36px 24px;
}
.swap-hero-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.swap-hero-side.free { align-items: flex-end; text-align: right; }
.swap-hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-mute);
}
.swap-hero.compact { padding: 22px 18px; margin-top: 40px; }
.swap-hero.compact .swap-hero-name { font-size: clamp(22px, 2.6vw, 32px) !important; }
.swap-hero.compact .swap-hero-eyebrow { font-size: 10px; }
.swap-hero.compact .swap-hero-meta { font-size: 12.5px; }
.swap-hero-side.free .swap-hero-eyebrow { color: #22c55e; }
.swap-hero-name {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1;
  color: var(--fg);
  animation: swapFlip 1.6s cubic-bezier(.2,.7,.2,1);
}
.swap-hero-side.paid .swap-hero-name { color: var(--fg-dim); }
@keyframes swapFlip {
  0%   { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(6px); }
  50%  { opacity: 1; transform: translateY(0)   scale(1);    filter: blur(0); }
  100% { opacity: 1; transform: translateY(0)   scale(1);    filter: blur(0); }
}
.swap-hero-meta { font-size: 14px; color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.swap-hero-side.free .swap-hero-meta { color: #22c55e; }
.swap-hero-arrow {
  color: var(--fg-mute);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.swap-hero-arrow::before {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%; background: radial-gradient(circle, rgba(34,197,94,0.18), transparent 70%);
  animation: arrowPulse 1.6s ease-in-out infinite;
}
@keyframes arrowPulse { 0%,100% { transform: scale(0.9); opacity: 0.6; } 50% { transform: scale(1.1); opacity: 1; } }
.swap-hero-arrow svg { position: relative; z-index: 1; animation: arrowNudge 1.6s ease-in-out infinite; }
@keyframes arrowNudge { 0%,100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }

/* clean savings line — no big card, no strikethroughs */
.sub-savings {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
}
.sub-line {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; justify-content: center;
  font-size: 15px;
}
.sub-lbl { color: var(--fg-mute); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.sub-old, .sub-new {
  font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.sub-old { color: var(--fg-dim); font-size: 22px; opacity: 0.7; }
.sub-new { color: var(--fg); font-size: 28px; }
.sub-new .mo, .sub-old .mo { font-size: 0.5em; font-weight: 600; color: var(--fg-mute); margin-left: 2px; }
.sub-arrow { color: var(--fg-mute); }
.sub-note { font-size: 13px; color: var(--fg-mute); }
.sub-note .hi { color: var(--fg); font-weight: 600; }
.sub-note .hi::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); } 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }

.swap-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 14px;
  position: relative; z-index: 1;
}
.swap-dot-btn {
  width: 6px; height: 6px; border-radius: 50%; padding: 0; border: 0;
  background: var(--fg-faint); cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.swap-dot-btn.on { width: 22px; border-radius: 3px; background: var(--fg); }

@media (max-width: 640px) {
  .swap-hero { grid-template-columns: 1fr; text-align: center; gap: 12px; padding: 24px 8px; }
  .swap-hero-side.free { align-items: center; text-align: center; }
  .swap-hero-arrow { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .swap-marquee-track, .swap-hero-name, .swap-hero-arrow::before, .swap-hero-arrow svg, .sub-note .hi::before { animation: none !important; }
}
.lib-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 1100px) { .lib-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .lib-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .lib-grid { grid-template-columns: repeat(2, 1fr); } }
.lib-tile {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 112px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background .25s ease, box-shadow .25s ease;
  cursor: pointer;
  opacity: 0;
  animation: libFadeIn .5s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes libFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.lib-tile:hover {
  transform: translateY(-3px);
  border-color: var(--fg-faint);
  background: rgba(0,0,0,0.02);
}
body.dark .lib-tile {
  background: #f5f5f7;
  border-color: rgba(255,255,255,0.06);
  color: #111;
}
body.dark .lib-tile:hover {
  background: #ffffff;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 14px 40px -16px rgba(255,255,255,0.18);
}
.lib-g {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 600;
  background: var(--fg);
  color: var(--bg);
  margin-bottom: 6px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
body.dark .lib-g { background: #111; color: #f5f5f7; }
.lib-tile:hover .lib-g { transform: scale(1.06) rotate(-2deg); }
.lib-n { font-size: 14px; font-weight: 600; color: inherit; letter-spacing: -0.01em; }
.lib-c { font-size: 11px; color: var(--fg-mute); font-weight: 500; }
body.dark .lib-c { color: #6b6b73; }
.lib-tile.lib-more {
  background: transparent;
  border: 1px dashed var(--fg-faint);
}
body.dark .lib-tile.lib-more {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.18);
  color: #d6d8e3;
}
body.dark .lib-tile.lib-more .lib-g { background: transparent; color: #d6d8e3; border: 1px solid rgba(255,255,255,0.2); }
body.dark .lib-tile.lib-more .lib-c { color: #a1a1a8; }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 40px;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marq 50s linear infinite;
}
@keyframes marq { to { transform: translateX(-50%); } }
.mq-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bg-2);
  white-space: nowrap;
  font-size: 14px;
  color: var(--fg-dim);
  font-weight: 500;
}
.mq-chip .dot {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--fg);
}

/* ---------- Install ---------- */
.install {
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 72px);
  background: #0a0a0c;
  color: #f5f5f7;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.install .eyebrow { color: rgba(255,255,255,0.55); }
.install .h2 { color: #f5f5f7; }
.install .h2 em { color: rgba(255,255,255,0.55); }
.install .lede { color: rgba(255,255,255,0.78); }
.install .btn-primary { background: #f5f5f7; color: #0a0a0c; }
.install .btn-ghost { color: #f5f5f7; border-color: rgba(255,255,255,0.25); }
.install .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.5); }
.install .check-row { color: rgba(255,255,255,0.7) !important; }

.install-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .install-grid { grid-template-columns: 1fr; gap: 32px; } }

.terminal {
  border-radius: 16px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #0e0e10;
}
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }
.terminal-body {
  padding: 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
}
.terminal-body .prompt { color: #fff; }
.terminal-body .ok { color: #4ade80; }
.terminal-body .com { color: rgba(255,255,255,0.45); }
.terminal-body .cur::after {
  content: "▍";
  display: inline-block;
  margin-left: 4px;
  color: #fff;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Stack diagram (inside a feature card) ---------- */
.stack-diagram.in-card {
  margin-top: 14px;
  display: flex; flex-direction: column;
  gap: 0;
}
.stack-diagram.in-card .stack-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
  padding: 5px 2px;
  border-radius: 6px;
  transition: transform .2s ease;
}
.stack-diagram.in-card .stack-row:hover { transform: translateX(2px); }
.stack-diagram.in-card .stack-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
}
.stack-diagram.in-card .stack-icon svg { width: 12px; height: 12px; }
.stack-diagram.in-card .stack-name {
  font: 600 12px/1.2 var(--sans, system-ui);
  color: var(--fg);
}
.stack-diagram.in-card .stack-desc {
  margin-top: 1px;
  color: var(--fg-mute);
  font: 400 10.5px/1.3 var(--sans, system-ui);
}
.stack-diagram.in-card .stack-arrow {
  width: 1px; height: 6px;
  margin: 0 0 0 12px;
  background: var(--line-strong);
}
.stack-diagram.in-card .stack-arrow::after { display: none; }

/* L·Use — animated mini-browser w/ Liv learning a click sequence */
.fv-luse { display: flex; align-items: center; justify-content: center; padding: 16px; }
.luse-browser {
  width: 100%; max-width: 360px; aspect-ratio: 4 / 3;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  overflow: hidden; position: relative;
  box-shadow: 0 10px 32px -16px rgba(0,0,0,0.4);
}
.luse-bar {
  height: 26px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
}
.luse-bar > span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.luse-url {
  margin-left: 10px;
  font: 500 10px/1 var(--mono, ui-monospace, Menlo, monospace);
  color: var(--fg-mute);
  background: var(--bg-2);
  padding: 4px 10px; border-radius: 6px;
  flex: 1; max-width: 200px;
}
.luse-stage {
  position: relative; height: calc(100% - 26px);
  padding: 14px; box-sizing: border-box;
}
.luse-card {
  position: absolute;
  top: 44px; left: 50px; right: 50px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  display: flex; flex-direction: column; gap: 8px;
}
.luse-card-title { height: 10px; width: 55%; border-radius: 3px; background: var(--fg); opacity: 0.85; }
.luse-card-row { height: 6px; border-radius: 3px; background: var(--line); }
.luse-card-row.r1 { width: 92%; }
.luse-card-row.r2 { width: 78%; }
.luse-card-row.r3 { width: 64%; }

.luse-btn {
  position: absolute;
  font: 600 10px/1 var(--sans, system-ui);
  letter-spacing: 0.01em;
  padding: 7px 11px; border-radius: 7px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: var(--bg-2);
  white-space: nowrap;
  z-index: 2;
}
/* Skip — top right */
.luse-btn.t1 {
  top: 12px; right: 14px;
  padding: 6px 10px;
  border-color: var(--line);
  color: var(--fg-mute);
  background: transparent;
  animation: luseBtnPress 9s 1.2s ease-in-out infinite;
}
/* Connect — center primary */
.luse-btn.t2 {
  top: 132px; left: 50%; transform-origin: center;
  transform: translateX(-50%);
  padding: 9px 14px;
  background: var(--fg); color: var(--bg); border-color: var(--fg);
  animation: luseBtnPressCenter 9s 3.8s ease-in-out infinite;
}
/* Continue — bottom right */
.luse-btn.t3 {
  bottom: 14px; right: 14px;
  padding: 8px 12px;
  animation: luseBtnPress 9s 6.4s ease-in-out infinite;
}
@keyframes luseBtnPress {
  0%,10%   { transform: scale(1); filter: brightness(1); }
  12%,16%  { transform: scale(0.9); filter: brightness(0.65); }
  20%,100% { transform: scale(1); filter: brightness(1); }
}
@keyframes luseBtnPressCenter {
  0%,10%   { transform: translateX(-50%) scale(1); filter: brightness(1); }
  12%,16%  { transform: translateX(-50%) scale(0.9); filter: brightness(0.7); }
  20%,100% { transform: translateX(-50%) scale(1); filter: brightness(1); }
}

/* cursor moves between three buttons — now above them */
.luse-cursor {
  position: absolute; top: 0; left: 0;
  color: var(--fg);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
  z-index: 5;
  animation: luseCursor 9s cubic-bezier(.55,.05,.35,1) infinite;
}
@keyframes luseCursor {
  0%   { transform: translate( 20px,  20px); opacity: 0; }
  4%   { opacity: 1; }
  /* Skip (top-right) — button center ~ (322, 22) */
  13%  { transform: translate(311px,  12px); opacity: 1; }
  16%  { transform: translate(311px,  12px) scale(0.82); }
  22%  { transform: translate(311px,  12px) scale(1); }
  /* Connect (center) — button center ~ (180, 144) */
  38%  { transform: translate(169px, 134px); }
  42%  { transform: translate(169px, 134px) scale(0.82); }
  48%  { transform: translate(169px, 134px) scale(1); }
  /* Continue (bottom-right) — button center ~ (310, 212) */
  68%  { transform: translate(299px, 202px); }
  72%  { transform: translate(299px, 202px) scale(0.82); }
  78%  { transform: translate(299px, 202px) scale(1); }
  /* drift off */
  92%  { transform: translate(330px, 240px); opacity: 0.6; }
  100% { transform: translate(330px, 240px); opacity: 0; }
}

.luse-ping {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  border: 2px solid var(--fg);
  opacity: 0;
  z-index: 3;
}
.luse-ping.p1 { top:  20px; left: 318px; animation: lusePing 9s 1.2s ease-out infinite; }
.luse-ping.p2 { top: 142px; left: 176px; animation: lusePing 9s 3.8s ease-out infinite; }
.luse-ping.p3 { top: 210px; left: 306px; animation: lusePing 9s 6.4s ease-out infinite; }
@keyframes lusePing {
  0%   { transform: scale(0); opacity: 0; }
  3%   { transform: scale(0.5); opacity: 0.9; }
  18%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

.luse-toast {
  position: absolute; left: 14px; bottom: 14px;
  font: 600 10px/1 var(--sans, system-ui);
  letter-spacing: 0.02em;
  padding: 6px 9px; border-radius: 7px;
  background: var(--fg); color: var(--bg);
  opacity: 0;
  z-index: 4;
}
.luse-toast.s1 { animation: luseToastStep 9s 1.6s ease-in-out infinite; }
.luse-toast.s2 { animation: luseToastStep 9s 4.2s ease-in-out infinite; }
.luse-toast.s3 { animation: luseToastStep 9s 6.8s ease-in-out infinite; }
@keyframes luseToastStep {
  0%   { transform: translateY(6px); opacity: 0; }
  4%   { transform: translateY(0);   opacity: 1; }
  20%  { transform: translateY(0);   opacity: 1; }
  26%  { transform: translateY(-4px); opacity: 0; }
  100% { transform: translateY(-4px); opacity: 0; }
}
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 56px;
}
.paths.two { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin-inline: auto; }
@media (max-width: 900px) { .paths, .paths.two { grid-template-columns: 1fr; } }
.ribbon.ghost { background: rgba(0,0,0,0.06); color: var(--fg-mute); }
body.dark .ribbon.ghost { background: rgba(255,255,255,0.08); color: var(--fg-dim); }
.paths.two { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-left: auto; margin-right: auto; }
@media (max-width: 800px) { .paths.two { grid-template-columns: 1fr; } }
.ribbon.ghost { background: rgba(255,255,255,0.06); color: var(--fg-dim); }
.path-card {
  padding: 36px;
  border-radius: 22px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 380px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .25s ease;
}
body.dark .path-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 60px -10px rgba(255,255,255,0.387), 0 24px 60px -20px rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.301);
}
body.dark .path-card.feat:hover {
  box-shadow: 0 0 80px -10px rgba(255,255,255,0.540), 0 30px 70px -20px rgba(0,0,0,0.8);
}
.path-card.feat {
  background: var(--fg);
  color: var(--bg);
  position: relative;
}
.path-card.feat h4 em,
.path-card.feat .price em,
.path-card.feat .dim,
.path-card.feat li { color: rgba(255,255,255,0.7); }
.path-card.feat li::before { background: rgba(255,255,255,0.6); }
.path-card.feat .ribbon { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.14); }
.path-card.feat .btn-primary { background: var(--bg); color: var(--fg); }
.path-card.feat .btn-ghost { color: var(--bg); border-color: rgba(255,255,255,0.3); }

.path-card .ribbon {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 11px;
  color: var(--fg);
  background: rgba(0,0,0,0.06);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.path-card h4 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.path-card h4 em { font-style: normal; color: var(--fg-mute); font-weight: 600; }
.path-card .price {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.path-card .price em { font-style: normal; font-weight: 500; color: var(--fg-mute); font-size: 17px; }
.path-card .dim { color: var(--fg-mute); }
.path-card ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.path-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--fg-dim);
}
.path-card li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fg);
  margin-top: 9px;
  flex-shrink: 0;
}
.path-card .cta { margin-top: auto; align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 50px 1fr 30px;
  gap: 20px;
  cursor: pointer;
  align-items: start;
}
.faq-item .n {
  font-size: 13px;
  color: var(--fg-mute);
  padding-top: 4px;
  font-weight: 500;
}
.faq-item h5 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--fg);
}
.faq-item .a {
  margin-top: 14px;
  color: var(--fg-mute);
  font-size: 17px;
  max-width: 70ch;
  line-height: 1.45;
  display: none;
}
.faq-item.open .a { display: block; }
.faq-item .toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  color: var(--fg);
  transition: transform .25s, background .25s;
  border: 0;
}
.faq-item.open .toggle { background: var(--fg); color: var(--bg); transform: rotate(45deg); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: 36px;
  position: relative;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h6 {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.footer a { display: block; padding: 5px 0; color: var(--fg-mute); font-size: 14px; }
.footer a:hover { color: var(--fg); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-mute);
  flex-wrap: wrap;
}

.brandwall {
  margin-top: 56px;
  font-family: var(--sans);
  font-size: clamp(80px, 22vw, 320px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--fg);
  text-align: center;
  user-select: none;
  opacity: 0.08;
}
body.dark .brandwall { opacity: 0.14; }
body.dark .footer-base { color: var(--fg-dim); }
body.dark .footer a { color: var(--fg-dim); }
body.dark .footer a:hover { color: var(--fg); }
body.dark .footer h6 { color: var(--fg); }
.brandwall em { font-style: normal; font-weight: 700; }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.muted { color: var(--fg-mute); }
.dim { color: var(--fg-mute); }

/* ---------- DARK MODE ---------- */
body.dark {
  --bg: #000000;
  --bg-2: #0a0a0c;
  --surface: #111114;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --fg: #f5f5f7;
  --fg-dim: #c7c7cc;
  --fg-mute: #86868b;
  --fg-faint: #48484a;
  --accent: #f5f5f7;
}
body.dark .nav { background: rgba(0,0,0,0.72); }
body.dark .osframe {
  background: #0e0e10;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 80px -10px rgba(255,255,255,0.454),
    0 0 200px -40px rgba(255,255,255,0.394);
  border-color: rgba(255,255,255,0.08);
}
body.dark .osframe-wrap::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.423),
    rgba(255,255,255,0.128) 40%,
    transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
body.dark .osframe-bar { background: #14141a; }
body.dark .aside-head, body.dark .chat-input, body.dark .osframe-body { background: var(--bg); }
body.dark .os-sidebar, body.dark .os-aside { background: #0a0a0c; }
body.dark .footer { background: #0a0a0c; }
body.dark .terminal { border-color: var(--line-strong); }
body.dark .path-card {
  background: #131316;
  border: 1px solid var(--line);
}
body.dark .path-card h4,
body.dark .path-card .price { color: #f5f5f7; }
body.dark .path-card h4 em,
body.dark .path-card .price em { color: #c7c7cc; }
body.dark .path-card .dim,
body.dark .path-card li { color: #c7c7cc; }
body.dark .path-card li::before { background: #c7c7cc; }
body.dark .path-card.feat {
  background: #131316;
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
body.dark .path-card.feat h4,
body.dark .path-card.feat .price { color: var(--fg); }
body.dark .path-card.feat h4 em,
body.dark .path-card.feat .price em,
body.dark .path-card.feat .dim,
body.dark .path-card.feat li { color: var(--fg-dim); }
body.dark .path-card.feat li::before { background: var(--fg-dim); }
body.dark .path-card.feat .ribbon { color: var(--fg); background: rgba(255,255,255,0.10); }
body.dark .path-card.feat .btn-primary { background: var(--fg); color: #0a0a0c; }
body.dark .path-card.feat .btn-ghost { color: var(--fg); border-color: rgba(255,255,255,0.3); }

/* ============================================================
   PURPLE ADD-ONS — atmospheric details across the page (dark)
   ============================================================ */
.section { isolation: isolate; }

#liv { position: relative; overflow: hidden; }
body.dark #liv::before {
  content: ""; position: absolute; left: -10%; top: -10%;
  width: 60vw; height: 60vw;
  background: conic-gradient(from 90deg at 50% 50%,
    transparent 0deg, rgba(255,255,255,0.151) 80deg,
    transparent 160deg, rgba(255,255,255,0.120) 240deg,
    transparent 320deg);
  filter: blur(80px);
  animation: conicSpin 60s linear infinite;
  pointer-events: none; z-index: -1;
}
body.dark #liv::after {
  content: ""; position: absolute; right: -8%; bottom: 10%;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(255,255,255,0.187), transparent 60%);
  filter: blur(60px);
  animation: blobFloat 24s ease-in-out infinite alternate;
  pointer-events: none; z-index: -1;
}
@keyframes conicSpin { to { transform: rotate(360deg); } }
@keyframes blobFloat {
  0%   { transform: translate(0,0) scale(1); opacity: 0.7; }
  50%  { transform: translate(-40px,-30px) scale(1.1); opacity: 1; }
  100% { transform: translate(20px,40px) scale(0.95); opacity: 0.6; }
}

#apps { position: relative; overflow: hidden; }
body.dark #apps::before {
  content: ""; position: absolute; left: -20%; right: -20%;
  top: 50%; height: 480px; transform: translateY(-50%);
  background: radial-gradient(ellipse 55% 55% at 50% 50%,
    rgba(255,255,255,0.413), rgba(255,255,255,0.162) 40%, transparent 75%);
  filter: blur(50px);
  animation: beamSweep 14s ease-in-out infinite alternate;
  pointer-events: none; z-index: -1;
}
@keyframes beamSweep {
  0%   { transform: translate(-12%, -50%); opacity: 0.7; }
  100% { transform: translate(12%, -50%);  opacity: 1; }
}

/* --- bridge: purple bleed between #liv (Designed to feel simple) and
   #apps (Two hundred apps). A vertical haze + drifting motes so the
   two sections feel like one continuous atmosphere. --- */
body.dark #liv::after {
  /* extend & soften so it reaches into the boundary */
  bottom: -20%;
}
body.dark #apps {
  margin-top: -60px;
}
/* #liv: no purple atmosphere here — keep the section clean */
body.dark #liv::before, body.dark #liv::after,
body.dark #liv .container::before,
body.dark #liv .container::after { display: none !important; }

/* --- #apps unique purple: vertical rain of light between headline
   and marquee, instead of generic blob noise --- */
body.dark #apps::after {
  /* replace the wide soft blob with a row of tall thin purple bars
     of light, falling between the heading and the chips */
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 90px;
  height: 180px;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.517) 50%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.410) 50%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.576)  50%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.360) 50%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.470)  50%, transparent 100%);
  background-size: 2px 100%, 2px 100%, 1px 100%, 2px 100%, 1px 100%;
  background-position: 11% 0, 27% 0, 41% 0, 63% 0, 86% 0;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.637));
  animation: rainDrop 5s ease-in-out infinite alternate;
  transform: none;
  pointer-events: none;
  z-index: -1;
}
@keyframes rainDrop {
  0%   { opacity: 0.5; transform: translateY(-8px); }
  100% { opacity: 1;   transform: translateY( 8px); }
}
@keyframes bridgeDrift {
  0%   { transform: translateX(-52%) scale(1);    opacity: 0.7; }
  100% { transform: translateX(-48%) scale(1.05); opacity: 1; }
}
body.dark #apps .marquee {
  position: relative;
}
body.dark #apps .marquee::before {
  content: "";
  position: absolute;
  inset: -30px -10% -30px -10%;
  background:
    radial-gradient(ellipse 40% 80% at 20% 50%,
      rgba(255,255,255,0.258), transparent 70%),
    radial-gradient(ellipse 40% 80% at 80% 50%,
      rgba(255,255,255,0.238), transparent 70%),
    radial-gradient(ellipse 30% 100% at 50% 50%,
      rgba(255,255,255,0.118), transparent 70%);
  filter: blur(36px);
  animation: chipGlowDrift 22s linear infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes chipGlowDrift {
  0%   { transform: translateX(-3%); }
  50%  { transform: translateX( 3%); }
  100% { transform: translateX(-3%); }
}
body.dark #apps .mq-chip {
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
body.dark #apps .mq-chip:hover {
  border-color: rgba(255,255,255,0.450);
  box-shadow: 0 0 24px -4px rgba(255,255,255,0.525);
}

/* Install — a precise, branded animation. The Livinity wordmark
   wakes up as a pulse from the terminal cursor, sending an arc of
   light into the dark. No animations cross the headline area. */
#install { position: relative; }
body.dark #install .install { position: relative; overflow: hidden; }
body.dark #install .install::before {
  content: "";
  position: absolute;
  right: -180px; bottom: -180px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.383) 0%,
    rgba(255,255,255,0.139) 35%,
    transparent 65%);
  filter: blur(30px);
  animation: installHalo 7s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
body.dark #install .install::after {
  content: "";
  position: absolute;
  left: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.319) 0%,
    transparent 65%);
  filter: blur(36px);
  animation: installHalo 9s ease-in-out -3s infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes installHalo {
  0%   { transform: scale(1)   translate(0,0);    opacity: 0.7; }
  100% { transform: scale(1.08) translate(-10px,8px); opacity: 1; }
}
body.dark #install .install-grid { position: relative; z-index: 1; }
body.dark #install .terminal {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 60px -10px rgba(255,255,255,0.383);
  transition: box-shadow .5s ease;
}
body.dark #install .terminal:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.450),
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 100px -10px rgba(255,255,255,0.630);
}

#pricing { position: relative; overflow: hidden; }
body.dark #pricing::before,
body.dark #pricing::after {
  content: ""; position: absolute; left: 50%; top: 55%;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.878);
  box-shadow: 0 0 16px 2px rgba(255,255,255,0.799);
  pointer-events: none; transform-origin: 0 0;
  animation: orbit 18s linear infinite;
  z-index: 0;
}
body.dark #pricing::after {
  background: rgba(255,255,255,0.799);
  animation-duration: 26s; animation-direction: reverse;
  width: 6px; height: 6px;
}
@keyframes orbit {
  from { transform: rotate(0deg)   translateX(360px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(360px) rotate(-360deg); }
}
body.dark #pricing > .container { position: relative; z-index: 1; }
body.dark .path-card.feat { position: relative; }
body.dark .path-card.feat::before {
  content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px;
  background: linear-gradient(140deg,
    rgba(255,255,255,0.501), transparent 40%,
    transparent 60%, rgba(255,255,255,0.350));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  animation: featRimPulse 6s ease-in-out infinite;
}
@keyframes featRimPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

#faq { position: relative; overflow: hidden; }
body.dark #faq::before {
  content: ""; position: absolute; left: -10%; top: 0;
  width: 70vw; height: 90vh;
  background: radial-gradient(ellipse at top left, rgba(255,255,255,0.473), rgba(255,255,255,0.144) 35%, transparent 65%);
  filter: blur(60px);
  animation: cornerBreathe 11s ease-in-out infinite alternate;
  pointer-events: none; z-index: -1;
}
body.dark #faq::after {
  content: ""; position: absolute; right: -10%; bottom: 0;
  width: 65vw; height: 80vh;
  background: radial-gradient(ellipse at bottom right, rgba(255,255,255,0.403), rgba(255,255,255,0.120) 35%, transparent 65%);
  filter: blur(70px);
  animation: cornerBreathe 13s ease-in-out -3s infinite alternate;
  pointer-events: none; z-index: -1;
}
@keyframes cornerBreathe {
  0%   { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.08); }
}

body.dark .footer { position: relative; overflow: hidden; }
body.dark .footer::before {
  content: ""; position: absolute; left: 50%; bottom: -200px;
  width: 1200px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center bottom,
    rgba(255,255,255,0.256), rgba(255,255,255,0.090) 40%, transparent 70%);
  filter: blur(40px);
  animation: groundGlow 9s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
body.dark .footer > .container { position: relative; z-index: 1; }
@keyframes groundGlow {
  0%   { opacity: 0.7; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 1;   transform: translateX(-50%) scaleY(1.1); }
}
body.dark .brandwall {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.218) 0%,
    rgba(255,255,255,0.043) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; opacity: 1;
}

/* =================================================== */
/*  ProfileMenu — shared dropdown for nav avatar       */
/* =================================================== */
.profile-wrap { position: relative; display: inline-block; }
.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: 500 13px/1 var(--sans);
  color: var(--fg);
  transition: background .15s, border-color .15s;
}
.profile-trigger:hover { background: var(--bg-2); border-color: var(--line-strong); }
.profile-trigger .pt-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #ff8a65, #f06292);
  display: grid; place-items: center;
  color: white; font-size: 11px; font-weight: 600;
}
.profile-trigger .pt-caret {
  width: 12px; height: 12px;
  color: var(--fg-mute);
  margin-right: 6px;
  transition: transform .2s;
}
.profile-trigger.open .pt-caret { transform: rotate(180deg); }
.profile-popover {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 32px -8px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.04);
  padding: 6px;
  z-index: 100;
  animation: ppFade .15s ease-out;
}
body.dark .profile-popover { background: #0f0f11; box-shadow: 0 8px 32px -8px rgba(0,0,0,0.6); }
@keyframes ppFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.profile-popover .pp-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.profile-popover .pp-name { font-size: 13.5px; font-weight: 500; color: var(--fg); }
.profile-popover .pp-email { font-size: 11.5px; color: var(--fg-mute); font-family: var(--mono); margin-top: 2px; word-break: break-all; }
.profile-popover .pp-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: 500 13.5px/1.2 var(--sans);
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: background .12s;
}
.profile-popover .pp-item:hover { background: var(--bg-2); }
body.dark .profile-popover .pp-item:hover { background: rgba(255,255,255,0.06); }
.profile-popover .pp-item.danger { color: #dc2626; }
.profile-popover .pp-item.danger:hover { background: rgba(220,38,38,0.06); }
.profile-popover .pp-sep { height: 1px; background: var(--line); margin: 6px 0; }
.profile-popover .pp-icon { width: 16px; height: 16px; flex: none; color: var(--fg-mute); }
.profile-popover .pp-item:hover .pp-icon { color: var(--fg); }
.profile-popover .pp-item.danger .pp-icon { color: #dc2626; }
.profile-backdrop { position: fixed; inset: 0; z-index: 99; background: transparent; }
