/* Taqsimla landing. Brend rangi — panel bilan bir xil (#1a6fe0, favicon). CSP: style-src 'self' — inline stil yo'q. */
:root {
  --brand: #1a6fe0;
  --brand-dark: #1257b8;
  --brand-soft: #e8f0fd;
  --ink: #0f1b2d;
  --muted: #55627a;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-tint: #f5f8fc;
  --card: #ffffff;
  --ok: #1f9d55;
  --warn: #d14343;
  --amber: #c27a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 8px 24px rgba(15, 27, 45, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4b8ff0;
    --brand-dark: #3a7de0;
    --brand-soft: #16263f;
    --ink: #e8edf5;
    --muted: #9aa7bc;
    --line: #243247;
    --bg: #0d1522;
    --bg-tint: #111c2c;
    --card: #142034;
    --ok: #3cc47c;
    --warn: #f06b6b;
    --amber: #e6a23c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Header --- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.top__row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
}

.top__nav {
  display: flex;
  gap: 24px;
  margin-left: 16px;
  color: var(--muted);
  font-size: 15px;
}

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

.top__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}

.lang button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  background: var(--brand-soft);
  color: var(--brand);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 15px;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--card);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--light {
  background: #fff;
  color: #1257b8;
}

.btn--light:hover {
  background: #eef4fe;
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
}

/* --- Hero --- */
.hero {
  padding: 72px 0 80px;
  background: radial-gradient(900px 420px at 85% -10%, var(--brand-soft), transparent 70%), var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 800;
}

.lead {
  margin: 20px 0 0;
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Panel maketi (bezak) */
.mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.mock__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.mock__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.mock__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock__kpis div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}

.mock__kpis small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.mock__kpis b {
  display: block;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__kpis b.warn {
  color: var(--warn);
}

.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin: 16px 0;
  padding: 10px 4px 0;
  border-bottom: 1px solid var(--line);
}

.mock__chart span {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 55%, transparent));
}

.mock__chart span:nth-child(1) {
  height: 42%;
}
.mock__chart span:nth-child(2) {
  height: 58%;
}
.mock__chart span:nth-child(3) {
  height: 51%;
}
.mock__chart span:nth-child(4) {
  height: 66%;
}
.mock__chart span:nth-child(5) {
  height: 73%;
}
.mock__chart span:nth-child(6) {
  height: 61%;
}
.mock__chart span:nth-child(7) {
  height: 80%;
}
.mock__chart span:nth-child(8) {
  height: 69%;
}
.mock__chart span:nth-child(9) {
  height: 88%;
}
.mock__chart span:nth-child(10) {
  height: 77%;
}
.mock__chart span:nth-child(11) {
  height: 92%;
}
.mock__chart span:nth-child(12) {
  height: 84%;
}

.mock__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.mock__rows li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 2px;
  border-top: 1px solid var(--line);
}

.mock__rows li:first-child {
  border-top: 0;
}

.mock__rows b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mock__rows em {
  font-style: normal;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}

.mock__rows em.blue {
  color: var(--brand);
  background: var(--brand-soft);
}

.mock__rows em.amber {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 14%, transparent);
}

.mock__rows span {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 72px;
  text-align: right;
}

/* --- Sections --- */
.section {
  padding: 88px 0;
}

.section--tint {
  background: var(--bg-tint);
}

.section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}

.section__lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 40em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  margin-bottom: 16px;
}

.card__icon svg,
.contact__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Qadamlar */
.steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps__n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Aloqa */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact__list {
  display: grid;
  gap: 14px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.contact__item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
}

.contact__icon--tg {
  background: color-mix(in srgb, #229ed9 14%, transparent);
}

.contact__icon--tg svg {
  stroke: #229ed9;
}

.contact__item small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.contact__item b {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

/* Yakuniy CTA */
.section--cta {
  padding: 0 0 88px;
}

.cta {
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #1a6fe0, #1257b8);
  border-radius: 20px;
  padding: 56px 24px;
}

.cta p {
  margin: 10px 0 0;
  opacity: 0.88;
  font-size: 18px;
}

.cta .hero__cta {
  justify-content: center;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.foot__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.foot a:hover {
  color: var(--brand);
}

/* --- Moslashuv --- */
@media (max-width: 960px) {
  .hero__grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 40px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .top__nav {
    display: none;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 64px 0;
  }

  .section--cta {
    padding: 0 0 64px;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }

  .mock__kpis {
    grid-template-columns: 1fr 1fr;
  }

  .mock__kpis div:last-child {
    grid-column: span 2;
  }

  .mock__rows li {
    grid-template-columns: 1fr auto;
  }

  .mock__rows span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
