/* ============================================================================
 * LENNOY — marketing site.
 * Built entirely on the vendored design tokens (--app-*, --brand-*, primitives).
 * No raw color values: every hue resolves from the brand accent, so the whole
 * site re-skins from one variable, exactly like the app.
 * ========================================================================== */

/* ------------------------------------------------------------------ root */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

/* ------------------------------------------------------------------ layout */
.shell {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.shell--narrow {
  max-width: 52rem;
}

section {
  position: relative;
}

.accent {
  color: var(--brand-accent);
}

/* ------------------------------------------------------------------ wordmark */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 19px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--app-text-primary);
  text-decoration: none;
}
/* The mark is sized in em so it tracks the wordmark's own scale. Its bottom
 * tread is a floor, so it sits on the baseline with only a hair of a nudge —
 * the mark's own light then carries the life: it swells and brightens on a
 * slow cycle, the one part of the logo that behaves like the product. */
.wordmark__mark {
  width: 1.24em;
  height: 1.24em;
  flex: none;
  transform: translateY(0.02em);
}
.wordmark__light {
  transform-box: fill-box;
  transform-origin: center;
  animation: light-breathe 4.2s var(--ease-default) infinite;
}
@keyframes light-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.16); opacity: 0.78; }
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: var(--motion-page-header);
}
.nav__inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 18px clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav.is-scrolled {
  background: var(--app-surface-overlay);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--app-border-subtle);
}
.nav.is-scrolled .nav__inner {
  padding-block: 12px;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav__links a {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--app-text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}
.nav__links a:hover {
  color: var(--app-text-primary);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --_bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--motion-hover-lift), background-color var(--duration-normal) var(--ease-default);
}
.btn--sm { padding: 9px 16px; }
.btn--lg { padding: 15px 26px; font-size: var(--font-size-md); }

.btn--primary {
  background: var(--app-interactive-bg);
  color: var(--app-interactive-text);
  box-shadow:
    0 1px 2px color-mix(in oklab, var(--brand-accent) 30%, transparent),
    0 10px 30px color-mix(in oklab, var(--brand-accent) 28%, transparent);
}
.btn--primary:hover {
  background: var(--app-interactive-hover-bg);
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px color-mix(in oklab, var(--brand-accent) 32%, transparent),
    0 18px 44px color-mix(in oklab, var(--brand-accent) 34%, transparent);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: color-mix(in oklab, var(--app-surface-card) 60%, transparent);
  border-color: var(--app-border-default);
  color: var(--app-text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--app-border-strong);
  transform: translateY(-2px);
}
.btn__arrow {
  transition: transform var(--duration-normal) var(--ease-spring);
}
.btn--ghost:hover .btn__arrow { transform: translateY(3px); }

/* traveling rim-light on the primary CTA (their attention-beam idea, distilled) */
[data-beam]::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0deg,
    color-mix(in oklab, white 85%, transparent) 30deg,
    transparent 80deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.9;
  animation: beam-travel 4.5s linear infinite;
  pointer-events: none;
}
@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes beam-travel {
  to { --beam-angle: 360deg; }
}

/* ------------------------------------------------------------------ world */
.world {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.world__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--blur-xl));
  animation: orb-breathe 16s var(--ease-default) infinite;
}
.world__orb--1 {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: color-mix(in oklab, var(--app-orb-1) 60%, transparent);
  opacity: 0.85;
}
.world__orb--2 {
  width: 460px; height: 460px;
  top: 20%; right: -160px;
  background: color-mix(in oklab, var(--app-orb-2) 52%, transparent);
  opacity: 0.8;
  animation-delay: -6s;
}
.world__orb--3 {
  width: 380px; height: 380px;
  bottom: -160px; left: 30%;
  background: color-mix(in oklab, var(--app-orb-3) 48%, transparent);
  opacity: 0.7;
  animation-delay: -11s;
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.14) translateY(-3%); }
}
.world__particle {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: var(--app-world-particle);
  animation: particle-rise linear infinite;
}
@keyframes particle-rise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(-88vh); opacity: 0; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--app-world-sky);
  padding-top: 120px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--app-surface-card) 70%, transparent);
  border: 1px solid var(--app-border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text-secondary);
  box-shadow: var(--app-shadow-tile);
}
.eyebrow__pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--app-status-success);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--app-status-success) 18%, transparent);
}

