:root {
  --bg: #000;
  --text: #f4f4f4;
  --muted: #9c9c9c;
  --line: rgba(255, 255, 255, 0.14);
  --panel: #161616;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Host Grotesk", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }

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

.chev,
.arrow {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.arrow { transform: rotate(-45deg) translateY(-1px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 180ms var(--ease-out), background 180ms ease, border-color 180ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn--solid { background: #fff; color: #111; }
.btn--solid:hover { background: #e8e8e8; }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.36); }
.btn--lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn:hover .arrow { transform: translate(2px, -1px) rotate(-45deg); }
.arrow { transition: transform 200ms var(--ease-out); }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.86);
  animation: fade-in 700ms var(--ease-out) both;
}

.nav__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
}

.nav__logo,
.nav__mark {
  width: 28px;
  height: 28px;
  color: #fff;
  display: block;
}

.nav__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  color: #d4d4d4;
  font-size: 14.5px;
  font-weight: 500;
}

.nav__link:hover { color: #fff; }

.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu,
.nav__item.is-open .nav__menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #d0d0d0;
  font-size: 14px;
}

.nav__menu a:hover { background: #1c1c1c; color: #fff; }

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

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.4px;
  background: #fff;
}

.nav__toggle span:first-child { top: 13px; }
.nav__toggle span:last-child { bottom: 13px; }

.hero {
  position: relative;
  min-height: calc(100dvh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(72vw, 720px);
  height: min(52vh, 420px);
  top: 18%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 68%);
  pointer-events: none;
  animation: glow-drift 16s var(--ease-move) infinite;
}

.hero__kicker,
.hero h1,
.hero__lede,
.hero__ctas {
  position: relative;
  animation: rise-in 900ms var(--ease-out) both;
}

.hero h1 { animation-delay: 90ms; }
.hero__lede { animation-delay: 180ms; }
.hero__ctas { animation-delay: 270ms; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: #bdbdbd;
  font-size: 13px;
}

.hero__kicker svg { width: 14px; height: 14px; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero__lede {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.showcase { padding: 0 28px 40px; }

.showcase__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.15fr);
  gap: 40px 56px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.slide {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 120px;
  opacity: 0.28;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}

.slide.is-active {
  opacity: 1;
  transform: none;
}

.slide.is-active .slide__list li {
  animation: rise-in 560ms var(--ease-out) both;
}

.slide.is-active .slide__list li:nth-child(1) { animation-delay: 40ms; }
.slide.is-active .slide__list li:nth-child(2) { animation-delay: 110ms; }
.slide.is-active .slide__list li:nth-child(3) { animation-delay: 180ms; }

.slide__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
}

.slide__icon svg { width: 100%; height: 100%; }

.slide h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.slide__lede {
  margin: 16px 0 0;
  max-width: 34rem;
  color: #c8c8c8;
  font-size: 1.05rem;
  line-height: 1.55;
}

.slide__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.slide__list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: #b5b5b5;
}

.slide__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 11px;
  height: 6px;
  border-left: 1.6px solid #8d8d8d;
  border-bottom: 1.6px solid #8d8d8d;
  transform: rotate(-45deg);
}

.showcase__demo {
  position: sticky;
  top: 88px;
  height: calc(100dvh - 112px);
  align-self: start;
}

.demo {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: 28px;
  overflow: hidden;
}

.demo__stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.demo__panel {
  position: absolute;
  inset: 0;
  padding: 22px 22px 12px;
  overflow: auto;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.demo__panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.demo__prompt {
  width: fit-content;
  max-width: 86%;
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 18px;
  background: #2a2a2a;
  font-size: 13.5px;
  line-height: 1.4;
}

.demo__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 12px;
  color: #8f8f8f;
  font-size: 13px;
}

.demo__trace {
  margin: 0 0 14px;
  color: #9a9a9a;
  font-size: 13px;
}

.demo__body {
  color: #d8d8d8;
  font-size: 14.5px;
  line-height: 1.55;
}

.demo__body h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.demo__body p { margin: 0 0 10px; }

