/* Aivorq public site. Static, self-hosted, no third-party requests. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-display-600.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  --paper: #F6F5F2;
  --surface: #FFFFFF;
  --sunk: #EFEEEA;
  --ink: #111827;
  --ink-2: #374151;
  --slate: #5B6472;
  --line: #E3E1DB;
  --line-strong: #CFCCC4;
  --accent: #1F8A70;
  --accent-ink: #176B57;
  --accent-soft: #E3F1EC;
  --night: #0F1623;
  --night-2: #182131;
  --night-line: #2A3445;
  --night-text: #C9CED6;
  --night-mute: #9AA7B8;
  --accent-night: #34B08E;
  --soon: #8A6516;
  --soon-soft: #FBF4E4;
  --soon-line: #D9C08A;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: 24px;
  --max: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1F2937; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }
.btn[aria-disabled="true"] { background: var(--night-2); color: var(--night-mute); border-color: var(--night-line); cursor: not-allowed; }

/* ------------------------------------------------------------ badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge-live { background: var(--accent-soft); color: var(--accent-ink); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.badge-soon { background: var(--soon-soft); color: var(--soon); border: 1px dashed var(--soon-line); }
.badge-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.badge-demo { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 245, 242, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .site-header:focus-within { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-word { font: 600 17px/1 var(--display); letter-spacing: .14em; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { font: 500 13px/1 var(--mono); color: var(--slate); text-decoration: none; padding: 8px 6px; letter-spacing: .06em; }
.lang:hover { color: var(--ink); }
.menu { display: none; }

/* ------------------------------------------------------------ hero */
.hero { padding: 88px 0 104px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -0.035em; }
.hero-lead { margin-top: 26px; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; color: var(--slate); }
.note-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }

/* order card mock (hero) */
.order-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.oc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.oc-id { font: 500 13px/1 var(--mono); letter-spacing: .04em; color: var(--slate); }
.oc-title { margin-top: 16px; font: 600 18px/1.35 var(--font); }
.oc-meta { margin-top: 6px; font-size: 14px; color: var(--slate); }
.oc-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 2px; }
.oc-step { display: grid; grid-template-columns: 28px auto 1fr; align-items: center; gap: 12px; padding: 10px 4px; border-radius: 8px; font-size: 15px; }
.oc-step + .oc-step { border-top: 1px dashed var(--line); }
.oc-step .k { color: var(--ink); font-weight: 500; white-space: nowrap; }
.oc-step .v { font: 500 12px/1.2 var(--mono); color: var(--slate); text-align: right; }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.tick svg { width: 12px; height: 12px; }
.oc-step.is-wait .tick { background: var(--surface); border: 1.5px dashed var(--accent); }
.oc-step.is-wait .v { color: var(--accent-ink); }
.oc-step.is-wait { background: var(--accent-soft); }
.oc-step.is-pending .tick { background: transparent; border: 1.5px solid var(--line-strong); }
.oc-step.is-pending .k, .oc-step.is-pending .v { color: var(--slate); }
.oc-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--slate); }
.oc-foot strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ problem */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel h3 { font-size: 20px; letter-spacing: -0.01em; }
.panel .sub { margin-top: 8px; color: var(--slate); font-size: 15px; }
.panel-before { background: var(--sunk); border-style: dashed; border-color: var(--line-strong); }
.tabs { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-2); }
.tab::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--line-strong); }
.hops { margin-top: 22px; font: 500 13px/1.6 var(--mono); color: var(--slate); }
.lane { margin-top: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lane span { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 500; }
.lane i { width: 14px; height: 1.5px; background: var(--accent); }

/* ------------------------------------------------------------ flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: step; }
.flow::before { content: ""; position: absolute; left: 22px; right: calc((100% - 80px) / 6 - 22px); top: 21px; height: 2px; background: var(--accent); opacity: .35; }
.flow li { position: relative; }
.flow .node { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); display: grid; place-items: center; font: 500 13px/1 var(--mono); color: var(--accent-ink); }
.flow li.is-rule .node { background: var(--accent); color: #fff; }
.flow h3 { margin-top: 20px; font-size: 18px; letter-spacing: -0.01em; }
.flow p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.flow .you { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.flow .you::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ------------------------------------------------------------ why (dark) */
.why { background: var(--night); color: var(--night-text); border-top: 0 !important; }
.why .eyebrow { color: var(--accent-night); }
.why h2 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
.why h2 .quiet { color: var(--night-mute); display: block; }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.why-text { margin-top: 26px; font-size: 18px; line-height: 1.65; max-width: 540px; }
.why-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.why-points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.why-points strong { color: #fff; font-weight: 600; display: block; }
.why-points span { font-size: 15px; color: var(--night-mute); }
.why-points .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent-night); display: grid; place-items: center; margin-top: 2px; }
.why-points .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-night); }

