/* ============================================================
   NAZARBAN — Atelier
   Warm sand paper · serif authority · indigo as a whisper.
   Shared stylesheet for the full marketing site.
   ============================================================ */

/* ---------- type ---------- */
:root {
  --serif:    'Bodoni Moda', 'Times New Roman', serif;   /* wordmark, accents */
  --display:  'Newsreader', Georgia, serif;              /* headlines */
  --sans:     'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, monospace;

  /* ---------- palette: warm sand ---------- */
  --paper:    #ECE2D0;
  --paper-2:  #E4D9C4;
  --card:     #F6EEDF;
  --sand:     #DECFB2;
  --ink:      #2A2418;
  --ink-2:    #4E4534;
  --muted:    #756A52;
  --dim:      #A99B7C;
  --line:     rgba(70,54,30,0.15);
  --line-2:   rgba(70,54,30,0.26);

  /* ---------- indigo, used as a whisper ---------- */
  --accent:     #5064B4;
  --acc-text:   #46569b;
  --acc-tint:   rgba(80,100,180,0.09);
  --acc-line:   rgba(80,100,180,0.34);

  --wrap: 1180px;
  --r: 13px;
  --r-sm: 7px;
}

* { box-sizing: border-box; }

/* Set by the inline snippet in each page's <head> and cleared by js/i18n.js
   once the Persian strings are in. It hides an English first paint on a site
   that defaults to Farsi. `visibility` rather than `display` so the layout is
   already measured when it lifts, and the snippet's own timeout clears the
   class even if the scripts never load. */
html.i18n-boot body { visibility: hidden; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--acc-tint); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 760px; }

/* ---------- shared text atoms ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--acc-text);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--acc-line); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ''; width: 28px; height: 1px; background: var(--acc-line); }

h1, h2, h3 {
  font-family: var(--display); font-weight: 500; color: var(--ink);
  letter-spacing: -.005em; line-height: 1.1; margin: 0; text-wrap: balance;
}
em, .em { font-style: italic; color: var(--acc-text); }

.lead {
  font-size: clamp(16px, 1.6vw, 19px); color: var(--muted);
  line-height: 1.7; max-width: 56ch; margin: 0;
}

.lab {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 17px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand .mk { width: 40px; height: 40px; flex: 0 0 40px; color: var(--accent); display: grid; place-items: center; }
.brand .mk svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 16px; letter-spacing: .2em; color: var(--ink); }
.brand-tag { font-family: var(--mono); font-size: 8px; letter-spacing: .26em; color: var(--dim); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--serif); font-size: 15.5px; font-weight: 400; color: var(--muted);
  text-decoration: none; padding: 8px 15px; border-radius: var(--r-sm);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-links a.on { color: var(--ink); }
.nav-links a.on::after {
  content: ''; display: block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin: 3px auto 0;
}

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); width: 42px; height: 42px; cursor: pointer;
  color: var(--ink); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s, color .18s;
}
.btn svg { width: 16px; height: 16px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(42,36,24,.18); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 17px; font-size: 13.5px; }
/* The purchase button. Indigo rather than ink, so "buy" is visibly a different
   act from the page's other calls to action. 5.5:1 on white — AA at this size. */
.btn-tg { background: var(--accent); color: #fff; }
.btn-tg:hover { background: var(--acc-text); }
.btn-tg svg { width: 15px; height: 15px; }

.arrowlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  color: var(--acc-text); text-decoration: none;
}
.arrowlink svg { width: 16px; height: 16px; transition: transform .2s; }
.arrowlink:hover svg { transform: translateX(4px); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.sec { padding: 92px 0; }
.sec-sm { padding: 64px 0; }
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 60ch; }
.sec-head.center { align-items: center; text-align: center; margin: 0 auto; }
.sec-head h2 { font-size: clamp(32px, 4vw, 46px); }
.sec-head p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   HERO — centered editorial
   ============================================================ */
.hero { padding: 96px 0 84px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -20%, var(--acc-tint) 0%, transparent 55%);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); max-width: 17ch; line-height: 1.06; }
.hero .lead { text-align: center; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* service index under hero */
.index {
  display: flex; gap: 0; margin-top: 22px; border-top: 1px solid var(--line);
  width: 100%; max-width: 760px;
}
.index .it { flex: 1; padding: 22px 14px 4px; border-right: 1px solid var(--line); }
.index .it:last-child { border-right: 0; }
.index .it .n { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--acc-text); }
.index .it .l { font-family: var(--display); font-size: 17px; color: var(--ink-2); margin-top: 8px; }

/* compact page hero (interior pages) */
.phero { padding: 78px 0 22px; }
.phero .hero-inner { gap: 22px; }
.phero h1 { font-size: clamp(40px, 5.2vw, 62px); }

/* ============================================================
   LEDGER / STAT STRIP
   ============================================================ */
.ledger {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--card);
}
.ledger.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ledger .cell { padding: 30px 28px; border-right: 1px solid var(--line); }
.ledger .cell:last-child { border-right: 0; }
.ledger .v { font-family: var(--display); font-size: 42px; font-weight: 500; color: var(--ink); line-height: 1; }
.ledger .v small { font-size: 18px; color: var(--muted); margin-left: 2px; }
.ledger .l { font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* ============================================================
   CAPABILITIES — numbered editorial rows
   ============================================================ */
.caps { display: flex; flex-direction: column; }
.cap {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 30px; align-items: start;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap .cn { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--acc-text); padding-top: 6px; }
.cap .cbody h3 { font-size: 26px; margin-bottom: 10px; }
.cap .cbody p { color: var(--muted); margin: 0; max-width: 62ch; line-height: 1.7; }
.cap .ctags,
.demo-col .ctags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cap .ctags span,
.demo-col .ctags span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px;
}
.cap .cgo { padding-top: 6px; }
.cap .cgo svg { width: 22px; height: 22px; color: var(--dim); transition: transform .2s, color .2s; }
.cap:hover .cgo svg { transform: translateX(5px); color: var(--acc-text); }

/* ============================================================
   FEATURE GRID (values, etc.)
   ============================================================ */
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feat { background: var(--card); padding: 36px 34px; display: flex; flex-direction: column; gap: 14px; }
.feat .fi { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-tint); color: var(--accent); }
.feat .fi svg { width: 24px; height: 24px; }
.feat h3 { font-size: 22px; }
.feat p { color: var(--muted); margin: 0; line-height: 1.65; font-size: 15px; }

/* ============================================================
   TEAM GRID
   ============================================================ */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tcard { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 48px 30px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.tavatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 1px solid var(--line-2); }
