* { box-sizing: border-box; }
:root {
  --plum: #571246;
  --purple: #8400f2;
  --panel: #efeef3;
  --tint: #f6f6ff;
  --muted: #565460;
  --edge: #d8d5df;
}
html { scroll-behavior: smooth; }
body { margin: 0; color: #101012; background: white; font: 400 16px/1.55 'Inter', Arial, sans-serif; }
h1, h2, h3, h4 { font-family: 'Alata', Arial, sans-serif; font-weight: 400; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: clamp(23px, 2.6vw, 34px); }
p { margin: .65em 0 1em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7f26cd; outline-offset: 4px; }
img { max-width: 100%; }
.wrap { width: min(1150px, calc(100% - 40px)); margin-inline: auto; }
section[id], [id="request"] { scroll-margin-top: 24px; }
.btn { display: inline-flex; justify-content: center; align-items: center; text-align: center; min-height: 44px; padding: 10px 22px; border-radius: 11px; border: 1px solid var(--plum); background: var(--plum); color: white; font: 400 16px/1.35 'Alata', sans-serif; text-decoration: none; }
.btn:hover { background: #73195e; }
.btn.outline { color: var(--plum); background: white; }
.eyebrow { color: var(--plum); font-weight: 650; font-size: 14px; margin-bottom: 10px; }
.section-head { text-align: center; max-width: 830px; margin: 0 auto 36px; }
.section-head p { margin: .8em auto 0; color: var(--muted); max-width: 680px; }
.visual-lab, .platform, .systems, .services, .internal { padding: clamp(46px, 6vw, 80px) 0; }
.showcase-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.showcase-tab, .ai-tools button, .mode-tabs button, .chat-send {
  font: 500 15px/1.35 'Inter', sans-serif; padding: 9px 15px; background: white; color: var(--plum); border: 1px solid #c7bfca; border-radius: 10px;
}
.showcase-tab[aria-pressed="true"], .mode-tabs button.active { background: var(--plum); border-color: var(--plum); color: white; }
.showcase-tab:hover, .ai-tools button:hover, .chat-send:hover { border-color: var(--plum); }
.showcase-stage, .showcase-video, .platform-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(24px,4vw,60px); background: var(--panel); padding: clamp(24px,4.2vw,58px); border-radius: 25px; }
.showcase-stage h3 { max-width: 15em; }
.showcase-stage p, .showcase-video p, .platform-copy p { color: #413f49; }
.showcase-badge { display: block; margin-bottom: 12px; font-size: 14px; color: var(--plum); }
.showcase-image-link img, .showcase-video video { display: block; width: 100%; border-radius: 15px; }
.showcase-image-link img { height: clamp(245px,29vw,360px); object-fit: contain; background: white; }
.showcase-image-link { display: block; text-decoration: none; }
.image-watermark { display: block; margin-top: 6px; text-align: right; font-size: 12px; color: var(--muted); }
.showcase-video { margin-top: 24px; }
.showcase-video video { background: #121214; aspect-ratio: 16/9; }
.text-link, .service-link, .order-intro a { color: var(--plum); font-weight: 650; text-underline-offset: .2em; }
.platform { background: white; padding-top: 8px; }
.platform-grid { grid-template-columns: 1fr 1.04fr; }
.platform-copy .btn { margin-top: 18px; }
.feature { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.feature .check { color: var(--purple); }
.feature small, .ai-id small { display: block; color: var(--muted); }
.feature small { font-size: 15px; }
.ai-preview { background: white; border: 1px solid var(--edge); padding: clamp(14px,2vw,24px); border-radius: 19px; }
.ai-head, .ai-id, .mode-tabs, .chat-bottom, .ai-tools, .request-actions { display: flex; align-items: center; gap: 8px; }
.ai-head, .chat-bottom { justify-content: space-between; flex-wrap: wrap; }
.ai-avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--plum); color: white; display: grid; place-items: center; font-family: 'Alata', sans-serif; }
.ai-id b { display: block; }
.ai-id small { font-size: 13px; }
.mode-tabs button { padding: 7px 10px; font-size: 13px; }
.chat-window { display: grid; align-content: start; gap: 10px; max-height: 340px; overflow: auto; padding: 15px 4px 15px 0; margin: 12px 0; border-block: 1px solid var(--edge); }
.chat-note { font-size: 12px; color: var(--muted); }
.bubble { max-width: 90%; border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.bubble.visitor { justify-self: end; background: var(--panel); }
.bubble.ai { background: #d5f0ed; }
.bubble.handoff { color: var(--plum); font-weight: 600; font-size: 13px; padding-left: 0; }
.chat-entry { font-size: 13px; color: var(--muted); }
.ai-tools, .request-actions { flex-wrap: wrap; margin-top: 10px; }
.ai-tools button, .chat-send { font-size: 13px; padding: 7px 11px; }
.systems { background: #fff; padding-top: 14px; }
.system-map { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: clamp(25px,5vw,70px); background: #151417; color: white; border-radius: 25px; padding: clamp(25px,4vw,58px); }
.system-map h2 { font-size: clamp(28px,3.4vw,45px); }
.system-map p { color: #e0dde2; }
.system-map img { display: block; width: 100%; border-radius: 15px; }
.system-map ul { columns: 2; padding-left: 1.2rem; margin: 0; }
.system-map li { margin-bottom: 7px; }
.system-map small { color: #cbc7ce; display: block; margin-top: 16px; }
.services { background: var(--tint) url("/brand/soft-background.webp") center top / 100% auto no-repeat; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.service-card { display: flex; flex-direction: column; padding: clamp(22px,2.3vw,34px); border-radius: 24px; background: white; border: 1px solid #e1dee8; }
.service-card p { flex: 1; color: var(--muted); }
.service-card h3 { font-size: 24px; }
.order-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px,5.5vw,74px); padding-top: clamp(48px,6vw,80px); }
.order-panel h3 { font-size: clamp(30px,3.8vw,44px); }
.order-intro { align-self: start; }
.order-intro a { overflow-wrap: anywhere; }
.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: white; padding: clamp(18px,3vw,36px); border-radius: 22px; border: 1px solid var(--edge); }
.order-form label { display: block; color: #302d34; font-size: 14px; font-weight: 600; min-width: 0; }
.order-form input, .order-form select, .order-form textarea { display: block; width: 100%; min-height: 44px; border: 1px solid #aaa5b0; border-radius: 7px; background: #fff; color: #17151a; font-size: 16px; padding: 10px; margin-top: 5px; }
.order-form textarea { min-height: 100px; resize: vertical; }
.wide,.form-foot,.form-success { grid-column: 1/-1; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-disclaimer,.contact-note { font-size: 14px; color: var(--muted); }
.form-success { background: var(--panel); border-radius: 12px; padding: 18px; }
.form-success label { margin-top: 10px; }
.internal-panel { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.internal-panel h2 { font-size: clamp(23px,3vw,32px); }
.internal-panel .btn { flex-shrink: 0; }
footer { border-top: 1px solid var(--edge); padding: 35px 0 22px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand img { width: 130px; height: auto; }
.foot-brand p, .foot-col a { font-size: 14px; color: #49444c; }
.foot-col a { display: block; margin-top: 6px; text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { text-decoration: underline; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--edge); padding-top: 18px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #151417; color: #fff; border-radius: 10px; padding: 10px 16px; pointer-events: none; opacity: 0; z-index: 100; }
.toast.show { opacity: 1; }
[hidden] { display: none !important; }
@media(max-width: 820px) {
  .showcase-stage,.showcase-video,.platform-grid,.order-panel { grid-template-columns: 1fr; }
  .service-grid,.foot-grid { grid-template-columns: 1fr 1fr; }
  .showcase-image-link img { height: auto; max-height: 350px; }
}
@media(max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .service-grid,.order-form,.system-map { grid-template-columns: 1fr; }
  .system-map ul { columns: 1; }
  .system-map img { max-width: 300px; }
  .internal-panel { flex-direction: column; align-items: start; }
  .showcase-nav { justify-content: flex-start; }
  .showcase-tab { padding: 9px 13px; font-size: 14px; }
  .foot-brand { grid-column: 1/-1; }
  .order-panel, .form-foot { gap: 16px; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.ai-capabilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.ai-cap { padding-top: 12px; border-top: 2px solid #d1c4d1; }
.ai-cap p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
@media (max-width: 820px) { .ai-capabilities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .ai-capabilities { grid-template-columns: 1fr; } }
