/* ==========================================================================
   Poodle — the public site, second pass.
   Built around the paw: one warm orange taken from the logo, a near-black
   canvas, soft glows, hairline borders and generous space. Everything here
   reads the same tokens as the rest of the site, so light mode follows.
   ========================================================================== */

:root { --ease: cubic-bezier(.2, .8, .2, 1); --orange: 24 100% 50%; }

/* ---------------------------------------------------------------- header - */
.topbar { transition: background-color .25s, box-shadow .25s, border-color .25s; }
body.scrolled .topbar { background: hsl(var(--background) / .82); box-shadow: 0 10px 30px -20px hsl(0 0% 0% / .8); }
.brand-mark { width: 1.875rem; height: 1.875rem; }
.brand-ver {
  margin-inline-start: -0.25rem; padding: 0.125rem 0.5rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.6875rem; color: hsl(var(--primary));
  background: hsl(var(--primary) / .1); border: 1px solid hsl(var(--primary) / .25);
}
.brand-ver:hover { text-decoration: none; background: hsl(var(--primary) / .18); }
.cmdk-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.25rem; padding: 0 0.5rem 0 0.75rem;
  border: 1px solid hsl(var(--border)); border-radius: 0.625rem; background: hsl(var(--secondary) / .6);
  color: hsl(var(--muted-foreground)); font: inherit; font-size: 0.8125rem; cursor: pointer; min-width: 11rem;
  transition: border-color .15s, color .15s;
}
.cmdk-btn:hover { border-color: hsl(var(--primary) / .45); color: hsl(var(--foreground)); }
.cmdk-btn span { flex: 1; text-align: start; }
.cmdk-btn kbd, .foot-link kbd {
  font-family: var(--font-mono); font-size: 0.625rem; padding: 0.125rem 0.375rem; border-radius: 0.3125rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--background) / .6); color: hsl(var(--muted-foreground));
}
.nav-cta { display: inline-flex; gap: 0.375rem; }

.read-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 80; pointer-events: none; }
.read-progress i {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(38 100% 60%));
  box-shadow: 0 0 10px hsl(var(--primary));
}
html[dir="rtl"] .read-progress i { transform-origin: right; }

/* ------------------------------------------------------------------ hero - */
.h-hero { position: relative; padding: 4.5rem 0 4rem; text-align: center; }
.h-hero .wrap { display: flex; flex-direction: column; align-items: center; }

.h-emblem { position: relative; width: 15rem; height: 15rem; display: grid; place-items: center; margin-bottom: 1.5rem; }
.h-emblem img {
  position: relative; z-index: 2; width: 8.25rem; height: 8.25rem;
  filter: drop-shadow(0 18px 40px hsl(var(--orange) / .55)) drop-shadow(0 0 2px hsl(var(--orange) / .6));
  animation: paw-float 6s var(--ease) infinite;
}
.h-emblem::before {
  content: ""; position: absolute; inset: 15%; border-radius: 999px; z-index: 1;
  background: radial-gradient(closest-side, hsl(var(--orange) / .35), transparent 75%);
  animation: paw-breathe 6s ease-in-out infinite;
}
.h-ring { position: absolute; inset: 0; border-radius: 999px; border: 1px solid hsl(var(--primary) / .18); }
.h-ring.r2 { inset: 12%; border-color: hsl(var(--primary) / .14); border-style: dashed; animation: spin 60s linear infinite; }
.h-ring.r3 { inset: -14%; border-color: hsl(var(--foreground) / .06); }
.h-ring.r1::after {
  content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 999px;
  background: hsl(var(--primary)); box-shadow: 0 0 12px 2px hsl(var(--primary));
}
.h-ring.r1 { animation: spin 18s linear infinite; }
.h-orbit {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap;
  padding: 0.3125rem 0.625rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 550;
  background: hsl(var(--card) / .85); border: 1px solid hsl(var(--border)); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -14px hsl(0 0% 0% / .8); animation: chip-float 7s ease-in-out infinite;
}
.h-orbit i { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: hsl(var(--teal)); box-shadow: 0 0 8px hsl(var(--teal)); }
.h-orbit.o1 { top: 8%; left: -18%; animation-delay: -1s; }
.h-orbit.o2 { top: 14%; right: -20%; animation-delay: -3s; }
.h-orbit.o3 { bottom: 14%; left: -14%; animation-delay: -5s; }
.h-orbit.o4 { bottom: 8%; right: -10%; animation-delay: -2s; }

