/* ============================================================
   Vio Website — визуальный язык повторяет UI браузера (styles.css)
   ============================================================ */

:root {
  --accent: #FF8A3D;
  --accent-2: #7FC99B;
  --on-accent: #241405;

  --r: 10px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .2s;

  --bg: #F4F5F2;
  --bg-2: #EAECE6;
  --surface: #FFFFFF;
  --surface-2: #F8F9F6;
  --surface-3: #EFF1EB;
  --text: #1E211D;
  --text-2: #6C7268;
  --text-3: #9BA196;
  --line: #E2E5DD;
  --line-2: #D4D8CF;
  --hover: rgba(30, 33, 29, .07);
  --active: rgba(30, 33, 29, .12);
  --shadow: 0 8px 26px rgba(30, 36, 26, .13);
  --shadow-sm: 0 1px 3px rgba(30, 36, 26, .14);
  --sel: rgba(255, 138, 61, .28);
  --wall-a: 26%;
  --wall-b: 34%;
}

html[data-theme="dark"] {
  --bg: #0B0B0B;
  --bg-2: #131313;
  --surface: #171717;
  --surface-2: #1D1D1D;
  --surface-3: #242424;
  --text: #EDEDED;
  --text-2: #9C9C9C;
  --text-3: #6C6C6C;
  --line: #262626;
  --line-2: #323232;
  --hover: rgba(255, 255, 255, .07);
  --active: rgba(255, 255, 255, .13);
  --shadow: 0 10px 34px rgba(0, 0, 0, .55);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
  --sel: rgba(255, 138, 61, .32);
  --wall-a: 9%;
  --wall-b: 8%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

::selection { background: var(--sel); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-2) 34%, transparent);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--text-2) 60%, transparent);
  background-clip: padding-box;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
svg { display: block; }
button { font-family: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 58px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 13.5px;
  padding: 7px 11px;
  border-radius: var(--r);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-links a:hover { background: var(--hover); color: var(--text); }

.nav-tools { display: flex; align-items: center; gap: 6px; }

.btn-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-2);
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform .12s var(--ease);
}
.btn-icon:hover { background: var(--hover); color: var(--text); }
.btn-icon:active { transform: scale(.92); }
.btn-icon svg { width: 18px; height: 18px; }

/* ---------------- buttons / pills ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform .12s var(--ease), filter var(--dur) var(--ease);
}
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }

.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--on-accent);
  font-weight: 600;
}
.btn.primary:hover { background: var(--accent); filter: brightness(1.06); }
.btn.lg { padding: 13px 24px; font-size: 15px; border-radius: calc(var(--r) + 2px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--text-2);
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
}
.pill b { color: var(--text); font-weight: 600; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 8vh, 88px) 0 clamp(40px, 6vh, 72px);
  background:
    radial-gradient(1200px 500px at 12% -10%, color-mix(in srgb, var(--accent) var(--wall-a), transparent), transparent 60%),
    radial-gradient(1000px 480px at 88% 4%, color-mix(in srgb, var(--accent-2) var(--wall-b), transparent), transparent 62%),
    var(--bg);
}
.hero-in { text-align: center; }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 18px 0 14px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  color: var(--text-2);
  font-size: clamp(15px, 2vw, 17.5px);
  max-width: 620px;
  margin: 0 auto;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-quick {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.hero-note a { color: var(--accent); text-decoration: none; font-weight: 600; }
.hero-note a:hover { text-decoration: underline; }

/* ---------------- mock browser ---------------- */
.mock {
  max-width: 940px;
  margin: 44px auto 0;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  animation: rise .5s var(--ease) backwards;
  animation-delay: .12s;
}
.mock-tb {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 8px 0 10px;
  background: var(--bg);
}
.mock-tabs { display: flex; gap: 4px; flex: 1; min-width: 0; }
.mtab {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  max-width: 210px;
  flex: 0 1 190px;
  min-width: 0;
  padding: 0 8px 0 10px;
  border-radius: var(--r);
  color: var(--text-2);
  font-size: 12.5px;
  position: relative;
}
.mtab img { width: 15px; height: 15px; border-radius: 3px; flex: 0 0 auto; }
.mtab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.mtab.active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; top: 0;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}
.mtab:hover:not(.active) { background: var(--hover); color: var(--text); }
.mtab .x { width: 18px; height: 18px; margin-left: auto; border-radius: 5px; display: grid; place-items: center; color: inherit; opacity: .55; }
.mtab .x svg { width: 10px; height: 10px; }

