:root {
  --bg: #faf7f2;
  --panel: #fffdf9;
  --panel-2: #f3ede4;
  --border: #e7e2da;
  --text: #1c1917;
  --muted: #78716c;
  --brand: #ea580c;
  --brand-2: #c2410c;
  --accent: #f59e0b;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 16px;
  --shadow: 0 18px 50px -22px rgba(124, 45, 18, 0.30);
  --shadow-sm: 0 8px 24px -14px rgba(124, 45, 18, 0.28);
  --ink: #1c1917; /* dev band base */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(245, 158, 11, 0.14), transparent 60%),
    radial-gradient(900px 480px at 8% 4%, rgba(234, 88, 12, 0.12), transparent 55%),
    linear-gradient(180deg, #fdf6ee 0%, #faf7f2 38%, #fffdf9 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.sprite { position: absolute; width: 0; height: 0; }
code {
  background: #fdf0e6;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--brand-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 600;
  border: 1px solid transparent; border-radius: 12px;
  padding: 10px 18px; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
  color: var(--text); background: #fff;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 26px -10px rgba(234, 88, 12, 0.55);
}
.btn.primary:hover { box-shadow: 0 14px 32px -10px rgba(194, 65, 12, 0.55); }
.btn.ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.lg { padding: 14px 26px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn.danger { background: #fff; border-color: #fecaca; color: var(--err); }
.btn.danger:hover { background: #fef2f2; border-color: var(--err); }
.btn.sm { padding: 7px 13px; font-size: 0.88rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 226, 218, 0.85);
}
.brand { font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linejoin: round; }
.nav-links { display: flex; gap: 16px; margin-left: 10px; color: var(--muted); font-weight: 500; font-size: 0.96rem; }
.nav-links a:hover { color: var(--brand); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-actions { display: flex; gap: 10px; }
.lang { display: inline-flex; background: #f3ede4; border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.lang button { border: none; background: none; font: inherit; font-weight: 600; font-size: 0.82rem; color: var(--muted); padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.lang button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 24px 70px; }
.hero-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 0.86rem; color: var(--muted); margin-bottom: 22px;
}
.pill-ico { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 1.8; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
.grad { background: linear-gradient(115deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.14rem; max-width: 560px; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-sub { margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.hero-art { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 480px; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 76px 24px; max-width: 1180px; margin: 0 auto; }
.section.alt { background: linear-gradient(180deg, rgba(253, 246, 238, 0), rgba(250, 243, 232, 0.7), rgba(253, 246, 238, 0)); max-width: none; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-title { text-align: center; font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 14px auto 0; font-size: 1.04rem; }
.section-title + .cards, .section-sub + .cards { margin-top: 44px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f0d9c2; }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, #fde4cf, #fdf0e6); color: var(--brand);
}
.card h3 { font-size: 1.14rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Steps ---------- */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 44px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; flex: 1 1 280px; max-width: 340px; box-shadow: var(--shadow-sm); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px; font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; margin-bottom: 15px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }
.step-arrow { width: 30px; height: 30px; align-self: center; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- Developers band (dark contrast) ---------- */
.section.dev {
  max-width: none; margin-top: 30px; padding: 78px 24px;
  background:
    radial-gradient(800px 360px at 85% 0%, rgba(234, 88, 12, 0.28), transparent 60%),
    radial-gradient(700px 340px at 5% 100%, rgba(245, 158, 11, 0.18), transparent 55%),
    linear-gradient(180deg, #1c1917, #292524);
  color: #e2e8f0;
}
.section.dev .section-title { color: #fff; }
.section.dev .section-sub { color: #d6c8ba; }
.dev-cards { margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card.dark {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(6px);
}
.card.dark:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7); }
.card.dark h3 { color: #fff; }
.card.dark p { color: #d6c8ba; }
.card.dark .card-ico { background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.25)); color: #fbbf24; }

/* ---------- Architecture diagram ---------- */
.arch { margin-top: 48px; }
.arch-title { text-align: center; color: #d6c8ba; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.arch-svg { width: 100%; height: auto; display: block; }
.arch-node rect { fill: rgba(255, 255, 255, 0.05); stroke: rgba(148, 163, 184, 0.3); stroke-width: 1.2; }
.arch-node.accent rect { fill: rgba(234, 88, 12, 0.18); stroke: rgba(251, 146, 60, 0.6); }
.arch-node.soft rect { fill: rgba(245, 158, 11, 0.12); stroke: rgba(245, 158, 11, 0.45); }
.arch-node text { fill: #e2e8f0; font-size: 14px; font-weight: 600; text-anchor: middle; font-family: "Inter", sans-serif; }
.arch-node text.sm { fill: #94a3b8; font-size: 11px; font-weight: 500; }
.arch-link { stroke: url(#g-arch); stroke-width: 2; fill: none; opacity: 0.55; stroke-linecap: round; }
/* flowing dashes along the links */
.arch-link.flow { stroke-dasharray: 5 9; animation: dashflow 0.9s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -14; } }
/* travelling data packets (positioned by SVG animateMotion) */
.pkt { opacity: 0.95; }
/* live "running" indicators on app containers */
.live { fill: #4ade80; filter: drop-shadow(0 0 3px rgba(74, 222, 128, 0.9)); animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
/* soft glow breathing on the control plane node */
.arch-node.accent rect.pulse { animation: nodepulse 2.6s ease-in-out infinite; }
@keyframes nodepulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(245, 158, 11, 0)); }
  50% { filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.75)); }
}
/* scroll-reveal: секції/картки плавно проявляються */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .card.reveal { transition-delay: var(--rd, 0s); }

/* hero build-flow: агент «зʼєднує» вузли платформи */
.build-flow path { stroke-dasharray: 6 8; stroke-dashoffset: 60; animation: buildflow 2.4s linear infinite; }
.build-flow path:nth-child(2) { animation-delay: .35s; }
.build-flow path:nth-child(3) { animation-delay: .7s; }
@keyframes buildflow { to { stroke-dashoffset: 0; } }
.build-nodes use { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .build-flow path { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; }
  .arch-link.flow { animation: none; }
  .pkt { display: none; }
  .live, .arch-node.accent rect.pulse { animation: none; }
}

/* ---------- Pricing ---------- */
.price-card {
  max-width: 430px; margin: 44px auto 0; background: var(--panel);
  border: 1px solid var(--border); border-radius: 22px; padding: 38px; text-align: center;
  box-shadow: var(--shadow);
}
.price-head { font-weight: 800; color: var(--brand); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; }
.price-amount { font-size: 3rem; font-weight: 800; margin: 10px 0 4px; letter-spacing: -0.02em; }
.price-amount span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-list { list-style: none; text-align: left; margin: 24px 0; display: grid; gap: 12px; }
.price-list li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.chk { width: 20px; height: 20px; flex: 0 0 auto; stroke: var(--ok); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.price-note { margin-top: 16px; color: var(--muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1180px; margin: 0 auto; }
.footer .brand { font-size: 1.1rem; }
.muted { color: var(--muted); }

/* ---------- Dashboard ---------- */
#dashboard { max-width: 1180px; margin: 0 auto; padding: 48px 24px 80px; min-height: 70vh; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.dash-head h1 { font-size: 2rem; letter-spacing: -0.02em; }
/* Quick-start guide */
.guide {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 24px; padding: 20px 46px 20px 20px;
  border: 1px solid #f0d9c2; border-radius: var(--radius);
  background: linear-gradient(135deg, #fdf6ee, #fdf0e6);
  box-shadow: var(--shadow-sm);
}
.guide[hidden] { display: none; }
.guide-ico {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
.guide-ico .ico { width: 24px; height: 24px; stroke: #fff; }
.guide-body h3 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.guide-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text); font-size: 0.95rem; }
.guide-steps li { padding-left: 4px; }
.guide-steps code { font-weight: 700; }
.guide-x {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.guide-x:hover { color: var(--text); }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.app-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.18s; }
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-slug { font-weight: 700; font-size: 1.15rem; }
.app-url { color: var(--brand); font-size: 0.9rem; word-break: break-all; display: inline-block; margin: 6px 0 16px; }
.app-url:hover { text-decoration: underline; }
.badge { font-size: 0.78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; background: #f8fafc; color: var(--muted); }
.badge.running { color: var(--ok); border-color: #bbf7d0; background: #f0fdf4; }
.badge.stopped { color: var(--muted); }
.badge.provisioning { color: var(--warn); border-color: #fde68a; background: #fffbeb; }
.badge.error { color: var(--err); border-color: #fecaca; background: #fef2f2; }
.badge.missing { color: var(--muted); }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.app-err { color: var(--err); font-size: 0.82rem; margin-top: 10px; word-break: break-word; }

.empty { text-align: center; padding: 80px 20px; }
.empty-ico { display: flex; justify-content: center; margin-bottom: 14px; }
.empty-ico svg { width: 60px; height: 60px; stroke: var(--brand); fill: none; stroke-width: 1.3; opacity: 0.7; }
.empty h3 { margin-bottom: 6px; }
.empty p { margin-bottom: 22px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
/* `display:flex` above would otherwise override the [hidden] attribute, leaving
   modals permanently visible — this restores hide-on-hidden. */
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 500px;
  max-height: calc(100dvh - 24px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 22px;
  padding: 32px; box-shadow: 0 30px 70px -25px rgba(15, 23, 42, 0.5);
}
.modal h2 { margin-bottom: 20px; }
.modal-x { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.modal-x:hover { color: var(--text); }
.modal-tabs { display: flex; gap: 6px; background: var(--panel-2); border-radius: 12px; padding: 5px; margin-bottom: 22px; }
.tab { flex: 1; padding: 9px; border: none; background: none; color: var(--muted); font: inherit; font-weight: 600; border-radius: 9px; cursor: pointer; }
.tab.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.modal-form { display: grid; gap: 16px; }
.modal-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.modal-form input {
  font: inherit; padding: 12px 14px; border-radius: 12px;
  background: #f8fafc; border: 1px solid var(--border); color: var(--text);
}
.modal-form input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18); }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: -6px; }
.form-err { color: var(--err); font-size: 0.88rem; background: #fef2f2; border: 1px solid #fecaca; padding: 9px 12px; border-radius: 9px; }
.slug-input { display: flex; align-items: stretch; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; }
.slug-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18); }
.slug-input input { border: none; background: none; border-radius: 12px 0 0 12px; flex: 1 1 auto; width: 0; }
.slug-input input:focus { outline: none; box-shadow: none; background: none; }
.slug-suffix { display: flex; align-items: center; flex: 0 0 auto; color: var(--text); font-weight: 600; padding: 0 14px 0 6px; font-size: 0.9rem; white-space: nowrap; }

/* ---------- Confirm / prompt dialog ---------- */
.modal.modal-sm { max-width: 420px; }
.dlg-msg { color: var(--text); margin-bottom: 18px; line-height: 1.5; }
.dlg-msg[hidden] { display: none; }
.dlg-input {
  font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px;
  background: #f8fafc; border: 1px solid var(--border); color: var(--text); margin-bottom: 18px;
}
.dlg-input[hidden] { display: none; }
.dlg-input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18); }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); color: var(--text);
  padding: 13px 22px; border-radius: 12px; box-shadow: var(--shadow); z-index: 200; font-weight: 500;
}
.toast.err { border-color: #fecaca; color: var(--err); }
.toast.ok { border-color: #bbf7d0; color: var(--ok); }

/* ---------- Burger menu ---------- */
.nav-burger {
  display: none; margin-left: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-burger svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: round; }
.nav-menu {
  position: fixed; inset: 0 0 auto 0; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow);
}
.nav-menu[hidden] { display: none; }
.nav-menu a { padding: 12px 10px; border-radius: 10px; color: var(--text); font-weight: 600; }
.nav-menu a:hover { background: var(--panel-2); }
.nav-menu .menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.nav-menu-actions { display: grid; gap: 8px; margin-top: 10px; }
.nav-menu-actions .btn { width: 100%; }

/* ---------- Admin panel ---------- */
.admin-tabs { display: flex; gap: 6px; background: var(--panel-2); border-radius: 12px; padding: 5px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab { flex: 1 1 auto; padding: 9px 14px; border: none; background: none; color: var(--muted); font: inherit; font-weight: 600; border-radius: 9px; cursor: pointer; }
.admin-tab.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.admin-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-filters select, .admin-filters input {
  font: inherit; padding: 8px 12px; border-radius: 10px;
  background: #f8fafc; border: 1px solid var(--border); color: var(--text);
}
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.data tr:last-child td { border-bottom: none; }
table.data .row-actions { display: flex; gap: 6px; }
.pill-tag { font-size: 0.76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: var(--muted); }
.pill-tag.ok { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }
.pill-tag.err { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }
.admin-more { display: flex; justify-content: center; margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { order: -1; }
  .hero-svg { max-width: 380px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-right .nav-actions { display: none; }
  .nav-right .lang { display: none; }
  .nav-burger { display: inline-flex; }
  .nav { padding: 12px 18px; gap: 12px; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .hero { padding: 56px 16px 48px; }
  .section { padding: 48px 16px; }
  .section.dev, .section.alt { padding: 48px 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  #dashboard { padding: 32px 16px 64px; }
  .modal { padding: 22px; border-radius: 18px; }
  /* tall modals scroll from the top instead of clipping */
  .modal-overlay { align-items: flex-start; padding: 16px; }
}

/* ===== Document-workflow showcase ===== */
.docflow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; margin-top: 44px; }
.docflow-art { display: flex; justify-content: center; }
.doc-svg { width: 100%; max-width: 520px; height: auto; }
/* Іконки спрайту всередині ілюстрацій — лінійні, у переданому color=
   (без цього <use> успадковує fill:currentColor і малюється чорною плямою).
   Дзеркалить правило .build-nodes use для hero-анімації. */
.doc-svg use { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.docflow-cards { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .docflow { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .docflow-cards { grid-template-columns: 1fr; }
}

/* ===== Control-panel feature strip ===== */
.cpf { max-width: 1180px; margin: 36px auto 0; }
.cpf-title { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.cpf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cpf-card { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.cpf-card .ico { color: var(--brand); flex: 0 0 auto; }
.cpf-card h4 { font-size: 1rem; margin: 0 0 3px; letter-spacing: -0.01em; }
.cpf-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.cpf-lib { color: var(--muted); font-size: 0.95rem; margin-top: 16px; }
/* ---------- Beta badge + bar ---------- */
.beta-bar {
  text-align: center; font-size: .8rem; font-weight: 600; color: #3730a3;
  background: linear-gradient(90deg, rgba(245,158,11,.16), rgba(234,88,12,.14));
  border-bottom: 1px solid rgba(234,88,12,.2);
  padding: .5rem 1rem;
}
.beta-badge {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
  margin-left: 2px; font-size: .6rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: #fff; padding: .16rem .5rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 14px -5px rgba(234,88,12,.6);
}
.beta-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: betapulse 1.8s ease-out infinite; }
@keyframes betapulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .beta-dot { animation: none; } }

/* ---------- Highlighted "Маркетплейс" nav item ---------- */
.nav-links a.nav-mkt, .nav-menu a.nav-mkt {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 7px 16px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(234, 88, 12, .6);
}
.nav-links a.nav-mkt { margin-left: 4px; }
.nav-links a.nav-mkt:hover, .nav-menu a.nav-mkt:hover { transform: translateY(-1px); color: #fff !important; }
.nav-menu a.nav-mkt { text-align: center; }