.demo__body--code pre {
  margin: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.demo__meta--agents { flex-wrap: wrap; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #161616;
}

.demo__panel.is-active .dot {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.demo__panel.is-active .dot:nth-child(2) { animation-delay: 120ms; }
.demo__panel.is-active .dot:nth-child(3) { animation-delay: 240ms; }
.demo__panel.is-active .dot:nth-child(4) { animation-delay: 360ms; }

.dot + .dot { margin-left: -4px; }
.dot--rose { background: #f4a4c0; }
.dot--violet { background: #b9a6f2; }
.dot--gold { background: #e7d48a; }
.dot--orange { background: #f0b27a; }

.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 14px 16px;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: #101010;
}

.composer__plus { color: #9a9a9a; font-size: 20px; }
.composer input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
}
.composer input::placeholder { color: #7a7a7a; }
.composer__mode { color: #bdbdbd; font-size: 13px; }
.composer__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  transition: transform 160ms var(--ease-out);
}

.composer__send:hover { transform: scale(1.06); }
.composer__send:active { transform: scale(0.96); }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.wrap--narrow { width: min(760px, calc(100% - 48px)); }

.eyebrow {
  margin: 0 0 28px;
  color: #8a8a8a;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.statement {
  padding: 88px 24px 32px;
  text-align: center;
}

.statement p {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.capabilities { padding: 72px 0 32px; }

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
}

.capabilities__grid h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.capabilities__grid p {
  margin: 0;
  color: #9c9c9c;
  font-size: 0.95rem;
  line-height: 1.55;
}

.products { padding: 64px 0 32px; }

.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0c0c0c;
  transition: border-color 220ms var(--ease-out), background 220ms ease, transform 220ms var(--ease-out);
}

.product:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #111;
  transform: translateY(-6px);
}

.product__cta {
  margin-top: auto;
  padding-top: 28px;
  color: #fff;
  font-size: 14px;
  transition: transform 200ms var(--ease-out);
}

.product:hover .product__cta { transform: translateX(4px); }

.product__cta::after { content: " →"; }

.product__label {
  color: #8a8a8a;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product h3 {
  margin: 16px 0 12px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.product p {
  margin: 0;
  color: #9c9c9c;
  line-height: 1.55;
}

.flow { padding: 80px 0 48px; }

.flow__layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.flow__tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 96px;
}

.flow__tab {
  text-align: left;
  padding: 10px 0;
  color: #6e6e6e;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.flow__tab.is-active {
  color: #fff;
  border-bottom-color: #fff;
}

.flow__stage {
  position: relative;
  min-height: 400px;
  padding: 36px 40px;
  border-radius: 28px;
  background: var(--panel);
  overflow: hidden;
}

.flow__panel {
  position: absolute;
  inset: 36px 40px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}

.flow__panel.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.flow__prompt {
  width: fit-content;
  max-width: 90%;
  margin: 0 0 28px auto;
  padding: 10px 14px;
  border-radius: 18px;
  background: #2a2a2a;
  color: #e8e8e8;
  font-size: 13.5px;
}

.flow__panel h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.flow__panel p {
  margin: 0 0 20px;
  color: #b5b5b5;
  line-height: 1.55;
}

.flow__panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow__panel li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: #9c9c9c;
}

.flow__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 11px;
  height: 6px;
  border-left: 1.6px solid #8d8d8d;
  border-bottom: 1.6px solid #8d8d8d;
  transform: rotate(-45deg);
}

.audiences { padding: 32px 0 80px; }

.audiences__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.audiences__grid h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.audiences__grid p {
  margin: 0 0 20px;
  color: #9c9c9c;
  line-height: 1.55;
}

.audiences__grid a { font-size: 14px; }
.audiences__grid a::after { content: " →"; }
.audiences__grid a:hover { color: #fff; }

.faq { padding: 24px 0 96px; }

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

.faq__list details { border-bottom: 1px solid var(--line); }

.faq__list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 36px 22px 0;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
}

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

.faq__list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 22px;
  color: #8a8a8a;
}

.faq__list details[open] summary::after { content: "–"; }

.faq__list p {
  margin: 0 0 22px;
  max-width: 58ch;
  color: #9c9c9c;
  line-height: 1.6;
}

.footer {
  padding: 48px 0 32px;
  color: #7a7a7a;
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer__brand p:last-child {
  margin: 0;
  max-width: 28ch;
  line-height: 1.5;
}

.footer__label {
  margin: 0 0 12px;
  color: #c8c8c8;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__grid a {
  display: block;
  padding: 5px 0;
}

.footer__grid a:hover { color: #fff; }

.footer__copy {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.faq__list details[open] p {
  animation: rise-in 420ms var(--ease-out) both;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glow-drift {
  0%, 100% { opacity: 0.55; transform: translate(-50%, 0) scale(1); }
  50% { opacity: 1; transform: translate(-50%, 8px) scale(1.08); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
}

@media (max-width: 980px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0d0d0d;
  }

  body.nav-open .nav__links { display: flex; }
  .nav__toggle { display: block; }
  .nav__actions .btn--ghost { display: none; }
  .nav__menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
    background: transparent;
    border: 0;
    padding: 0 0 8px 12px;
  }
  .nav__item.is-open .nav__menu { display: block; }

  .showcase__grid { grid-template-columns: 1fr; }
  .showcase__demo {
    position: sticky;
    top: 72px;
    height: min(52dvh, 480px);
    order: -1;
  }
  .showcase__copy { display: contents; }
  .slide { min-height: auto; padding: 36px 0 64px; }

  .capabilities__grid,
  .products__grid,
  .audiences__grid,
  .footer__grid,
  .flow__layout {
    grid-template-columns: 1fr;
  }

  .flow__tabs {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .flow__tab { border-bottom: 0; }
  .flow__tab.is-active { border-bottom: 1px solid #fff; }
  .flow__stage { padding: 24px; }
  .product { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .slide { transform: none; }
}