.tavatar-ph { display: grid; place-items: center; background: var(--acc-tint); color: var(--acc-text); font-family: var(--serif); font-weight: 600; font-size: 38px; letter-spacing: 1px; }
.tcard h3 { font-size: 23px; margin: 0; }
.tcard .trole { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc-text); }
.tcard p { color: var(--muted); margin: 4px 0 0; line-height: 1.65; font-size: 15px; flex: 1; }
.tcard .tlink { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--acc-line); padding-bottom: 2px; }
.tcard .tlink svg { width: 15px; height: 15px; }
.tcard .tlink:hover { color: var(--acc-text); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(42,36,24,.10); border-color: var(--line-2); }
.pcard-top { display: flex; align-items: center; justify-content: space-between; }
.picon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-tint); color: var(--accent); }
.picon svg { width: 24px; height: 24px; }
.status { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; padding: 5px 10px; border-radius: 999px; }
.status.live { color: var(--acc-text); background: var(--acc-tint); }
.status.beta { color: var(--muted); border: 1px solid var(--line-2); }
.pcard h3 { font-size: 25px; }
.pcard h3 a { color: inherit; text-decoration: none; }
.pcard h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard .tagline { font-size: 14.5px; color: var(--ink-2); margin-top: -6px; }
.pcard .cat { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pcard .desc { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.pcard .features { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pcard .features li { display: flex; gap: 11px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.pcard .features li svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--acc-text); margin-top: 3px; }
.pcard-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.pcard.feature-cta { background: linear-gradient(150deg, var(--acc-tint), color-mix(in srgb, var(--sand) 40%, var(--card))); justify-content: center; }

/* ============================================================
   METHOD — 7 + 14
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px;
}
.step .n { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--acc-text); text-transform: uppercase; }
.step .big { font-family: var(--display); font-size: 56px; font-weight: 500; color: var(--ink); line-height: 1; }
.step .big small { font-size: 17px; color: var(--muted); }
.step h3 { font-size: 21px; margin-top: 4px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.step .arrow { position: absolute; top: 30px; right: -28px; width: 28px; height: 28px; color: var(--dim); z-index: 2; }
@media (max-width: 880px) { .step .arrow { display: none; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-family: var(--display); font-size: 20px; color: var(--ink);
}
.faq-q .ic { width: 22px; height: 22px; flex: 0 0 22px; color: var(--acc-text); transition: transform .25s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { margin: 0; padding: 0 4px 26px; color: var(--muted); line-height: 1.7; max-width: 76ch; }

/* ============================================================
   CTA BAND
   ============================================================ */
.band {
  background: var(--ink); color: var(--paper); border-radius: var(--r);
  padding: 64px 56px; text-align: center; position: relative; overflow: hidden;
}
.band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(100% 120% at 50% -10%, rgba(80,100,180,.28) 0%, transparent 60%);
}
.band > * { position: relative; z-index: 1; }
.band .eyebrow { color: #b9c2e8; }
.band .eyebrow::before, .band .eyebrow::after { background: rgba(185,194,232,.4); }
.band h2 { color: var(--paper); font-size: clamp(30px, 4vw, 44px); margin: 16px 0 0; }
.band p { color: rgba(236,226,208,.72); max-width: 52ch; margin: 16px auto 0; font-size: 17px; }
.band .hero-actions { margin-top: 30px; }
.band .btn-solid { background: var(--paper); color: var(--ink); }
.band .btn-solid:hover { box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.band .btn-ghost { color: var(--paper); border-color: rgba(236,226,208,.32); }
.band .btn-ghost:hover { border-color: var(--paper); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 18px; }
.footer .fcol h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; font-weight: 400; }
.footer .fcol a { display: block; text-decoration: none; color: var(--muted); font-size: 15px; padding: 5px 0; transition: color .18s ease, transform .18s ease; }
.footer .fcol a:hover { color: var(--acc-text); transform: translateX(3px); }
[dir="rtl"] .footer .fcol a:hover { transform: translateX(-3px); }
.footer .fcol a.footer-address { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; line-height: 1.55; }
.footer .fcol a.footer-address:hover { transform: none; }
.footer-address-pin { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--dim); transition: color .18s ease; }
.footer .fcol a.footer-address:hover .footer-address-pin { color: var(--acc-text); }
.footer .fcol a.footer-contact { display: flex; align-items: center; gap: 8px; }
.footer-contact-icon { flex: 0 0 auto; width: 16px; height: 16px; color: var(--dim); transition: color .18s ease; }
.footer .fcol a.footer-contact:hover .footer-contact-icon { color: var(--acc-text); }
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.location-copy { display: flex; flex-direction: column; align-items: flex-start; }
.location-media { position: relative; }
.location-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #0b0d10; box-shadow: 0 24px 60px -28px rgba(0,0,0,.6); }
@media (max-width: 860px) {
  .location-grid { grid-template-columns: 1fr; }
  .location-media { order: -1; }
}
.footer-blurb { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 38ch; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  flex-wrap: wrap;
}

/* ============================================================
   CONSULTATION CHAT
   ============================================================ */
.chat-intro { padding: 70px 0 8px; text-align: center; }
.chat-intro .hero-inner { gap: 18px; }
.chat-intro h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 18ch; }
.chat-intro .lead { text-align: center; max-width: 50ch; }

.chat-stage { padding: 34px 0 88px; scroll-margin-top: 88px; }
.chat-wrap {
  max-width: 760px; margin: 0 auto; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 30px 70px rgba(42,36,24,.10);
  display: flex; flex-direction: column; overflow: hidden;
  height: min(640px, 74vh); min-height: 480px;
}
.chat-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 50%, var(--card));
}
.chat-bar .who { display: flex; align-items: center; gap: 12px; }
.chat-bar .who .mk { width: 34px; height: 34px; color: var(--accent); display: grid; place-items: center; }
.chat-bar .who .mk svg { width: 100%; height: 100%; }
.chat-bar .who .nm { font-family: var(--serif); font-weight: 600; font-size: 14px; letter-spacing: .18em; color: var(--ink); }
.chat-bar .who .sb { font-family: var(--mono); font-size: 8px; letter-spacing: .22em; color: var(--dim); text-transform: uppercase; margin-top: 3px; }
.chat-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chat-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--acc-tint); animation: chatPulse 2.4s ease-in-out infinite; }
@keyframes chatPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

.chat-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 30px 26px 12px; display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth;
}
.chat-scroll::-webkit-scrollbar { width: 0; }

