/* ==========================================================================
   YuksalAI — yuksalai.uz
   Vizual tizim: "buxgalteriya daftari + asbob paneli"
   Qat'iy grid, ingichka chiziqlar, tabular raqamlar, monoshrift belgilar.
   ========================================================================== */

/* --- Shriftlar ---------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Sans';
  src: url('fonts/plexsans.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Tokenlar: yorug' (asosiy) ------------------------------------------ */
:root {
  --paper:      #f2f5f3;
  --surface:    #ffffff;
  --surface-2:  #eaefec;
  --ink:        #0d1a18;
  --ink-soft:   #33453f;
  --muted:      #5d6d68;
  --faint:      #8b9994;
  --rule:       #d3dbd7;
  --rule-soft:  #e3e9e6;
  --brand:      #0e7c74;
  --brand-ink:  #063f3b;
  --brand-wash: #e2efec;
  --signal:     #ad4f1c;
  --signal-wash:#f6e9df;
  --ok:         #1f7a4d;

  --shadow-card: 0 1px 2px rgba(13, 26, 24, .04), 0 8px 24px -12px rgba(13, 26, 24, .18);
  --shadow-lift: 0 2px 4px rgba(13, 26, 24, .05), 0 24px 56px -24px rgba(13, 26, 24, .30);

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1260px;
  --rhythm: clamp(4.5rem, 9vw, 8rem);

  color-scheme: light;
}

/* --- Tokenlar: qorong'i (tizim sozlamasi) ------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper:      #08120f;
    --surface:    #0e1b18;
    --surface-2:  #142320;
    --ink:        #e7edea;
    --ink-soft:   #c2cfca;
    --muted:      #93a49e;
    --faint:      #6b7d77;
    --rule:       #1e2f2b;
    --rule-soft:  #16241f;
    --brand:      #37b9ab;
    --brand-ink:  #9fe0d7;
    --brand-wash: #0f2b28;
    --signal:     #e0904f;
    --signal-wash:#2a1c12;
    --ok:         #4cba82;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px -12px rgba(0, 0, 0, .7);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .55), 0 28px 60px -26px rgba(0, 0, 0, .85);

    color-scheme: dark;
  }
}

/* --- Tokenlar: qorong'i (aniq tanlov) ----------------------------------- */
:root[data-theme='dark'] {
  --paper:      #08120f;
  --surface:    #0e1b18;
  --surface-2:  #142320;
  --ink:        #e7edea;
  --ink-soft:   #c2cfca;
  --muted:      #93a49e;
  --faint:      #6b7d77;
  --rule:       #1e2f2b;
  --rule-soft:  #16241f;
  --brand:      #37b9ab;
  --brand-ink:  #9fe0d7;
  --brand-wash: #0f2b28;
  --signal:     #e0904f;
  --signal-wash:#2a1c12;
  --ok:         #4cba82;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px -12px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .55), 0 28px 60px -26px rgba(0, 0, 0, .85);

  color-scheme: dark;
}

/* --- Asos --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 78px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brand); color: var(--surface); }

/* --- Tipografika -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.022em;
  line-height: 1.06;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 4.05rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.22rem, 1.9vw, 1.55rem); font-stretch: 104%; letter-spacing: -0.014em; line-height: 1.16; }
h4 { font-size: 1.02rem; font-stretch: 100%; letter-spacing: -0.006em; }

p { margin: 0; }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: var(--ink-soft); max-width: 62ch; line-height: 1.6; }
.prose { color: var(--muted); max-width: 66ch; }

/* Monoshrift belgi — daftar "kodlari" */
.tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* --- Karkas ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--rhythm); position: relative; }

/* Bo'lim boshi: chiziq ustidagi kod + sarlavha */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  position: relative;
  margin-bottom: 2.4rem;
  scroll-margin-top: 78px;
}
.section-head::before {
  content: attr(data-code);
  position: absolute;
  top: -0.62em;
  left: 0;
  background: var(--paper);
  padding-right: .85rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.6rem 3.5rem; align-items: start; }
}

