/* ------------------------------------------------------------------
   VirtualsApp landing — mirrors bevo-app's design language:
   - `virtuals` theme palette (lib/theme/app_theme.dart): dark neutral
     + teal-green accent. Gradient reserved for the primary CTA.
   - Typography: Instrument Serif italic for headline moments
     (AppTheme.serif), Inter for everything else, uppercase
     letter-spaced eyebrows (AppTheme.eyebrow).

   Spacing system (8px base):
   - Section rhythm: --section-y (96–120px) of block padding per section.
   - Section head: eyebrow → 12px → headline → 16px → lede, then a
     fixed --head-gap (56px) before the content grid.
   - Grids: 20px gaps; cards: 28px padding.
------------------------------------------------------------------- */
:root {
  --background: hsl(155 6% 6%);
  --foreground: hsl(155 5% 93%);
  --muted-fg: hsl(0 0% 100%);
  --border: hsl(155 6% 17%);
  --border-strong: hsl(155 6% 24%);
  --card: hsl(155 5% 10%);
  --secondary: hsl(155 5% 14%);
  --input: hsl(155 5% 17%);
  --primary: #28BD91;
  --on-primary: hsl(155 30% 12%);
  --on-gradient: hsl(0 0% 98%);
  --grad-a: #156F79;
  --grad-b: #138C61;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1080px;
  --gutter: 1.5rem;

  --section-y: clamp(6rem, 9vw, 7.5rem);   /* 96–120px */
  --head-gap: 3.5rem;                       /* head block → content */
  --grid-gap: 1.25rem;                      /* 20px */
  --card-pad: 1.75rem;                      /* 28px */

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: inline-block; vertical-align: middle; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- icons ---------- */
.icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}
h1 {
  font-size: clamp(2.75rem, 5.5vw, 4rem);
}
.hero-copy .badge {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}
.hero-title {
  text-align: center;
  font-size: clamp(3rem, 6.4vw, 5.5rem);
}
.hero-title-main,
.hero-title-sub {
  position: relative;
  left: 50%;
  display: block;
  width: max-content;
  max-width: none;
  transform: translateX(-50%);
  white-space: nowrap;
  line-height: 1;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.1;
}

/* Uppercase micro-label — AppTheme.eyebrow */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.eyebrow.center { text-align: center; }

.lede, .section-lede {
  color: var(--muted-fg);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.5;
  max-width: 36rem;
}
.lede { margin-top: 1.25rem; }
.section-lede { margin: 1rem auto 0; text-align: center; }

