/* ==========================================================================
   Monax — style.css
   Doodle / Sketch / Line-art design system. Mobile-first; breakpoints in responsive.css
   ========================================================================== */

:root {
  /* Typography — فونت را فقط از همین‌جا تغییر دهید */
  --font-sans: "Vazirmatn", "Vazir", Tahoma, system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;

  /* Light (paper) */
  --bg: #fbf8f1;
  --bg-2: #f3eee2;
  --surface: #fffdf8;
  --ink: #1d1b2f;
  --ink-2: #504e66;
  --accent: #4338f0;
  --accent-ink: #ffffff;
  --accent-soft: #e9e7ff;
  --hl: #ffd23f;
  --hl-soft: rgba(255, 210, 63, .75);
  --coral: #ff6b57;
  --mint: #1fae8a;
  --shadow-c: var(--ink);
  --radius-sk: 18px 7px 16px 9px / 9px 16px 7px 18px;
  --radius-sk-2: 8px 18px 9px 16px / 16px 8px 18px 9px;

  --bs-body-font-family: var(--font-sans);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--ink);
  --bs-link-color: var(--accent);
  --bs-link-hover-color: var(--accent);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-bs-theme="dark"] {
  --bg: #13121b;
  --bg-2: #1a1925;
  --surface: #1e1d2b;
  --ink: #f2eee4;
  --ink-2: #b9b6ca;
  --accent: #948cff;
  --accent-ink: #13121b;
  --accent-soft: #2a2745;
  --hl-soft: rgba(255, 210, 63, .38);
  --shadow-c: rgba(148, 140, 255, .7);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--ink);
  --bs-modal-bg: var(--surface);
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.95;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { line-height: 1.5; font-weight: 800; letter-spacing: -.01em; }
p { color: var(--ink-2); margin-bottom: 1rem; }
a { text-decoration: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
code, .mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
::selection { background: var(--hl); color: #1d1b2f; }
:focus-visible { outline: 3px dashed var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; top: -60px; inset-inline-start: 12px; z-index: 2000;
  background: var(--hl); color: #1d1b2f; padding: .5rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 10px; }

/* ---------- Sketch primitives ---------- */
.sk {
  border: 2px solid var(--ink);
  border-radius: var(--radius-sk);
  background: var(--surface);
}
.sk-shadow { box-shadow: 4px 4px 0 var(--shadow-c); }
.sk-alt { border-radius: var(--radius-sk-2); }

.hl {
  background: linear-gradient(transparent 58%, var(--hl-soft) 58%, var(--hl-soft) 90%, transparent 90%);
  padding: 0 .15em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.squig { position: relative; display: inline-block; }
.squig::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -.28em; height: .5em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q3 0 6 4 T12 4 T18 4 T24 4' fill='none' stroke='%23ff6b57' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 24px 8px;
}
.note {
  font-size: .85rem; color: var(--ink-2); display: inline-flex; gap: .4rem; align-items: center;
  transform: rotate(-1.5deg);
}
.dash-line { border: 0; border-top: 2px dashed var(--ink); opacity: .35; margin: 0; }

.ico { width: 1.5em; height: 1.5em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 2.2rem; height: 2.2rem; }
.ico-xl { width: 3rem; height: 3rem; }

.illo svg, svg.illo { filter: url(#rough); overflow: visible; }
.stroke-ink { stroke: var(--ink); }
.draw { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.draw-thin { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.draw-dash { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 5 7; stroke-linecap: round; opacity: .8; }
.f-surface { fill: var(--surface); }
.f-accent { fill: var(--accent); }
.f-accent-soft { fill: var(--accent-soft); }
.f-hl { fill: var(--hl); }
.f-coral { fill: var(--coral); }
.f-mint { fill: var(--mint); }
.f-ink { fill: var(--ink); }
.svg-text { font-family: var(--font-sans); fill: var(--ink-2); font-size: 13px; font-weight: 600; }
.svg-text-en { font-family: var(--font-mono); fill: var(--ink); font-size: 12px; font-weight: 700; }

@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg) } 50% { transform: rotate(2deg) } }
@keyframes dashmove { to { stroke-dashoffset: -48 } }
.float { animation: floaty 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.float.d2 { animation-delay: -1.5s; animation-duration: 6s; }
.float.d3 { animation-delay: -3s; animation-duration: 5.5s; }
.wiggle { animation: wiggle 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.flow { animation: dashmove 3s linear infinite; }

/* ---------- Buttons ---------- */
.btn-mx, .btn-mx-ghost {
  --btn-bg: var(--accent); --btn-fg: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .7rem 1.4rem; font-weight: 800; font-size: 1rem; line-height: 1.6;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--ink); border-radius: var(--radius-sk);
  box-shadow: 4px 4px 0 var(--shadow-c);
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn-mx:hover, .btn-mx-ghost:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow-c); color: var(--btn-fg); }
.btn-mx:active, .btn-mx-ghost:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow-c); }
.btn-mx-ghost { --btn-bg: var(--surface); --btn-fg: var(--ink); }
.btn-mx-hl { --btn-bg: var(--hl); --btn-fg: #1d1b2f; }
.btn-mx-sm { padding: .35rem .95rem; font-size: .9rem; box-shadow: 3px 3px 0 var(--shadow-c); }
.btn-mx[disabled], .btn-mx-ghost[disabled] { opacity: .6; cursor: not-allowed; }
.btn-mx .ico, .btn-mx-ghost .ico { width: 1.25em; height: 1.25em; }
.btn-arrow .ico { transition: transform .2s var(--ease); }
.btn-arrow:hover .ico { transform: translateX(-4px); }

/* ---------- Badges ---------- */
.badge-mx {
  display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .7rem;
  font-size: .78rem; font-weight: 700; line-height: 1.8;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink);
}
.badge-mx::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.badge-ready { background: var(--mint); color: #062e24; }
.badge-ready::before { background: #062e24; }
.badge-wip { background: var(--hl); color: #1d1b2f; }
.badge-wip::before { background: #1d1b2f; }
.badge-idea { background: transparent; border-style: dashed; color: var(--ink-2); }
.badge-plain::before { display: none; }

.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); direction: ltr; unicode-bidi: isolate; text-transform: uppercase;
  border-bottom: 2px dashed var(--accent); padding-bottom: 2px; margin-bottom: .9rem;
}

/* ---------- Navbar ---------- */
.mx-nav {
  position: sticky; top: 0; z-index: 1030; padding: .55rem 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid transparent;
  transition: border-color .25s, padding .25s var(--ease), background-color .3s;
}
.mx-nav.is-stuck { border-bottom-color: var(--ink); padding: .3rem 0; }
.mx-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 900; font-size: 1.35rem; }
.mx-brand:hover { color: var(--ink); }
.mx-brand svg { width: 38px; height: 38px; }
.mx-brand .brand-en { font-family: var(--font-mono); letter-spacing: -.02em; }
.mx-nav .nav-link {
  color: var(--ink); font-weight: 700; padding: .4rem .9rem !important; position: relative;
}
.mx-nav .nav-link::after {
  content: ""; position: absolute; inset-inline: .9rem; bottom: .1rem; height: 6px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q3 0 6 4 T12 4 T18 4 T24 4' fill='none' stroke='%23ff6b57' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 24px 6px;
  transition: opacity .2s;
}
.mx-nav .nav-link:hover::after, .mx-nav .nav-link.active::after { opacity: 1; }
.navbar-toggler { border: 2px solid var(--ink); border-radius: var(--radius-sk); color: var(--ink); padding: .3rem .55rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .ico { width: 1.6rem; height: 1.6rem; }
.theme-toggle {
  width: 42px; height: 42px; display: inline-grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%;
  transition: transform .25s var(--ease), background-color .3s;
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.06); background: var(--hl); color: #1d1b2f; }
.theme-toggle .i-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-bs-theme="dark"] .theme-toggle .i-moon { display: none; }
.mx-nav .navbar-collapse.show, .mx-nav .navbar-collapse.collapsing {
  padding: 1rem 0 .5rem;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 2px dashed color-mix(in srgb, var(--ink) 28%, transparent); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); margin-bottom: .8rem; }
.section-head p { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 3.5rem; position: relative; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 3.9rem); font-weight: 900; line-height: 1.35; margin-bottom: 1.2rem; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; margin-top: 1.6rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: 1.8rem; }
.hero-illo { max-width: 540px; margin-inline: auto; }
.hero-illo svg { width: 100%; height: auto; display: block; }
.hero-status {
  margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; width: fit-content; max-width: 100%; padding: .5rem 1rem;
  font-size: .9rem; color: var(--ink-2); border: 2px dashed var(--ink); border-radius: var(--radius-sk-2); background: transparent;
}

/* ---------- Cards ---------- */
.card-mx {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-sk);
  padding: 1.4rem; height: 100%; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card-mx:nth-child(even), .col:nth-child(even) > .card-mx { border-radius: var(--radius-sk-2); }
.card-mx.hover-lift:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: 5px 6px 0 var(--shadow-c); }
.card-mx h3, .card-mx h4 { font-size: 1.15rem; margin: .8rem 0 .4rem; }
.card-mx p { margin-bottom: .6rem; font-size: .95rem; }
.icon-box {
  flex: none;
  width: 56px; height: 56px; display: grid; place-items: center; color: var(--ink);
  background: var(--accent-soft); border: 2px solid var(--ink); border-radius: 14px 6px 14px 8px / 8px 14px 6px 14px;
}
.icon-box .ico { width: 30px; height: 30px; }
.icon-box.hl-bg { background: var(--hl); color: #1d1b2f; }
.icon-box.mint-bg { background: color-mix(in srgb, var(--mint) 35%, var(--surface)); }
.icon-box.coral-bg { background: color-mix(in srgb, var(--coral) 40%, var(--surface)); }

/* Product cards */
.product-card { display: flex; flex-direction: column; gap: .2rem; }
.product-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.product-card .pname { font-family: var(--font-mono); direction: ltr; text-align: start; unicode-bidi: isolate; font-size: 1.15rem; font-weight: 800; margin: .9rem 0 .1rem; }
.product-card .actions { margin-top: auto; padding-top: 1rem; }
.product-card.is-ready { background: color-mix(in srgb, var(--hl) 14%, var(--surface)); box-shadow: 5px 5px 0 var(--shadow-c); }
.product-card.is-ready::before {
  content: "✦ اولین محصول"; position: absolute; top: -13px; inset-inline-start: 18px; padding: 0 .6rem;
  font-size: .78rem; font-weight: 800; background: var(--coral); color: #1d1b2f; border: 2px solid var(--ink);
  border-radius: 999px; transform: rotate(-3deg);
}

/* Category catalog */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip {
  padding: .25rem 1rem; font-weight: 700; font-size: .92rem; color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; transition: background-color .15s, transform .15s;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.cat-card { display: flex; flex-direction: column; padding: 1.1rem; }
.cat-card .icon-box { width: 48px; height: 48px; }
.cat-card .icon-box .ico { width: 26px; height: 26px; }
.cat-card h3 { font-size: 1.02rem; margin: .7rem 0 .2rem; }
.cat-card p { font-size: .88rem; line-height: 1.8; margin-bottom: .7rem; }
.cat-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.cat-item.is-hidden { display: none; }

/* Integrated bricks */
.stack-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.brick-stack { display: grid; gap: .65rem; max-width: 30rem; }
.brick {
  display: flex; align-items: center; gap: .8rem; padding: .65rem 1rem; font-weight: 700;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-sk);
  animation: brickIn .45s var(--ease) both;
}
.brick:nth-child(2) { animation-delay: .06s; margin-inline-start: 1rem; }
.brick:nth-child(3) { animation-delay: .12s; margin-inline-start: .4rem; }
.brick:nth-child(4) { animation-delay: .18s; margin-inline-start: 1.4rem; }
.brick:nth-child(5) { animation-delay: .24s; }
.brick small { margin-inline-start: auto; font-family: var(--font-mono); direction: ltr; color: var(--ink-2); font-weight: 600; }
.brick.t-product { background: var(--accent); color: var(--accent-ink); }
.brick.t-product small { color: inherit; opacity: .85; }
.brick.t-template { background: var(--hl); color: #1d1b2f; }
.brick.t-template small { color: #1d1b2f; }
@keyframes brickIn { from { opacity: 0; transform: translateY(-14px) rotate(-2deg) } to { opacity: 1; transform: none } }
.legend { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; font-size: .88rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; vertical-align: -2px; margin-inline-end: .35rem; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-2); }
.check-list li::before {
  content: ""; flex: none; width: 1.2rem; height: 1.2rem; margin-top: .4rem; background: var(--mint);
  border: 2px solid var(--ink); border-radius: 50% 40% 50% 45%;
  clip-path: none;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  padding: .1rem .85rem; font-size: .88rem; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--ink); border-radius: 999px; transition: transform .15s var(--ease), background-color .15s;
}
.tag:hover { transform: rotate(-2deg) translateY(-2px); background: var(--hl); color: #1d1b2f; }
.tag.en { font-family: var(--font-mono); font-size: .8rem; direction: ltr; }
.tag.idea { border-style: dashed; background: transparent; color: var(--ink-2); }
.tag.idea::before { content: "✦ "; color: var(--coral); }

/* Mini feature rows (Go / Security / Dev) */
.mini-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.mini { display: flex; gap: .8rem; padding: .85rem 1rem; align-items: flex-start; }
.mini .ico { margin-top: .35rem; color: var(--accent); }
.mini b { display: block; font-size: .98rem; }
.mini span { font-size: .87rem; color: var(--ink-2); line-height: 1.75; display: block; }

/* Migration */
.mig-row {
  display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; margin-bottom: .9rem;
}
.mig-row .from { font-weight: 800; min-width: 5.5rem; font-family: var(--font-mono); direction: ltr; }
.mig-row .belt { flex: 1; height: 0; border-top: 3px dashed var(--ink); position: relative; opacity: .7; }
.mig-row .belt::after {
  content: ""; position: absolute; inset-inline-start: -3px; top: -10px; width: 14px; height: 14px;
  border-radius: 3px; background: var(--hl); border: 2px solid var(--ink);
  animation: belt 3.2s linear infinite;
}
.mig-row:nth-child(2) .belt::after { animation-delay: -.8s; }
.mig-row:nth-child(3) .belt::after { animation-delay: -1.6s; }
.mig-row:nth-child(4) .belt::after { animation-delay: -2.4s; }
@keyframes belt { from { inset-inline-start: 0; opacity: 0 } 10% { opacity: 1 } 90% { opacity: 1 } to { inset-inline-start: calc(100% - 14px); opacity: 0 } }
.mig-row .to { font-weight: 900; color: var(--accent); font-family: var(--font-mono); }

/* Code block */
.code-card {
  background: #17162a; color: #e9e6ff; border: 2px solid var(--ink); border-radius: var(--radius-sk);
  box-shadow: 4px 4px 0 var(--shadow-c); overflow: hidden; direction: ltr; text-align: left;
}
.code-card .bar { display: flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-bottom: 2px solid #3a3860; font-family: var(--font-mono); font-size: .78rem; color: #aaa6d8; }
.code-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.code-card .bar i:nth-child(2) { background: var(--hl); }
.code-card .bar i:nth-child(3) { background: var(--mint); }
.code-card .bar span { margin-inline-start: auto; }
.code-card pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--font-mono); font-size: .84rem; line-height: 1.75; color: #e9e6ff; }
.code-card .k { color: #ff9a8b } .code-card .s { color: #8ee3c4 } .code-card .c { color: #8c88b8 } .code-card .f { color: #ffd23f } .code-card .n { color: #b3adff }

/* Compare table */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-sk); overflow: hidden; }
.cmp th, .cmp td { padding: .8rem 1rem; border-bottom: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); vertical-align: top; font-size: .93rem; }
.cmp thead th { background: var(--ink); color: var(--bg); font-weight: 800; border-bottom: 0; }
.cmp thead th.mx { background: var(--accent); color: var(--accent-ink); }
.cmp td.mx { background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 800; white-space: nowrap; }
.cmp-wrap { overflow-x: auto; padding: 0 4px 6px 0; }
.cmp-wrap .cmp { min-width: 640px; }