/* --- Header ------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--rule);
}
.masthead-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 60px;
}
.brandmark {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brandmark .mark {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  align-self: center;
  transform: translateY(1px);
}
.brandmark .sub { font-family: var(--font-mono); font-size: .66rem; font-weight: 400; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }

.mainnav { display: none; gap: 1.6rem; }
@media (min-width: 1000px) { .mainnav { display: flex; } }
.mainnav a {
  text-decoration: none;
  font-size: .88rem;
  color: var(--muted);
  padding-block: .3rem;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.mainnav a:hover { color: var(--ink); border-bottom-color: var(--brand); }
.mainnav a.active { color: var(--ink); border-bottom-color: var(--brand); }

/* Scroll'da masthead qattiqroq — o'qishga xalaqit bermaydi */
.masthead { transition: background-color .3s ease, box-shadow .3s ease; }
.masthead.scrolled {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 1px 0 var(--rule), 0 10px 30px -20px rgba(13, 26, 24, .4);
}

.theme-toggle {
  border: 1px solid var(--rule);
  background: transparent;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .16s ease, color .16s ease;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle svg { width: 15px; height: 15px; }

/* --- Tugmalar ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .72rem 1.15rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
:root[data-theme='dark'] .btn-primary,
:root:not([data-theme='light']) .btn-primary { color: #041614; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .btn-primary { color: #fff; }
}
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: .5rem .85rem; font-size: .82rem; }

/* --- Hero --------------------------------------------------------------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; }

/* nozik ustun chiziqlari — "chizma qog'ozi" */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(to right, var(--rule-soft) 0 1px, transparent 1px calc(100% / 12));
  background-size: 100% 100%;
  opacity: .55;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.hero > * { position: relative; }
.hero .wrap { z-index: 1; }
.aurora { z-index: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--brand); }