/* ---------- badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-fg);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.12s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  color: var(--on-gradient);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn-light {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  color: var(--on-gradient);
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
}
.btn-light:hover { filter: brightness(0.97); }

.setup-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 10px;
}
.setup-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: hsl(0 0% 100% / 0.6);
}
.setup-note .icon { width: 16px; height: 16px; }
.setup-note-icon {
  width: 21px;
  height: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.75;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  background: hsl(155 6% 6% / 0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-decoration: none;
}
.nav-logo { display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a:not(.btn) {
  color: hsl(0 0% 100%);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.12s ease;
}
.nav-links a:not(.btn):hover { opacity: 0.75; }
.nav-cta { margin-left: 0.75rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.75rem, 3vw, 2.5rem) var(--gutter) 0;
}
.hero-copy {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}
.hero-title-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 50px));
  z-index: 1;
  width: 100%;
}
.hero-bottom-group {
  max-width: 34rem;
  margin-inline: auto;
  margin-top: auto;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  object-fit: cover;
  filter: brightness(1.4) contrast(1.1) saturate(0.82) hue-rotate(-6deg);
  z-index: -2;
}
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  background:
    linear-gradient(180deg, hsl(155 6% 4% / 0.4) 0%, hsl(155 6% 4% / 0.22) 45%, var(--background) 100%),
    linear-gradient(90deg, hsl(155 6% 4% / 0.4) 0%, transparent 45%);
}
.hero-copy .lede {
  max-width: 30rem;
  margin-top: 0.625rem;
  margin-inline: auto;
  text-align: center;
}

/* readability over the background video */
.hero-copy .badge {
  color: var(--foreground);
  background: hsl(155 6% 8% / 0.55);
  border-color: hsl(155 5% 93% / 0.22);
  backdrop-filter: blur(8px);
}
.hero-title { text-shadow: 0 4px 24px hsl(0 0% 0% / 0.45); }
.hero-copy .lede {
  color: hsl(0 0% 100%);
  text-shadow: 0 2px 14px hsl(0 0% 0% / 0.4);
}
.hero-bottom-group .form-note { text-shadow: 0 2px 10px hsl(0 0% 0% / 0.4); }
.hero-bottom-group .waitlist-form input {
  background: hsl(155 6% 8% / 0.4);
  border-color: hsl(155 5% 93% / 0.22);
  backdrop-filter: blur(8px);
}
.waitlist-form {
  display: flex;
  gap: 0.6rem;
  max-width: 100%;
  margin-top: 2.25rem;
  margin-inline: auto;
  justify-content: center;
}
.hero-bottom-group .waitlist-form { margin-top: 0; }
.waitlist-form .input-email { flex: 1.3; }
.waitlist-form .input-tg { flex: 0.9; }
.waitlist-form.center { margin-inline: auto; justify-content: center; }
.waitlist-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.waitlist-form input::placeholder { color: var(--muted-fg); }
.waitlist-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(162 65% 45% / 0.15);
}
.form-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(0 0% 100%);
  letter-spacing: -0.01em;
  line-height: 1.6;
  text-align: center;
}
.form-note.success { color: var(--primary); font-weight: 500; }
.form-note.error { color: hsl(5 55% 60%); }

/* ---------- butler orb (ButlerOrb — slow breath) ---------- */
.orb {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 28%,
      hsl(162 70% 62%) 0%,
      var(--primary) 38%,
      hsl(170 60% 30%) 72%,
      hsl(175 50% 18%) 100%);
  box-shadow:
    0 0 18px hsl(162 65% 45% / 0.22),
    inset 0 0 14px hsl(162 80% 70% / 0.2);
  animation: orb-breathe 4.6s ease-in-out infinite;
}
.orb-sm {
  width: 32px;
  height: 32px;
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
.cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  text-align: center;
}
.why h2, .cta h2 {
  position: relative;
  left: 50%;
  width: max-content;
  max-width: 92vw;
  transform: translateX(-50%);
  font-size: clamp(1.9rem, 5vw, 4.75rem);
  line-height: 1.05;
  white-space: nowrap;
}
.why .section-lede, .cta .section-lede {
  font-size: 1.2rem;
  margin-top: 1.25rem;
}

/* head block → content */
.why-grid {
  margin-top: var(--head-gap);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--border-strong); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--primary);
  margin-bottom: 1.1rem;
}
.card-number {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 1.1rem;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.45rem;
}
.card p { color: var(--muted-fg); font-size: 0.92rem; letter-spacing: -0.01em; line-height: 1.5; }
.card-more {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  color: hsl(0 0% 100% / 0.4);
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}
.why-card h3 { font-size: 1.33rem; line-height: 1.3; }

/* ---------- early-access benefits (below hero) ---------- */
.hero-benefits {
  position: relative;
  z-index: 1;
  background: var(--background);
  max-width: var(--max);
  margin: 8px auto 0;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.hero-benefit {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 0.9rem);
  text-align: left;
}
.hero-benefit-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 4vw, 28px);
  height: clamp(24px, 4vw, 28px);
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--primary);
}
.hero-benefit-icon .icon { width: 60%; height: 60%; }
.hero-benefit h3 {
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  font-weight: 700;
  line-height: 1.3;
}
.hero-benefit p {
  color: var(--muted-fg);
  font-size: clamp(0.78rem, 2.2vw, 0.85rem);
  line-height: 1.45;
  margin-top: 0.15rem;
}

