/* V3 homepage composition. Shared by index.html and en/home.html only. */
body.ai-home-page {
  --home-ink: #202538;
  --home-muted: #646d80;
  --home-rule: #e2e7ef;
  --home-stage-width: 78rem;
  --home-stage: #172137;
}

/* The opening statement and product demo each have their own screen. */
body.ai-home-page .ai-hero--editorial .ai-hero__heading {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: calc(var(--ai-header-height) + 2rem) 4rem;
  text-align: center;
}
body.ai-home-page .ai-hero--editorial .ai-hero__heading h1 {
  max-width: 64rem;
  color: var(--home-ink);
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
body.ai-home-page .ai-hero--editorial .ai-hero__eyebrow {
  color: #667089;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.5;
}
body.ai-home-page .ai-hero--editorial .ai-hero__line--brand { gap: .625rem; }
body.ai-home-page .ai-hero--editorial .ai-hero__brand-icon { width: 2rem; }
body.ai-home-page .ai-hero--editorial .ai-hero__brand-text { font-size: 1.75rem; }
body.ai-home-page .ai-hero--editorial .ai-hero__line + .ai-hero__line { margin-top: 2rem; }
body.ai-home-page .ai-hero--editorial .ai-hero__line.ai-hero__line--message { white-space: normal; }
body.ai-home-page .ai-hero--editorial .ai-hero__heading h1 em {
  font-weight: 500;
  color: var(--home-ink);
  line-height: inherit;
  letter-spacing: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}
body.ai-home-page .ai-hero--editorial .ai-hero__statement { display: block; -webkit-text-fill-color: currentColor; }
body.ai-home-page .ai-hero--editorial .ai-hero__statement--accent { margin-top: .1em; color: #343fc4; }
body.ai-home-page .ai-hero--editorial .ai-hero__intro {
  margin-top: 1.75rem;
  gap: 1.75rem;
}
body.ai-home-page .ai-hero--editorial .ai-hero__intro > p {
  max-width: 36rem;
  color: var(--home-muted);
  font-size: 1.0625rem;
}
body.ai-home-page .ai-hero--editorial .ai-panel__actions { flex-wrap: wrap; gap: .875rem; }
body.ai-home-page .ai-hero--editorial .ai-hero__intro .site-cta-actions {
  --site-action-height: 3rem;
  border-radius: .75rem;
  box-shadow: 0 .25rem .75rem rgba(39, 47, 199, .12);
}
body.ai-home-page .ai-hero--editorial .ai-hero__intro .ai-button--watch {
  height: 3rem;
  padding: 0 .625rem;
  gap: .625rem;
  border: 0;
  border-radius: .5rem;
  color: var(--home-ink);
  background: transparent;
  white-space: nowrap;
  transition: color .18s ease;
}
body.ai-home-page .ai-hero--editorial .ai-hero__intro .ai-button--watch:is(:hover, :focus-visible) {
  color: #343fc4;
  background: transparent;
  transform: none;
}
body.ai-home-page .ai-hero--editorial .ai-button--watch:focus-visible {
  outline: 2px solid #343fc4;
  outline-offset: 4px;
}
body.ai-home-page .ai-hero--editorial .ai-button--watch > svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}
body.ai-home-page .ai-hero--editorial .ai-button--watch > span {
  transform: none;
  transition: none;
}
/* Keep the background quiet while the hero composition is refined. */
body.ai-home-page .ai-hero--editorial [data-hero-background="minimal"] {
  background:
    radial-gradient(ellipse 44% 48% at 50% 43%, #fff 12%, rgba(255,255,255,.8) 55%, transparent 100%),
    radial-gradient(ellipse 50% 65% at 3% 78%, #dce8fc 0%, transparent 75%),
    radial-gradient(ellipse 42% 65% at 100% 35%, #e6e6fc 0%, transparent 80%),
    #f8faff;
  -webkit-mask-image: linear-gradient(#000 85%, transparent);
  mask-image: linear-gradient(#000 85%, transparent);
}
body.ai-home-page .ai-hero--editorial [data-hero-background="minimal"]::before,
body.ai-home-page .ai-hero--editorial [data-hero-background="minimal"]::after { content: none; }

/* A single, crisp frame anchors the product; controls retain their existing hooks. */
body.ai-home-page #ai-demo {
  min-height: calc(100svh - var(--ai-header-height));
  padding: 1rem var(--site-gutter);
}
body.ai-home-page #ai-demo .ai-showcase {
  width: min(var(--home-stage-width), 100%, max(20rem, calc((100svh - var(--ai-header-height) - 12rem) * 1.7777778)));
}
body.ai-home-page #ai-demo .ai-film__player:not(:fullscreen) {
  --film-frame-inset: .625rem;
  border: 1px solid #2a3750;
  border-radius: 1.125rem;
  background: var(--home-stage);
  box-shadow: 0 2rem 4rem -2.25rem rgba(20, 30, 50, .4);
}
body.ai-home-page #ai-demo .ai-film__header {
  min-height: 3rem;
  padding: .5rem 1rem;
  border-bottom: 1px solid #ffffff1f;
}
body.ai-home-page #ai-demo .ai-film__identity { transform: none; }
body.ai-home-page #ai-demo .ai-film__identity > span { color: #bdc9dd; border-color: #ffffff26; }
body.ai-home-page #ai-demo .ai-film__player:fullscreen { background: var(--home-stage); }
body.ai-home-page #ai-demo :is(.ai-showcase__play, .ai-film__fullscreen, .ai-showcase__timeline time) { color: #c1cde1; }
body.ai-home-page #ai-demo :is(.ai-showcase__play, .ai-film__fullscreen):hover { background: #ffffff14; }
body.ai-home-page #ai-demo .ai-showcase__progress::before { background: #ffffff30; }
body.ai-home-page #ai-demo .ai-showcase__progress > i { background: #a4b3ff; }
body.ai-home-page #ai-demo :is(button, [role="slider"]):focus-visible { outline-color: #b6c3ff; }
body.ai-home-page #ai-demo .ai-film__player:not(:fullscreen) .ai-showcase__visual {
  border-radius: .5rem;
  background: #f7f9fc;
}
body.ai-home-page #ai-demo [data-ai-showcase] .ai-showcase__plane {
  -webkit-mask-image: none;
  mask-image: none;
}
body.ai-home-page #ai-demo .ai-film__navigation { padding: .125rem .25rem .5rem; }
body.ai-home-page #ai-demo .ai-film__chapters { gap: .875rem; padding: 0; }
body.ai-home-page #ai-demo .ai-film__chapters button {
  min-height: 3.25rem;
  padding: .625rem .375rem .875rem;
  flex-direction: row;
  gap: .5rem;
  border: 0;
  border-radius: .25rem;
  color: #bdc9dd;
  background: transparent;
  box-shadow: none;
}
body.ai-home-page #ai-demo .ai-film__chapters button::before,
body.ai-home-page #ai-demo .ai-film__chapters button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
  content: "";
}
body.ai-home-page #ai-demo .ai-film__chapters button::before { background: #ffffff1f; }
body.ai-home-page #ai-demo .ai-film__chapters button::after {
  background: #7885b0;
  transform: scaleX(var(--chapter-progress, 0));
  transform-origin: left;
  transition: transform 240ms linear;
}
body.ai-home-page #ai-demo .ai-film__chapters button:hover {
  color: #fff;
  background: #ffffff08;
  box-shadow: none;
}
body.ai-home-page #ai-demo .ai-film__chapters button.is-active {
  color: #c2c8ff;
  background: transparent;
  box-shadow: none;
}
body.ai-home-page #ai-demo .ai-film__chapters button.is-active::before { background: #a3adff55; }
body.ai-home-page #ai-demo .ai-film__chapters button.is-active::after { background: #a3adff; }
body.ai-home-page #ai-demo .ai-film__chapters button:focus-visible { outline-color: #a3adff; }
body.ai-home-page #ai-demo .ai-film__chapter-icon { width: 1.125rem; height: 1.125rem; flex: 0 0 auto; }
body.ai-home-page #ai-demo .ai-film__chapters strong { line-height: 1.5; overflow-wrap: normal; }
body.ai-home-page #ai-demo .ai-film__chapter-border { display: none; }
body.ai-home-page #ai-demo .ai-film__chapters.has-chapter-highlight::before { content: none; }
@media (prefers-reduced-motion: reduce) {
  body.ai-home-page #ai-demo .ai-film__chapters button::after { transition: none; }
}