@keyframes paw-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes paw-breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.h-badge {
  display: inline-flex; align-items: center; gap: 0.625rem; margin-bottom: 1.5rem; padding: 0.3125rem 0.75rem 0.3125rem 0.3125rem;
  border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / .7); backdrop-filter: blur(8px);
  font-size: 0.8125rem; color: hsl(var(--muted-foreground)); transition: border-color .2s;
}
html[dir="rtl"] .h-badge { padding: 0.3125rem 0.3125rem 0.3125rem 0.75rem; }
.h-badge:hover { text-decoration: none; border-color: hsl(var(--primary) / .5); color: hsl(var(--foreground)); }
.h-badge b { color: hsl(var(--foreground)); font-weight: 600; }
.h-badge-tag { padding: 0.125rem 0.5rem; border-radius: 999px; background: hsl(var(--primary)); color: #fff; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
html[dir="rtl"] .h-badge svg { transform: scaleX(-1); }

.h-title {
  max-width: 22ch; margin: 0 auto; font-size: clamp(2.5rem, 6.6vw, 5rem); line-height: 1.04; font-weight: 750; letter-spacing: -0.05em;
  background: linear-gradient(180deg, hsl(var(--foreground)) 35%, hsl(var(--foreground) / .58));
  -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance;
}
html[dir="rtl"] .h-title { line-height: 1.3; letter-spacing: 0; }
.h-sub { max-width: 40rem; margin: 1.5rem auto 0; font-size: clamp(1.0625rem, 2vw, 1.3125rem); color: hsl(var(--muted-foreground)); line-height: 1.6; text-wrap: balance; }
.h-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.h-primary { min-width: 15rem; }
.h-meta { margin: 0.875rem 0 0; font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.h-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; list-style: none; padding: 0; margin: 2.5rem 0 0; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.h-facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.h-facts li::before {
  content: ""; width: 1rem; height: 1rem; border-radius: 999px; flex: none;
  background: hsl(var(--teal) / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.625rem no-repeat;
}
.h-facts b { color: hsl(var(--foreground)); font-weight: 600; }

/* ----------------------------------------------------------------- stats - */
.h-stats { padding: 0 0 1rem; border: 0; }
.h-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid hsl(var(--border)); border-radius: 1.25rem;
  background: linear-gradient(180deg, hsl(var(--card) / .9), hsl(var(--card) / .5)); overflow: hidden;
}
.h-stat { padding: 1.75rem 1.5rem; text-align: center; border-inline-end: 1px solid hsl(var(--border)); }
.h-stat:last-child { border-inline-end: 0; }
.h-stat b { display: flex; align-items: center; justify-content: center; gap: 0.625rem; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.h-stat > span { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.live-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: hsl(var(--teal)); box-shadow: 0 0 0 0 hsl(var(--teal) / .6); animation: live 1.8s infinite; flex: none; display: inline-block; }
@keyframes live { 70% { box-shadow: 0 0 0 0.5rem hsl(var(--teal) / 0); } 100% { box-shadow: 0 0 0 0 hsl(var(--teal) / 0); } }

/* -------------------------------------------------------------- sections - */
.h-section { padding: 6rem 0; border-bottom: 0; }
.h-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.h-head.left { text-align: start; margin: 0; }
.h-head h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.12; margin-top: 0.875rem; text-wrap: balance; }
.h-head .lead { margin-top: 1rem; font-size: 1.0625rem; }
.h-kicker { margin: 0.75rem 0 0; font-weight: 600; color: hsl(var(--foreground) / .85); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bento-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem; border-radius: 1.375rem; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, hsl(var(--card)), hsl(var(--card) / .78));
  border: 1px solid hsl(var(--border)); transition: border-color .25s, transform .25s var(--ease);
}
.bento-card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(28rem 14rem at 20% -10%, hsl(var(--primary) / .16), transparent 65%);
}
.bento-card:hover { border-color: hsl(var(--primary) / .35); transform: translateY(-3px); }
.bento-card:hover::before { opacity: 1; }
.bento-card.span-2 { grid-column: span 2; }
.bento-ic {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; border-radius: 0.75rem;
  background: hsl(var(--primary) / .12); color: hsl(var(--primary)); border: 1px solid hsl(var(--primary) / .2);
}
.bento-ic .icon { width: 1.25rem; height: 1.25rem; }
.bento-card h3 { font-size: 1.1875rem; letter-spacing: -0.02em; }
.bento-card p { margin: 0.5rem 0 0; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; line-height: 1.65; }