/* ---------- why VirtualsApp ---------- */
.why {
  background: #000;
  padding: var(--section-y) var(--gutter);
  text-align: center;
}
.why-head, .why-grid { max-width: var(--max); margin-inline: auto; }
.why-grid {
  display: flex;
  gap: var(--grid-gap);
  text-align: left;
}
.why .card {
  background: var(--background);
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.why-card h3 { margin-top: 1.5rem; }
.why-card .orb-sm { margin-bottom: 1.1rem; }
.tick-list { list-style: none; display: grid; gap: 0.6rem; margin-top: 1rem; }
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted-fg);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 999px;
  background: hsl(162 65% 45% / 0.12);
  color: var(--primary);
  flex: none;
  margin-top: 0.15rem;
}
.tick .icon { width: 11px; height: 11px; stroke-width: 2.6; }

/* ---------- social orbit ---------- */
.social-orbit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  background: hsl(220 30% 8%);
}
.social-bg {
  position: absolute;
  inset: -40px;
  z-index: -2;
  overflow: hidden;
}
.social-bg-sharp,
.social-bg-soft {
  position: absolute;
  inset: 0;
  background-image: url("assets/social-bg.png");
  background-size: cover;
  background-position: center 55%;
  transform: scale(1.08);
}
.social-bg-sharp {
  filter: brightness(0.95) saturate(1.05) contrast(1.02);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 40%, transparent 62%);
  mask-image: linear-gradient(to top, black 0%, black 40%, transparent 62%);
}
.social-bg-soft {
  filter: blur(26px) brightness(0.85) saturate(1.05);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 34%, black 58%, black 100%);
  mask-image: linear-gradient(to top, transparent 0%, transparent 34%, black 58%, black 100%);
}
.social-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, hsl(230 45% 6% / 0.6) 0%, hsl(230 40% 8% / 0.45) 28%, hsl(220 30% 7% / 0.45) 65%, hsl(155 6% 6% / 0.75) 100%);
}
@property --spin-outer { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --spin-inner { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --counter { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --nudge-x { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --nudge-y { syntax: '<length>'; inherits: false; initial-value: 0px; }

.orbit-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(46rem, 92vw);
  aspect-ratio: 1;
  pointer-events: none;
}
.orbit-group {
  position: absolute;
  inset: 0;
}
.orbit-group-outer {
  --spin-outer: 0deg;
  transform: rotate(var(--spin-outer));
  animation: orbit-spin-outer 46s linear infinite;
}
.orbit-group-inner {
  --spin-inner: 0deg;
  transform: rotate(var(--spin-inner));
  animation: orbit-spin-inner 32s linear infinite;
}
@keyframes orbit-spin-outer { to { --spin-outer: 360deg; } }
@keyframes orbit-spin-inner { to { --spin-inner: -360deg; } }
.orbit-stage.is-paused .orbit-group,
.orbit-stage.is-paused .orbit-avatar {
  animation-play-state: paused;
}
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed hsl(0 0% 100% / 0.16);
  border-radius: 50%;
}
.orbit-ring-outer { width: 94%; height: 94%; }
.orbit-ring-inner { width: 58%; height: 58%; }
.orbit-avatar {
  position: absolute;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--on-gradient);
  box-shadow: 0 14px 32px hsl(0 0% 0% / 0.45);
  pointer-events: auto;
  cursor: pointer;
  --counter: 0deg;
  --nudge-x: 0px;
  --nudge-y: 0px;
  transform: translate(-50%, -50%) rotate(var(--counter)) translate(var(--nudge-x), var(--nudge-y));
  transition: --nudge-x 0.5s cubic-bezier(.22, .9, .3, 1), --nudge-y 0.5s cubic-bezier(.22, .9, .3, 1), box-shadow 0.3s ease, filter 0.3s ease;
}
.orbit-group-outer .orbit-avatar { animation: orbit-counter-outer 46s linear infinite; }
.orbit-group-inner .orbit-avatar { animation: orbit-counter-inner 32s linear infinite; }
@keyframes orbit-counter-outer { to { --counter: -360deg; } }
@keyframes orbit-counter-inner { to { --counter: 360deg; } }
.orbit-avatar.is-hot {
  box-shadow: 0 0 0 4px hsl(162 65% 45% / 0.35), 0 14px 32px hsl(0 0% 0% / 0.45);
  filter: brightness(1.1);
}
.orbit-avatar-sm { width: 42px; height: 42px; font-size: 0.9rem; }
.orbit-agent { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); }
.orbit-agent .icon { width: 22px; height: 22px; }
.orbit-avatar-sm .icon { width: 17px; height: 17px; }
.orbit-user {
  background: var(--secondary);
  border: 1px solid var(--border-strong);
  color: var(--foreground);
}
.social-stage-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.social-orbit-copy {
  text-align: center;
  max-width: 34rem;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(.22, 1, .36, 1);
}
.social-orbit-copy h2 {
  font-size: clamp(1.9rem, 5vw, 4.75rem);
  line-height: 1.05;
  transform-origin: center top;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(.22, 1, .36, 1);
}
.social-title-line {
  position: relative;
  left: 50%;
  display: block;
  width: max-content;
  max-width: 92vw;
  white-space: nowrap;
  transform: translateX(-50%);
}
.social-orbit-copy .lede {
  margin-top: 10px;
  margin-inline: auto;
  max-width: 30rem;
  will-change: opacity, transform;
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(.22, 1, .36, 1);
}
.social-orbit-copy .btn { margin-top: 2rem; }
.orbit-stage {
  will-change: opacity, transform, filter;
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.9s cubic-bezier(.22, 1, .36, 1);
}
.social-orbit.is-chatting .orbit-stage {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(-28px);
  pointer-events: none;
}
.social-orbit.is-chatting .social-orbit-copy {
  transform: translateY(-3px);
}
.social-orbit.is-chatting .social-orbit-copy h2 {
  transform: scale(0.58);
}
.social-orbit.is-chatting .social-orbit-copy .lede {
  opacity: 0.75;
  transform: translateY(-10px);
}
@media (max-width: 640px) {
  .orbit-stage { display: none; }
}