/* Section labels act as quiet wayfinding instead of raised controls. */
body.ai-home-page .home-section-label {
  min-height: 1.5rem;
  padding: 0;
  gap: .75rem;
  border: 0;
  border-radius: 0;
  color: var(--home-muted);
  background: none;
  box-shadow: none;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .1em;
}
body.ai-home-page .home-section-label > .home-section-index {
  color: #4856b5;
  border-right-color: #d5dce9;
}
body.ai-home-page .ai-logo-orbit__stage {
  min-height: 0;
  padding-block: 5.5rem 4rem;
  gap: 2rem;
}
body.ai-home-page .ai-logo-orbit__heading h2 {
  color: var(--home-ink);
  font-size: clamp(1.5rem, 2.3vw, 2.125rem);
  line-height: 1.35;
}
body.ai-home-page .ai-logo-orbit__item { box-shadow: none; }

/* Quiet, equal-sized cards keep the six capabilities easy to scan. */
body.ai-home-page #ai-capabilities { padding-block: 6rem; background: var(--home-surface); }
body.ai-home-page #ai-capabilities .ai-badge-grid { gap: 1.25rem; }
body.ai-home-page #ai-capabilities .ai-section-heading,
body.ai-home-page #solutions .overview-heading {
  max-width: none;
  margin: 0 0 2rem;
  text-align: left;
}
body.ai-home-page #ai-capabilities .ai-section-heading h2,
body.ai-home-page #solutions .overview-heading h2 {
  margin: .875rem 0 0;
  color: var(--home-ink);
  font-size: clamp(1.875rem, 3vw, 2.875rem);
  line-height: 1.3;
}
body.ai-home-page #ai-capabilities :is(.ai-capability-card, .overview-card) {
  display: flex;
  box-sizing: border-box;
  height: 100%;
  min-height: 15rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1.75rem;
  border: 1px solid var(--home-rule);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 33, 55, .025);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.ai-home-page #ai-capabilities .cap-visual { display: none; }
