:root {
  color-scheme: light;
  --paper: #f7f7fb;
  --ink: #191835;
  --muted: #54536b;
  --blue: #3e37c6;
  --line: #dfdeed;
  --lime: #dcfa84;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #7368fa; outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.site-header { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.55rem; font-weight: 825; letter-spacing: -.07em; }
.brand svg { width: 36px; height: 36px; color: var(--blue); }
.site-header nav { display: flex; gap: 26px; color: var(--muted); font-size: .91rem; font-weight: 660; }
.site-header nav a:hover, .site-footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .24em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font-size: .91rem; font-weight: 740; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.header-login, .secondary { border-color: #d6d3ec; background: #fff; }
.header-login:hover, .secondary:hover { background: #eeedfc; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #3029a8; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); align-items: center; gap: clamp(28px, 5vw, 65px); padding-block: clamp(49px, 7.2vw, 94px); }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .13em; }
.kicker span { width: 4px; height: 4px; border-radius: 50%; background: #766bee; }
.hero h1 { margin: 0; font-size: clamp(3rem, 6.45vw, 6.35rem); font-weight: 820; line-height: .99; letter-spacing: -.075em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.intro { max-width: 40ch; margin: 22px 0 24px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-art { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #3730ab; border-radius: 22px; background: #443bcb; color: #fff; box-shadow: 0 19px 52px #352cb126; }
.map { display: block; width: 100%; height: auto; }
.map-label { position: absolute; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #a9a2ff; border-radius: 8px; background: #2a238c; color: #fff; font-size: clamp(.7rem, 1.2vw, .91rem); font-weight: 750; box-shadow: 0 5px 16px #221a712f; }
.map-label svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.label-stock { left: 8%; top: 48%; color: var(--lime); }
.label-assignment { right: 6%; top: 28%; }
.label-count { right: 10%; bottom: 18%; color: #ece5ff; }
.hero-art figcaption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid #c0bdff44; background: #332cac; font-size: .77rem; }
.hero-art figcaption span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.hero-art figcaption b { margin-left: auto; color: #ddd9ff; font-size: .62rem; letter-spacing: .14em; }

.features { border-block: 1px solid var(--line); background: #fff; }
.section-inner { padding-block: clamp(44px, 6vw, 74px); }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-inner h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.65rem); font-weight: 810; line-height: 1.04; letter-spacing: -.06em; }
.section-intro > p { max-width: 35ch; margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature { min-width: 0; padding: clamp(16px, 2vw, 24px); border: 1px solid #2b20541a; border-radius: 13px; background: var(--card); }
.feature svg { display: block; width: 33px; height: 33px; padding: 6px; border-radius: 7px; background: #ffffffb3; fill: none; stroke: var(--icon); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 14px 0 5px; font-size: 1.12rem; letter-spacing: -.025em; }
.feature p { margin: 0; color: #414057; font-size: .91rem; }
.feature-lime { --card: #eef8cc; --icon: #4a6917; }
.feature-blue { --card: #e6ebff; --icon: #4237b5; }
.feature-peach { --card: #ffece4; --icon: #a24821; }
.feature-violet { --card: #f0e8ff; --icon: #6c35ad; }
.feature-mint { --card: #e3f5ed; --icon: #25644f; }
.feature-cream { --card: #fff3d9; --icon: #895c10; }

.workflow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 70px); align-items: center; margin-block: clamp(32px, 5vw, 64px); padding: clamp(24px, 5vw, 60px); border-radius: 19px; color: #f6f4ff; background: #201d52; }
.workflow .kicker { color: var(--lime); }
.flow-button { margin-top: 22px; background: var(--lime); color: #28223c; }
.flow-button:hover { background: #ccec6d; }
.workflow ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.workflow li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 13px; padding: 13px 0; border-bottom: 1px solid #b0a7f443; }
.workflow li:last-child { border: 0; }
.step { padding: 3px 7px; border: 1px solid #9e91e56b; border-radius: 5px; color: var(--lime); font: 700 .76rem/1.5 ui-monospace, monospace; }
.workflow li h3 { margin: 0 0 3px; font-size: 1rem; }
.workflow li p { margin: 0; color: #d1cdeb; font-size: .91rem; }
.demo { scroll-margin-top: 12px; border-block: 1px solid var(--line); background: #efedfb; }
.demo-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(24px, 6vw, 88px); }
.demo-copy > p:last-child { max-width: 36ch; margin: 16px 0 0; color: var(--muted); }
.demo-form { min-width: 0; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.demo-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.demo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-fields label { display: block; min-width: 0; font-size: .88rem; font-weight: 700; }
.demo-fields span { color: var(--muted); font-size: .78rem; font-weight: 450; }
.demo-wide { grid-column: 1 / -1; }
.demo-form input, .demo-form textarea { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 9px 11px; border: 1px solid #c9c7df; border-radius: 8px; background: #fafaff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 450; }
.demo-form textarea { resize: vertical; }
.demo-form :is(input, textarea, button):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.demo-form :is(input, textarea):disabled { border-color: var(--line); background: #f3f2f8; }
.demo-form button { cursor: pointer; font-family: inherit; }
.demo-form button:disabled { cursor: default; background: #e5e3f2; color: #53516d; }
.demo-form #demo-verification { min-height: 65px; margin-bottom: 12px; }
.demo-privacy { margin: 10px 0 14px; color: var(--muted); font-size: .8rem; }
.demo-status { margin: 12px 0 0; color: var(--muted); font-size: .89rem; }
.demo-status:empty { margin: 0; }
.demo-status[data-state="error"] { color: #9f2828; }
.demo-status[data-state="success"] { color: #216249; }
.demo-visually-hidden, .demo-trap { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-footer { min-height: 72px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer b { color: var(--ink); }
.site-footer a { color: var(--blue); font-weight: 750; }

@media (max-width: 820px) {
  .hero, .demo-inner { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 550px); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 570px) {
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 65px; }
  .site-header nav { display: none; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 4.4rem); }
  .hero-art { border-radius: 14px; }
  .feature-grid, .workflow, .demo-fields { grid-template-columns: 1fr; }
  .site-footer { flex-wrap: wrap; gap: 7px; padding-block: 14px; }
}