.hero-lede { margin-top: 1.5rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

/* --- Yo'nalish tanlagichi (sahifaning bosh harakati) -------------------- */
.picker { margin-top: clamp(2.6rem, 5vw, 3.6rem); }

.picker-rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.picker-rail::-webkit-scrollbar { display: none; }

.picker-tab {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--rule-soft);
  padding: .8rem .9rem;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: .16rem;
  min-width: 128px;
  transition: background-color .16s ease, color .16s ease;
}
/* Kengroq ekranda 8 ta yo'nalish qatorni teng bo'lib to'ldiradi */
@media (min-width: 1080px) { .picker-tab { flex: 1 1 0; min-width: 0; } }
.picker-tab:last-child { border-right: 0; }
.picker-tab .code { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.picker-tab .label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); line-height: 1.22; text-wrap: balance; }
.picker-tab:hover { background: var(--surface-2); }
.picker-tab[aria-selected='true'] { background: var(--brand); }
.picker-tab[aria-selected='true'] .code { color: color-mix(in srgb, #fff 72%, transparent); }
.picker-tab[aria-selected='true'] .label { color: #fff; }
:root[data-theme='dark'] .picker-tab[aria-selected='true'] .label { color: #041614; }
:root[data-theme='dark'] .picker-tab[aria-selected='true'] .code { color: color-mix(in srgb, #041614 62%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .picker-tab[aria-selected='true'] .label { color: #041614; }
  :root:not([data-theme='light']) .picker-tab[aria-selected='true'] .code { color: color-mix(in srgb, #041614 62%, transparent); }
}

/* Sahna: chap tomonda ma'lumot, o'ngda ekran */
.stage {
  display: grid;
  gap: 1.8rem;
  padding-top: 1.9rem;
}
@media (min-width: 940px) {
  .stage { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
}

.stage-meta { display: grid; gap: 1.15rem; align-content: start; }
.stage-meta h3 { font-size: clamp(1.35rem, 2.2vw, 1.72rem); }
.stage-meta .prose { font-size: .95rem; }

.factlist { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.factlist div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .58rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.factlist dt, .factlist .k { font-size: .8rem; color: var(--muted); }
.factlist dd, .factlist .v { margin: 0; font-family: var(--font-mono); font-size: .84rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }

/* Ekran ramkasi */
.screen {
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .42rem .7rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
}
.screen-bar .dots { display: flex; gap: .28rem; }
.screen-bar .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); display: block; }
.screen-bar .path {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen img { width: 100%; height: auto; }
.screen.is-swapping img { opacity: .35; }
.screen img { transition: opacity .22s ease; }
@media (prefers-reduced-motion: reduce) { .screen img { transition: none; } }

/* --- Isbot chizig'i ----------------------------------------------------- */
.proof {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.proof-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.6rem;
  padding-block: 1.05rem;
}
.proof-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-right: .4rem; }
.proof a {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}
.proof a:hover { color: var(--brand); border-bottom-color: var(--brand); }
/* Jonli o'rnatmalar — manzil emas, soha nomi (mijoz domenlari yashirin) */
.proof-item {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.proof-item::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); flex: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .proof-item::before { animation: live-pulse 2.4s ease-out infinite; }
  @keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
    70%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 0%, transparent); }
  }
}

/* --- Kartochkalar ------------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid > * { background: var(--surface); padding: 1.5rem 1.4rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.card h4 { margin-top: .85rem; }
.card p { margin-top: .45rem; font-size: .9rem; color: var(--muted); }

/* --- Yo'nalish bloklari ------------------------------------------------- */
.vertical { border-top: 1px solid var(--rule); padding-block: clamp(2.6rem, 5vw, 4rem); scroll-margin-top: 78px; }
.vertical:first-of-type { border-top: 0; padding-top: 0; }

/* Har bo'limning bosh kadri — to'liq kenglikda, keyin kichiklari panjarada */
.shot-lead { margin-bottom: 1.4rem; }
.shot-lead figcaption { margin-top: .7rem; font-size: .9rem; }

.vertical-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.9rem;
}
@media (min-width: 900px) {
  .vertical-head { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 3rem; align-items: start; }
}
.vertical-head .idx {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: .6rem;
}

.painline {
  display: grid;
  gap: .9rem;
}
.painline > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: .9rem; align-items: baseline; }
.painline .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.painline .v { font-size: .95rem; color: var(--ink-soft); }
.painline .v.promise { color: var(--ink); font-weight: 500; }

.shotgrid { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .shotgrid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .shotgrid.three { grid-template-columns: repeat(3, 1fr); } }

figure { margin: 0; }
figure figcaption {
  margin-top: .6rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}
figure figcaption b { color: var(--ink-soft); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.3rem; }
.chip {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .01em;
  padding: .28rem .55rem;
  border: 1px solid var(--rule);
  color: var(--muted);
  background: var(--surface);
}

/* ── Mobil ilova va Telegram ─────────────────────────────────────────── */
.phones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.1rem, 2.6vw, 2rem);
}
@media (min-width: 720px)  { .phones { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px)  { .phones.phones-tg { grid-template-columns: repeat(2, 1fr); } }

.phone { display: flex; flex-direction: column; }
.phone-scr {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  /* telefon nisbatini saqlaydi, rasm to'lig'icha yotadi */
}
.phone-scr img { display: block; width: 100%; height: auto; }
.phone-tag {
  align-self: flex-start;
  margin-top: .85rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand-wash);
  padding: .22rem .5rem;
}
.phone figcaption { margin-top: .55rem; font-size: .8rem; }

.tg { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); padding-top: clamp(2rem, 4vw, 3rem); }
.tg-head h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.9rem); letter-spacing: -0.01em; margin: 0 0 .5rem; }
.tg-head .prose { max-width: 46ch; }
.tg-grid { margin-top: 1.8rem; display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); }
@media (min-width: 900px) { .tg-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }

.tg-list { display: flex; flex-direction: column; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tg-item { display: flex; gap: 1rem; background: var(--surface); padding: 1.4rem 1.4rem; }
.tg-mark {
  flex: none; width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand-ink); font-size: 1rem; border-radius: 8px;
}
.tg-item h4 { margin: 0 0 .3rem; font-size: .98rem; font-weight: 600; color: var(--ink); }
.tg-item p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* AI bo'limi — mavjud bloklar orasidagi nafas va ro'yxat sarlavhasi */
/* Yordamchi paneli kadr ichida kichik matn bilan chiqadi, shuning uchun
   bu ikki kadr ustma-ust va to'liq kenglikda turadi — ikki ustunda o'qilmaydi. */
.shotgrid.ai-stack { gap: 1.9rem; }
#ai .chips { margin-top: .7rem; margin-bottom: 2.2rem; }
#ai .grid { margin-top: 0; }
.ai-can-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 2.4rem 0 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .22rem .5rem;
  border: 1px solid;
}
.status.jonli { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.status.test  { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 40%, transparent); }
.status.qurilmoqda { color: var(--muted); border-color: var(--rule); }