.stack-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; }
.stack-tile {
  position: relative; display: grid; gap: 0.125rem; padding: 1rem; border-radius: 0.875rem;
  background: hsl(var(--background) / .55); border: 1px solid hsl(var(--border));
}
.stack-tile .dot { position: absolute; top: 0.875rem; inset-inline-end: 0.875rem; width: 0.4375rem; height: 0.4375rem; border-radius: 999px; background: hsl(var(--teal)); box-shadow: 0 0 10px hsl(var(--teal)); }
.stack-tile b { font-size: 0.9375rem; }
.stack-tile .mono { font-size: 0.75rem; color: hsl(var(--primary)); }
.stack-tile em { font-style: normal; font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.5; margin-top: 0.25rem; }

.port-list { display: grid; gap: 0.375rem; }
.port-row { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; border-radius: 0.625rem; background: hsl(var(--background) / .55); border: 1px solid hsl(var(--border)); font-size: 0.8125rem; }
.port-row i { width: 0.4375rem; height: 0.4375rem; border-radius: 999px; background: hsl(var(--teal)); flex: none; }
.port-row.warn i { background: hsl(var(--primary)); box-shadow: 0 0 8px hsl(var(--primary)); }
.port-row code { flex: 1; font-size: 0.75rem; color: hsl(var(--foreground) / .85); }
.port-row b { font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.port-row.warn b { color: hsl(var(--primary)); }

.fw-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.fw-chips span { padding: 0.375rem 0.625rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 550; background: hsl(var(--background) / .55); border: 1px solid hsl(var(--border)); }
.fw-chips span:first-child { border-color: hsl(var(--primary) / .45); color: hsl(var(--primary)); }

.share-url { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 0.875rem; border-radius: 0.75rem; background: hsl(var(--background) / .55); border: 1px solid hsl(var(--border)); overflow: hidden; }
.share-url code { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: hsl(var(--muted-foreground)); }
.share-url b { color: hsl(var(--foreground)); font-weight: 600; }

.upd { padding: 0.875rem 1rem; border-radius: 0.75rem; background: hsl(var(--background) / .55); border: 1px solid hsl(var(--border)); }
.upd-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }
.upd-bar { height: 0.375rem; border-radius: 999px; background: hsl(var(--secondary)); overflow: hidden; }
.upd-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, hsl(var(--primary)), hsl(38 100% 60%)); transform-origin: left; animation: upd 3.2s var(--ease) infinite; }
@keyframes upd { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }

.bento-langs { flex-direction: row; align-items: flex-end; }
.lang-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.lang-pills span { padding: 0.5rem 0.875rem; border-radius: 0.75rem; font-size: 0.9375rem; font-weight: 600; background: hsl(var(--background) / .55); border: 1px solid hsl(var(--border)); font-family: var(--font-arabic); }
.lang-pills span[dir="ltr"] { font-family: var(--font-sans); }
.lang-pills span:nth-child(2) { border-color: hsl(var(--primary) / .45); color: hsl(var(--primary)); }

/* steps */
.h-steps-band { background: linear-gradient(180deg, transparent, hsl(var(--card) / .35), transparent); }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; position: relative; }
.h-steps::before {
  content: ""; position: absolute; top: 1.75rem; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / .5), transparent);
}
.h-steps li { position: relative; padding: 0 1rem; text-align: center; }
.h-step-n {
  display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; border-radius: 1rem;
  font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 600; color: hsl(var(--primary));
  background: hsl(var(--card)); border: 1px solid hsl(var(--primary) / .35); box-shadow: 0 0 0 6px hsl(var(--background)), 0 12px 30px -12px hsl(var(--primary) / .7);
  position: relative;
}
.h-steps h3 { font-size: 1.1875rem; }
.h-steps p { margin: 0.5rem auto 0; max-width: 20rem; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }

/* questions */
.h-faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; align-items: start; }
.h-faq-wrap .btn { margin-top: 1.5rem; }
.h-faq { display: grid; gap: 0.625rem; }
.h-faq details { border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--card) / .7); transition: border-color .2s, background-color .2s; }
.h-faq details[open] { border-color: hsl(var(--primary) / .35); background: hsl(var(--card)); }
.h-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.125rem 1.25rem; cursor: pointer; list-style: none; font-weight: 600; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary .icon { flex: none; color: hsl(var(--muted-foreground)); transition: transform .25s var(--ease), color .2s; }
.h-faq details[open] summary .icon { transform: rotate(45deg); color: hsl(var(--primary)); }
.h-faq details p { margin: 0; padding: 0 1.25rem 1.25rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* the last word */
.h-final { padding: 2rem 0 6rem; border: 0; }
.h-final-card {
  position: relative; overflow: hidden; text-align: center; padding: 4rem 2rem; border-radius: 1.75rem; isolation: isolate;
  background: linear-gradient(180deg, hsl(var(--card)), hsl(var(--card) / .7)); border: 1px solid hsl(var(--primary) / .3);
}
.h-final-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40rem 18rem at 50% 0%, hsl(var(--primary) / .22), transparent 70%),
    repeating-linear-gradient(0deg, hsl(var(--foreground) / .03) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, hsl(var(--foreground) / .03) 0 1px, transparent 1px 40px);
}
.h-final-card img { filter: drop-shadow(0 14px 30px hsl(var(--orange) / .6)); }
.h-final-card h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); margin-top: 1.25rem; }
.h-final-card .lead { max-width: 34rem; margin: 0.75rem auto 0; }
.h-final .news { margin-top: 1.5rem; }

/* reveal */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.will-reveal.in { opacity: 1; transform: none; }
.bento > .will-reveal:nth-child(2), .h-steps > .will-reveal:nth-child(2), .h-stats-grid > .will-reveal:nth-child(2) { transition-delay: .08s; }
.bento > .will-reveal:nth-child(3), .h-steps > .will-reveal:nth-child(3), .h-stats-grid > .will-reveal:nth-child(3) { transition-delay: .16s; }
.bento > .will-reveal:nth-child(4), .h-stats-grid > .will-reveal:nth-child(4) { transition-delay: .24s; }
.bento > .will-reveal:nth-child(5) { transition-delay: .32s; }
.bento > .will-reveal:nth-child(6) { transition-delay: .4s; }

/* ---------------------------------------------------------------- footer - */
.foot-hero {
  display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem 2rem; margin-bottom: 3rem; border-radius: 1.25rem;
  background: linear-gradient(90deg, hsl(var(--primary) / .12), hsl(var(--card)) 60%); border: 1px solid hsl(var(--primary) / .25);
}
html[dir="rtl"] .foot-hero { background: linear-gradient(270deg, hsl(var(--primary) / .12), hsl(var(--card)) 60%); }
.foot-paw { width: 3.5rem; height: 3.5rem; flex: none; filter: drop-shadow(0 8px 20px hsl(var(--orange) / .55)); }
.foot-hero > div { flex: 1; display: grid; }
.foot-hero b { font-size: 1.25rem; letter-spacing: -0.02em; }
.foot-hero span { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }
.foot-hero .btn span { color: inherit; font-size: inherit; }
.sys-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding: 0.375rem 0.75rem; border-radius: 999px;
  border: 1px solid hsl(var(--border)); font-size: 0.8125rem; color: hsl(var(--foreground) / .85); background: hsl(var(--card));
}
.sys-pill:hover { text-decoration: none; border-color: hsl(var(--teal) / .5); }
.sys-pill i { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: hsl(var(--teal)); box-shadow: 0 0 8px hsl(var(--teal)); }
.sys-pill[data-state="warn"] i { background: hsl(var(--warning)); box-shadow: 0 0 8px hsl(var(--warning)); }
.foot-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0; border: 0; background: none; font: inherit; font-size: 0.875rem; color: hsl(var(--muted-foreground)); cursor: pointer; text-align: start; }
.foot-link:hover { color: hsl(var(--primary)); }

