:root {
  color-scheme: dark;
  --page: #080b0f;
  --panel: #141a20;
  --panel-strong: #1b232b;
  --text: #f4f7f8;
  --muted: #a9b4bd;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --blue: #69a7ff;
  --cyan: #63d8dc;
  --green: #9bd36f;
  --ink: #0c1015;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  min-width: 320px;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(8, 11, 15, 0.88), rgba(8, 11, 15, 0.44));
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 180px;
  font-weight: 850;
  font-size: 1.05rem;
  line-height: 1;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(99, 216, 220, 0.18));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 780;
  font-size: 0.92rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-sign-in {
  margin-left: 8px;
  color: #081015;
  border-color: rgba(255, 255, 255, 0.92);
  background: #f4f7f8;
}

.nav-sign-in:hover,
.nav-sign-in:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 104vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 130px max(24px, calc((100vw - var(--max)) / 2)) 154px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.98) 0%, rgba(8, 11, 15, 0.78) 39%, rgba(8, 11, 15, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 11, 15, 0.08) 0%, #080b0f 100%);
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(105, 167, 255, 0.16), transparent 38%),
    linear-gradient(240deg, rgba(99, 216, 220, 0.18), transparent 44%),
    #0b1015;
}

.hero-examples {
  position: absolute;
  right: max(64px, calc((100vw - var(--max)) / 2 - 48px));
  top: 9%;
  width: min(690px, 46vw);
  height: min(710px, 74vh);
}

.hero-dialogue {
  position: absolute;
  min-width: 0;
  width: min(330px, 46%);
  display: grid;
  gap: 5px;
}

.hero-dialogue--1 {
  --flow-delay: 120ms;
  top: 32px;
  left: 6%;
}

.hero-dialogue--2 {
  --flow-delay: 2250ms;
  top: 64px;
  right: 0;
}

.hero-dialogue--3 {
  --flow-delay: 4380ms;
  top: 274px;
  left: 8%;
}

.hero-dialogue--4 {
  --flow-delay: 6510ms;
  top: 346px;
  right: -4%;
}

.hero-dialogue--5 {
  --flow-delay: 8640ms;
  top: 510px;
  left: 34%;
}

.hero-dialogue__bubble {
  min-width: 0;
  padding: 10px 13px;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px) saturate(125%);
}

.hero-dialogue__bubble span {
  display: block;
  margin-bottom: 6px;
  color: rgba(185, 200, 215, 0.56);
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-dialogue__bubble p {
  margin: 0;
  color: #eaf1f5;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 720;
  overflow-wrap: break-word;
}

.hero-dialogue__bubble--in {
  border-bottom-left-radius: 8px;
  background: rgba(34, 45, 63, 0.82);
}

.hero-dialogue__bubble--out {
  justify-self: end;
  width: min(88%, 340px);
  border-bottom-right-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 90, 160, 0.72), rgba(29, 94, 108, 0.44)),
    rgba(18, 32, 47, 0.9);
}

.hero-dialogue__bubble--out span {
  text-align: right;
}

.hero-dialogue__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.hero-examples:not(.is-reduced-motion) .hero-dialogue__chips {
  max-height: 0;
  overflow: hidden;
}

.hero-dialogue__chips span,
.hero-dialogue__chips strong {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-weight: 780;
  line-height: 1;
}

.hero-dialogue__chips span {
  padding: 0 6px;
  color: #f4f7ff;
  background: #6a67f8;
  font-size: 0.58rem;
}

.hero-dialogue__chips strong {
  padding: 0 8px;
  border: 1px solid rgba(105, 167, 255, 0.32);
  color: #80bdff;
  background: rgba(105, 167, 255, 0.14);
  font-size: 0.62rem;
}

.hero-examples:not(.is-reduced-motion) .hero-dialogue__bubble,
.hero-examples:not(.is-reduced-motion) .hero-dialogue__chips span,
.hero-examples:not(.is-reduced-motion) .hero-dialogue__chips strong {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
}

.hero-examples.is-active:not(.is-reduced-motion) .hero-dialogue__bubble {
  animation: hero-dialogue-enter 780ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-examples.is-active:not(.is-reduced-motion) .hero-dialogue__chips span,
.hero-examples.is-active:not(.is-reduced-motion) .hero-dialogue__chips strong {
  animation: hero-chip-process 1320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-examples.is-active:not(.is-reduced-motion) .hero-dialogue__chips {
  animation: hero-chip-row-space 2440ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--flow-delay) + 560ms);
}

