/*
 * Qaytnoma landing — Claude Design maketidan (`Qaytnoma Download.dc.html`).
 *
 * Maketdagi inline uslublar shu yerga ko'chirilgan; qiymatlar (rang, o'lcham,
 * oraliq) o'zgartirilmagan. Maketda `style-hover` atributi ishlatilgan —
 * u canvas runtime'iga xos, shuning uchun bu yerda haqiqiy `:hover` qoidalari
 * bilan almashtirilgan.
 *
 * Maket `min-width:1080px` bilan faqat kata ekran uchun chizilgan. Desktop
 * ko'rinishi aynan saqlangan; undan tor ekranlar uchun oxirida sodda
 * moslashuv qo'shilgan, shunda sahifa telefonda ham buzilmaydi.
 *
 * Hero'dagi oyna ichida skrinshot emas, HTML maket (`.mock`) turadi —
 * real skrinshotda foydalanuvchining Spreadsheet ID si ko'rinib qolgan edi.
 */

:root {
  --bg: #f6f5f1;
  --ink: #14150f;
  --lime: #daf24b;
  --blue: #2b4bff;

  --text-soft: #4a4b42;
  --text-muted: #5c5d53;
  --text-dim: #6b6c62;
  --text-faint: #8a8b80;

  --line: #e6e4da;
  --line-strong: #dedcd3;
  --line-soft: #edebe3;

  --panel: #faf9f5;
  --panel-alt: #f3f2ec;

  --ok: #1f7a4d;
  --warn: #b45309;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'Cascadia Code', 'Consolas', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--ink);
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

@keyframes qn-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.page {
  min-width: 1080px;
  padding: 0 56px 80px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Sarlavha ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  display: grid;
  place-items: center;
}

.brand__bars {
  width: 14px;
  height: 2px;
  background: var(--lime);
  box-shadow:
    0 5px 0 var(--lime),
    0 -5px 0 var(--lime);
}

.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  color: var(--text-dim);
}

.nav a:hover {
  color: var(--ink);
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ecebe5;
  border-radius: 999px;
  padding: 4px;
}

.lang__btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 15px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--text-dim);
}

.lang__btn[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}

.lang__btn:hover:not([aria-pressed='true']) {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 76px 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: qn-blink 1.8s ease-in-out infinite;
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 62px;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 22px 0 0;
  text-wrap: balance;
}

.hero__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 20px 0 0;
  max-width: 30em;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--blue);
  color: #fff;
  border-radius: 14px;
  padding: 19px 30px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(43, 75, 255, 0.28);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 21, 15, 0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 13px 20px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero__meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.hero__meta strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Oyna maketi ---------- */

.shot {
  position: relative;
}

.shot__glow {
  position: absolute;
  inset: 26px -26px -26px 26px;
  background: var(--lime);
  border-radius: 18px;
}

.window {
  position: relative;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 21, 15, 0.1);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}

.window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4e2d8;
}

.window__name {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--display);
}

.window__body {
  position: relative;
  height: 396px;
  overflow: hidden;
}

/* Sozlamalar oynasining soddalashtirilgan nusxasi — ilovadagi
   `settings.html` ning yorug' mavzusi (o'lchamlar 0.85 ga kichraytirilgan). */

.mock {
  padding: 18px 20px;
  font: 12px/1.45 'Segoe UI', system-ui, sans-serif;
  color: #1a1d21;
  user-select: none;
}

.mock__title {
  font-size: 15px;
  font-weight: 600;
}

.mock__lead {
  color: #6b7280;
  margin: 2px 0 14px;
}

.mock__group {
  border: 1px solid #d7dbe0;
  border-radius: 9px;
  padding: 14px 14px 6px;
  margin-bottom: 12px;
  position: relative;
}

.mock__legend {
  position: absolute;
  top: -8px;
  left: 10px;
  background: #fff;
  padding: 0 5px;
  font-weight: 600;
}

.mock__field {
  margin-bottom: 9px;
}

.mock__label {
  display: block;
  font-weight: 500;
  margin-bottom: 3px;
}

.mock__input {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid #d7dbe0;
  border-radius: 5px;
  background: #fff;
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__input--focus {
  border-color: #1f7a4d;
  box-shadow: 0 0 0 2px rgba(31, 122, 77, 0.18);
}

.mock__input--secret {
  letter-spacing: 0.04em;
}

.mock__dots::after {
  content: '••••••••••••••••••••••••••••••••••';
  color: #9aa3ad;
}

.mock__hint {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
}

.mock__row {
  display: flex;
  gap: 6px;
}

.mock__btn {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #d7dbe0;
  border-radius: 5px;
  background: #fff;
  white-space: nowrap;
}

.mock__btn--primary {
  background: #1f7a4d;
  border-color: #1f7a4d;
  color: #fff;
  font-weight: 600;
}

.mock__check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 8px;
}