.social-chat {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  max-height: 0;
  transform: translateY(24px);
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1) 0.15s,
              transform 0.7s cubic-bezier(.4, 0, .2, 1) 0.15s,
              max-height 0.8s cubic-bezier(.4, 0, .2, 1);
}
.social-orbit.is-chatting .social-chat {
  opacity: 1;
  max-height: 640px;
  transform: translateY(0);
  pointer-events: auto;
}
.social-chat-line {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.social-chat-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.social-chat-line[data-speaker="Butler"] {
  align-items: flex-end;
  text-align: right;
}
.social-chat-line[data-speaker="User"] {
  align-items: flex-start;
  text-align: left;
}
.social-chat-label {
  font-size: 0.85rem;
  color: hsl(0 0% 100% / 0.5);
}
.social-chat-text {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  line-height: 1.2;
  white-space: nowrap;
}
.social-chat-line[data-speaker="User"] .social-chat-text {
  background: hsl(0 0% 100% / 0.08);
  color: var(--foreground);
  border: 1px solid hsl(0 0% 100% / 0.1);
}
.social-chat-line[data-speaker="Butler"] .social-chat-text {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  color: var(--on-gradient);
}

/* ---------- agent ecosystem (interactive demo) ---------- */
.ecosystem {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 6vw, 5.5rem) var(--gutter);
  background: var(--background);
}
.ecosystem-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.ecosystem-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.ecosystem-copy h2 {
  font-size: clamp(1.9rem, 5vw, 4.75rem);
  line-height: 1.05;
  max-width: 22ch;
  margin-inline: auto;
}
.ecosystem-copy .lede {
  margin-top: 0.85rem;
  max-width: 32rem;
  font-size: 1.25rem;
  line-height: 1.45;
  color: hsl(0 0% 100%);
  margin-inline: auto;
}
.ecosystem-features {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}
.ecosystem-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  min-width: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: hsl(0 0% 100% / 0.03);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ecosystem-feature:hover { background: hsl(0 0% 100% / 0.06); }
.ecosystem-feature.active {
  background: hsl(0 0% 100% / 0.07);
  border-color: hsl(0 0% 100% / 0.14);
}
.ecosystem-feature-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: hsl(0 0% 100% / 0.06);
  color: var(--primary);
  transition: background 0.15s ease, color 0.15s ease;
}
.ecosystem-feature-icon .icon { width: 16px; height: 16px; }
.ecosystem-feature.active .ecosystem-feature-icon {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  color: var(--on-gradient);
}
.ecosystem-feature > span:last-child { min-width: 0; }
.ecosystem-feature-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0;
}
.ecosystem-feature-desc {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted-fg);
  font-size: 0.92rem;
  line-height: 1.4;
}
.ecosystem-cta {
  margin-top: 1.25rem;
  width: fit-content;
  padding: 0.9rem 2.1rem;
}