/* hub diagram */
.hub { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; }
.hub-col { display: grid; gap: 12px; }
.hub-item { border: 1px solid var(--night-line); background: var(--night-2); border-radius: 10px; padding: 14px 16px; font-size: 15px; color: #fff; font-weight: 500; }
.hub-item small { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--night-mute); margin-bottom: 4px; }
.hub-core { position: relative; margin: 0 22px; width: 150px; padding: 26px 18px; border-radius: 16px; background: var(--accent); color: #fff; text-align: center; }
.hub-core strong { display: block; font: 600 17px/1 var(--display); letter-spacing: .14em; }
.hub-core span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.hub-core::before, .hub-core::after { content: ""; position: absolute; top: 50%; width: 22px; height: 2px; background: var(--accent-night); }
.hub-core::before { right: 100%; }
.hub-core::after { left: 100%; }

/* ------------------------------------------------------------ benefits */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.benefit { background: var(--surface); padding: 30px; }
.benefit .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.benefit .ico svg { width: 18px; height: 18px; }
.benefit h3 { margin-top: 20px; font-size: 20px; letter-spacing: -0.01em; }
.benefit p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* ------------------------------------------------------------ capabilities */
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 22px; font-size: 14px; color: var(--slate); }
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cap .badge { align-self: flex-start; }
.cap h3 { font-size: 18px; letter-spacing: -0.01em; }
.cap p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.cap[data-status="soon"] { background: transparent; border: 1.5px dashed var(--soon-line); }
.cap[data-status="soon"] h3 { color: var(--ink-2); }
.cap[data-status="soon"] p { color: var(--slate); }
.roadmap .caps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------ demo */
.demo-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.demo-bar .title { font: 500 13px/1 var(--mono); color: var(--slate); letter-spacing: .04em; }
.demo-bar .status-final { margin-left: auto; }
.demo-body { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; min-height: 520px; }
.demo-order { padding: 24px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 18px; }
.demo-order dl { margin: 0; display: grid; gap: 14px; }
.demo-order dt { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.demo-order dd { margin: 6px 0 0; font-size: 15px; font-weight: 500; }
.demo-steps { list-style: none; margin: 0; padding: 24px; display: grid; gap: 10px; align-content: start; }
.dstep { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .3s, background-color .3s, opacity .3s; }
.dstep .state { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); margin-top: 1px; }
.dstep .state svg { width: 13px; height: 13px; }
.dstep h3 { font: 600 15px/1.35 var(--font); letter-spacing: 0; }
.dstep p { margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.dstep .why-line { display: block; margin-top: 6px; font: 500 12px/1.5 var(--mono); color: var(--accent-ink); }
.dstep .confirm { margin-top: 12px; display: none; gap: 10px; align-items: center; flex-wrap: wrap; }
.dstep .confirm .btn { height: 36px; font-size: 14px; }
.dstep .confirm small { font-size: 13px; color: var(--slate); }
.demo-log { padding: 24px; border-left: 1px solid var(--line); background: var(--paper); }
.demo-log h3 { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.demo-log ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.demo-log li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2); transition: opacity .3s; }
.demo-log time { font: 500 12px/1.45 var(--mono); color: var(--slate); }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--slate); }
.demo-progress { flex: 1; max-width: 360px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.demo-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transition: width .5s; }
.demo-replay { display: none; }