.mock__check code {
  background: none;
  border: none;
  padding: 0;
}

.mock__box {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #1f7a4d;
  position: relative;
  flex: none;
}

.mock__box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mock__footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.mock__status {
  flex: 1;
  color: #1f7a4d;
  font-weight: 500;
}

.mock__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

/* ---------- Xususiyatlar ---------- */

.section {
  padding: 110px 0 0;
}

.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.025em;
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 28px;
}

.card__num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.card__title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 14px 0 8px;
}

.card__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

.card--dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.card--dark .card__num {
  color: var(--lime);
}

.card--dark .card__body {
  color: #b6b7ac;
}

/* ---------- Natija paneli ---------- */

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.panel__caption {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-dim);
  border-top: 1px solid var(--line-soft);
}

.panel--flex {
  display: flex;
  flex-direction: column;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}

.panel__led {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #0f9d58;
}

.panel__file {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel__tag {
  margin-left: auto;
  background: var(--lime);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.panel__scroll {
  flex: 1;
  overflow: auto;
}

/* ---------- Jadval ---------- */

.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sheet th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-alt);
}

.sheet td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0eee7;
}

.sheet tbody tr:nth-child(even) {
  background: #fbfaf6;
}

.sheet tbody tr:last-child td {
  border-bottom: none;
}

.sheet .dim {
  color: var(--text-muted);
}

.sheet .qty {
  text-align: right;
  font-weight: 600;
}

/* ---------- Sozlash yo'riqnomasi ---------- */

.guide__intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.guide__need {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.55;
}

.guide__need strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 8px;
}

.guide__need ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.guide__need li + li {
  margin-top: 4px;
}

.guide {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.gstep {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line-strong);
}

.guide .gstep:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.gstep__num {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  color: #c9c7bb;
  line-height: 1;
}

.gstep__body {
  max-width: 820px;
}

.gstep__title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 4px 0 10px;
}

.gstep__text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 14px;
  text-wrap: pretty;
}

.gstep__list {
  margin: 0 0 16px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}

.gstep__list li + li {
  margin-top: 8px;
}

.gstep__list b,
.fields b,
.faq b {
  font-weight: 600;
  color: var(--ink);
}

.fields {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.fields th,
.fields td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
}

.fields tr:first-child th,
.fields tr:first-child td {
  border-top: none;
}

.fields th {
  width: 220px;
  font-family: var(--display);
  font-weight: 600;
  background: var(--panel);
  white-space: nowrap;
}

.fields td {
  color: var(--text-soft);
}

.note {
  border-left: 3px solid var(--blue);
  background: #fff;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

.note--warn {
  border-left-color: var(--warn);
}

.note--ok {
  border-left-color: var(--ok);
}

.urlbox {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--ink);
  color: #b6b7ac;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 14px;
  overflow-x: auto;
  white-space: nowrap;
}

.urlbox__id {
  background: var(--lime);
  color: var(--ink);
  border-radius: 4px;
  padding: 2px 4px;
  font-weight: 600;
}

.menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
}

.menu__title {
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 10px;
}

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.menu__list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px;
  align-items: baseline;
  color: var(--text-muted);
  line-height: 1.5;
}

.faq {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px 12px;
}

.faq__title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.faq__list {
  margin: 0;
}

.faq__list dt {
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}

.faq__list dd {
  margin: 4px 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- O'rnatish qadamlari ---------- */

.install {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.install__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 16px 0 0;
  text-wrap: pretty;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
}

.steps .step:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.step__num {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: #c9c7bb;
  line-height: 1;
}

.step__title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.step__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Pastki qism ---------- */

.footer {
  padding: 80px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__brand {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.footer__meta {
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- Tor ekranlar ---------- */
/* Maket 1080 px dan boshlanadi; undan tor ekranda ustunlar bir qatorga
   tushadi, shunda sahifa gorizontal aylantirishsiz o'qiladi. */

@media (max-width: 1140px) {
  .page {
    min-width: 0;
    padding: 0 24px 64px;
  }
  .hero,
  .install,
  .guide__intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding-top: 48px;
  }
  .hero__title {
    font-size: 44px;
  }
  .section {
    padding-top: 72px;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .hero__title {
    font-size: 34px;
  }
  .hero__lede {
    font-size: 17px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .window__body {
    height: 300px;
  }
  .panel__scroll {
    overflow-x: auto;
  }
  .gstep {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .fields th {
    width: auto;
    white-space: normal;
  }
  .fields,
  .fields tbody,
  .fields tr,
  .fields th,
  .fields td {
    display: block;
  }
  .fields td {
    border-top: none;
    padding-top: 4px;
  }
  .menu__list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .faq {
    padding: 20px 20px 8px;
  }
}