.ecosystem-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-width: 0;
}
.demo-shot {
  position: relative;
  width: 100%;
  max-width: 516px;
}
.demo-shot::before {
  content: "";
  display: block;
  padding-top: 150.3%; /* matches the phone screenshots' native aspect ratio */
}
.demo-shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.demo-shot-img.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- trade ---------- */
.trade {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(clamp(5rem, 11vw, 9.75rem) - 56px) var(--gutter);
  background: #60a993;
  color: #111;
}
.trade-layout {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  align-items: center;
  gap: calc(clamp(1.5rem, 3vw, 2.5rem) + 20px);
}
.trade-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.75rem, 3vw, 2.25rem);
  min-width: 0;
  margin: 0 auto;
  transform: translate(140px, -40px);
}
.trade-copy { min-width: 0; max-width: 34rem; margin-inline: auto; }
.trade-copy .eyebrow { color: #111; margin-bottom: 1.25rem; text-align: center; }
.trade-copy h2 {
  color: #111;
  font-size: clamp(1.9rem, 5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.trade-copy .lede {
  color: hsl(155 20% 10% / 0.68);
  margin-top: 10px;
  max-width: 28rem;
  margin-inline: auto;
  font-size: 1.2rem;
  line-height: 1.6;
}
.trade-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.trade-phone {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 30px 60px hsl(0 0% 0% / 0.35));
}
@media (max-width: 1200px) {
  .trade-left { transform: translate(60px, -20px); }
}
@media (max-width: 900px) {
  .trade-layout { grid-template-columns: 1fr; text-align: center; }
  .trade-left { align-items: center; transform: none; }
  .trade-copy .lede { margin-inline: auto; }
  .trade-visual { order: -1; }
  .trade-phone { max-width: 240px; }
}

.trade-prompt {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #111;
}
.trade-prompt-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.trade-prompt-head h3 {
  color: #111;
  font-family: var(--sans);
  font-style: normal;
  font-size: 1.27rem;
  font-weight: 400;
  white-space: nowrap;
}
.trade-prompt-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.trade-tab {
  font: inherit;
  font-size: 0.95rem;
  color: #111;
  opacity: 0.55;
  background: none;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.trade-tab:hover { opacity: 0.8; }
.trade-tab.active {
  opacity: 1;
  background: hsl(0 0% 0% / 0.1);
}
.trade-prompt-bubbles {
  display: none;
  margin-top: 2rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.trade-prompt-bubbles.active {
  display: flex;
}
.trade-bubble {
  display: inline-block;
  background: hsl(155 30% 15% / 0.16);
  color: #111;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .trade-prompt-head { justify-content: center; }
  .trade-prompt-bubbles { align-items: center; }
}
@media (max-width: 640px) {
  .trade-bubble { white-space: normal; }
}

/* ---------- CTA ---------- */
.cta .orb { margin: 0 auto 1.75rem; }
.cta .section-lede { max-width: 30rem; }
.cta .waitlist-form { margin-top: 2.25rem; }

/* ---------- footer ---------- */
.footer {
  padding: 0;
}
.footer-box {
  width: 100%;
  margin: 0;
  background: var(--background);
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.08);
  font-weight: 700;
  color: var(--foreground);
}
.footer-logo-pill img { border-radius: 6px; }
.footer-tagline {
  color: var(--muted-fg);
  font-size: 0.95rem;
}
.footer-follow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-fg);
  font-size: 0.95rem;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}
.footer-col-right { margin-left: auto; text-align: left; }
.footer-col h4 {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.6rem;
}
.footer-col a {
  display: block;
  color: var(--muted-fg);
  opacity: 0.75;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.3rem;
}
.footer-col a:hover { opacity: 1; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.08);
  color: var(--foreground);
}
.footer-social-link .icon { width: 15px; height: 15px; }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem clamp(1.5rem, 4vw, 3rem) 1.5rem;
  color: var(--muted-fg);
  font-size: 0.85rem;
}
@media (max-width: 640px) {
  .footer-box { text-align: center; align-items: center; }
  .footer-top { flex-direction: column; }
  .footer-brand-row { justify-content: center; }
  .footer-columns { justify-content: center; width: 100%; }
}