.hero__title {
  margin: 22px 0 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--app-text-primary);
  text-wrap: balance;
}
.hero__sub {
  margin: 22px 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: var(--line-height-normal);
  color: var(--app-text-secondary);
}
.hero__cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 18px;
  font-size: var(--font-size-sm);
  color: var(--app-text-muted);
}

/* ------------------------------------------------------------------ vignette */
.vignette {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}
.vignette__glow {
  position: absolute;
  inset: -12% -8% -8% -8%;
  background: radial-gradient(60% 55% at 70% 20%, color-mix(in oklab, var(--brand-accent) 22%, transparent), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}
.chat {
  position: relative;
  z-index: 1;
  background: color-mix(in oklab, var(--app-surface-card) 82%, transparent);
  border: 1px solid var(--app-border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--app-shadow-elevated);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  overflow: hidden;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--app-border-subtle);
  background: color-mix(in oklab, var(--app-surface-tile) 55%, transparent);
}
.chat__avatar {
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  font-weight: var(--font-weight-bold);
  font-size: 15px;
}
.chat__who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chat__name { font-weight: var(--font-weight-bold); font-size: 14px; color: var(--app-text-primary); }
.chat__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--app-status-success); font-weight: var(--font-weight-semibold);
}
.dot-online {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.chat__tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-text-faint);
}
.chat__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 16px;
}
.bubble {
  max-width: 82%;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.45;
  border-radius: var(--v-chat-bubble-radius);
  box-shadow: var(--v-chat-bubble-shadow);
  position: relative;
}
.bubble b { font-weight: var(--font-weight-bold); }
.bubble--them {
  align-self: flex-start;
  background: var(--v-chat-bubble-agent-bg);
  color: var(--app-text-primary);
  border-bottom-left-radius: var(--v-chat-bubble-corner-radius);
}
.bubble--me {
  align-self: flex-end;
  background: var(--v-chat-bubble-user-bg);
  color: var(--v-chat-bubble-user-text);
  border-bottom-right-radius: var(--v-chat-bubble-corner-radius);
}
.bubble--me b { color: inherit; }
.bubble__time {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--app-text-faint);
}
.chat__foot {
  padding: 13px 18px;
  border-top: 1px solid var(--app-border-subtle);
  background: color-mix(in oklab, var(--app-status-success) 6%, transparent);
}
.chat__handled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: var(--font-weight-semibold);
  color: var(--app-status-success);
}

/* typing dots — appended by JS to the thread */
.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--v-chat-bubble-agent-bg);
  border-radius: var(--v-chat-bubble-radius);
  border-bottom-left-radius: var(--v-chat-bubble-corner-radius);
  box-shadow: var(--v-chat-bubble-shadow);
}
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--app-text-faint);
  animation: typing-dot 1.3s var(--ease-default) infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ------------------------------------------------------------------ hero channels */
.hero__channels {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 56px auto 0;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero__channels-label {
  font-size: var(--font-size-xs);
  color: var(--app-text-muted);
  font-weight: var(--font-weight-medium);
}
.chan-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chan {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  box-shadow: var(--app-shadow-tile);
}
.chan::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
}
.chan--live { color: var(--app-text-primary); }
.chan--live::before { background: var(--app-status-success); }
.chan--soon { color: var(--app-text-muted); }
.chan--soon::before { background: var(--app-text-faint); }
.chan--soon em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-text-faint);
}

/* ------------------------------------------------------------------ section primitives */
.kicker {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
}
.kicker--onDark { color: color-mix(in oklab, var(--brand-accent) 60%, white); }

.section__head { max-width: 40rem; }
.section__head--center { max-width: 44rem; margin-inline: auto; text-align: center; }
.section__title {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--app-text-primary);
}
.section__lead {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: var(--line-height-normal);
  color: var(--app-text-secondary);
}

/* ------------------------------------------------------------------ story */
.story {
  padding: clamp(6rem, 12vw, 10rem) 0;
  background: var(--app-surface-canvas);
}
.story__lines {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 40rem;
}
.story__line {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--app-text-primary);
}
.story__line em {
  font-style: normal;
  color: var(--app-text-muted);
}
.story__line--dim { color: var(--app-text-muted); }