/* --- Modul jadvali ------------------------------------------------------ */
.ledger { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ledger th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding: .5rem .8rem .5rem 0;
  border-bottom: 1px solid var(--rule);
}
.ledger td { padding: .62rem .8rem .62rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.ledger td:first-child { font-weight: 600; white-space: nowrap; }
.ledger td:last-child { color: var(--muted); padding-right: 0; }
.ledger tr:hover td { background: var(--surface-2); }
.table-scroll { overflow-x: auto; }

/* --- Savol-javob -------------------------------------------------------- */
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule-soft); }
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2.2rem 1.05rem 0;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+';
  position: absolute;
  right: .3rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 1.15rem;
  line-height: 1;
}
.qa details[open] summary::after { content: '−'; }
.qa details p { padding-bottom: 1.15rem; color: var(--muted); max-width: 72ch; font-size: .95rem; }

/* --- Jarayon ------------------------------------------------------------ */
.steps { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); border-top: 0; } }
.step { padding: 1.4rem 1.2rem 1.5rem 0; border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 900px) {
  .step { border-top: 1px solid var(--rule); border-bottom: 0; padding-right: 1.6rem; }
}
.step .n {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--brand);
  display: block;
  margin-bottom: .7rem;
}
.step h4 { margin-bottom: .35rem; }
.step p { font-size: .88rem; color: var(--muted); }

/* --- Yakuniy chaqiriq --------------------------------------------------- */
.cta {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: clamp(2rem, 5vw, 3.4rem);
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 900px) {
  .cta { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3.4rem; align-items: center; }
}
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.contact-list a, .contact-list span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--rule-soft);
  text-decoration: none;
  font-size: .92rem;
  color: var(--ink-soft);
  transition: color .16s ease;
}
.contact-list a:hover { color: var(--brand); }
.contact-list .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* --- Futer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--rule); padding-block: 2.4rem 3rem; }
.footer-in { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; align-items: baseline; }
.footer p { font-size: .82rem; color: var(--faint); }
.footer .spacer { margin-left: auto; }