/* Keep the card geometry stable; interaction only emphasizes the outline. */
body.ai-home-page #ai-capabilities .ai-capability-card::after { content: none; }
body.ai-home-page #ai-capabilities :is(.ai-capability-card, .overview-card):focus-within {
  border-color: #b9c2df;
}
@media (hover: hover) and (pointer: fine) {
  body.ai-home-page #ai-capabilities :is(.ai-capability-card, .overview-card):hover {
    border-color: #b9c2df;
    box-shadow: 0 6px 20px rgba(23, 33, 55, .05);
  }
}
body.ai-home-page #ai-capabilities :is(.cap-head, .overview-number) { margin-bottom: 1rem; }
body.ai-home-page #ai-capabilities :is(.ai-capability-card, .overview-card) > h3 {
  margin: 0 0 .625rem;
  color: var(--home-ink);
  font-size: 1.125rem;
  line-height: 1.5;
}
body.ai-home-page #ai-capabilities :is(.ai-capability-card, .overview-card) > p {
  margin: 0 0 1.25rem;
  color: var(--home-muted);
  font-size: .875rem;
  line-height: 1.75;
}
body.ai-home-page #ai-capabilities .cap-footer {
  height: auto;
  min-height: 2.75rem;
  margin-top: auto;
  padding-top: .875rem;
  border-top: 1px solid #eef1f6;
  align-items: center;
}
body.ai-home-page #ai-capabilities .overview-text-link {
  margin-top: auto;
  padding-top: .875rem;
  border-top: 1px solid #eef1f6;
}
body.ai-home-page #ai-capabilities .cap-link {
  width: auto;
  min-height: 2.75rem;
  height: auto;
  padding: .375rem .625rem;
  gap: .75rem;
  border-color: transparent;
  border-radius: .5rem;
  color: var(--cap-accent);
  background: transparent;
  transition: color .2s ease;
}
body.ai-home-page #ai-capabilities .ai-capability-card:is(:hover, :focus-within) .cap-link {
  color: var(--cap-accent);
  background: transparent;
}
body.ai-home-page #ai-capabilities .cap-link:is(:hover, :focus-visible) .cap-link__label {
  text-decoration: underline;
  text-underline-offset: .25em;
}
body.ai-home-page #ai-capabilities .cap-link:is(:hover, :focus-visible) > span:last-child {
  transform: translate(2px, -2px);
}
@media (prefers-reduced-motion: reduce) {
  body.ai-home-page #ai-capabilities .cap-link > span:last-child,
  body.ai-home-page #ai-capabilities .cap-link:is(:hover, :focus-visible) > span:last-child {
    transition: none;
    transform: none;
  }
}
body.ai-home-page #ai-capabilities .cap-link__label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  font-size: .8125rem;
}
body.ai-home-page #solutions { padding-block: 5rem 6rem; }
body.ai-home-page #solutions .site-solution__face {
  border-color: var(--home-rule);
  border-radius: .875rem;
  box-shadow: none;
}