.hero-examples.is-active:not(.is-reduced-motion) .hero-dialogue__bubble--in {
  animation-delay: var(--flow-delay);
}

.hero-examples.is-active:not(.is-reduced-motion) .hero-dialogue__chips span {
  animation-delay: calc(var(--flow-delay) + 640ms);
}

.hero-examples.is-active:not(.is-reduced-motion) .hero-dialogue__chips strong:nth-of-type(1) {
  animation-delay: calc(var(--flow-delay) + 820ms);
}

.hero-examples.is-active:not(.is-reduced-motion) .hero-dialogue__chips strong:nth-of-type(2) {
  animation-delay: calc(var(--flow-delay) + 1000ms);
}

.hero-examples.is-active:not(.is-reduced-motion) .hero-dialogue__chips strong:nth-of-type(3) {
  animation-delay: calc(var(--flow-delay) + 1180ms);
}

.hero-examples.is-active:not(.is-reduced-motion) .hero-dialogue__bubble--out {
  animation-delay: calc(var(--flow-delay) + 2920ms);
}

@keyframes hero-dialogue-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-chip-process {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  22%,
  68% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@keyframes hero-chip-row-space {
  0% {
    max-height: 0;
  }

  12%,
  72% {
    max-height: 52px;
  }

  100% {
    max-height: 0;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(700px, 52vw);
  max-width: calc(100vw - 48px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.8rem, 10vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 600px;
  margin: 28px 0 0;
  color: #d4dce3;
  font-size: clamp(1.18rem, 2.2vw, 1.56rem);
  line-height: 1.42;
  font-weight: 650;
}

.hero-actions,
.section--pricing,
.cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 0.98rem;
  font-weight: 850;
}

.button--primary {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: #f4f7f8;
  color: var(--ink);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #ffffff;
  outline: none;
}

.button--secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.section,
.workflow,
.cta {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: start;
  padding: 90px 0;
}

.section + .section,
.workflow,
.cta {
  border-top: 1px solid var(--line);
}

.section-copy h2,
.workflow h2,
.cta h2 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-copy p,
.workflow > .section-copy p,
.cta p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 620;
}

.signal-list,
.feature-grid,
.control-list {
  display: grid;
  gap: 14px;
}

.signal-list div,
.feature-grid article,
.control-list div,
.steps li,
.cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.signal-list div {
  padding: 22px;
}

.signal-list span,
.feature-grid h3,
.steps strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 850;
}

.signal-list strong {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
}

.feature-grid article {
  min-height: 200px;
  padding: 24px;
}

.feature-grid p,
.steps p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 620;
}

.workflow {
  padding: 90px 0;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 0;
  padding: 0;
}

.steps li {
  padding: 22px;
}

.steps span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(99, 216, 220, 0.16);
  color: var(--cyan);
  font-weight: 900;
}

.control-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.control-list div {
  min-height: 112px;
  padding: 20px;
  color: #dce2e7;
  font-weight: 760;
  line-height: 1.45;
}

.section--controls {
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 42px;
}

.section--controls .section-copy {
  max-width: 600px;
}

.section--controls .section-copy h2 {
  max-width: 600px;
  font-size: clamp(2.7rem, 4.45vw, 4.05rem);
}

