:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #191931;
  --muted: #53536a;
  --accent: #4a35ad;
  --line: #dcd9e6;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible + span {
  outline: 3px solid #a44d00;
  outline-offset: 4px;
}

.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; z-index: 2; padding: 8px 12px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.nav, .footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.nav { min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.8rem; font-weight: 750; letter-spacing: -.055em; text-decoration: none; line-height: 1; }
.brand img { flex: none; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
nav a { text-decoration: none; font-weight: 620; }
nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; background: var(--ink); color: white; padding: 11px 19px; font-weight: 690; line-height: 1.5; cursor: pointer; text-decoration: none; }
.button:hover { background: #343452; }
.button-small { padding: 8px 14px; white-space: nowrap; }
.button-accent { background: var(--accent); }
.button-accent:hover { background: #39268f; }
.button-outline { color: var(--ink); background: transparent; border-color: #aaa6bc; }
.button-outline:hover { background: #eeebf9; }

h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
h1 { font-size: clamp(3.65rem, 6.5vw, 5.65rem); }
h1 em { color: var(--accent); }
h2 { font-size: clamp(2.6rem, 5vw, 4.25rem); }
h3 { font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.045em; line-height: 1.12; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 100px 91px; }
.hero-copy p { color: var(--muted); max-width: 30rem; margin-top: 24px; font-size: 1.22rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.workflow {
  color: #fff;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 24px;
  background: radial-gradient(ellipse at 103% -8%, #6444ca 0, transparent 58%), #242043;
  box-shadow: 0 18px 42px #27224722;
}
.workflow-label { font-size: .9rem; font-weight: 700; color: #e4dfff; margin-bottom: 18px; }
.workflow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.workflow-steps li { display: flex; align-items: center; gap: 13px; border: 1px solid #ffffff38; border-radius: 12px; padding: 13px; background: #ffffff10; }
.workflow-steps strong, .workflow-steps small { display: block; }
.workflow-steps small { color: #e4dfff; font-size: .9rem; margin-top: 2px; }
.workflow-icon, .wave { display: flex; width: 41px; height: 41px; flex: none; justify-content: center; align-items: center; border-radius: 9px; background: #d9ceff; color: #322468; font-size: 1.25rem; font-weight: 750; }
.wave { gap: 2px; }
.wave i { width: 2px; height: 9px; border-radius: 4px; background: currentColor; }
.wave i:nth-child(even) { height: 15px; }
.wave i:nth-child(3) { height: 22px; }

.products { border-top: 1px solid var(--line); padding-block: 66px 88px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.product { display: flex; flex-direction: column; align-items: flex-start; border-radius: 18px; padding: clamp(22px, 4vw, 44px); }
.intelligence { background: #ece7fb; }
.connect { background: #e4efe9; }
.product-name { font-weight: 750; margin-bottom: 16px; }
.product p { margin-top: 15px; max-width: 32rem; }
.modes { display: grid; grid-template-columns: 1fr 1.45fr; gap: 12px; margin: 22px 0 0; width: 100%; }
.modes div, .product-note { padding-top: 12px; border-top: 1px solid #19193135; }
.modes dt { font-weight: 750; }
.modes dd { margin: 2px 0 0; }
.product .product-note { margin-top: 22px; }
.text-link { font-weight: 700; text-underline-offset: .24em; }
.text-link:hover { color: var(--accent); }
.product .text-link { margin-top: auto; padding-top: 24px; }

.examples { background: #22203c; color: white; padding-block: 82px; }
.example-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.example-grid > div:first-child > p { color: #e3def3; max-width: 28rem; margin-top: 18px; }
.options { padding: 0; border: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.options legend { padding: 0; margin-bottom: 8px; color: #e3def3; }
.options label { cursor: pointer; }
.options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.options span { display: block; padding: 7px 12px; border: 1px solid #a39abc; border-radius: 8px; }
.options input:checked + span { background: #e4d9ff; border-color: #e4d9ff; color: var(--ink); }
.example-card { background: white; color: var(--ink); border-radius: 18px; padding: clamp(20px, 4vw, 34px); }
.example-card ol { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: steps; }
.example-card li { position: relative; padding: 10px 0 12px 40px; border-bottom: 1px solid var(--line); counter-increment: steps; }
.example-card li::before { content: counter(steps); display: grid; place-items: center; width: 27px; height: 27px; position: absolute; left: 0; top: 10px; background: #ece7fb; color: var(--accent); border-radius: 50%; font-weight: 700; }
.example-card .complete li::before { content: "✓"; background: #e4efe9; color: #21543d; }
.example-card li span { display: block; color: var(--muted); }
.result { margin-top: 12px; color: #21543d; font-weight: 650; }
.result:empty { margin: 0; }

.contact { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 76px; }
.contact p { margin-top: 18px; color: var(--muted); max-width: 34rem; }
.contact-action { display: grid; justify-items: start; gap: 10px; }
.footer { border-top: 1px solid var(--line); padding-block: 22px; }

@media (max-width: 850px) {
  .hero, .example-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-block: 62px; }
  .workflow { max-width: 590px; }
  .desktop-break { display: none; }
  .nav { flex-wrap: wrap; gap: 12px; padding-block: 14px; }
  .nav nav { order: 3; justify-content: start; width: 100%; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav nav, .footer nav { gap: 8px 16px; justify-content: start; }
  .product-grid, .modes { grid-template-columns: 1fr; }
  .products, .examples, .contact { padding-block: 48px; }
  .contact, .footer { align-items: flex-start; flex-direction: column; }
  h1 { font-size: clamp(3.15rem, 13vw, 4.9rem); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-band {
  overflow: hidden;
  color: #faf8ff;
  background:
    radial-gradient(ellipse at 88% 20%, #47377a 0, transparent 51%),
    radial-gradient(ellipse at 72% 110%, #254b4d 0, transparent 46%),
    #211b39;
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 68px);
  padding-block: clamp(54px, 8vw, 108px);
}

.hero h1 {
  font-family: system-ui, sans-serif;
  font-size: clamp(3.2rem, 6.1vw, 5.7rem);
  font-weight: 720;
  letter-spacing: -.077em;
  line-height: .99;
}

.hero h1 span { display: block; color: #c6f3d8; }
.hero-copy p { color: #e4e0ed; }
.hero .button-accent { background: #c6f3d8; color: #211b39; }
.hero .button-accent:hover { background: #e0fae9; }
.hero .button-outline { border-color: #a69dbb; color: #faf8ff; }
.hero .button-outline:hover { background: #faf8ff18; }
.hero :focus-visible { outline-color: #c6f3d8; }

.hero .workflow {
  background: #1c182ee8;
  border: 1px solid #a69dbb66;
  box-shadow: 0 20px 60px #120d2c88;
  padding: clamp(18px, 3.2vw, 32px);
}

.workflow-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.workflow-head .workflow-label { margin: 0; font: 700 .94rem/1.3 system-ui, sans-serif; letter-spacing: 0; }
.workflow-modes { display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid #ffffff38; padding: 3px; min-width: 0; margin: 0; border-radius: 8px; }
.workflow-modes label { cursor: pointer; }
.workflow-modes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.workflow-modes span { display: block; padding: 4px 9px; border-radius: 5px; font-size: .88rem; font-weight: 650; }
.workflow-modes input:checked + span { background: #c6f3d8; color: #211b39; }

.hero .workflow-steps { gap: 11px; }
.hero .workflow-steps li { --delay: 0ms; }
.hero .workflow-steps li:nth-child(2) { --delay: 600ms; }
.hero .workflow-steps li:nth-child(3) { --delay: 1200ms; }
.hero .workflow-icon, .hero .wave { background: #c6f3d8; color: #211b39; }

@media (prefers-reduced-motion: no-preference) {
  .workflow-steps li {
    animation: workflow-highlight 950ms ease-out var(--delay) both;
  }

  .wave i {
    --wave-lift: 1.55;
    animation: workflow-wave 640ms ease-in-out 2 alternate;
  }

  .wave i:nth-child(even) { --wave-lift: .54; }

  @keyframes workflow-highlight {
    0%, 100% { border-color: #ffffff38; background: #ffffff10; transform: translateX(0); }
    42% { border-color: #c6f3d8; background: #c6f3d824; transform: translateX(3px); }
  }

  @keyframes workflow-wave {
    from { transform: scaleY(.75); }
    to { transform: scaleY(var(--wave-lift)); }
  }
}

@media (max-width: 850px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.2rem); }
  .hero .workflow-steps li { padding: 10px; gap: 9px; }
}

.workflow-brand .workflow-label { color: #faf8ff; font-size: 1rem; }
.workflow-brand p { margin-top: 3px; color: #e4dfff; font-size: .88rem; }
.workflow a { text-underline-offset: .22em; }
.workflow a:hover { color: #c6f3d8; }
.workflow-fields { display: flex; flex-wrap: wrap; gap: 5px 9px; margin: 6px 0 0; }
.workflow-fields div { display: inline-flex; flex-wrap: wrap; gap: 0 5px; border-radius: 5px; padding: 2px 7px; background: #c6f3d818; font-size: .88rem; }
.workflow-fields dt { font-weight: 700; color: #c6f3d8; }
.workflow-fields dd { margin: 0; }

.workflow [hidden] { display: none; }

.why { padding-block: clamp(52px, 8vw, 92px); }
.why-intro { max-width: 50rem; }
.why-label { color: var(--accent); font-weight: 750; margin-bottom: 12px; }
.why-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 0; margin: 36px 0 0; list-style: none; }
.why-benefits li { border-top: 2px solid #aa9cda; padding-top: 15px; }
.why-benefits h3 { font-size: 1.25rem; letter-spacing: -.025em; line-height: 1.25; }
.why-benefits p { margin-top: 8px; color: var(--muted); }
.contact:has(.demo-form) { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; border-top: 1px solid var(--line); }
.demo-form { display: grid; gap: 14px; padding: clamp(17px, 3vw, 30px); border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.demo-form[hidden] { display: none; }
.demo-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.demo-form label { display: block; min-width: 0; font-weight: 650; }
.demo-form .optional { font-weight: 400; color: var(--muted); }
.demo-form input, .demo-form textarea { display: block; width: 100%; margin-top: 5px; padding: 8px 10px; border: 1px solid #aca8bf; background: #fbfafc; border-radius: 6px; color: var(--ink); font: inherit; font-weight: 400; }
.demo-form textarea { resize: vertical; }
.demo-form input:focus-visible, .demo-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-form-actions p { margin-top: 9px; font-size: .88rem; }

@media (max-width: 700px) {
  .why-benefits, .contact:has(.demo-form) { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .demo-form-fields { grid-template-columns: 1fr; }
}

.connect-hero { color: #faf8ff; background: radial-gradient(ellipse at 88% 10%, #493a76, transparent 61%), #211b39; }
.connect-hero-grid, .connect-delivery-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.connect-hero-grid { padding-block: clamp(52px, 8vw, 94px); }
.connect-product { color: #c6f3d8; font-weight: 750; margin-bottom: 12px; }
.connect-hero h1 { font: 730 clamp(3rem, 6vw, 5.3rem)/1 system-ui, sans-serif; letter-spacing: -.075em; }
.connect-lead { color: #e4e0ed; margin-top: 21px; font-size: 1.13rem; max-width: 33rem; }
.connect-hero .button-accent { background: #c6f3d8; color: #211b39; }
.connect-hero .button-accent:hover { background: #e0fae9; }
.connect-hero .button-outline { border-color: #a69dbb; color: #faf8ff; }
.connect-hero .button-outline:hover { background: #faf8ff18; }
.connect-hero :focus-visible { outline-color: #c6f3d8; }
.order-preview { margin: 0; padding: clamp(18px, 3vw, 30px); border-radius: 18px; border: 1px solid #a69dbb66; background: #1c182ee8; }
.order-preview figcaption { color: #e4e0ed; font-weight: 690; margin-bottom: 14px; }
.order-preview ol { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.order-preview li { border-left: 3px solid #c6f3d8; padding: 9px 13px; background: #faf8ff10; border-radius: 0 7px 7px 0; }
.order-preview span, .order-preview strong { display: block; }
.order-preview span { color: #c6f3d8; font-size: .9rem; }
.connect-recovery, .connect-delivery-grid { padding-block: clamp(52px, 8vw, 88px); }
.connect-section-intro { max-width: 44rem; }
.connect-section-intro p, .connect-delivery p { color: var(--muted); margin-top: 14px; }
.recovery-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 29px 0 0; list-style: none; }
.recovery-steps li { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.recovery-steps h3 { font-size: 1.25rem; }
.recovery-steps p { margin-top: 8px; color: var(--muted); }
.connect-delivery { background: #eee9f9; }
.connect-delivery-grid > div:last-child { justify-self: end; }
nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 740px) {
  .connect-hero-grid, .connect-delivery-grid, .recovery-steps { grid-template-columns: 1fr; }
  .connect-delivery-grid > div:last-child { justify-self: start; }
}

.connect-use-cases { padding-block: clamp(52px, 8vw, 88px); }
.integration-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 28px 0 0; padding: 0; }
.integration-cards li { padding: clamp(17px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.integration-cards h3 { font-size: clamp(1.16rem, 2vw, 1.43rem); letter-spacing: -.03em; }
.integration-cards h3 span[aria-hidden] { color: var(--accent); }
.integration-cards p { color: var(--muted); margin-top: 9px; }
.integration-cards a { color: var(--accent); text-underline-offset: .18em; }
.connect-use-cases + .connect-recovery { border-top: 1px solid var(--line); }

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

@media (max-width: 550px) {
  .integration-cards { grid-template-columns: 1fr; }
}

.integration-cards .integration-example {
  border-top: 1px solid var(--line);
  margin-top: 13px;
  padding-top: 9px;
}
.integration-example strong { color: var(--ink); margin-right: 4px; }

.connect-support { grid-column: 1 / -1; margin-top: 0; }

.connect-player { min-width: 0; padding: clamp(17px, 3vw, 28px); border: 1px solid #a69dbb80; border-radius: 18px; background: #1c182e; box-shadow: 0 16px 36px #120d2c60; }
.connect-player-header, .connect-player-controls, .connect-player-navigation { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.connect-player-header { padding-bottom: 14px; border-bottom: 1px solid #ffffff38; }
.connect-player-header h2 { font: 700 1rem/1.4 system-ui, sans-serif; letter-spacing: 0; }
.connect-player-header span, .connect-player-navigation span { color: #e4e0ed; font-size: .88rem; white-space: nowrap; }
.connect-player-scenes { min-height: 13.5rem; padding-block: 20px; display: grid; align-items: center; }
.connect-scene h3 { color: #fff; font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.15; }
.connect-scene p { margin-top: 9px; color: #e4e0ed; }
.connect-scene-flow { display: flex; align-items: stretch; gap: 6px; list-style: none; padding: 0; margin: 15px 0 0; }
.connect-scene-flow li { flex: 1; display: grid; place-items: center; text-align: center; padding: 5px 6px; border: 1px solid #c6f3d86b; background: #c6f3d816; color: #e5f9ee; border-radius: 7px; font-size: .85rem; }
.connect-player-controls { padding-top: 14px; border-top: 1px solid #ffffff38; }
.connect-player [hidden] { display: none; }
.connect-player-controls .button { padding: 7px 10px; background: #c6f3d8; color: #211b39; }
.connect-player-controls .button:hover { background: #e0fae9; }
.player-step { width: 32px; height: 32px; border: 1px solid #a69dbb; border-radius: 6px; background: transparent; color: white; cursor: pointer; }
.player-step:disabled { opacity: .42; cursor: default; }
.player-step:not(:disabled):hover { background: #ffffff20; }
@media (prefers-reduced-motion: no-preference) {
  .connect-scene { animation: connect-scene-enter 240ms ease-out both; }
  @keyframes connect-scene-enter { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}