.lost {
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.lost__msg {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px 16px 16px 5px;
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  box-shadow: var(--app-shadow-tile);
  font-size: var(--font-size-md);
  color: var(--app-text-secondary);
}
.lost__msg:nth-child(2) { margin-left: 40px; }
.lost__msg:nth-child(3) { margin-left: 18px; }
.lost__t {
  font-size: 11px;
  color: var(--app-text-faint);
  font-weight: var(--font-weight-semibold);
}
.lost__msg--gone {
  border-color: color-mix(in oklab, var(--app-status-error) 30%, var(--app-border-subtle));
  color: var(--app-text-muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in oklab, var(--app-status-error) 60%, transparent);
}
.story__turn {
  margin-top: 8px;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--app-text-primary);
}

/* ------------------------------------------------------------------ employee */
.employee {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--app-world-sky);
}
.hire {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hire__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--app-shadow-card);
  max-width: 30rem;
}
.hire__avatar {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  font-weight: var(--font-weight-bold);
  font-size: 19px;
}
.hire__meta { display: flex; flex-direction: column; gap: 4px; }
.hire__name { font-weight: var(--font-weight-bold); font-size: var(--font-size-lg); color: var(--app-text-primary); }
.hire__role { font-size: var(--font-size-xs); color: var(--app-text-muted); font-weight: var(--font-weight-medium); }
.hire__pulse {
  margin-left: auto;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--app-status-success);
  animation: pulse-ring 2.4s var(--ease-decelerate) infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--app-status-success) 50%, transparent); }
  70% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--app-status-success) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--app-status-success) 0%, transparent); }
}
.hire__traits { display: flex; flex-wrap: wrap; gap: 9px; }
.trait {
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: var(--v-chip-bg);
  border: 1px solid color-mix(in oklab, var(--brand-accent) 40%, transparent);
  color: var(--brand-accent);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

/* ------------------------------------------------------------------ handles */
.handles {
  padding: clamp(6rem, 11vw, 9rem) 0;
  background: var(--app-surface-canvas);
}
.moves {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.move {
  position: relative;
  padding: 26px 22px 28px;
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--app-shadow-card);
  transition: var(--motion-hover-lift);
  overflow: hidden;
}
.move::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), color-mix(in oklab, var(--brand-accent) 20%, transparent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-default);
}
.move:hover {
  transform: translateY(-6px);
  box-shadow: var(--app-shadow-elevated);
  border-color: var(--app-border-default);
}
.move:hover::before { transform: scaleX(1); }
.move__idx {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  color: var(--brand-accent);
}
.move__title {
  margin: 14px 0 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--app-text-primary);
}
.move__body {
  margin: 10px 0 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--app-text-muted);
}

/* ------------------------------------------------------------------ link */
.link {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--app-world-sky);
}
.linkcard {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  max-width: 34rem;
  padding: 17px 18px;
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-default);
  border-radius: 18px;
  box-shadow: var(--app-shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.linkcard__pulse {
  flex: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--app-status-success);
  animation: pulse-ring 2.4s var(--ease-decelerate) infinite;
}
.linkcard__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.linkcard__url {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--app-text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.linkcard__meta {
  font-size: 10.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-status-success);
}
.linkcard__copy {
  flex: none;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--app-surface-tile);
  border: 1px solid var(--app-border-default);
  color: var(--app-text-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default);
}
.linkcard__copy:hover { color: var(--app-text-primary); border-color: var(--app-border-strong); }
.linkcard__copy.is-copied { color: var(--app-status-success); border-color: color-mix(in oklab, var(--app-status-success) 45%, transparent); }

.embed { margin-top: 52px; }
.embed__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.embed__soon {
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--app-status-info-bg);
  color: var(--app-status-info);
  font-size: 10.5px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.embed__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--app-text-primary);
}
.codecard {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--neutral-950);
  border: 1px solid var(--app-border-default);
  box-shadow: var(--app-shadow-elevated);
  overflow-x: auto;
}
.codecard__dots { display: inline-flex; gap: 6px; flex: none; }
.codecard__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-700); }
.codecard__dots i:first-child { background: color-mix(in oklab, var(--red-500) 80%, var(--neutral-700)); }
.codecard__dots i:nth-child(2) { background: color-mix(in oklab, var(--amber-500) 80%, var(--neutral-700)); }
.codecard__dots i:last-child { background: color-mix(in oklab, var(--green-500) 80%, var(--neutral-700)); }
.codecard code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  font-size: 13.5px;
  white-space: nowrap;
  color: var(--neutral-300);
}
.tok-tag { color: oklch(0.78 0.14 254); }
.tok-attr { color: oklch(0.82 0.13 300); }
.tok-str { color: oklch(0.82 0.13 152); }
.tok-punct { color: var(--neutral-500); }
.embed__note {
  margin-top: 16px;
  max-width: 36rem;
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--app-text-muted);
}