.mock-ctl { display: flex; height: 32px; }
.mock-ctl i {
  width: 34px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  border-radius: 6px;
}
.mock-ctl i svg { width: 11px; height: 11px; }
.mock-ctl i:last-child:hover { background: #E81123; color: #fff; }
.mock-ctl i:not(:last-child):hover { background: var(--hover); color: var(--text); }

.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mnav { display: flex; gap: 2px; }
.mnav span {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--text-2);
  border-radius: var(--r);
}
.mnav span svg { width: 16px; height: 16px; }
.mnav span.dim { opacity: .4; }

.omni {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 8px 0 11px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--text-3);
  font-size: 13px;
  min-width: 0;
}
.omni .url { color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omni .url b { color: var(--accent); font-weight: 600; }
.omni svg { width: 15px; height: 15px; flex: 0 0 auto; }
.omni .lock { color: #3FA46A; }
html[data-theme="dark"] .omni .lock { color: #6FCF97; }
.omni .star { color: var(--text-3); }

.mact { display: flex; gap: 2px; }
.mact span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--text-2); border-radius: var(--r); }
.mact span:hover { background: var(--hover); color: var(--text); }
.mact svg { width: 16px; height: 16px; }

.mock-page {
  position: relative;
  padding: 34px 24px 30px;
  background:
    radial-gradient(760px 380px at 14% -20%, color-mix(in srgb, var(--accent) var(--wall-a), transparent), transparent 62%),
    radial-gradient(700px 340px at 86% 0%, color-mix(in srgb, var(--accent-2) var(--wall-b), transparent), transparent 62%),
    var(--surface);
  min-height: 300px;
}
.mp-hero { text-align: center; }
.mp-logo { width: 54px; height: 54px; margin: 0 auto 10px; filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent)); }
.mp-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 4px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mp-sub { color: var(--text-3); font-size: 12.5px; margin-bottom: 18px; }

.mp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--r) * 1.6);
  box-shadow: var(--shadow);
  color: var(--text-3);
  font-size: 14px;
}
.mp-search svg { width: 16px; height: 16px; }

.sd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 22px auto 0;
}
.sd-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--r) + 4px);
  background: var(--tile, var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.sd-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.sd-fav {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-3);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}
.sd-tile.add { border-style: dashed; background: transparent; box-shadow: none; }
.sd-tile.add svg { width: 18px; height: 18px; }

/* ---------------- sections ---------------- */
section { padding: clamp(56px, 8vh, 84px) 0 0; }

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.sec-head h2 { margin: 0; }
.sec-head .line { flex: 1; height: 1px; background: var(--line); }

h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.desc { color: var(--text-2); max-width: 640px; margin: 10px 0 26px; }

/* ---------------- cards ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 3px);
  padding: 20px;
  transition: border-color .26s var(--ease), box-shadow .26s var(--ease), transform .26s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.card .dot-bar {
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-bottom: 14px;
}
.card h3 { font-size: 15.5px; margin: 0 0 5px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }

/* ---------------- steps ---------------- */
.set-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 3px);
  overflow: hidden;
}
.set-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: none; }
.step-n {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface-3)), color-mix(in srgb, var(--accent-2) 22%, var(--surface-3)));
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.set-row .sr-title { font-size: 14px; font-weight: 600; }
.set-row .sr-desc { font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.55; }
.set-row .sr-desc b { color: var(--text); font-weight: 600; }