.to-top {
  position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 50; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.875rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / .9); color: hsl(var(--foreground)); backdrop-filter: blur(10px); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease), border-color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: hsl(var(--primary) / .5); color: hsl(var(--primary)); }

/* ------------------------------------------------------- search palette - */
.cmdk-scrim {
  position: fixed; inset: 0; z-index: 2147483100; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 1rem 1rem;
  background: hsl(240 10% 3% / .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .16s;
}
.cmdk-scrim.in { opacity: 1; }
.cmdk-scrim[hidden] { display: none; }
html.cmdk-open { overflow: hidden; }
.cmdk {
  width: 100%; max-width: 38rem; overflow: hidden; border-radius: 1.125rem;
  background: hsl(var(--popover)); color: hsl(var(--popover-foreground)); border: 1px solid hsl(var(--border));
  box-shadow: 0 40px 100px -30px hsl(0 0% 0% / .8), 0 0 0 1px hsl(var(--primary) / .08);
  transform: translateY(-8px) scale(.98); transition: transform .18s var(--ease);
}
.cmdk-scrim.in .cmdk { transform: none; }
.cmdk-head { display: flex; align-items: center; gap: 0.75rem; padding: 0 1rem; border-bottom: 1px solid hsl(var(--border)); }
.cmdk-head svg { width: 1.125rem; height: 1.125rem; flex: none; stroke: hsl(var(--muted-foreground)); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.cmdk-head input { flex: 1; height: 3.5rem; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0; font-size: 1rem; color: inherit; }
.cmdk-head input::-webkit-search-cancel-button { display: none; }
.cmdk-head kbd { font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.1875rem 0.4375rem; border-radius: 0.375rem; border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); cursor: pointer; }
.cmdk-list { max-height: min(26rem, 55vh); overflow-y: auto; padding: 0.5rem; }
.cmdk-group { padding: 0.625rem 0.75rem 0.375rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
html[dir="rtl"] .cmdk-group { font-family: var(--font-arabic); text-transform: none; letter-spacing: 0; }
.cmdk-item {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.625rem 0.75rem; border: 0; border-radius: 0.625rem;
  background: none; color: inherit; font: inherit; font-size: 0.9375rem; text-align: start; cursor: pointer;
}
.cmdk-item:hover { text-decoration: none; }
.cmdk-item.on { background: hsl(var(--primary) / .12); color: hsl(var(--primary)); }
.cmdk-ic { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; background: hsl(var(--secondary)); flex: none; }
.cmdk-item.on .cmdk-ic { background: hsl(var(--primary) / .18); }
.cmdk-ic svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cmdk-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-meta { font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.cmdk-empty { padding: 2.5rem 1rem; text-align: center; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.cmdk-foot { padding: 0.625rem 1rem; border-top: 1px solid hsl(var(--border)); font-size: 0.75rem; color: hsl(var(--muted-foreground)); background: hsl(var(--background) / .4); }

/* -------------------------------------------------------- download page - */
.card.is-yours { border-color: hsl(var(--primary) / .7) !important; box-shadow: 0 0 0 3px hsl(var(--primary) / .15), 0 24px 60px -30px hsl(var(--primary)); }
.yours-tag { align-self: flex-start; padding: 0.1875rem 0.5rem; border-radius: 0.375rem; font-size: 0.6875rem; font-weight: 650; color: #fff; background: hsl(var(--primary)); display: none; }
.card.is-yours .yours-tag { display: inline-block; }
.sha {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.5rem 0.5rem 0.75rem; border-radius: 0.625rem;
  background: hsl(var(--background) / .6); border: 1px solid hsl(var(--border)); font-size: 0.75rem;
}
html[dir="rtl"] .sha { padding: 0.5rem 0.75rem 0.5rem 0.5rem; }
.sha b { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; color: hsl(var(--muted-foreground)); font-weight: 500; flex: none; }
.sha code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; color: hsl(var(--foreground) / .85); }
.sha button { flex: none; height: 1.75rem; padding: 0 0.625rem; border-radius: 0.4375rem; border: 1px solid hsl(var(--border)); background: hsl(var(--secondary)); color: hsl(var(--foreground)); font: inherit; font-size: 0.6875rem; cursor: pointer; }
.sha button .done { display: none; }
.sha button.copied { border-color: hsl(var(--teal) / .5); color: hsl(var(--teal)); }
.sha button.copied .idle { display: none; }
.sha button.copied .done { display: inline; }
.req { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin: 0; }
.verify { margin-top: 2rem; padding: 1.5rem; border-radius: 1.125rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / .7); }
.verify h3 { font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.verify p { margin: 0.375rem 0 0.75rem; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.verify pre { margin: 0; padding: 0.875rem 1rem; border-radius: 0.75rem; background: hsl(var(--background)); border: 1px solid hsl(var(--border)); font-size: 0.8125rem; overflow-x: auto; direction: ltr; text-align: left; }
.verify pre span { color: hsl(var(--primary)); }

/* ---------------------------------------------------------- status page - */
.st-hero { padding: 4.5rem 0 2rem; text-align: center; }
.st-banner {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; border-radius: 999px; margin-top: 1.5rem;
  border: 1px solid hsl(var(--teal) / .4); background: hsl(var(--teal) / .1); color: hsl(var(--teal)); font-weight: 600;
}
.st-banner[data-state="warn"] { border-color: hsl(var(--warning) / .4); background: hsl(var(--warning) / .1); color: hsl(var(--warning)); }
.st-banner i { width: 0.625rem; height: 0.625rem; border-radius: 999px; background: currentColor; box-shadow: 0 0 12px currentColor; animation: live 1.8s infinite; }
.st-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: start; padding-bottom: 5rem; }
.st-card { border: 1px solid hsl(var(--border)); border-radius: 1.25rem; background: linear-gradient(180deg, hsl(var(--card)), hsl(var(--card) / .8)); overflow: hidden; }
.st-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid hsl(var(--border)); }
.st-card-head h2 { font-size: 1.0625rem; }
.st-card-head span { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.st-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid hsl(var(--border) / .7); }
.st-row:last-child { border-bottom: 0; }
.st-row > div { flex: 1; min-width: 0; }
.st-row b { display: block; font-weight: 600; }
.st-row small { color: hsl(var(--muted-foreground)); font-size: 0.8125rem; }
.st-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 550; border: 1px solid hsl(var(--border)); background: hsl(var(--secondary)); white-space: nowrap; }
.st-pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: hsl(var(--muted-foreground)); }
.st-pill[data-state="ok"]::before { background: hsl(var(--teal)); box-shadow: 0 0 8px hsl(var(--teal)); }
.st-pill[data-state="warn"]::before { background: hsl(var(--warning)); box-shadow: 0 0 8px hsl(var(--warning)); }
.st-pill .t { display: none; }
.st-pill[data-state="ok"] .t-ok, .st-pill[data-state="warn"] .t-warn, .st-pill[data-state="off"] .t-off { display: inline; }
.st-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.st-metric { padding: 1.25rem 1.5rem; border-inline-end: 1px solid hsl(var(--border) / .7); }
.st-metric:last-child { border-inline-end: 0; }
.st-metric b { display: flex; align-items: center; gap: 0.5rem; font-size: 1.625rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-metric span { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.st-chart { padding: 1rem 1.5rem 1.25rem; border-top: 1px solid hsl(var(--border) / .7); }
.st-chart svg { display: block; width: 100%; height: 11rem; overflow: visible; }
.st-chart .grid line { stroke: hsl(var(--border)); stroke-dasharray: 2 4; }
.st-chart .axis text { fill: hsl(var(--muted-foreground)); font-size: 11px; font-family: var(--font-mono); }
.st-ver { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.5rem; border-bottom: 1px solid hsl(var(--border) / .7); }
.st-ver:last-child { border-bottom: 0; }
.st-ver > svg { width: 1.5rem; height: 1.5rem; }
.st-ver b { flex: 1; }
.st-api { padding: 1.25rem 1.5rem; }
.st-api p { margin: 0 0 0.625rem; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.st-api code { display: block; padding: 0.75rem 0.875rem; border-radius: 0.625rem; background: hsl(var(--background)); border: 1px solid hsl(var(--border)); font-size: 0.8125rem; direction: ltr; text-align: left; overflow-x: auto; }

/* ------------------------------------------------------------ responsive - */
@media (max-width: 64rem) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.span-2 { grid-column: span 2; }
  .stack-tiles { grid-template-columns: repeat(2, 1fr); }
  .h-faq-wrap, .st-grid { grid-template-columns: 1fr; }
  .cmdk-btn { min-width: 0; }
  .cmdk-btn span, .cmdk-btn kbd { display: none; }
  .cmdk-btn { padding: 0; width: 2.25rem; justify-content: center; }
}
@media (max-width: 48rem) {
  .h-hero { padding: 3rem 0 2.5rem; }
  .h-emblem { width: 11rem; height: 11rem; }
  .h-emblem img { width: 6rem; height: 6rem; }
  .h-orbit { display: none; }
  .h-stats-grid { grid-template-columns: 1fr 1fr; }
  .h-stat:nth-child(2) { border-inline-end: 0; }
  .h-stat:nth-child(-n+2) { border-bottom: 1px solid hsl(var(--border)); }
  .h-section { padding: 4rem 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: auto; }
  .bento-langs { flex-direction: column; align-items: stretch; }
  .lang-pills { justify-content: flex-start; }
  .h-steps { grid-template-columns: 1fr; gap: 2rem; }
  .h-steps::before { display: none; }
  .foot-hero { flex-direction: column; text-align: center; padding: 1.5rem; }
  .foot-hero .btn { width: 100%; }
  .st-metrics { grid-template-columns: 1fr; }
  .st-metric { border-inline-end: 0; border-bottom: 1px solid hsl(var(--border) / .7); }
  .brand-ver { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .h-emblem img, .h-emblem::before, .h-ring, .h-orbit, .upd-bar i, .live-dot { animation: none !important; }
  .will-reveal { opacity: 1; transform: none; }
}
.nav a, .nav-trigger { white-space: nowrap; }
@media (max-width: 80rem) { .nav { margin-inline-start: 0.5rem; } .nav a, .nav-trigger { padding-inline: 0.5rem !important; } }
.bento-card.span-3 { grid-column: 1 / -1; }
.bento-langs .bento-copy { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
.bento-langs .bento-ic { grid-row: span 2; margin: 0; width: 3rem; height: 3rem; }
.bento-langs p { margin-top: 0.25rem; max-width: 36rem; }
@media (max-width: 48rem) { .bento-card.span-3 { grid-column: auto; } .bento-langs .bento-copy { display: block; } .bento-langs .bento-ic { margin-bottom: 1rem; } }
@media (max-width: 40rem) {
  .topbar .wrap { gap: 0.375rem; }
  .nav-cta { display: none !important; }
  .lang-btn > span, .lang-btn > svg:last-child { display: none; }
  .lang-btn { width: 2.25rem; padding: 0; justify-content: center; }
}
.dl-grid > *, .card { min-width: 0; }
.sha code { display: block; }

/* ---------------------------------------- home page builder (admin-made bits) */
.h-stats-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.h-steps { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.hb-grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.hb-card { justify-content: flex-start; }
.hb-card-link { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: auto; font-size: 0.875rem; font-weight: 550; color: hsl(var(--primary)); }
.hb-card-link:hover { gap: 0.625rem; }
.hb-text { max-width: 46rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hb-text h2 { margin: 0; font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.12; text-wrap: balance; }
.hb-text .lead { margin: 0; font-size: 1.0625rem; }
.hb-text .btn { margin-top: 0.75rem; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
@media (max-width: 64rem) { .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 48rem) {
  .h-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-steps, .hb-grid { grid-template-columns: minmax(0, 1fr); }
}

/* a very long word in a question or answer wraps instead of widening the page */
.h-faq-wrap > *, .h-faq, .h-faq details { min-width: 0; }
.h-faq summary, .h-faq p { overflow-wrap: anywhere; }
/* the same for any text an admin types: a page never scrolls sideways */
body { overflow-x: clip; }
section :is(h1, h2, h3, h4, p, li, summary, blockquote, dd, dt, .eyebrow) { overflow-wrap: anywhere; }
