:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #fff;
  --ink: #16162c;
  --muted: #53566e;
  --line: #dedfec;
  --accent: #533be3;
  --accent-dark: #3925bd;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #765dff; outline-offset: 4px; }
section[id] { scroll-margin-top: 24px; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; padding: 12px; background: white; z-index: 2; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { background: rgba(255,255,255,.76); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 850; font-size: 23px; letter-spacing: -.065em; }
.brand span { color: var(--accent); margin-left: -9px; }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 43px); font-size: 14px; font-weight: 650; }
nav > a:not(.button):hover, .footer > a:last-child:hover { color: var(--accent); }
.menu { display: none; padding: 9px 13px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 51px; border: 1px solid transparent; padding: 0 19px; border-radius: 9px; color: white; background: var(--accent); font-size: 14px; font-weight: 700; transition: background .15s ease, border-color .15s ease; }
.button:hover { background: var(--accent-dark); }
.button span { font-size: 17px; }
.button-small { min-height: 41px; padding-inline: 14px; }
.secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.secondary:hover { background: #eeebff; border-color: #c5baff; }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 4.5vw, 73px); align-items: center; padding-block: clamp(60px, 7vw, 112px) clamp(57px, 6.4vw, 100px); }
.eyebrow { color: var(--accent-dark); font: 700 11px/1.5 var(--mono); letter-spacing: .12em; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; background: #eeebff; border: 1px solid #e1d9ff; border-radius: 100px; }
.badge span, .figure-head i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6e4ef7; box-shadow: 0 0 0 3px #ded5ff; }
h1 { margin: 19px 0 21px; font-size: clamp(51px, 6.1vw, 102px); font-weight: 830; line-height: .99; letter-spacing: -.082em; }
h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p { max-width: 475px; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.65; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual { min-width: 0; overflow: hidden; border-radius: 19px; border: 1px solid #dcd3fa; background: radial-gradient(ellipse at 56% 45%, #ece5ff, #f7f4ff 78%); box-shadow: 0 20px 65px #3b237b13; }
.hero-visual img { width: 100%; height: auto; display: block; }
.figure-head, figcaption { min-height: 43px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 clamp(8px, .85vw, 11px)/1.4 var(--mono); letter-spacing: .06em; color: #544790; background: #faf8ffb0; }
.figure-head { border-bottom: 1px solid #e2daf8; }
.figure-head span:first-child { display: flex; align-items: center; gap: 10px; }
figcaption { border-top: 1px solid #e2daf8; }
.tech-band { border-block: 1px solid var(--line); background: #f0f1f9; }
.tech-inner { display: flex; align-items: center; gap: clamp(15px, 4vw, 70px); padding-block: 24px; }
.tech-inner p { flex-shrink: 0; color: var(--muted); font: 750 10px/1.5 var(--mono); letter-spacing: .12em; }
.tech-inner ul { flex: 1; padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; }
.tech-inner li { font-size: clamp(13px, 1.5vw, 19px); font-weight: 750; color: #3f405b; white-space: nowrap; }
.tech-inner b { color: var(--accent); margin-right: 4px; }
.section { padding-block: clamp(60px, 7vw, 104px); }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 34px; }
.section-intro p { max-width: 330px; line-height: 1.65; color: var(--muted); }
.section-tag { margin-bottom: 14px; }
h2 { font-size: clamp(38px, 4.5vw, 69px); line-height: 1.01; letter-spacing: -.071em; font-weight: 810; }
h3 { font-size: 22px; line-height: 1.17; letter-spacing: -.045em; }
.capabilities, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 23px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #5d5b79; font: 700 10px/1.4 var(--mono); text-align: right; letter-spacing: .05em; margin-bottom: 23px; }
.icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; font-size: 22px; border-radius: 10px; color: var(--accent); background: #eeebff; }
.card p, .steps p { color: var(--muted); line-height: 1.62; font-size: 14px; margin: 10px 0 19px; }
.tags { padding: 0; margin: auto 0 0; list-style: none; display: flex; gap: 5px; flex-wrap: wrap; }
.tags li { color: #534c79; border: 1px solid #e6e3f1; background: #f8f7fd; padding: 4px 7px; border-radius: 5px; font: 650 10px/1.4 var(--mono); }
.architecture { background: #191732; color: #fbfaff; }
.architecture .section-tag { color: #baadff; }
.architecture .section-intro p, .flow p { color: #d0cce9; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; align-items: start; }
.flow details { padding: 17px; background: #232040; border: 1px solid #49436b; border-radius: 10px; }
.flow details[open] { border-color: #9380ff; }
.flow summary { font-weight: 700; font-size: 15px; line-height: 1.5; }
.flow summary span, .steps li > span { color: #c4b9ff; font: 750 11px var(--mono); margin-right: 5px; }
.flow p { font-size: 14px; line-height: 1.55; padding-top: 12px; }
.steps { padding: 0; margin: 0; list-style: none; }
.steps li { border-top: 2px solid #d9d3f6; padding: 16px 14px 0 0; }
.steps li > span { display: block; color: var(--accent-dark); margin-bottom: 12px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(22px, 5vw, 70px); padding: clamp(26px, 5vw, 60px); background: #ede9ff; border: 1px solid #dfd6fb; border-radius: 19px; }
.contact p { line-height: 1.6; color: var(--muted); margin-top: 13px; }
.brief { background: #fff; border-radius: 12px; padding: 17px; }
.brief > .button { margin-bottom: 16px; }
.brief summary { font-weight: 750; padding: 6px; }
.brief form { display: grid; gap: 8px; padding: 10px 6px 0; }
.brief label { font-size: 14px; font-weight: 650; }
.brief select, .brief textarea { width: 100%; border: 1px solid #bdbbd1; border-radius: 7px; background: #f9f8ff; color: var(--ink); padding: 9px; margin-bottom: 5px; }
.brief textarea { resize: vertical; }
.brief .form-note, #brief-status { font-size: 12px; margin: 0; }
#brief-status:empty { display: none; }
.footer { min-height: 105px; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.footer .brand { color: var(--ink); font-size: 19px; }
@media (max-width: 1050px) { .wrap { width: calc(100% - 72px); } }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 44px); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .hero-visual { width: min(100%, 640px); }
  .capabilities, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(41px, 12vw, 67px); }
  .top-inner { flex-wrap: wrap; min-height: 65px; padding-block: 12px; gap: 12px; }
  .js .menu { display: block; }
  nav { width: 100%; flex-wrap: wrap; gap: 13px; padding-bottom: 6px; }
  .js nav[data-collapsed="true"] { display: none; }
  .tech-inner, .section-intro { align-items: start; flex-direction: column; }
  .tech-inner ul { justify-content: start; }
  .capabilities, .steps, .contact, .flow { grid-template-columns: 1fr; }
  .footer { flex-wrap: wrap; padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