/* ---------------- verify ---------------- */
.hash { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 3px); padding: 20px; }
.hash .lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
}
.hrow { display: flex; gap: 10px; margin: 12px 0 14px; flex-wrap: wrap; }
.hv {
  flex: 1;
  min-width: 260px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--r) * .8);
  padding: 11px 13px;
  font-size: 13px;
  word-break: break-all;
  user-select: all;
  color: var(--text);
}
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace; }
pre {
  margin: 0;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--text-2);
  border-radius: calc(var(--r) * .8);
  padding: 12px 14px;
  font-size: 13px;
  overflow-x: auto;
}
pre b { color: var(--accent); font-weight: 600; }
.note { font-size: 13px; color: var(--text-3); margin-top: 12px; }

/* ---------------- footer ---------------- */
footer {
  margin-top: clamp(60px, 9vh, 92px);
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------------- hero extras ---------------- */
.hero-actions.secondary { margin-top: 14px; }
.hero-actions.secondary .btn { padding: 8px 15px; font-size: 13px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  max-width: 940px;
  margin: 30px auto 0;
  text-align: left;
}
.stat {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 3px);
  padding: 13px 16px;
  min-width: 0;
  transition: border-color .26s var(--ease), box-shadow .26s var(--ease);
}
.stat:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.stat b {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 5px;
}
.stat span, .stat a {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.stat span { line-height: 1.35; }
.stat a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--accent); }
.stat a:hover { text-decoration: underline; }

.hero .stats + .lead { margin-top: 28px; }

.sec-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.sec-nav a {
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--text-2);
  border-radius: 999px;
  font-size: 12.5px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.sec-nav a:hover {
  background: var(--hover);
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
.sec-nav a:active { transform: scale(.98); }

/* ---------------- doc ---------------- */
section { scroll-margin-top: 74px; }

.doc p { color: var(--text-2); font-size: 14.5px; margin: 0 0 14px; max-width: 760px; }
.doc p.lead-p { font-size: 16px; color: var(--text-2); }
.doc h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 34px 0 12px; color: var(--text); }
.doc h4 { font-size: 14px; font-weight: 700; margin: 26px 0 10px; color: var(--text); }
.doc h4:first-child, .doc h3:first-child { margin-top: 0; }

.doc a.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.doc a.link:hover { text-decoration: underline; }

.list { margin: 0 0 16px; padding-left: 20px; color: var(--text-2); font-size: 14.5px; max-width: 760px; }
.list li { margin-bottom: 7px; }
.list a { color: var(--accent); text-decoration: none; font-weight: 600; }
.list a:hover { text-decoration: underline; }
.list code, .doc p code, .doc td code {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12.5px;
  color: var(--text);
}

.tbl-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 3px);
  margin-bottom: 16px;
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  background: var(--surface-2);
}
tr:last-child td { border-bottom: none; }
td { color: var(--text-2); }
td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
td a { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
td a:hover { text-decoration: underline; }

.code {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 3px);
  padding: 15px 17px;
  margin-bottom: 14px;
  overflow-x: auto;
}
.code pre { background: none; border: none; padding: 0; margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.7; }
.code .c { color: var(--text-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
a.chip:hover, .chip:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--text);
}
.chip:active { transform: scale(.98); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); margin-right: 8px; }

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: calc(var(--r) + 3px);
  padding: 15px 17px;
  margin-bottom: 16px;
  max-width: 760px;
}
.callout svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.callout p { margin: 0; font-size: 13.5px; }
.callout a { color: var(--accent); font-weight: 700; text-decoration: none; }
.callout a:hover { text-decoration: underline; }

.hint { font-size: 13px; color: var(--text-3); margin: -6px 0 18px; max-width: 760px; }

.sub-sep { height: 1px; background: var(--line); margin: 40px 0 4px; }
h3[id], h4[id] { scroll-margin-top: 74px; }

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.flow .node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}
.flow .node small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  margin-top: 2px;
}
.flow .node-green {
  background: color-mix(in srgb, var(--accent-2) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line));
}
.flow .arr { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.flow .arr.sep { margin-left: 14px; }

/* ---------------- motion ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .mock { margin-top: 34px; }
  .mtab:nth-child(2) { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .mock { display: none; }
  .hero { padding-top: 44px; }
}

/* ============================================================
   Marketing layer � Firefox/Chrome-style visuals & animation
   ============================================================ */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* --- reveal on scroll (only when JS is on) --- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .09s; }