.product-preview {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.preview-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(164px, 0.58fr) minmax(0, 1.62fr);
  gap: 22px;
  align-items: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.preview-context,
.preview-thread {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.preview-context {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  align-self: center;
  min-height: 324px;
  overflow: hidden;
}

.preview-context__title {
  margin: 6px 0 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 880;
}

.preview-context-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 50px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.preview-context-card span,
.preview-chip {
  color: var(--muted);
  font-weight: 820;
}

.preview-context-card strong {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.18;
  overflow-wrap: break-word;
}

.preview-chip {
  min-width: 0;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  border: 1px solid rgba(99, 216, 220, 0.16);
  border-radius: 8px;
  background: rgba(99, 216, 220, 0.07);
  color: #d9eef1;
  font-size: 0.7rem;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.preview-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(99, 216, 220, 0.42);
}

.preview-thread {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 352px;
  align-self: center;
}

.preview-thread__header {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.preview-thread__header > div:nth-child(2) {
  min-width: 0;
}

.preview-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.34), transparent 55%), var(--blue);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.preview-avatar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-avatar--small {
  width: 24px;
  height: 24px;
}

.preview-avatar--small svg {
  width: 13px;
  height: 13px;
}

.preview-avatar--bot {
  background: rgba(99, 216, 220, 0.08);
}

.preview-avatar--bot img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.preview-thread__header strong {
  display: block;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.preview-thread__header span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.preview-thread__menu {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 900;
}

.preview-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  padding: 14px 10px 10px;
}

.preview-message-row {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: min(74%, 420px);
}

.preview-message-row--bot {
  align-self: flex-end;
  flex-direction: row-reverse;
  max-width: min(84%, 500px);
  margin-top: 28px;
}

.preview-message-row--bot > div:last-child {
  min-width: 0;
  display: grid;
  justify-items: end;
}

.preview-message,
.preview-draft {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  color: #edf3f5;
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.34;
}

.preview-message {
  padding: 9px 11px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  overflow-wrap: anywhere;
}

.preview-message--family {
  align-self: flex-start;
}

.preview-message--bot {
  background: rgba(10, 132, 255, 0.2);
  border-color: rgba(105, 167, 255, 0.3);
}

.preview-message-meta {
  margin-top: 4px;
  color: rgba(169, 180, 189, 0.76);
  font-size: 0.58rem;
  font-weight: 680;
}

.preview-draft {
  position: absolute;
  z-index: 2;
  top: 152px;
  right: 10px;
  display: grid;
  gap: 8px;
  width: min(82%, 420px);
  max-width: calc(100% - 20px);
  padding: 10px;
  background:
    radial-gradient(420px 220px at 18% 0%, rgba(105, 167, 255, 0.16), transparent 70%),
    radial-gradient(420px 220px at 92% 10%, rgba(99, 216, 220, 0.13), transparent 72%),
    rgba(18, 25, 32, 0.96);
  border-color: rgba(99, 216, 220, 0.2);
}

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

.preview-draft__top img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(99, 216, 220, 0.16));
}

.preview-draft__top strong {
  display: block;
  color: #9ff0f1;
}

.preview-draft__top span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.65rem;
}

.preview-draft p {
  margin: 0;
}

.preview-draft__actions {
  display: flex;
  gap: 10px;
}

.preview-draft__actions span {
  position: relative;
  min-width: 80px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 850;
  font-size: 0.72rem;
}

.preview-draft__actions span:last-child {
  background: rgba(255, 255, 255, 0.9);
  color: #081015;
}

.preview-cursor {
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 24px;
  height: 24px;
  background: rgba(244, 247, 248, 0.92);
  clip-path: polygon(0 0, 0 100%, 34% 74%, 51% 100%, 69% 89%, 53% 64%, 91% 64%);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.28));
}

.preview-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.preview-compose span {
  min-width: 0;
  flex: 1;
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-weight: 760;
}

.preview-compose strong {
  min-width: 58px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f4f7f8;
  color: #081015;
  font-weight: 900;
}

.preview-step {
  opacity: 1;
  transform: none;
}

.product-preview:not(.is-reduced-motion) .preview-step {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.product-preview.is-active:not(.is-reduced-motion) .preview-step {
  animation: preview-enter 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.product-preview.is-active:not(.is-reduced-motion) .preview-step--1 {
  animation-delay: 140ms;
}

.product-preview.is-active:not(.is-reduced-motion) .preview-step--2 {
  animation-delay: 860ms;
}

.product-preview.is-active:not(.is-reduced-motion) .preview-step--3 {
  animation-delay: 1460ms;
}

.product-preview.is-active:not(.is-reduced-motion) .preview-step--4 {
  animation-delay: 1760ms;
}

.product-preview.is-active:not(.is-reduced-motion) .preview-step--5 {
  animation-delay: 2060ms;
}

.product-preview.is-active:not(.is-reduced-motion) .preview-step--6 {
  animation: preview-draft-lifecycle 2600ms cubic-bezier(0.2, 0.8, 0.2, 1) 2520ms forwards;
}

.product-preview.is-active:not(.is-reduced-motion) .preview-step--7 {
  animation: preview-cursor 1200ms cubic-bezier(0.2, 0.8, 0.2, 1) 3300ms forwards;
}

.product-preview.is-active:not(.is-reduced-motion) .preview-step--8 {
  animation-delay: 4680ms;
}

@keyframes preview-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes preview-cursor {
  0% {
    opacity: 0;
    transform: translate(-42px, -10px) scale(0.92);
  }

  35%,
  68% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.96);
  }
}

@keyframes preview-draft-lifecycle {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  18%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
    pointer-events: none;
  }
}

.section--pricing {
  justify-content: space-between;
}

.section--pricing .section-copy {
  max-width: 780px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pricing-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    var(--panel);
}