/* Roadmap */
.road { position: relative; display: grid; gap: 1.1rem; padding-inline-start: 2.2rem; }
.road::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 11px; border-inline-start: 3px dashed var(--ink); opacity: .55; }
.phase { position: relative; }
.phase::before {
  content: ""; position: absolute; inset-inline-start: -2.2rem; top: 1.3rem; width: 24px; height: 24px;
  background: var(--surface); border: 3px solid var(--ink); border-radius: 50%;
}
.phase.now::before { background: var(--hl); box-shadow: 0 0 0 5px color-mix(in srgb, var(--hl) 35%, transparent); }
.phase .card-mx { padding: 1rem 1.2rem; }
.phase .ph-n { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); font-weight: 800; letter-spacing: .06em; direction: ltr; display: inline-block; }
.phase h3 { margin: .1rem 0 .2rem; font-size: 1.1rem; }
.phase p { margin: 0; font-size: .9rem; }
.phase.more .card-mx { border-style: dashed; background: transparent; }

/* Forms */
.form-mx { padding: 1.6rem; }
.form-mx label { font-weight: 700; font-size: .92rem; margin-bottom: .3rem; }
.form-mx .form-control, .form-mx .form-select {
  background: var(--bg); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px 5px 12px 6px / 6px 12px 5px 12px;
  padding: .65rem .9rem; font-family: var(--font-sans); transition: box-shadow .15s, transform .15s;
}
.form-mx .form-control::placeholder { color: color-mix(in srgb, var(--ink-2) 70%, transparent); }
.form-mx .form-control:focus, .form-mx .form-select:focus { box-shadow: 4px 4px 0 var(--accent); background: var(--bg); color: var(--ink); border-color: var(--ink); transform: translate(-1px, -1px); }
.form-mx .is-invalid { border-color: var(--coral); }
.form-mx .invalid-feedback { color: var(--coral); font-weight: 600; }
.form-ok { display: none; padding: 1rem; border: 2px dashed var(--mint); border-radius: var(--radius-sk); color: var(--ink); background: color-mix(in srgb, var(--mint) 14%, transparent); }
.form-ok.show { display: block; }
.contact-cta { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.2rem; color: var(--ink); }
.contact-cta:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow-c); }
.contact-cta { transition: transform .15s, box-shadow .15s; }
.placeholder-note { font-size: .8rem; color: var(--ink-2); border-bottom: 1px dotted var(--ink-2); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--bg); border-radius: var(--radius-sk); padding: 2.4rem 1.6rem; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--accent); position: relative; overflow: hidden; }
.cta-band h2 { color: var(--bg); font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta-band p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.cta-band .btn-mx-hl { box-shadow: 4px 4px 0 var(--accent); border-color: var(--bg); }

/* Footer */
.mx-footer { background: var(--bg-2); border-top: 2px solid var(--ink); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.mx-footer h5 { font-size: 1rem; margin-bottom: 1rem; }
.mx-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.mx-footer a { color: var(--ink-2); font-size: .93rem; }
.mx-footer a:hover { color: var(--accent); }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); transition: transform .15s, background-color .15s; }
.social a:hover { background: var(--hl); color: #1d1b2f; transform: translateY(-3px) rotate(-6deg); }
.footer-bottom { border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Modal */
.modal-content { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-sk); box-shadow: 6px 6px 0 var(--shadow-c); }
.modal-header, .modal-footer { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
[data-bs-theme="dark"] .btn-close { filter: invert(1); }

/* Device preview (site page) */
.device-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.device-bar .sep { flex: 1; }
.browser { margin-inline: auto; transition: max-width .35s var(--ease); max-width: 100%; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px 6px 14px 8px / 8px 14px 6px 14px; box-shadow: 6px 6px 0 var(--shadow-c); overflow: hidden; }
.browser[data-device="tablet"] { max-width: 640px; }
.browser[data-device="mobile"] { max-width: 340px; }
.browser .chrome { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-bottom: 2px solid var(--ink); background: var(--bg-2); }
.browser .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); border: 1.5px solid var(--ink); }
.browser .chrome i:nth-child(2) { background: var(--hl); } .browser .chrome i:nth-child(3) { background: var(--mint); }
.browser .url { flex: 1; direction: ltr; text-align: left; font-family: var(--font-mono); font-size: .75rem; padding: .1rem .7rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--bg); color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wf { padding: 1.2rem; min-height: 360px; background: var(--bg); }
.wf[hidden] { display: none; }
.wf .bar-line { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 22%, transparent); margin: .5rem 0; }
.wf .bar-line.w60 { width: 60%; } .wf .bar-line.w80 { width: 80%; } .wf .bar-line.w40 { width: 40%; } .wf .bar-line.w100 { width: 100%; }
.wf .blk { border: 2px solid var(--ink); border-radius: 10px 4px 10px 6px / 6px 10px 4px 10px; padding: .8rem; background: var(--surface); }
.wf .blk.img { min-height: 90px; background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--ink) 9%, transparent) 8px 10px); display: grid; place-items: center; color: var(--ink-2); font-size: .75rem; }
.wf .blk.acc { background: var(--accent); border-color: var(--ink); }
.wf .blk.hlb { background: var(--hl); }
.wf h6 { font-weight: 800; font-size: 1rem; margin: 0 0 .3rem; }
.wf .wf-nav { display: flex; align-items: center; gap: .8rem; padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.wf .wf-nav .logo { width: 70px; height: 14px; background: var(--ink); border-radius: 99px; }
.wf .wf-nav .nv { width: 36px; height: 8px; background: color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 99px; }
.wf .wf-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); }
.browser[data-device="mobile"] .wf-grid { grid-template-columns: 1fr; }
.browser[data-device="mobile"] .wf-nav .nv { display: none; }
.browser[data-device="mobile"] .wf-split { grid-template-columns: 1fr !important; }
.wf .wf-split { display: grid; gap: 1rem; grid-template-columns: 1.2fr 1fr; align-items: center; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; } .js .rv.d2 { transition-delay: .16s; } .js .rv.d3 { transition-delay: .24s; }

/* Breadcrumb */
.crumb { font-size: .88rem; color: var(--ink-2); display: flex; gap: .5rem; flex-wrap: wrap; padding-top: 1.5rem; }
.crumb a { color: var(--ink-2); border-bottom: 1px dashed; }
.crumb a:hover { color: var(--accent); }

/* Stat */
.stat { text-align: center; padding: 1rem; }
.stat b { display: block; font-size: 2rem; font-family: var(--font-mono); color: var(--accent); direction: ltr; }
.stat span { font-size: .9rem; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media print { .mx-nav, .theme-toggle { display: none; } }

/* Category cards are clickable */
.cat-card { cursor: pointer; }
.cat-card:focus-visible { outline: 3px dashed var(--accent); outline-offset: 3px; }
#soonModal .brick-stack { max-width: none; }
#soonModal .brick:nth-child(n) { margin-inline-start: 0; }