.chat-welcome { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; animation: nzRise .6s cubic-bezier(.2,.8,.25,1) both; }
.chat-seal { position: relative; width: 56px; height: 56px; display: grid; place-items: center; color: var(--accent); }
.chat-seal svg { width: 100%; height: 100%; }
.chat-seal .ring { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--acc-line); }
.chat-welcome h2 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.12; max-width: 16ch; }
.chat-welcome p { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 42ch; margin: 0; }
.chat-rule { width: 36px; height: 1px; background: var(--line-2); }
.chat-chips { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 380px; margin-top: 4px; }
.chat-chip {
  display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-align: left;
  padding: 12px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.chat-chip .ci { flex: 0 0 18px; width: 18px; height: 18px; color: var(--acc-text); }
.chat-chip .ck { margin-left: auto; flex: 0 0 15px; width: 15px; height: 15px; color: var(--dim); transition: transform .18s, color .18s; }
.chat-chip:hover { transform: translateY(-1px); border-color: var(--acc-line); box-shadow: 0 6px 18px rgba(42,36,24,.06); }
.chat-chip:hover .ck { transform: translateX(3px); color: var(--acc-text); }

.chat-msg { display: flex; gap: 11px; align-items: flex-end; animation: nzRise .42s cubic-bezier(.2,.8,.25,1) both; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-av { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; }
.chat-msg.bot .chat-av { color: var(--accent); background: var(--acc-tint); }
.chat-msg.bot .chat-av svg { width: 21px; height: 21px; }
.chat-msg.user .chat-av { background: var(--sand); color: var(--muted); border: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.chat-bubble { max-width: 78%; padding: 12px 16px; font-size: 14px; line-height: 1.62; border-radius: var(--r); }
.chat-msg.bot .chat-bubble { background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: var(--r-sm); }
.chat-msg.user .chat-bubble { background: var(--ink); color: var(--paper); border-bottom-right-radius: var(--r-sm); }
.chat-typing { display: inline-flex; gap: 5px; padding: 15px 17px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); border-bottom-left-radius: var(--r-sm); align-items: center; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc-text); animation: nzType 1.3s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .16s; }
.chat-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes nzType { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-dock { padding: 16px 20px 18px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 50%, var(--card)); }
.chat-inputwrap { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.chat-inputwrap:focus-within { border-color: var(--acc-line); box-shadow: 0 0 0 3px var(--acc-tint); }
.chat-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--sans); font-size: 14px; color: var(--ink); }
.chat-input::placeholder { color: var(--dim); }
.chat-send { flex: 0 0 42px; width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); cursor: pointer; overflow: hidden; transition: transform .2s cubic-bezier(.2,.8,.25,1); }
.chat-send svg { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.4,1.3,.5,1); }
.chat-send:hover { transform: scale(1.06); }
.chat-send:active { transform: scale(.94); }
.chat-send.flew svg { transform: translate(26px,-26px) rotate(12deg); opacity: 0; }
.chat-send:disabled { opacity: .45; cursor: default; }
.chat-foot { display: flex; justify-content: center; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.chat-foot a { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--dim); text-decoration: none; }
.chat-foot a:hover { color: var(--muted); }
.chat-foot svg { width: 13px; height: 13px; }
.chat-reassure { text-align: center; margin: 22px auto 0; max-width: 50ch; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ============================================================
   BENCHMARKS
   ============================================================ */
.bench {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--card);
}
.bench-head {
  display: grid; grid-template-columns: 1.7fr .9fr .9fr .9fr; gap: 0;
  padding: 16px 26px; border-bottom: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--paper) 55%, var(--card));
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
}
.bench-head span:not(:first-child) { text-align: right; }
.bench-row {
  display: grid; grid-template-columns: 1.7fr .9fr .9fr .9fr; gap: 0; align-items: baseline;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
}
.bench-row:last-child { border-bottom: 0; }
.bench-row .task { display: flex; flex-direction: column; gap: 4px; }
.bench-row .task .t { font-family: var(--display); font-size: 19px; color: var(--ink); line-height: 1.2; }
.bench-row .task .m { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.bench-row .val { text-align: right; font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--ink); line-height: 1; }
.bench-row .val.us { color: var(--acc-text); }
.bench-row .val.base { color: var(--muted); font-size: 22px; }
.bench-row .delta { text-align: right; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }
.bench-row .delta.up::before { content: '▲ '; color: var(--acc-text); font-size: 9px; }

.bench-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.bench-title h3 { font-size: 28px; }
.bench-title .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

.opmetrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.opmetric {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 8px;
}
.opmetric .lab { color: var(--acc-text); }
.opmetric .big { font-family: var(--display); font-size: 46px; font-weight: 500; color: var(--ink); line-height: 1; }
.opmetric .big small { font-size: 18px; color: var(--muted); }
.opmetric p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

.method-note {
  font-family: var(--mono); font-size: 11px; line-height: 1.8; letter-spacing: .02em;
  color: var(--dim); border-left: 1px solid var(--line-2); padding: 4px 0 4px 20px; max-width: 80ch;
}

