/* Progena AI landing page. Palette mirrors the app's own theme tokens. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root,
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0d11;
  --bg-tint: #0f1218;
  --surface: #14171d;
  --surface-2: #181b22;
  --surface-3: #1e222a;
  --border: #242833;
  --border-strong: #333845;
  --text: #e6e8ed;
  --text-2: #b6bbc6;
  --muted: #8a919e;
  --accent: #6f96ff;
  --accent-strong: #86a8ff;
  --accent-soft: rgba(111, 150, 255, 0.14);
  --teal: #14b8a6;
  --teal-soft: rgba(20, 184, 166, 0.14);
  --amber: #f5b14c;
  --amber-soft: rgba(245, 177, 76, 0.14);
  --on-accent: #0b0d11;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --glow: rgba(111, 150, 255, 0.22);
  --glow-2: rgba(20, 184, 166, 0.16);
  --dots: rgba(255, 255, 255, 0.05);
}

[data-theme='light'] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-tint: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #f1f3f7;
  --border: #e7e9ee;
  --border-strong: #d8dbe2;
  --text: #1d2128;
  --text-2: #4a5161;
  --muted: #6a6f7b;
  --accent: #2f6ff6;
  --accent-strong: #235de0;
  --accent-soft: rgba(47, 111, 246, 0.1);
  --teal: #0d9488;
  --teal-soft: rgba(13, 148, 136, 0.1);
  --amber: #b7791f;
  --amber-soft: rgba(183, 121, 31, 0.12);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 40px -22px rgba(16, 24, 40, 0.22);
  --glow: rgba(47, 111, 246, 0.14);
  --glow-2: rgba(13, 148, 136, 0.1);
  --dots: rgba(16, 24, 40, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons, pills, chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--teal)));
  color: var(--on-accent);
  box-shadow: 0 8px 24px -10px var(--accent);
}

.btn--primary:hover {
  box-shadow: 0 12px 32px -10px var(--accent);
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--azure,
.btn--azure:hover {
  padding: 0;
  height: 34px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.btn--azure img {
  display: block;
}

.btn--secondary {
  height: 34px;
  min-width: 167px;
  padding: 0 12px;
  justify-content: center;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 400;
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--accent);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text-2);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--sm {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

[data-theme='dark'] .icon-btn__moon,
[data-theme='light'] .icon-btn__sun {
  display: none;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
  flex: none;
}


.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.chip {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.tag--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag .status__dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: none;
  animation: pulse 1.4s ease-in-out infinite;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status--live,
.status--running {
  background: var(--teal-soft);
  color: var(--teal);
}

.status--live .status__dot,
.status--running .status__dot {
  animation: pulse 1.6s ease-in-out infinite;
}

.status--ready {
  background: var(--accent-soft);
  color: var(--accent);
}

.status--ready .status__dot {
  background: var(--accent);
  box-shadow: none;
}

.status--building {
  background: var(--amber-soft);
  color: var(--amber);
}

.status--building .status__dot {
  background: var(--amber);
  box-shadow: none;
  animation: pulse 1s ease-in-out infinite;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.btn-mini--primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- Typed verb signature ---------- */