/* ---------- waitlist confirmation modal ---------- */
.wl-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
}
.wl-modal.open { display: flex; }
.wl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: hsl(155 6% 4% / 0.75);
  backdrop-filter: blur(6px);
}
.wl-modal-panel {
  position: relative;
  width: min(34rem, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: 0 30px 80px hsl(0 0% 0% / 0.5);
}
.wl-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--muted-fg);
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.wl-modal-close:hover { color: var(--foreground); border-color: var(--border-strong); }
.wl-modal-close .icon { width: 14px; height: 14px; }
.wl-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.wl-modal-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.1;
}
.wl-modal-sub {
  color: var(--muted-fg);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  margin-top: 0.6rem;
}
.wl-position-card {
  margin: 1.75rem 0;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--secondary);
  border: 1px solid var(--border);
}
.wl-position-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
  color: var(--foreground);
}
.wl-position-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted-fg);
  font-size: 0.95rem;
}
.wl-position-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted-fg);
}
.wl-position-note strong { color: var(--primary); font-weight: 600; }
.wl-share-title {
  font-size: 1.35rem;
  line-height: 1.2;
}
.wl-share-sub {
  color: var(--muted-fg);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin-top: 0.6rem;
  max-width: 28rem;
  margin-inline: auto;
}
.wl-share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.wl-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.12s ease;
}
.wl-share-btn:hover { filter: brightness(1.08); }
.wl-share-btn .icon { width: 15px; height: 15px; }
.wl-link-label {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--muted-fg);
}
.wl-link-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.wl-link-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}
.wl-link-row .btn { padding: 0.7rem 1.2rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root {
    --section-y: clamp(4rem, 12vw, 6rem);
    --head-gap: 2.5rem;
  }
  .hero { padding-top: 3.5rem; }
  .why-grid { flex-direction: column; }
  .ecosystem-inner { grid-template-columns: 1fr; text-align: center; }
  .ecosystem-copy { text-align: center; padding-left: 0; }
  .ecosystem-copy h2 { max-width: none; margin-inline: auto; }
  .ecosystem-copy .lede { margin-inline: auto; }
  .ecosystem-feature { text-align: left; }
  .ecosystem-visual { margin-top: 3rem; }
}
@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
  .wl-link-row { flex-direction: column; }
  .wl-link-row .btn { width: 100%; }
}