.js .reveal[data-d="2"] { transition-delay: .18s; }
.js .reveal[data-d="3"] { transition-delay: .27s; }
.js .reveal[data-d="4"] { transition-delay: .36s; }
.js .reveal[data-d="5"] { transition-delay: .45s; }

/* --- animated blobs --- */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.blob.b1 { width: 560px; height: 560px; left: -160px; top: -200px; background: var(--accent); opacity: .34; animation: drift1 17s ease-in-out infinite alternate; }
.blob.b2 { width: 520px; height: 520px; right: -150px; top: -120px; background: var(--accent-2); opacity: .38; animation: drift2 21s ease-in-out infinite alternate; }
.blob.b3 { width: 420px; height: 420px; left: 42%; bottom: -240px; background: #FFB45E; opacity: .26; animation: drift3 19s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.18); } }
@keyframes drift2 { to { transform: translate(-130px, 120px) scale(.86); } }
@keyframes drift3 { to { transform: translate(-90px, -110px) scale(1.12); } }

.hero { background: var(--bg); }
.hero-in { position: relative; z-index: 1; }

/* --- hero headline words --- */
.js .hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(38px) rotate(4deg);
  animation: wordIn .9s var(--ease) forwards;
}
.js .hero h1 .w:nth-child(2) { animation-delay: .12s; }
.js .hero h1 .w:nth-child(3) { animation-delay: .24s; }
@keyframes wordIn { to { opacity: 1; transform: none; } }

.hero h1 {
  background-size: 220% 100%;
  animation: hue 9s ease-in-out infinite alternate;
}
@keyframes hue { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* --- glow under the hero mock --- */
.mock-stage { position: relative; margin-top: 46px; perspective: 1500px; }
.mock-stage::before {
  content: "";
  position: absolute;
  left: 50%; top: 12%;
  width: 78%; height: 78%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%);
  filter: blur(50px);
  opacity: .5;
  pointer-events: none;
}
.js .mock-stage .mock-wrap { animation: floaty 7s ease-in-out infinite alternate; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-16px); } }

.mock {
  animation: none;
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease);
  transform-style: preserve-3d;
}

/* --- panes inside the hero mock page --- */
.mock-page > .pane { display: none; }
.mock-page > .pane.on { display: block; animation: paneIn .55s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px) scale(.99); } }

.caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* article pane */
.art { max-width: 620px; margin: 6px auto 0; }
.art .art-title { height: 20px; width: 62%; border-radius: 6px; background: var(--text); opacity: .82; margin: 0 auto 16px; }
.art .art-img { height: 110px; border-radius: 12px; margin-bottom: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 55%, var(--surface-3)), color-mix(in srgb, var(--accent-2) 65%, var(--surface-3))); }
.art .art-line { height: 10px; border-radius: 5px; background: var(--line-2); margin-bottom: 9px; }
.art .art-line.w80 { width: 80%; }
.art .art-line.w92 { width: 92%; }
.art .art-line.w65 { width: 65%; }

/* --- floating hint chips --- */
.float-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.float-chips .pill { animation: bob 4.5s ease-in-out infinite; }
.float-chips .pill:nth-child(2) { animation-delay: .5s; }
.float-chips .pill:nth-child(3) { animation-delay: 1s; }
.float-chips .pill:nth-child(4) { animation-delay: 1.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* --- responsive for the new layer --- */
@media (max-width: 720px) {
  .mock-stage::before { display: none; }
  .js .mock-stage .mock-wrap { animation: none; }
  .float-chips .pill { animation: none; }
}

.sw-blue { background: #3D7FE3 !important; }
.sw-cyan { background: #35B7C8 !important; }
.sw-red { background: #FF6B5E !important; }