/* JS-driven states (without JS every step is shown completed). */
.demo.js .dstep { opacity: .45; }
.demo.js .dstep .state { background: var(--surface); border: 1.5px solid var(--line-strong); }
.demo.js .dstep .state svg { opacity: 0; }
.demo.js .dstep.is-active { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
.demo.js .dstep.is-active .state { border: 1.5px dashed var(--accent); animation: spin 2.4s linear infinite; }
.demo.js .dstep.is-done { opacity: 1; }
.demo.js .dstep.is-done .state { background: var(--accent); border-color: var(--accent); animation: none; }
.demo.js .dstep.is-done .state svg { opacity: 1; }
.demo.js .dstep.is-waiting .confirm { display: flex; }
.demo.js .dstep.is-waiting .state { animation: none; }
.demo.js .demo-log li { opacity: 0; }
.demo.js .demo-log li.is-shown { opacity: 1; }
.demo.js .demo-replay { display: inline-flex; }
.demo .status-final { display: inline-flex; }
.demo.js .status-final { visibility: hidden; }
.demo.js.is-finished .status-final { visibility: visible; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ contact */
.contact { background: var(--night); color: var(--night-text); text-align: center; border-top: 0 !important; }
.contact h2 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; max-width: 820px; margin: 0 auto; }
.contact p.lead { margin: 20px auto 0; max-width: 560px; font-size: 18px; }
.contact-actions { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.contact-note { font-size: 14px; color: var(--night-mute); }
.contact-note .addr { font-family: var(--mono); color: var(--night-text); }
.contact .badge-soon { background: transparent; color: #E2C47C; border-color: #6B5A33; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--night); color: var(--night-mute); border-top: 1px solid var(--night-line); padding: 36px 0 44px; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand-word { color: #fff; font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; color: var(--night-text); }
.site-footer a:hover { color: #fff; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .demo-body { grid-template-columns: 220px minmax(0, 1fr); }
  .demo-log { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .demo-log ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 14px; font-weight: 500; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: 0; top: 46px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: grid; }
  .menu nav a { padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 500; }
  .menu nav a:hover { background: var(--sunk); }
  .hero-grid, .why-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .problem-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .flow::before { display: none; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .hero-lead { font-size: 18px; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 17px; }
  .header-row { gap: 12px; height: 60px; }
  .header-actions .btn-primary { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .flow { grid-template-columns: 1fr; row-gap: 0; }
  .flow li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .flow li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--accent); opacity: .35; }
  .flow li:last-child::before { display: none; }
  .flow li > :not(.node) { grid-column: 2; }
  .flow .node { grid-row: 1 / span 3; }
  .flow h3 { margin-top: 10px; }
  .benefits, .caps, .roadmap .caps { grid-template-columns: 1fr; }
  .hub { grid-template-columns: 1fr; justify-items: stretch; gap: 14px; }
  .hub-core { margin: 8px 0; width: 100%; }
  .lane i { display: none; }
  .hub-core::before, .hub-core::after { left: 50%; top: auto; width: 2px; height: 14px; }
  .hub-core::before { bottom: 100%; right: auto; }
  .hub-core::after { top: 100%; }
  .demo-body { grid-template-columns: 1fr; min-height: 0; }
  .demo-order { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-order dl { grid-template-columns: 1fr 1fr; }
  .demo-steps { padding: 16px; }
  .demo-log ol { grid-template-columns: 1fr; }
  .demo-bar .title { display: none; }
  .demo-controls { flex-wrap: wrap; }
  .oc-step { grid-template-columns: 26px 1fr; }
  .oc-step .v { grid-column: 2; text-align: left; }
}
.menu .menu-lang { display: none; }
@media (max-width: 380px) {
  .hero h1 { font-size: 32px; }
  .header-actions { gap: 6px; }
  .header-actions .lang { display: none; }
  .menu .menu-lang { display: block; }
  .btn-sm, .menu summary { padding: 0 10px; }
  .brand-word { letter-spacing: .1em; }
  .note-item { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