/* A dark closing panel gives the long, light page a deliberate final emphasis. */
body.ai-home-page .overview-cta {
  width: min(74rem, calc(100% - var(--site-gutter) * 2));
  margin: 2rem auto 5rem;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  border: 1px solid #28364d;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 100% 0%, #2b3d5e, transparent 65%), #172137;
}
body.ai-home-page .overview-cta h2 { color: #fff; text-wrap: balance; }
body.ai-home-page .overview-cta :is(p, .home-section-label, .home-section-index, .home-section-index__total, .home-section-index i) { color: #c1cde1; }
body.ai-home-page .overview-cta__actions {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  width: min(100%, 32rem);
  margin-top: .75rem;
  vertical-align: middle;
}
body.ai-home-page .overview-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 0;
  min-height: 3.25rem;
  box-sizing: border-box;
  padding: .75rem 1rem;
  border: 1px solid transparent;
  border-radius: .875rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
body.ai-home-page .overview-cta__button svg { flex-shrink: 0; }
body.ai-home-page .overview-cta__button--download {
  color: #292340;
  background: #fff;
  border-color: #fff;
}
body.ai-home-page .overview-cta__button--download:hover {
  background: #f0edff;
  border-color: #f0edff;
}
body.ai-home-page .overview-cta__button--trial {
  color: #fff;
  background: #6546ff;
  border-color: #856dff;
}
body.ai-home-page .overview-cta__button--trial:hover {
  background: #7357ff;
  border-color: #a090ff;
}
body.ai-home-page .overview-cta__button--pricing {
  color: #f0ecff;
  background: #ffffff0d;
  border-color: #ffffff59;
}
body.ai-home-page .overview-cta__button--pricing:hover {
  background: #ffffff1a;
  border-color: #ffffff99;
}
body.ai-home-page .overview-cta__button:focus-visible {
  outline: 2px solid #d6ceff;
  outline-offset: 4px;
}
@media (max-width: 479px) {
  body.ai-home-page .overview-cta__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ai-home-page .overview-cta__button { padding-inline: .5rem; }
  body.ai-home-page .overview-cta__button--pricing { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  body.ai-home-page .overview-cta__button { transition: none; }
}

@media (min-width: 1600px) {
  body.ai-home-page { --home-stage-width: max(78rem, 88vw); }
}

@media (max-width: 767px) {
  body.ai-home-page .ai-hero--editorial .ai-hero__heading {
    min-height: 100svh;
    padding-block: calc(var(--ai-header-height) + 2.5rem) 2.5rem;
  }
  body.ai-home-page .ai-hero--editorial .ai-hero__heading h1 {
    font-size: clamp(2.375rem, 9.5vw, 4rem);
    line-height: 1.16;
  }
  body.ai-home-page .ai-hero--editorial .ai-hero__brand-text { font-size: 1.375rem; }
  body.ai-home-page .ai-hero--editorial .ai-hero__brand-icon { width: 1.625rem; }
  body.ai-home-page .ai-hero--editorial .ai-hero__line + .ai-hero__line { margin-top: 1.5rem; }
  body.ai-home-page .ai-hero--editorial .ai-hero__intro > p { font-size: .9375rem; }
  body.ai-home-page #ai-demo { padding-inline: 1rem; }
  body.ai-home-page #ai-demo .ai-film__header { min-height: 2.5rem; padding-inline: .75rem; }
  body.ai-home-page #ai-demo .ai-film__chapters { gap: .375rem; }
  body.ai-home-page #ai-demo .ai-film__chapters button { min-height: 4rem; padding: .375rem .125rem .625rem; flex-direction: column; gap: .25rem; }
  body.ai-home-page #ai-demo .ai-film__chapters strong { font-size: .625rem; }
  body.ai-home-page .ai-logo-orbit__stage { padding-block: 3rem; }
  body.ai-home-page #ai-capabilities,
  body.ai-home-page #solutions { padding-block: 3.5rem; }
  body.ai-home-page #ai-capabilities :is(.ai-capability-card, .overview-card) {
    min-height: 14rem;
    padding: 1.5rem;
  }
  body.ai-home-page .overview-cta { margin-bottom: 3rem; }
}