/* --- Yordamchilar ------------------------------------------------------- */
.stack-sm > * + * { margin-top: .7rem; }
.stack > * + * { margin-top: 1.2rem; }
.stack-lg > * + * { margin-top: 2.4rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ochilishdagi paydo bo'lish — ko'tarilish + yengil masshtab */
.reveal { opacity: 0; transform: translateY(30px) scale(.985); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════ HARAKAT QATLAMI ═══════════════════
   Faqat transform/opacity — compositor thread, silliq 60fps.
   prefers-reduced-motion da to'liq o'chadi. */
@media (prefers-reduced-motion: no-preference) {

  /* — O'qish jarayoni chizig'i (yuqorida) — */
  .scrollbar {
    position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100;
    background: linear-gradient(90deg, var(--brand), var(--brand-ink));
    transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
    will-change: transform;
  }
  @supports (animation-timeline: scroll()) {
    .scrollbar { animation: sb-grow linear both; animation-timeline: scroll(root block); }
  }
  @keyframes sb-grow { to { transform: scaleX(1); } }

  /* — Hero: yuklanishdagi bosqichma-bosqich kirish — */
  .hero-eyebrow, .hero h1, .hero-lede, .hero-actions, .picker {
    animation: rise-in .9s cubic-bezier(.2, .7, .3, 1) both;
  }
  .hero-eyebrow  { animation-delay: .05s; }
  .hero h1       { animation-delay: .16s; }
  .hero-lede     { animation-delay: .32s; }
  .hero-actions  { animation-delay: .46s; }
  .picker        { animation-delay: .60s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

  /* teal ibora ostidan yorug'lik chizig'i o'tadi */
  .hero h1 em { position: relative; }
  .hero h1 em::after {
    content: ''; position: absolute; left: -.05em; right: -.05em; bottom: .05em; height: .46em;
    background: color-mix(in srgb, var(--brand) 20%, transparent);
    transform: scaleX(0); transform-origin: 0 50%; z-index: -1; border-radius: 1px;
    animation: em-sweep .75s cubic-bezier(.2, .7, .3, 1) 1.05s both;
  }
  @keyframes em-sweep { to { transform: scaleX(1); } }

  /* hero eyebrow nuqtasi — yumshoq puls */
  .hero-eyebrow .dot { position: relative; }
  .hero-eyebrow .dot::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    border: 1px solid var(--brand); opacity: 0; animation: dot-pulse 2.6s ease-out infinite;
  }
  @keyframes dot-pulse { 0% { transform: scale(.7); opacity: .7; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

  /* — Parallax: CSS scroll-driven .screen ustida (compositor, ishonchli) — */
  @supports (animation-timeline: view()) {
    .section .screen {
      animation: parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
      will-change: transform;
    }
    @keyframes parallax { from { transform: translateY(30px); } to { transform: translateY(-30px); } }
  }
  /* — 3D egilish ichki rasm (picture) ustida — parallax bilan urishmaydi — */
  .section .screen picture { display: block; will-change: transform; transform-style: preserve-3d; }

  /* — Hover mikro-harakatlari — */
  .card, .phone-scr, .tg-item { transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease; }
  .grid .card:hover { transform: translateY(-3px); }
  .phone:hover .phone-scr { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .btn { transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }

  /* — Picker: kadr almashganda yumshoq o'tish — */
  #stage-screen img { transition: opacity .28s ease; }
  #stage-screen.is-swapping img { opacity: 0; }
  .stage-meta { transition: opacity .28s ease; }
  .stage-meta.is-swapping { opacity: .3; }

  /* — Sarlavha niqob-ochilishi — */
  .section-head.reveal h2 {
    clip-path: inset(0 0 102% 0);
    transform: translateY(14px);
    transition: clip-path .95s cubic-bezier(.2,.7,.3,1), transform .95s cubic-bezier(.2,.7,.3,1);
  }
  .section-head.reveal.in h2 { clip-path: inset(0 0 -8% 0); transform: none; }
}

/* ─────────── Hero aurora foni (jonli teal yog'du) ─────────── */
.aurora {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  mask-image: radial-gradient(130% 90% at 38% 18%, #000 38%, transparent 78%);
  -webkit-mask-image: radial-gradient(130% 90% at 38% 18%, #000 38%, transparent 78%);
}
.aurora b {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(64px); opacity: .34; mix-blend-mode: multiply;
}
:root[data-theme='dark'] .aurora b,
:root:not([data-theme='light']) .aurora b { mix-blend-mode: screen; opacity: .30; }
@media (prefers-color-scheme: dark) { .aurora b { mix-blend-mode: screen; opacity: .30; } }
.aurora .a1 { width: 46vw; height: 46vw; left: -8vw; top: -12vw;
  background: radial-gradient(circle, var(--brand) 0%, transparent 68%); }
.aurora .a2 { width: 38vw; height: 38vw; right: -6vw; top: 2vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, #57e6d6) 0%, transparent 68%); }
.aurora .a3 { width: 30vw; height: 30vw; left: 32vw; top: 10vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 70%, #1e6) 0%, transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .aurora .a1 { animation: aur1 19s ease-in-out infinite; }
  .aurora .a2 { animation: aur2 24s ease-in-out infinite; }
  .aurora .a3 { animation: aur3 21s ease-in-out infinite; }
  @keyframes aur1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,4vw) scale(1.12); } }
  @keyframes aur2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-5vw,5vw) scale(.92); } }
  @keyframes aur3 { 0%,100% { transform: translate(0,0) scale(.95); } 50% { transform: translate(-4vw,-3vw) scale(1.1); } }
}

/* ─────────── Ekran yorug'lik chizig'i (3D egilishda) ─────────── */
.screen { position: relative; }
.screen .glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0;
  transition: opacity .3s ease; mix-blend-mode: overlay;
  background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 0%),
    rgba(255,255,255,.5), transparent 60%);
}
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .screen:hover .glare { opacity: 1; }
}

/* ─────────── Jonli o'rnatmalar lentasi ─────────── */
.proof-marquee { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.proof-track { display: inline-flex; gap: 1.6rem; white-space: nowrap; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .proof-track { animation: proof-scroll 34s linear infinite; }
  .proof-in:hover .proof-track { animation-play-state: paused; }
  @keyframes proof-scroll { to { transform: translateX(-50%); } }
}

/* ─────────── Magnit tugmalar (JS transform bilan) ─────────── */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-actions .btn { will-change: transform; }
}