.typed {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.typed__text {
  background: linear-gradient(90deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.typed__cursor {
  display: inline-block;
  width: 0.08em;
  min-width: 2px;
  height: 0.95em;
  margin-left: 0.06em;
  align-self: center;
  background: var(--teal);
  border-radius: 1px;
  animation: blink 1s steps(1) infinite;
}

.typed--hero {
  /* Grows from the centre under "Always"; the line keeps its height when empty. */
  justify-content: center;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.github-mark {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url('github.svg') center / contain no-repeat;
}

.typed--small {
  font-size: 12.5px;
}

.typed--small .typed__text {
  background: none;
  color: var(--muted);
}

.typed--small .typed__cursor {
  background: var(--muted);
}

.typed--final {
  text-align: left;
  width: 15.2ch;
  letter-spacing: -0.04em;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__name {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand__ai {
  margin-left: 5px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.site-nav a {
  padding: 8px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__menu {
  display: none;
}

.mobile-nav {
  display: grid;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 500;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 48px 0 40px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero__glow,
.final__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -120px;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 38% 45%, var(--glow), transparent),
    radial-gradient(closest-side at 64% 55%, var(--glow-2), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 22px;
  font-size: clamp(46px, 8.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero__line--typed {
  min-height: 1.1em;
}

.hero__pitch {
  margin-bottom: 12px;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
}


.hero__lead {
  max-width: 640px;
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero__ctas--left {
  justify-content: flex-start;
}

.hero__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.hero__demo {
  margin-top: 64px;
}

/* ---------- Hero demo (app window) ---------- */

.demo {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow), 0 40px 120px -40px var(--glow);
  text-align: left;
}

.demo__chrome,
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.demo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.demo__address {
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  transform: translateX(-20px);
}

.demo__body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 460px;
}

.demo__nav {
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  background: var(--bg-tint);
}

.demo__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 6px 16px;
  font-size: 14px;
  font-weight: 650;
}

.demo__group {
  margin-bottom: 10px;
}

.demo__group-title {
  margin: 0 8px 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo__item {
  padding: 4px 10px;
  border-radius: 7px;
  color: var(--text-2);
  font-size: 13px;
}

.demo__item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.demo__chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.demo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}

.demo__title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.demo__thread {
  display: grid;
  gap: 22px;
  flex: 1;
  padding: 24px 22px;
}

.msg {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  font-size: 14.5px;
}

.msg__avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text-2);
}

.msg__avatar--agent {
  background: var(--accent-soft);
}

.msg--user p {
  padding-top: 3px;
  color: var(--text);
}

.msg__content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.msg__pending {
  padding-top: 4px;
  height: 22px;
}

.msg__reply {
  color: var(--text-2);
}

.steps {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.steps__item {
  display: grid;
  grid-template-columns: 18px auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
}

.steps__item + .steps__item {
  border-top: 1px solid var(--border);
}

.steps__check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

.steps__label {
  font-weight: 600;
}

.steps__detail {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.steps__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.demo__composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 22px 22px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 0 4px var(--accent-soft);
  color: var(--muted);
  font-size: 14px;
}

.demo__send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(-90deg);
}

/* Staggered entrance for the demo conversation. */
.js .demo .anim {
  opacity: 0;
  transform: translateY(6px);
}

.js .demo.is-playing .anim {
  animation: rise 0.5s var(--ease) forwards;
  animation-delay: calc(var(--d) * 0.55s + 0.2s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 120px 0;
}

.section--tinted {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-tint);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head__intro {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 18px;
}

/* ---------- Platform: seven verbs ---------- */

.verb-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -24px 0 56px;
}

.verb-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.verb-index a span,
.pillar__verb span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.verb-index a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.pillars {
  display: grid;
  gap: 24px;
}

.pillar {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 56px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pillar--flip .pillar__copy {
  order: 2;
}

.pillar__verb {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillar h3 {
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.pillar__body {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 16.5px;
}

.checks {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
}

.checks .icon {
  margin-top: 3px;
  color: var(--teal);
}

.pillar__visual {
  min-width: 0;
}

/* ---------- Pillar visuals ---------- */

.viz {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-tint);
  font-size: 13.5px;
}

.viz__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.viz__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.viz__hint {
  color: var(--muted);
  font-size: 12px;
}

.viz__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

/* Orchestrate */
.viz--orchestrate {
  display: grid;
  gap: 14px;
}

.bubble {
  justify-self: end;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.report {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.report__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.report__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal);
}

.report__title {
  font-weight: 600;
}

.report__meta {
  color: var(--muted);
  font-size: 12px;
}

.report__rows {
  display: grid;
  margin: 0;
}

.report__rows div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.report__rows dt {
  color: var(--muted);
}

.report__rows dd {
  margin: 0;
  font-weight: 600;
}

.report__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Spectate */
.timeline {
  display: grid;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 16px;
}

.timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--border-strong);
}

.timeline__node {
  width: 18px;
  height: 18px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--teal-soft);
}

.timeline__item--live .timeline__node {
  border-color: var(--accent);
  background: var(--accent-soft);
  animation: pulse 1.2s ease-in-out infinite;
}

.timeline__body {
  display: grid;
}

.timeline__label {
  font-weight: 600;
}

.timeline__detail,
.timeline__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Operate */
.viz--operate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kanban__col {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.kanban__title {
  display: flex;
  justify-content: space-between;
  padding: 0 2px 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kanban__card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.kanban__card.is-live {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Automate */
.graph {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
}

.graph__edges path {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.graph__node rect {
  fill: var(--surface);
  stroke: var(--border-strong);
}

.graph__node text {
  fill: var(--text);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-anchor: middle;
}

.graph__node--terminal rect {
  fill: var(--teal-soft);
  stroke: var(--teal);
}

.graph__node--terminal text {
  fill: var(--teal);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph__node--end rect {
  fill: var(--accent-soft);
  stroke: var(--accent);
}

.graph__node--end text {
  fill: var(--accent);
}

.graph__node--human rect {
  fill: var(--amber-soft);
  stroke: var(--amber);
}

.graph__node--human text {
  fill: var(--amber);
}

.graph__pulse {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
}

/* Delegate */
.viz--delegate {
  display: grid;
  gap: 8px;
}

.agent {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.agent__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-soft), var(--teal-soft));
  color: var(--accent);
  font-weight: 700;
}

.agent__body {
  display: grid;
  min-width: 0;
}

.agent__name {
  font-weight: 600;
}

.agent__role {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Facilitate */
.viz--facilitate {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.kpage {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.kpage__title {
  font-weight: 650;
}

.kpage__meta {
  margin-bottom: 6px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.kpage__line {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-3);
}

.tools {
  display: grid;
  align-content: start;
  gap: 8px;
}

.tools li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 500;
}

.toggle {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: var(--border-strong);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.2s;
}

.toggle.is-on {
  background: var(--teal);
}

.toggle.is-on::after {
  transform: translateX(12px);
}

/* Integrate */
.viz--integrate {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  color: var(--muted);
}

.channel.is-live {
  border-style: solid;
  border-color: color-mix(in srgb, var(--teal) 45%, var(--border));
  background: var(--surface);
  color: var(--text);
}

.channel__name {
  font-weight: 600;
}

.channel__state {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.channel.is-live .channel__state {
  color: var(--teal);
}

/* ---------- How it works ---------- */

.workflow-chat {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 40px;
}

.workflow-chat__request,
.workflow-chat__message {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.workflow-chat__request {
  margin-left: 8%;
  background: var(--accent-soft);
}

.workflow-chat__message {
  margin-right: 8%;
}

.workflow-chat strong {
  color: var(--accent);
  font-size: 13px;
}

.workflow-chat p,
.how__step > p {
  color: var(--text-2);
}

/* Reserve the complete text's space so typing never shifts the cards. */
.workflow-typed {
  position: relative;
}

.workflow-typed > [aria-hidden] {
  display: block;
  visibility: hidden;
}

.workflow-typed > :last-child {
  position: absolute;
  inset: 0;
}

.workflow-chat [data-typing-active]::after {
  content: '|';
  color: var(--accent);
}

.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

.how__step {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.how__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: var(--on-accent);
  font-weight: 700;
}

.how-art {
  display: block;
  width: 100%;
  height: 160px;
  margin-top: 16px;
  color: var(--accent);
}

.how-art__node {
  fill: var(--surface-2);
  stroke: var(--border-strong);
}

.how-art__link {
  stroke: var(--accent);
  stroke-width: 2;
}

.how-art__gate {
  fill: var(--teal-soft);
  stroke: var(--teal);
}

.how-art__check {
  stroke: var(--teal);
  stroke-width: 3;
}

.how-art__signal,
.how-art__play {
  fill: var(--accent);
}

@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
}


/* ---------- Automation ideas ---------- */

.ideas__controls {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.js .ideas__controls {
  display: flex;
}

.ideas__controls .btn-mini {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ideas__controls .btn-mini:hover {
  border-color: var(--accent);
}

.ideas__controls .is-selected {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ideas__controls .btn-mini.is-top-picks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-color: transparent;
  color: var(--on-accent);
  font-weight: 600;
}

.ideas__controls .is-top-picks.is-selected {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ideas__count {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.ideas__source {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ideas__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.idea {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.idea__category {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.idea h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.idea__request {
  color: var(--text);
  font-size: 14px;
}

.idea__outcome {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.ideas__footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 32px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.ideas__footer a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ideas [hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .ideas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ideas__grid { grid-template-columns: 1fr; }
}

/* ---------- Audiences ---------- */

.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.audience {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.audience::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.audience h3 {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.audience__body {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 16.5px;
}

.audience__visual {
  margin: -12px -16px 24px;
  border-radius: 16px;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 75%);
}
.audience-art { display: block; width: 100%; }
.audience-art text {
  fill: var(--text-2);
  font: 15px var(--font-sans);
  text-anchor: middle;
}
.audience-art .audience-art__caption {
  fill: var(--muted);
  font: 11px var(--font-mono);
  letter-spacing: .1em;
}
.audience-art__node { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.audience-art__ink { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.audience-art__route { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 5 5; }
.audience-art__signal { fill: var(--teal); }
.audience-art__peak { fill: var(--accent-soft); }
.audience-art__grid { stroke: var(--border); }
.audience-art__check { stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.audience__requests {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.audience__requests li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  color: var(--text);
  background: var(--surface-2);
  font-size: 14px;
}
.audience__requests .icon { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.audiences__note { margin-top: 24px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Benefits ---------- */

.ownership [data-ownership-controls] { display: none; }
.ownership.is-ready .ownership__choices { display: flex; }
.ownership__choices {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.ownership__choices button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ownership__choices button[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.ownership__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 370px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
}
.ownership__panel[hidden] { display: none; }
.ownership__copy { padding: 36px 40px; }
.ownership__number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
}
.ownership__copy h3 {
  margin: 16px 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.ownership__body { color: var(--text-2); font-size: 17px; }
.ownership__note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.ownership__visual {
  padding: 24px;
  color: var(--accent);
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
}
.ownership-art { display: block; width: 100%; }
.ownership-art text { fill: var(--text); font: 16px var(--font-sans, sans-serif); }
.ownership-art .ownership-art__caption { fill: var(--muted); font-size: 12px; letter-spacing: .04em; }
.ownership-art .ownership-art__code { fill: var(--accent); font: 17px var(--font-mono); }
.ownership-art__tile { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.ownership-art__cloud { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.ownership-art__boundary { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 6; }
.ownership-art__dot { fill: var(--accent); }
.ownership-art__lines { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.ownership-art__check { stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ownership-art__flow { stroke: var(--teal); stroke-width: 2.5; stroke-dasharray: 6 6; }
.ownership.is-ready .ownership__navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ownership__status { color: var(--muted); font-size: 12px; }
.ownership__navigation > div { display: flex; gap: 8px; }
.ownership__back { display: flex; transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .ownership.is-ready .ownership__panel:not([hidden]) .ownership__visual { animation: ownership-in .35s ease-out; }
  @keyframes ownership-in { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 700px) {
  .ownership__panel { grid-template-columns: 1fr; min-height: 620px; }
  .ownership__copy { padding: 28px 24px 0; }
  .ownership__visual { padding: 16px; }
  .ownership__choices button { padding: 8px 10px; font-size: 12px; }
}

/* ---------- Self-host ---------- */

.selfhost {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 64px;
}

.selfhost__points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.selfhost__points li {
  display: grid;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.selfhost__points span {
  color: var(--text-2);
  font-size: 15px;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #0a0c10;
  box-shadow: var(--shadow), 0 30px 80px -40px var(--glow);
}

.terminal__bar {
  background: #12151b;
  border-bottom-color: #222631;
}

.terminal__bar .demo__dot {
  background: #2c313c;
}

.terminal__title {
  margin-left: 8px;
  color: #8a919e;
  font-family: var(--font-mono);
  font-size: 12px;
}

.terminal__body {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #e6e8ed;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
}


.terminal__line--out {
  margin-top: 8px;
  color: #6f96ff;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.faq__list {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq__item p {
  padding: 0 40px 22px 0;
  color: var(--text-2);
}

/* ---------- Final CTA ---------- */

.final {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.final__glow {
  top: auto;
  bottom: -320px;
}

.final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final__title {
  margin-bottom: 22px;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.045em;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer__nav a {
  color: var(--text-2);
  font-size: 14.5px;
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.mono-stats {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */


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

  .site-header__actions {
    margin-left: auto;
  }

  .site-header__menu {
    display: inline-grid;
  }
}

@media (max-width: 960px) {

  .section {
    padding: 88px 0;
  }

  .pillar,
  .selfhost,
  .faq {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pillar {
    padding: 32px;
  }

  .pillar--flip .pillar__copy {
    order: 0;
  }

  .audiences {
    grid-template-columns: 1fr;
  }

  .demo__body {
    grid-template-columns: 1fr;
  }

  .demo__nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .site-header__actions .btn--ghost {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

  .hero__title {
    font-size: clamp(38px, 11.4vw, 60px);
  }

  .hero__line--typed {
    font-size: 0.78em;
  }

  .hero__ctas .btn {
    width: 167px;
    justify-content: center;
  }

  .pillar,
  .audience {
    padding: 24px;
  }

  .viz--operate {
    grid-template-columns: 1fr;
  }

  .viz--facilitate,
  .viz--integrate {
    grid-template-columns: 1fr;
  }

  .steps__item {
    grid-template-columns: 18px 1fr auto;
  }

  .steps__detail {
    display: none;
  }

  .demo__thread {
    padding: 18px 14px;
  }

  .demo__composer {
    margin: 0 14px 14px;
  }

  .terminal__body {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .demo .anim {
    opacity: 1;
    transform: none;
  }

  .graph__pulse {
    display: none;
  }
}