@media (max-width: 760px) {
  .bench-head { display: none; }
  .bench-row { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 18px 18px; }
  .bench-row .task { grid-column: 1 / -1; margin-bottom: 6px; }
  .bench-row .val.base, .bench-row .delta { font-size: 14px; }
  .bench-row .val.base::before { content: 'baseline '; font-family: var(--mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-right: 6px; }
  .bench-row .val.us::before { content: 'nazarban '; font-family: var(--mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-right: 6px; }
  .opmetrics { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG — typographic field-notes index
   ============================================================ */
.post-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--card); text-decoration: none; color: inherit;
  transition: box-shadow .2s, border-color .2s;
}
.post-feature:hover { box-shadow: 0 22px 50px rgba(42,36,24,.10); border-color: var(--line-2); }
.post-feature .pf-body { padding: 46px 44px; display: flex; flex-direction: column; gap: 18px; }
.post-feature .pf-meta { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.post-feature .pf-meta .cat { color: var(--acc-text); }
.post-feature h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; }
.post-feature p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0; max-width: 46ch; }
.post-feature .pf-read { margin-top: auto; }
.post-feature .pf-side {
  border-left: 1px solid var(--line);
  background: linear-gradient(150deg, var(--acc-tint), color-mix(in srgb, var(--sand) 36%, var(--card)));
  display: grid; place-items: center; padding: 40px; position: relative;
}
.post-feature .pf-side .num { font-family: var(--display); font-style: italic; font-size: clamp(80px, 12vw, 150px); font-weight: 500; color: color-mix(in srgb, var(--accent) 30%, transparent); line-height: 1; }
.post-feature .pf-side .seal { position: absolute; bottom: 28px; right: 30px; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

.postlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.postrow {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 30px; align-items: baseline;
  padding: 30px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background .18s;
}
.postrow:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.postrow .idx { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--acc-text); padding-top: 5px; }
.postrow .pr-body { display: flex; flex-direction: column; gap: 9px; }
.postrow .pr-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.postrow h3 { font-size: 25px; line-height: 1.18; transition: color .18s; }
.postrow:hover h3 { color: var(--acc-text); }
.postrow .pr-dek { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; max-width: 64ch; }
.postrow .pr-meta { text-align: right; display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; padding-top: 5px; }
.postrow .pr-meta .arr { width: 18px; height: 18px; margin: 6px 0 0 auto; color: var(--dim); transition: transform .2s, color .2s; }
.postrow:hover .pr-meta .arr { transform: translateX(4px); color: var(--acc-text); }

.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topic {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 15px;
  text-decoration: none; transition: border-color .18s, color .18s;
}
.topic:hover, .topic.on { border-color: var(--acc-line); color: var(--acc-text); }

@media (max-width: 760px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .pf-side { display: none; }
  .post-feature .pf-body { padding: 34px 26px; }
  .postrow { grid-template-columns: 36px 1fr; gap: 16px; }
  .postrow .pr-meta { grid-column: 2; text-align: left; flex-direction: row; gap: 14px; }
  .postrow .pr-meta .arr { display: none; }
}

/* ============================================================
   PROPOSAL CAPTURE POPUP (consultation)
   ============================================================ */
.chat-propbtn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--acc-line);
  background: var(--acc-tint); color: var(--acc-text); white-space: nowrap;
  transition: background .18s, transform .18s;
}
.chat-propbtn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
.chat-propbtn svg { width: 14px; height: 14px; }

.prop-overlay {
  position: absolute; inset: 0; z-index: 20; display: grid; place-items: center;
  padding: 22px; background: color-mix(in srgb, var(--ink) 32%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: nzFade .28s ease both;
}
.prop-card {
  position: relative; width: 100%; max-width: 416px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 34px 80px rgba(42,36,24,.30); padding: 38px 36px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  animation: nzRise .4s cubic-bezier(.2,.8,.25,1) both;
}
.prop-card .x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--dim); display: grid; place-items: center; border-radius: 50%; transition: background .18s, color .18s; }
.prop-card .x:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.prop-card .x svg { width: 18px; height: 18px; }
.prop-card .seal { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--acc-tint); color: var(--accent); }
.prop-card .seal svg { width: 26px; height: 26px; }
.prop-card h3 { font-size: 27px; line-height: 1.12; max-width: 15ch; }
.prop-card .sub { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 38ch; }
.prop-field { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.prop-field input {
  flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 12px 18px; font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: var(--paper); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.prop-field input:focus { border-color: var(--acc-line); box-shadow: 0 0 0 3px var(--acc-tint); }
.prop-field input::placeholder { color: var(--dim); }
.prop-field button {
  flex: 0 0 auto; border: 0; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; padding: 12px 18px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; background: var(--ink); color: var(--paper);
  transition: transform .18s, box-shadow .18s;
}
.prop-field button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(42,36,24,.2); }
.prop-field button svg { width: 15px; height: 15px; }
.prop-field button:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.prop-error { color: var(--down); font-size: 13.5px; line-height: 1.5; margin: 2px 0 0; max-width: 38ch; }
.prop-fine { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 4px 0 0; }
.prop-success, .prop-no-chat { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.prop-success .check { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-tint); color: var(--acc-text); }
.prop-success .check svg { width: 28px; height: 28px; }
@keyframes nzFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nzRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================================================
   MARKET MOVE — up / down accents (warm-harmonious)
   ============================================================ */
:root { --up: #4f7a4d; --down: #b35540; }

/* ============================================================
   CRYPTO TRACKER — top AI-related coins, above the blog
   ============================================================ */
.crypto {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 55%, var(--paper));
}
.crypto-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.crypto-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 0 13px; flex-wrap: wrap;
}
.crypto-head .ttl {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc-text);
}
.crypto-head .ttl .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--acc-tint); animation: chatPulse 2.4s ease-in-out infinite; }
.crypto-head .ttl .sub { color: var(--dim); letter-spacing: .12em; }

.seg { display: inline-flex; gap: 2px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 13px; border-radius: 999px; transition: background .18s, color .18s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--paper); }

.crypto-view { display: none; }
.crypto-view.on { display: block; }

/* — ticker marquee — */
.tickerwrap {
  overflow: hidden; padding: 4px 0 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker { display: inline-flex; white-space: nowrap; animation: tickerMove 56s linear infinite; will-change: transform; }
.tickerwrap:hover .ticker { animation-play-state: paused; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 9px; padding: 7px 24px; border-right: 1px solid var(--line); }
.tk .sym { font-family: var(--serif); font-weight: 600; font-size: 14px; letter-spacing: .07em; color: var(--ink); }
.tk .px { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.tk .chg { font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 3px; }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; } }

.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--dim); }
.chg .car { width: 8px; height: 8px; }

