:root {
  --night: #090b1a;
  --panel: #14182e;
  --edge: #a8a3e333;
  --white: #f4f3ff;
  --soft: #b0b5cf;
  --accent: #bfadff;
}
body { background: var(--night); }
main, header.top { color: var(--white); --sec: var(--soft); --mu: var(--soft); --line: var(--edge); }
button:focus-visible, a:focus-visible { outline: 2px solid #a28aff; outline-offset: 4px; }
header.top {
  background: #090b1aee;
  border-color: transparent;
  backdrop-filter: none;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
header.top.is-scrolled { background: #0e1028cf; border-color: var(--edge); backdrop-filter: blur(18px); }
header .logo { color: var(--white); }
header .menu { background: #ffffff0b; border: 1px solid var(--edge); border-radius: 99px; padding: 4px 12px; gap: 0; }
header .menu a { color: #e4e0fc; padding: 7px 10px; white-space: nowrap; }
header .menu a:hover { color: #fff; background: #8e68ff35; border-radius: 99px; }
header .menu-toggle { color: var(--white); }
main .btn, header .btn { border-radius: 99px; }
main .btn.pri, header .btn.pri { background: linear-gradient(105deg,#6532db,#5144dc); color: #fff; }
main .ghost, header .ghost { border-color: var(--edge); background: #ffffff08; color: var(--white); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(65px, 9vw, 128px) 0 clamp(32px, 6vw, 76px);
  background: radial-gradient(ellipse at 54% 75%,#202159 0%,transparent 65%), var(--night);
}
.hero-light {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(1120px,105vw);
  height: min(580px,55vw);
  right: -22%;
  top: -22%;
  border-radius: 50%;
  transform: rotate(-24deg);
  background: radial-gradient(ellipse at 50% 12%,#15194600 55%,#282d9d90 66%,#7354ff 72%,#ce8cff 74%,#4851e77a 76%,transparent 82%);
  filter: drop-shadow(0 0 40px #8c42ff66);
  animation: light-drift 12s ease-in-out infinite alternate;
}
@keyframes light-drift {
  from { transform: rotate(-24deg) translateX(0); }
  to { transform: rotate(-19deg) translateX(-6%); }
}
.hero-copy { position: relative; text-align: center; }
.hero h1 { color: var(--white); font-size: clamp(34px,5.1vw,72px); letter-spacing: -.045em; line-height: 1.17; }
.hero h1 em { display: inline-block; padding-top: .08em; background: linear-gradient(105deg,#ece6ff,#c3a9ff); background-clip: text; color: transparent; }
.hero .lead { color: #c8cae2; max-width: 36em; margin: 20px auto 0; font-size: clamp(15px,1.45vw,20px); }
.hero .cta { justify-content: center; margin: 27px 0 0; }
.hero .cta .btn { padding: 13px 30px; border: 1px solid #bda6ff76; box-shadow: 0 9px 32px #7a42ff55; }
.showcase { position: relative; max-width: 1020px; margin: clamp(42px,6vw,76px) auto 0; padding: 0 10% 8px 0; perspective: 1200px; }
.preview { border-radius: 18px; overflow: hidden; box-shadow: 0 22px 55px #080718a0; }
.preview-workbench { width: 87%; background: #f7f5ff; color: #201b39; border: 1px solid #c6baf7; }
.preview-bar { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-bottom: 1px solid #8d75cf40; font-weight: 700; }
.preview-bar img { width: 24px; border-radius: 6px; }
.preview-bar span { margin-left: auto; font-size: 12px; color: #6640bc; }
.preview-grid { display: grid; grid-template-columns: 145px minmax(0,1fr); }
.preview-side { display: grid; align-content: start; gap: 8px; padding: 14px 10px; background: #ebe5fb; font-size: 13px; }
.preview-side > * { padding: 6px 9px; }
.preview-side b { border-radius: 7px; background: #dcd0fa; color: #542cba; }
.preview-main { padding: 16px 20px; }
.preview-main h2 { font-size: 18px; margin-bottom: 10px; }
.preview-chart { padding: 10px 12px 0; background: #fff; border: 1px solid #e7dcfa; border-radius: 9px; font-size: 12px; color: #594e73; }
.preview-chart svg { display: block; width: 100%; height: clamp(64px,9vw,119px); margin-top: 6px; }
.preview-item { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; font-size: 12px; border-bottom: 1px solid #e7dcfa; }
.preview-chat { position: absolute; width: 40%; right: 0; bottom: 9%; background: #161732; color: var(--white); border: 1px solid #9a82f5; }
.preview-chat .preview-bar span { color: #d6c6ff; }
.preview-chat-body, .feature-scene { display: grid; gap: 12px; padding: 18px; }
.bubble { margin: 0; width: fit-content; max-width: 92%; padding: 9px 12px; background: #262a4b; border-radius: 12px 12px 12px 3px; line-height: 1.65; font-size: 14px; }
.bubble.answer { justify-self: end; background: #493480; border-radius: 12px 12px 3px 12px; }
.preview-source { color: var(--soft); font-size: 12px; margin: 0; }
main section { background: var(--night); padding-block: clamp(56px,8vw,110px); border-top: 1px solid #a8a3e31c; scroll-margin-top: 70px; }
main section.dualsec { background: radial-gradient(ellipse at 50% 55%, #1c2146, var(--night) 73%); }
main section.sync, main section.price, main section.agentsec { background: #0d1022; }
main .sh h2 { font-size: clamp(27px,4vw,48px); letter-spacing: -.035em; }
main .sh small, main .pmid b, main .ptag, main .agfit li::before { color: var(--accent); }
main .stats { background: #0d1022; border-block: 1px solid var(--edge); }
main .sg b { color: var(--white); }
main .sg p { color: var(--soft); }
main :is(.aic,.aihero,.pcard,.dcard,.mc,.st,.pc,.agc,.agfit,.agsteps,.s9,.f) {
  background: var(--panel);
  border: 1px solid var(--edge);
  color: var(--white);
  box-shadow: none;
}
main .pc.hot { background: #1c1e3b; border-color: #9a80ff; }
main .sy { background: #10142a; }
main :is(.aii,.ptag,.aisrc span,.aiarrow span,.agsteps li) { background: #222641; border-color: var(--edge); }
main :is(.pp,.pc.hot .pp,.st b,.dmid b,.dmid span,.aiarrow span,.s9 span) { color: var(--accent); }
main :is(.dmid span,.st b) { background: #242144; }
main .aghead { background: linear-gradient(125deg,#28214f,#312771,#283974); }
footer { background: #080a17; }
.feature-demo { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(18px,5vw,64px); align-items: center; margin-bottom: 24px; padding: clamp(20px,4vw,48px); background: radial-gradient(at 80% 20%,#26234b,#12152b 70%); border: 1px solid var(--edge); border-radius: 22px; }
.feature-copy h3 { font-size: clamp(21px,2.5vw,30px); line-height: 1.2; }
.feature-copy p { color: var(--soft); margin: 12px 0 20px; }
.feature-copy button { border: 1px solid var(--edge); border-radius: 99px; background: #16182d; color: var(--white); padding: 8px 13px; margin: 0 4px 4px 0; }
.feature-copy button[aria-pressed="true"] { background: #6040bb; }
.feature-scenes { display: grid; }
.feature-scene { grid-area: 1 / 1; align-content: start; background: #141631; border: 1px solid var(--edge); border-radius: 14px; min-height: 214px; }
.feature-scene[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.feature-scene:not([hidden]) .bubble { animation: pop-in .4s both; }
.feature-scene:not([hidden]) .answer { animation-delay: .16s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy { animation: pop-in .55s ease-out both; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .preview-workbench { transform: translateX(calc(14px - 14px * var(--spread, 0))) rotateY(calc(3deg - 3deg * var(--spread, 0))); }
  .preview-chat { transform: translate(calc(-36px + 36px * var(--spread, 0)),calc(16px - 16px * var(--spread, 0))) rotateY(calc(-7deg + 7deg * var(--spread, 0))); }
}
@media (min-width: 761px) and (max-width: 1080px) {
  header .nb-agent { display: none; }
  header .menu a { padding-inline: 6px; font-size: 12px; }
}
@media (max-width: 760px) {
  header .menu { background: #16182e; border-radius: 0 0 16px 16px; }
  .hero { padding-top: 54px; }
  .hero-light { width: 145vw; height: 78vw; right: -49%; top: -8%; }
  .showcase { padding: 0; display: grid; gap: 12px; }
  .preview-workbench, .preview-chat { position: static; width: 100%; }
  .preview-grid { grid-template-columns: 84px minmax(0,1fr); }
  .preview-side { padding: 10px 5px; font-size: 11px; }
  .preview-side > * { padding-inline: 4px; }
  .preview-main { padding: 10px; }
  .feature-demo { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-light, .hero-copy, .feature-scene:not([hidden]) .bubble { animation: none; }
  header.top { transition: none; }
}

/* Motion follows the content: data travels, devices sync, and steps connect. */
#devices .dcard { background: linear-gradient(150deg, #1c2140, #121529 70%); }
#devices .dcard .dicon { background: #9a7fff21; color: #ccc0ff; border: 1px solid #9a7fff49; }
#devices .win .dicon { background: #507ce62b; color: #a7c4ff; }
#devices .mac .dicon { background: #ffffff14; color: #f3f2ff; }
.dg3, .steps { position: relative; }
.dg3::before, .steps::before {
  content: "";
  position: absolute;
  pointer-events: none;
  height: 2px;
  inset: -10px 0 auto;
  background: linear-gradient(90deg,#7e6cf7,#bcaaff,#6b9aff);
  transform: scaleX(var(--track-progress,1));
  transform-origin: left;
}
.pmid span, .dicon, .st b { position: relative; }
.pmid span::after, .dicon::after, .st b::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #bcaaff;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
.aghead::after, footer::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(105deg,transparent 28%,#bdabff22 50%,transparent 72%);
  transform: translateX(-100%);
}
footer { position: relative; overflow: clip; }
footer::before { bottom: auto; height: 2px; background: linear-gradient(90deg,transparent,#a895ff,transparent); }
main :is(.aic,.dcard,.mc,.pc,.agc) { transition: border-color .25s, background-color .25s; }
@media (hover: hover) {
  main :is(.aic,.dcard,.mc,.pc,.agc):hover { border-color: #a58aff; background-color: #24274a; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-entered {
    animation: section-enter .65s cubic-bezier(.2,.7,.24,1) var(--enter-delay,0ms) both;
  }
  .motion-entered:focus-within { animation: none; }
  .hero-light { animation-play-state: paused; }
  .hero.motion-visible .hero-light { animation-play-state: running; }
  .stats.motion-visible .sg b { display: inline-block; animation: label-glow 4.8s ease-in-out infinite; }
  .stats.motion-visible .sg > :nth-child(2) b { animation-delay: .35s; }
  .stats.motion-visible .sg > :nth-child(3) b { animation-delay: .7s; }
  .stats.motion-visible .sg > :nth-child(4) b { animation-delay: 1.05s; }
  .aiflow.motion-visible .aiout span { animation: label-glow 4.8s ease-in-out infinite; }
  .aiflow.motion-visible .aiout span:nth-child(even) { animation-delay: .45s; }
  .pp2.motion-visible .pmid span::after,
  .dg3.motion-visible .dicon::after,
  .steps.motion-visible .st b::after { animation: sync-pulse 4.2s ease-out infinite; }
  .dg3.motion-visible .dcard:nth-child(2) .dicon::after,
  .steps.motion-visible .st:nth-child(2) b::after { animation-delay: .55s; }
  .dg3.motion-visible .dcard:nth-child(3) .dicon::after,
  .steps.motion-visible .st:nth-child(3) b::after { animation-delay: 1.1s; }
  .steps.motion-visible .st:nth-child(4) b::after { animation-delay: 1.65s; }
  .mg.motion-visible .mc i { animation: module-lift 6s ease-in-out infinite; }
  .mg.motion-visible .mc:nth-child(4n+2) i { animation-delay: .35s; }
  .mg.motion-visible .mc:nth-child(4n+3) i { animation-delay: .7s; }
  .mg.motion-visible .mc:nth-child(4n+4) i { animation-delay: 1.05s; }
  .pc.hot.motion-visible .hotb { animation: label-glow 4.8s ease-in-out infinite; }
  .aghead.motion-visible::after, footer.motion-visible::before { animation: highlight-pass 6s ease-in-out infinite; }
}
@keyframes section-enter {
  from { opacity: .35; translate: 0 25px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes sync-pulse {
  0% { opacity: .85; transform: scale(1); }
  34%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes label-glow {
  0%, 36%, 100% { filter: brightness(1); }
  17% { filter: brightness(1.36); }
}
@keyframes module-lift {
  0%, 25%, 100% { translate: 0 0; }
  12% { translate: 0 -4px; }
}
@keyframes highlight-pass {
  0%, 12% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .pp2 .pcard:first-child.motion-entered { animation-name: enter-from-left; }
  .pp2 .pcard:last-child.motion-entered { animation-name: enter-from-right; }
}
@keyframes enter-from-left {
  from { opacity: .35; translate: -26px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes enter-from-right {
  from { opacity: .35; translate: 26px 0; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dg3::before, .steps::before { transform: none; }
}