.pricing-card--gold {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 205, 115, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    var(--panel);
}

.pricing-card--platinum {
  background:
    radial-gradient(circle at 18% 0%, rgba(196, 219, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    var(--panel);
}

.pricing-card__header {
  display: grid;
  gap: 10px;
}

.pricing-card__header span {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 900;
}

.pricing-card__header strong {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #dce8f7;
  background: rgba(105, 167, 255, 0.12);
  font-size: 0.84rem;
  line-height: 1;
}

.pricing-card__placeholder {
  display: grid;
  gap: 12px;
  user-select: none;
}

.pricing-card__placeholder span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.055));
  filter: blur(3px);
  opacity: 0.62;
}

.pricing-card__placeholder span:nth-child(1) {
  width: 82%;
}

.pricing-card__placeholder span:nth-child(2) {
  width: 66%;
}

.pricing-card__placeholder span:nth-child(3) {
  width: 74%;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 680;
  line-height: 1.45;
}

.cta {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
  padding: 34px;
  background: var(--panel-strong);
}

.cta p {
  max-width: 680px;
}

@media (max-width: 980px) {
  .site-header {
    position: fixed;
    padding: 12px 20px;
  }

  .site-nav a:not(.nav-sign-in) {
    display: none;
  }

  .brand {
    min-width: auto;
  }

  .nav-sign-in {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
  }

  .hero-scene {
    position: relative;
    inset: auto;
    order: 2;
    margin-top: 42px;
    overflow: visible;
    background: transparent;
    opacity: 1;
  }

  .hero-examples {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
    max-width: 760px;
    display: grid;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hero-dialogue,
  .hero-dialogue--1,
  .hero-dialogue--2,
  .hero-dialogue--3,
  .hero-dialogue--4,
  .hero-dialogue--5,
  .hero-dialogue--6 {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    grid-column: auto;
    margin-top: 0;
  }

  .hero-copy {
    order: 1;
    width: min(700px, 100%);
  }

  .section,
  .section--pricing {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps,
  .control-list,
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .product-preview {
    min-height: 460px;
  }

  .preview-shell {
    min-height: 430px;
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-context__title {
    grid-column: 1 / -1;
  }

  .preview-thread {
    min-height: 360px;
  }

  .preview-message-row,
  .preview-message-row--bot {
    max-width: min(84%, 520px);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand span {
    display: none;
  }

  .hero {
    padding: 104px 18px 64px;
  }

  .hero h1 {
    font-size: clamp(4.1rem, 23vw, 6rem);
  }

  .hero-actions,
  .section--pricing,
  .cta {
    align-items: stretch;
  }

  .hero-examples {
    width: 100%;
  }

  .hero-dialogue__bubble,
  .hero-dialogue__bubble--out {
    width: 100%;
  }

  .hero-dialogue__bubble p {
    font-size: 0.78rem;
  }

  .hero-dialogue__chips strong {
    font-size: 0.66rem;
  }

  .button {
    width: 100%;
  }

  .product-preview {
    min-height: 560px;
    align-items: start;
  }

  .preview-shell {
    min-height: 520px;
    padding: 0;
    gap: 12px;
  }

  .preview-context {
    display: none;
  }

  .preview-thread__header {
    min-height: 64px;
    padding: 12px;
  }

  .preview-thread__header strong {
    font-size: 0.98rem;
  }

  .preview-chat {
    padding: 12px;
  }

  .preview-message,
  .preview-draft {
    font-size: 0.9rem;
  }

  .preview-message-row,
  .preview-message-row--bot {
    max-width: 100%;
  }

  .preview-draft {
    max-width: 100%;
  }

  .preview-draft__actions span {
    min-width: 0;
    flex: 1;
  }

  .preview-compose strong {
    min-width: 58px;
  }

  .preview-cursor {
    display: none;
  }

  .section,
  .workflow,
  .cta {
    width: min(calc(100% - 28px), var(--max));
  }

  .section--controls {
    width: min(calc(100% - 48px), var(--max));
    grid-template-columns: minmax(0, 1fr);
  }

  .section,
  .workflow {
    padding: 64px 0;
  }

  .cta {
    padding: 24px;
  }

}

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

  .product-preview .preview-step,
  .product-preview.is-active .preview-step,
  .hero-examples .hero-dialogue__bubble,
  .hero-examples .hero-dialogue__chips,
  .hero-examples.is-active .hero-dialogue__bubble,
  .hero-examples.is-active .hero-dialogue__chips {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .preview-cursor {
    display: none;
  }
}