/* — coin cards — */
.coincards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 4px 0 22px; }
.coin { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 15px 16px; display: flex; flex-direction: column; gap: 11px; transition: border-color .18s, transform .18s; }
.coin:hover { border-color: var(--line-2); transform: translateY(-2px); }
.coin .ctop { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.coin .cid { display: flex; flex-direction: column; gap: 2px; }
.coin .sym { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .05em; color: var(--ink); line-height: 1; }
.coin .nm { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.coin .chg { font-family: var(--mono); font-size: 11px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.coin .px { font-family: var(--display); font-size: 23px; color: var(--ink); line-height: 1; }
.coin .px .cur { font-size: 13px; color: var(--muted); margin-right: 1px; }

/* — sentiment bar (shared) — */
.senti .bar { height: 5px; border-radius: 999px; overflow: hidden; display: flex; background: color-mix(in srgb, var(--down) 78%, transparent); }
.senti .bar .buy { background: var(--up); height: 100%; }
.senti .lbl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 5px; }
.senti .lbl .b { color: var(--up); }
.senti .lbl .s { color: var(--down); }

/* — coin table — */
.cointable { width: 100%; border-collapse: collapse; margin: 2px 0 20px; }
.cointable thead th { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 400; text-align: right; padding: 10px 16px 11px; border-bottom: 1px solid var(--line-2); }
.cointable thead th:first-child { text-align: left; }
.cointable thead th.sh { text-align: left; }
.cointable tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-align: right; vertical-align: middle; }
.cointable tbody tr:last-child td { border-bottom: 0; }
.cointable tbody tr:hover td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.cointable td:first-child { text-align: left; }
.cointable td .sym { font-family: var(--serif); font-weight: 600; font-size: 14.5px; letter-spacing: .04em; color: var(--ink); }
.cointable td .nm { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-left: 9px; }
.cointable td .chg { display: inline-flex; align-items: center; gap: 3px; }
.cointable .scell { width: 168px; }
.cointable .scell .senti { text-align: left; }

/* ============================================================
   AI PRODUCT RADAR — blog as a digest of trending AI products
   ============================================================ */
.radar { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.prod {
  display: grid; grid-template-columns: 54px 1fr 132px; gap: 30px; align-items: start;
  padding: 36px 6px; border-bottom: 1px solid var(--line);
}
.prod .rank { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 38px; color: color-mix(in srgb, var(--accent) 32%, transparent); line-height: 1; padding-top: 2px; }
.prod-main { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.prod-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.prod-top h3 { font-size: 30px; line-height: 1.05; }
.prod-tags { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.prod-tags .ph { display: inline-flex; align-items: center; gap: 6px; color: var(--acc-text); }
.prod-tags .ph svg { width: 12px; height: 12px; }
.prod-sum { color: var(--muted); font-size: 15.5px; line-height: 1.72; margin: 0; max-width: 74ch; }
.prod-sum p { margin: 0 0 11px; }
.prod-sum p:last-child { margin-bottom: 0; }
.prod-sum.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod-sum.clamp p:not(:first-child) { display: none; }
.prod-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 2px; }
.prod-toggle { background: none; border: 0; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--acc-text); }
.prod-toggle .ic { width: 16px; height: 16px; transition: transform .25s; }
.prod-toggle.open .ic { transform: rotate(180deg); }
.prod-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.votes { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 20px; background: var(--card); }
.votes .car { width: 15px; height: 15px; color: var(--acc-text); }
.votes .n { font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--ink); line-height: 1; }
.votes .l { font-family: var(--mono); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.prod .date { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

@media (max-width: 760px) {
  .coincards { grid-template-columns: repeat(2, 1fr); }
  .crypto-inner, .wrap { }
  .prod { grid-template-columns: 36px 1fr; gap: 16px; }
  .prod-side { grid-column: 2; flex-direction: row; align-items: center; gap: 16px; }
  .cointable thead { display: none; }
  .cointable, .cointable tbody, .cointable tr, .cointable td { display: block; width: 100%; }
  .cointable tbody tr { border-bottom: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
  .cointable tbody td { border: 0; padding: 3px 4px; text-align: right; }
  .cointable td:first-child { grid-column: 1; text-align: left; }
  .cointable .scell { width: auto; grid-column: 1 / -1; }
}

/* ============================================================
   LLM LEADERBOARD — benchmarks
   ============================================================ */
.champs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.champ {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
}
.champ::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); opacity: 1; }
.champ { transition: transform .18s, box-shadow .18s; }
.champ:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(42,36,24,.10); border-color: var(--line-2); }
.champ .ttl { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--acc-text); }
.champ .score { font-family: var(--display); font-size: 40px; font-weight: 500; color: var(--ink); line-height: 1; }
.champ .mdl { font-family: var(--display); font-size: 16px; color: var(--ink); line-height: 1.2; }
.champ .prov { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: auto; }