/* ------------------------------------------------------------------ modes */
.modes {
  padding: clamp(6rem, 11vw, 9rem) 0;
  background: var(--app-surface-canvas);
}
.modes__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.modecard {
  padding: 34px 30px;
  border-radius: var(--radius-xl);
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  box-shadow: var(--app-shadow-card);
  transition: var(--motion-hover-lift);
}
.modecard:hover { transform: translateY(-5px); box-shadow: var(--app-shadow-elevated); }
.modecard__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--app-text-primary);
}
.modecard__lead {
  margin: 12px 0 0;
  font-size: var(--font-size-md);
  color: var(--app-text-secondary);
  line-height: var(--line-height-normal);
}
.modecard__list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modecard__list li {
  position: relative;
  padding-left: 28px;
  font-size: var(--font-size-base);
  color: var(--app-text-secondary);
}
.modecard__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background:
    color-mix(in oklab, var(--brand-accent) 14%, transparent);
}
.modecard__list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 10px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--brand-accent);
  border-bottom: 2px solid var(--brand-accent);
  transform: rotate(-45deg);
}
.modes__foot {
  margin-top: 40px;
  text-align: center;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text-muted);
}

/* ------------------------------------------------------------------ reveal (dark) */
.reveal {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 13vw, 10rem) 0;
  background: var(--app-world-sky);
}
.reveal__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reveal__title {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--app-text-primary);
}
.reveal__lead {
  margin: 22px 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: var(--line-height-normal);
  color: var(--app-text-secondary);
}
.reveal .linkcard { margin-top: 40px; margin-inline: auto; }
.reveal__cta { margin-top: 34px; }
.reveal__note {
  margin-top: 18px;
  font-size: var(--font-size-sm);
  color: var(--app-text-muted);
}

/* ------------------------------------------------------------------ footer */
.foot {
  background: var(--app-surface-canvas);
  border-top: 1px solid var(--app-border-subtle);
  padding: 64px 0 40px;
}
.foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.foot__tag {
  margin: 14px 0 0;
  max-width: 18rem;
  font-size: var(--font-size-sm);
  color: var(--app-text-muted);
  line-height: var(--line-height-snug);
}
.wordmark--foot { font-size: 22px; }
.foot__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot__col { display: flex; flex-direction: column; gap: 12px; }
.foot__h {
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-text-faint);
  margin-bottom: 2px;
}
.foot__col a {
  font-size: var(--font-size-sm);
  color: var(--app-text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}
.foot__col a:hover { color: var(--app-text-primary); }
.foot__base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--app-border-subtle);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--font-size-xs);
  color: var(--app-text-faint);
}
.foot__base a {
  color: var(--app-text-secondary);
  text-decoration: none;
}
.foot__base a:hover {
  color: var(--app-text-primary);
  text-decoration: underline;
}

/* ------------------------------------------------------------------ focus */
/* base.css removes the browser outline site-wide, so the visible focus ring
 * has to be re-supplied here — keyboard users get it back on every control. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--v-focus-ring-width) solid var(--v-focus-ring-color);
  outline-offset: var(--v-focus-ring-offset);
}

/* ------------------------------------------------------------------ reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--duration-slower) var(--ease-default),
    transform var(--duration-slower) var(--ease-default);
  transition-delay: calc(var(--reveal-delay, 0) * 80ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero { padding-top: 108px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .vignette { justify-self: center; max-width: 400px; }
  .moves { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero__channels { flex-direction: column; align-items: flex-start; gap: 12px; }
  .moves { grid-template-columns: 1fr; }
  .modes__grid { grid-template-columns: 1fr; }
  .lost__msg:nth-child(2) { margin-left: 20px; }
  .lost__msg:nth-child(3) { margin-left: 8px; }
  .foot__inner { flex-direction: column; gap: 32px; }
  .foot__cols { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .world__orb,
  .world__particle,
  .wordmark__light,
  .hire__pulse,
  .linkcard__pulse,
  [data-beam]::after,
  .typing i { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