.lb { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.lb-head, .lb-row {
  display: grid; grid-template-columns: 52px 1fr 140px 120px 120px 64px; align-items: center; gap: 0;
}
.lb-head {
  padding: 15px 26px; border-bottom: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--paper) 55%, var(--card));
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.lb-head span.r { text-align: right; }
.lb-row { padding: 18px 26px; border-bottom: 1px solid var(--line); transition: background .16s; }
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.lb-row.lb-lead { background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 4px 0 0 var(--accent); }
.lb-row.lb-lead .rk { color: var(--accent); font-weight: 600; }
.lb .rk { font-family: var(--mono); font-size: 13px; color: var(--acc-text); }
.lb .rk .medal { color: var(--accent); }
.lb .mdl { font-family: var(--display); font-size: 19px; color: var(--ink); line-height: 1.18; padding-right: 16px; }
.lb .prov { font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.lb .sc { text-align: right; font-family: var(--mono); font-size: 15px; }
.lb .sc .barwrap { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.lb .sc .mini { width: 46px; height: 4px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.lb .sc .mini i { display: block; height: 100%; background: var(--acc-text); }
.lb .sc.intel { color: var(--ink); font-weight: 500; }
.lb .sc.code { color: var(--ink-2); }
.lb .grade { text-align: right; }
.lb .grade span { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 9px; }

.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.insight {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.insight .kind { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--acc-text); display: inline-flex; align-items: center; gap: 9px; }
.insight .kind svg { width: 15px; height: 15px; }
.insight h3 { font-size: 24px; }
.insight p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.insight .stat { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.insight .stat .v { font-family: var(--display); font-size: 32px; font-weight: 500; color: var(--acc-text); line-height: 1; }
.insight .stat .vl { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

@media (max-width: 1040px) {
  .champs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .lb-head { display: none; }
  .lb-row { grid-template-columns: 38px 1fr auto; gap: 4px 14px; padding: 18px 18px; }
  .lb .mdl { grid-column: 2; }
  .lb .prov { grid-column: 2; font-size: 12px; color: var(--muted); }
  .lb .sc { grid-column: 3; }
  .lb .sc.intel::before { content: 'INT '; font-family: var(--mono); font-size: 8px; color: var(--dim); }
  .lb .sc.code::before { content: 'COD '; font-family: var(--mono); font-size: 8px; color: var(--dim); }
  .lb .sc .mini { display: none; }
  .lb .grade { display: none; }
  .insight-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .champs { grid-template-columns: 1fr; }
}

/* ============================================================
   ARTICLE — clickable row + enlarged modal
   ============================================================ */
.prod { cursor: pointer; position: relative; border-radius: var(--r-sm);
  transition: background .25s, box-shadow .25s, transform .25s; }
.prod::after { /* gentle full-bleed hover plate */
  content: ""; position: absolute; inset: 0 -22px; border-radius: var(--r);
  background: var(--card); opacity: 0; z-index: 0; transition: opacity .25s; pointer-events: none; }
.prod:hover::after, .prod:focus-visible::after { opacity: .7; }
.prod > * { position: relative; z-index: 1; }
.prod:focus-visible { outline: 2px solid var(--acc-line); outline-offset: 2px; }
.prod:hover h3 { color: var(--acc-text); }
.prod .read { color: var(--acc-text); }
.prod .read svg { transition: transform .2s; }
.prod:hover .read svg { transform: translateX(4px); }

/* enlarge affordance — corner glyph that says “this opens bigger” */
.prod-expand {
  position: absolute; top: 24px; right: 6px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--muted);
  opacity: 0; transform: scale(.82); transition: opacity .25s, transform .25s, color .25s, border-color .25s, background .25s;
}
.prod-expand svg { width: 17px; height: 17px; }
.prod:hover .prod-expand, .prod:focus-visible .prod-expand { opacity: 1; transform: scale(1); }
.prod:hover .prod-expand { color: var(--paper); background: var(--accent); border-color: var(--accent); }
[dir="rtl"] .prod-expand { right: auto; left: 6px; }
/* coarse pointers (touch) can’t hover — keep the cue visible there */
@media (hover: none) {
  .prod-expand { opacity: .55; transform: scale(1); }
}
/* footer cue text */
.prod .read::after { content: " · enlarge"; color: var(--dim); font-weight: 500; }
[dir="rtl"] .prod .read::after { content: " · بزرگ‌نمایی"; }

.post-overlay {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--ink) 42%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: nzFade .26s ease both;
}
.post-overlay[hidden] { display: none; }
.post-modal {
  position: relative; width: 100%; max-width: 680px; max-height: 86vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 40px 90px rgba(42,36,24,.34);
  animation: nzRise .42s cubic-bezier(.2,.8,.25,1) both;
}
.pm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 45%, var(--card)); }
.pm-meta { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pm-meta .ph { color: var(--acc-text); display: inline-flex; align-items: center; gap: 6px; }
.pm-meta .ph svg { width: 12px; height: 12px; }
.pm-meta .up { color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.pm-meta .up svg { width: 11px; height: 11px; color: var(--acc-text); }
.pm-x { flex: 0 0 36px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--dim); display: grid; place-items: center; border-radius: 50%; transition: background .18s, color .18s; }
.pm-x:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.pm-x svg { width: 19px; height: 19px; }
.pm-scroll { overflow-y: auto; padding: 30px 32px 10px; }
.pm-scroll::-webkit-scrollbar { width: 8px; }
.pm-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.pm-scroll h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.08; margin-bottom: 20px; }
.pm-body { color: var(--ink-2); font-size: 16px; line-height: 1.78; }
.pm-body p { margin: 0 0 15px; }
.pm-foot { padding: 16px 32px 28px; }

/* ============================================================
   BENCHMARK CHARTS
   ============================================================ */
.charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.chartcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 28px; display: flex; flex-direction: column; gap: 20px;
}
.chartcard.full { grid-column: 1 / -1; }
.chartcard .ch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.chartcard .ch-head h4 { font-family: var(--display); font-weight: 500; font-size: 21px; color: var(--ink); margin: 0; }
.chartcard .ch-head .note { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* horizontal bars */
.hbars { display: flex; flex-direction: column; gap: 13px; }
.hbar { display: grid; grid-template-columns: 168px 1fr 46px; align-items: center; gap: 14px; }
.hbar .hl { font-family: var(--display); font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .ht { height: 12px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.hbar .ht i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 72%, var(--card)), var(--accent)); transform-origin: left; animation: barGrow 1s cubic-bezier(.2,.8,.25,1) both; }
.hbar .hv { font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-align: right; }
.hbar.top .ht i { background: linear-gradient(90deg, var(--acc-text), var(--accent)); }
.hbar.top .hv { color: var(--acc-text); font-weight: 500; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hbar .ht i { animation: none; } }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut { position: relative; width: 150px; height: 150px; flex: 0 0 150px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .ring { fill: none; stroke-width: 15; }
.donut .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .center .v { font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1; }
.donut .center .l { font-family: var(--mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 4px; }
.legend { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 130px; }
.legend .lg { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.legend .lg .sw { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 11px; }
.legend .lg .nm { flex: 1; }
.legend .lg .ct { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* grouped (intelligence vs coding) */
.gbars { display: flex; flex-direction: column; gap: 16px; }
.gbar .gl { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--display); font-size: 14.5px; color: var(--ink); margin-bottom: 7px; }
.gbar .gl .gp { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.gbar .grow { display: flex; flex-direction: column; gap: 5px; }
.gbar .gr { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 10px; }
.gbar .gr .gk { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.gbar .gr .gt { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.gbar .gr .gt i { display: block; height: 100%; border-radius: 999px; transform-origin: left; animation: barGrow .9s cubic-bezier(.2,.8,.25,1) both; }
.gbar .gr.intel .gt i { background: var(--accent); }
.gbar .gr.code .gt i { background: color-mix(in srgb, var(--accent) 42%, var(--muted)); }
.gbar .gr .gv { font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-align: right; }

@media (max-width: 880px) {
  .charts { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 120px 1fr 40px; }
  .hbar .hl { font-size: 13px; }
}

/* ============================================================
   FLOATING CONTACT WIDGET (injected by atelier.js)
   ============================================================ */
.fab-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-act {
  display: inline-flex; align-items: center; gap: 11px; padding: 9px 17px 9px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(42,36,24,.16);
  text-decoration: none; color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 14px; white-space: nowrap;
  transform: translateY(10px) scale(.94); opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.2,.8,.25,1), opacity .2s, border-color .18s;
}
.fab-wrap.open .fab-act { transform: none; opacity: 1; pointer-events: auto; }
.fab-wrap.open .fab-act:nth-child(1) { transition-delay: .05s; }
.fab-act:hover { transform: translateY(-2px); border-color: var(--acc-line); }
.fab-act .fi { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 30px; }
.fab-act .fi svg { width: 17px; height: 17px; }
.fab-act.wa .fi { background: #25D366; color: #fff; }
.fab-act.em .fi { background: var(--acc-tint); color: var(--acc-text); }

.fab {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; align-self: flex-end;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
  box-shadow: 0 14px 32px rgba(42,36,24,.30); transition: transform .2s, box-shadow .2s;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(42,36,24,.36); }
.fab svg { width: 24px; height: 24px; grid-area: 1 / 1; transition: transform .3s, opacity .2s; }
.fab .ic-close { opacity: 0; transform: rotate(-45deg) scale(.7); }
.fab-wrap.open .fab .ic-open { opacity: 0; transform: rotate(45deg) scale(.7); }
.fab-wrap.open .fab .ic-close { opacity: 1; transform: none; }
@media (max-width: 760px) { .fab-wrap { right: 16px; bottom: 16px; } }

/* ============================================================
   WATCH-VIDEO BUTTON + LIGHTBOX (lightbox injected by atelier.js)
   ============================================================ */
.watch {
  display: inline-flex; align-items: center; gap: 11px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 19px 8px 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.watch:hover { border-color: var(--acc-line); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(42,36,24,.08); }
.watch .pp { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .18s; }
.watch .pp svg { width: 14px; height: 14px; margin-left: 2px; }
.watch:hover .pp { transform: scale(1.06); }
.watch.sm { font-size: 13.5px; padding: 6px 16px 6px 6px; gap: 9px; }
.watch.sm .pp { width: 27px; height: 27px; flex: 0 0 27px; }
.watch.sm .pp svg { width: 12px; height: 12px; }

.video-overlay {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 28px;
  background: color-mix(in srgb, var(--ink) 64%, transparent);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: nzFade .26s ease both;
}
.video-overlay[hidden] { display: none; }
.video-frame {
  position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--r); overflow: hidden; box-shadow: 0 44px 100px rgba(0,0,0,.55);
  animation: nzRise .42s cubic-bezier(.2,.8,.25,1) both;
}
.video-frame iframe,
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame video { background: #000; object-fit: contain; }
.video-x {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .18s;
}
.video-x:hover { background: rgba(0,0,0,.8); }
.video-x svg { width: 20px; height: 20px; }

/* ============================================================
   REVEAL on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.25,1), transform .7s cubic-bezier(.2,.8,.25,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger .cell:nth-child(2) { border-right: 0; }
  .ledger .cell:nth-child(1), .ledger .cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer .fcol:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 24px; }
  .nav-inner { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 24px 20px;
  }
  .nav .nav-links.open a { font-size: 18px; padding: 12px 4px; }
  .nav .nav-links.open a.on::after { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .sec { padding: 64px 0; }
  .pgrid, .fgrid, .tgrid { grid-template-columns: 1fr; }
  .index { flex-wrap: wrap; }
  .index .it { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .cap { grid-template-columns: 40px 1fr; }
  .cap .cgo { display: none; }
  .band { padding: 48px 28px; }

  /* Chat page */
  .chat-intro { padding: 50px 0 6px; }
  .chat-stage { padding: 20px 0 60px; }
  .chat-wrap { height: auto; min-height: min(520px, 72svh); }
  .chat-scroll { padding: 18px 14px 10px; }
  .chat-dock { padding: 12px 14px 14px; }
  .chat-welcome h2 { font-size: 24px; }
  .chat-welcome p { font-size: 14px; }
  .chat-chip { padding: 10px 14px; font-size: 13px; }
  /* Proposal popup: pin to the viewport so it can't sit below the tall card */
  .prop-overlay { position: fixed; }
  .prop-card { max-height: 90vh; overflow-y: auto; padding: 30px 24px 26px; }

  /* Stat ledgers stack with proper separators between rows */
  .ledger, .ledger.cols-3 { grid-template-columns: 1fr; }
  .ledger .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .ledger .cell:last-child { border-bottom: 0; }

  /* Benchmark bar chart labels */
  .hbar { grid-template-columns: 90px 1fr 36px; }
  .hbar .hl { font-size: 12px; }
}

/* ============================================================
   FARSI / RTL
   Self-hosted Sahel (public/fonts/) — no external font request.
   ============================================================ */
@font-face {
  font-family: 'Sahel';
  src: url('/fonts/Sahel.woff2') format('woff2'),
       url('/fonts/Sahel.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('/fonts/Sahel-Light.woff2') format('woff2'),
       url('/fonts/Sahel-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('/fonts/Sahel-SemiBold.woff2') format('woff2'),
       url('/fonts/Sahel-SemiBold.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('/fonts/Sahel-Bold.woff2') format('woff2'),
       url('/fonts/Sahel-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

body[data-lang="fa"] {
  --serif:   'Sahel', Georgia, serif;
  --display: 'Sahel', Georgia, serif;
  --sans:    'Sahel', system-ui, sans-serif;
  /* eyebrows, labels, table headers etc. use --mono — a Latin monospace
     font breaks Persian letter-joining entirely, so it must switch too */
  --mono:    'Sahel', system-ui, sans-serif;
  font-family: var(--sans);
}
/* Latin wordmark stays Latin even in Farsi mode */
body[data-lang="fa"] .brand-name { font-family: 'Bodoni Moda', serif; }
/* Persian letters carry tall forms — give headings room so lines don’t collide */
body[data-lang="fa"] h1,
body[data-lang="fa"] h2,
body[data-lang="fa"] h3 { line-height: 1.32; font-weight: 600; }
/* Sahel has no italic; render accent spans upright with the indigo it already carries */
body[data-lang="fa"] h1 em,
body[data-lang="fa"] h2 em,
body[data-lang="fa"] .rank { font-style: normal; }
/* Persian letters join — letter-spacing breaks them, so remove it in FA */
body[data-lang="fa"] * { letter-spacing: 0 !important; }
/* keep numeric / mono runs left-to-right so prices, %, scores read correctly */
[dir="rtl"] .px, [dir="rtl"] .chg, [dir="rtl"] .tk,
[dir="rtl"] .v, [dir="rtl"] .big, [dir="rtl"] .score,
[dir="rtl"] .hv, [dir="rtl"] .gv, [dir="rtl"] .sc, [dir="rtl"] .rk,
[dir="rtl"] .n, [dir="rtl"] .stat .v, [dir="rtl"] .votes .n,
[dir="rtl"] .cn, [dir="rtl"] [class*="mono"], [dir="rtl"] .mono {
  direction: ltr; unicode-bidi: isolate;
}
/* flip directional arrows only (not logos / icons) */
[dir="rtl"] .btn > svg, [dir="rtl"] .arrowlink svg,
[dir="rtl"] .cgo svg, [dir="rtl"] .ck svg,
[dir="rtl"] .arrow, [dir="rtl"] .step .arrow { transform: scaleX(-1); }

/* language switcher */
.nav-links a { white-space: nowrap; }
.langsw {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--card);
}
.langsw button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 5px 10px; border-radius: 999px; line-height: 1; transition: background .2s, color .2s;
}
.langsw button.on { background: var(--ink); color: var(--paper); }

/* Links that contain a literal phone number must read left-to-right even in RTL.
   The footer/FAB WhatsApp links show a text label, so they follow the RTL flow. */
[dir="rtl"] .chat-foot a[href*="wa.me"],
[dir="rtl"] a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 480px) {
  /* Chat bar: hide status text, compact proposal button */
  .chat-status { display: none; }
  .chat-propbtn { padding: 6px 10px; font-size: 11px; gap: 6px; }
  .chat-welcome h2 { font-size: 21px; }
  /* Benchmark ledger: smaller numbers on tiny screens */
  .ledger .cell { padding: 20px 16px; }
  .ledger .v { font-size: 32px; }
}

/* ============================================================
   LIVE VOICE CALL — inside the consultation chat
   The mic button sits in the chat input row; during a call the row
   becomes a status bar (connecting / listening / speaking + hang up).
   ============================================================ */
.chat-mic {
  flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink-2); cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.25,1), color .2s, border-color .2s, background .2s;
}
.chat-mic svg { width: 18px; height: 18px; }
.chat-mic:hover { transform: scale(1.06); color: var(--accent); border-color: var(--acc-line); background: var(--acc-tint); }
.chat-mic:active { transform: scale(.94); }

.chat-callbar { justify-content: space-between; padding-left: 16px; min-height: 56px; }
.chat-call-dot {
  flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 var(--acc-tint);
  animation: callPulse 2s ease-out infinite;
}
.chat-callbar.connecting .chat-call-dot { animation-duration: .9s; }
.chat-callbar.speaking .chat-call-dot { background: var(--acc-text); animation-duration: 1.2s; }
@keyframes callPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .chat-call-dot { animation: none; } }
.chat-call-status {
  flex: 1 1 auto; margin: 0 10px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.chat-call-end {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  transition: transform .2s cubic-bezier(.2,.8,.25,1), background .2s;
}
.chat-call-end:hover { transform: translateY(-1px); background: #b23a2e; }
.chat-call-end svg { width: 16px; height: 16px; }

/* --- Voice-agent site actions: chat cards + section spotlight ----------- */
/* Cards the agent drops into the thread (WhatsApp handoff, products,
   benchmark). They reuse the bot-bubble surface so they read as part of
   the conversation. */
/* Cards are structural content, not speech: they flex to the row's available
   width (up to a cap) and shrink freely on phones — a min-width here would
   beat the bubble's max-width and overflow small screens. */
.chat-card {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1 1 auto; min-width: 0; max-width: 420px;
  overflow-wrap: anywhere;
}
.chat-card .cc-head { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .02em; }
.chat-card .cc-head svg { width: 16px; height: 16px; flex: none; }
.chat-card .cc-sub { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.chat-card .cc-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--ink); color: var(--paper); padding: 9px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none;
  transition: transform .2s cubic-bezier(.2,.8,.25,1);
}
.chat-card .cc-btn:hover { transform: translateY(-1px); }
.chat-card .cc-btn svg { width: 15px; height: 15px; }
.chat-card .cc-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.chat-card .cc-item {
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px;
  text-decoration: none; color: inherit; background: var(--paper);
  transition: border-color .18s;
}
.chat-card .cc-item:hover { border-color: var(--ink); }
.chat-card .cc-item strong { font-size: 13.5px; }
.chat-card .cc-item span { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.chat-card .cc-more { font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.chat-card .cc-more svg { width: 13px; height: 13px; }
.chat-card table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.chat-card td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.chat-card tr:last-child td { border-bottom: none; }

/* Temporary highlight when the agent scrolls the page to a section. */
.nz-spotlight { outline: 2px solid var(--ink); outline-offset: 8px; border-radius: 4px; animation: nzSpot 2.6s ease both; }
@keyframes nzSpot {
  0% { outline-color: transparent; }
  12% { outline-color: var(--ink); }
  78% { outline-color: var(--ink); }
  100% { outline-color: transparent; }
}

/* ============================================================
   DEMOS — /demos, the two product films and their write-ups
   ============================================================ */
.demo-lang {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7;
  color: var(--dim); max-width: 52ch; margin: 0; text-align: center;
}

/* Section header: the pitch on one side, the hard facts on the other. */
.demo-head {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 26px 56px; align-items: start; margin-bottom: 40px;
}
.demo-head .sec-head { max-width: none; }
.demo-head .sec-head h2 { font-size: clamp(30px, 3.8vw, 44px); }

.demo-facts {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line); margin-top: 8px;
}
.dfact {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.dfact-k {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim);
}
.dfact-v { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* The film itself. Dark ground behind it so the letterbox never flashes paper. */
.demo-stage { margin: 0 auto; max-width: 940px; }
.demo-video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; border: 1px solid var(--line); background: #23283f;
  box-shadow: 0 26px 64px -30px rgba(0,0,0,.55);
}
.demo-cap {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim);
  margin-top: 14px; text-align: center;
}

/* Write-up beneath the film. */
.demo-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px; margin-top: 54px;
}
.demo-col {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 30px 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.demo-col h3 { font-size: 22px; }

.dlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.dlist li {
  position: relative; padding-inline-start: 20px;
  font-size: 14.5px; line-height: 1.65; color: var(--muted);
}
.dlist li strong { color: var(--ink); font-weight: 600; }
.dlist li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--acc-line);
}
/* Numbered variant — the three or four decisions behind each product. */
.dlist-num { counter-reset: dnum; }
.dlist-num li { counter-increment: dnum; padding-inline-start: 30px; }
.dlist-num li::before {
  content: counter(dnum, decimal-leading-zero);
  width: auto; height: auto; border-radius: 0; background: none; top: 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--acc-text); line-height: 2.1;
}

/* The purchase route, under the write-up it belongs to. The note beside the
   button says what tapping it actually does, because "Buy" on a Telegram link
   lands somewhere people cannot preview first. */
.demo-buy {
  margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap;
}
.demo-buy-note { font-size: 12.5px; line-height: 1.55; color: var(--dim); max-width: 34ch; }

.demo-pull {
  margin: 4px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--display); font-style: italic; font-size: 19px;
  line-height: 1.45; color: var(--acc-text);
}

@media (max-width: 920px) {
  .demo-head { grid-template-columns: 1fr; gap: 24px; }
  .demo-grid { grid-template-columns: 1fr; margin-top: 40px; }
}
@media (max-width: 760px) {
  .demo-col { padding: 24px 22px 26px; }
}
