:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #334155;
  --on-primary: #ffffff;
  --accent: #059669;
  --accent-soft: #d1fae5;
  --bezel: #0f172a;
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 12px 32px rgb(15 23 42 / 8%);
  --radius: 14px;
  --wrap: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f172a;
    --card: #111a2e;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: #1e293b;
    --primary: #cbd5e1;
    --on-primary: #0b1220;
    --accent: #34d399;
    --accent-soft: rgb(52 211 153 / 14%);
    --bezel: #020617;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

p {
  margin: 0;
}

.sprite {
  display: none;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.narrow {
  max-width: 820px;
}

/* Yuqoridagi o'qish chizig'i */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Sarlavha */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgb(15 23 42 / 6%);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #059669;
  color: #fff;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.is-on {
  color: var(--text);
  background: var(--bg-alt);
}

/* Tugmalar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 18px rgb(51 65 85 / 22%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(51 65 85 / 28%);
}

.btn-primary .i {
  transition: transform 0.2s;
}

.btn-primary:hover .i {
  transform: translateX(3px);
}

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

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

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
}

.top .btn-sm {
  margin-left: 8px;
}

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

/* Til almashtirgich */
.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.langs a {
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.langs a:hover {
  color: var(--text);
}

.langs a[aria-current] {
  background: var(--primary);
  color: var(--on-primary);
}

.top .langs {
  margin-left: 8px;
}

/* Bosh qism */
.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

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

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
}

.accent {
  color: var(--accent);
}

.lead {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}

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

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 18px 6px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #f8fafc;
  text-decoration: none;
  border: 1px solid #0f172a;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store .i {
  width: 22px;
  height: 22px;
  fill: #34d399;
  stroke: none;
}

.store span {
  display: grid;
  line-height: 1.2;
  font-weight: 700;
}

.store small {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
}

a.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(15 23 42 / 25%);
}

.store-soon {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding-left: 18px;
}

.store-soon small {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  .store {
    background: #1e293b;
    border-color: #334155;
  }

  .store-soon {
    background: transparent;
    border-color: var(--line);
  }
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.platforms li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.platforms li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-art {
  position: relative;
  height: 600px;
}

.phone {
  position: absolute;
  width: 270px;
  padding: 9px;
  border-radius: 44px;
  background: var(--bezel);
  box-shadow: var(--shadow), 0 30px 60px rgb(15 23 42 / 18%);
  will-change: transform;
}

.phone img {
  border-radius: 36px;
  width: 100%;
}

.phone-front {
  left: 50%;
  top: 10px;
  margin-left: -135px;
  z-index: 3;
}

.phone-back {
  width: 230px;
  top: 70px;
  opacity: 0.95;
}

.phone-left {
  left: 0;
  rotate: -8deg;
  z-index: 1;
}

.phone-right {
  right: 0;
  rotate: 8deg;
  z-index: 2;
}

/* Afzalliklar qatori */
.strip {
  border-block: 1px solid var(--line);
  background: var(--card);
}

.strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-block: 22px;
}

.strip p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.strip .i {
  color: var(--accent);
}

/* Bo'limlar */
.section {
  padding: 104px 0;
}

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

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

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

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.ficon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.4s;
}

.feature:hover .ficon {
  transform: rotate(-6deg) scale(1.06);
}

.ficon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Salmoq nima */
.section-tight {
  padding: 88px 0 24px;
}

.what {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.what-text {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.facts div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.facts dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 700;
}

/* Daftar va Excel o'rniga */
.replace {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rep {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.rep::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rep.is-in::after,
.rep:hover::after {
  transform: scaleX(1);
}

.rep h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.rep p {
  color: var(--muted);
}

/* Ilova ichidan — yopishqoq telefon */
.show {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 28px;
  border-left: 3px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.45s, border-color 0.45s;
}

.step.is-on {
  opacity: 1;
  border-left-color: var(--accent);
}

.step h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.step p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 26em;
}

.step-img {
  display: none;
}

.show-stage {
  position: sticky;
  top: 84px;
  height: calc(100vh - 104px);
  max-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.phone-stage {
  position: relative;
  width: min(280px, calc((100vh - 150px) * 0.46));
  aspect-ratio: 560 / 1217;
  box-sizing: content-box;
}

.phone-stage .screen {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s, transform 0.6s;
}

.phone-stage .screen.is-on {
  opacity: 1;
  transform: none;
}

.dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dots li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s, transform 0.3s;
}

.dots li.is-on {
  background: var(--accent);
  transform: scale(1.4);
}

/* Ishonch */
.trust {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.points li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 26px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 6px var(--accent-soft), inset 0 0 0 20px var(--accent);
}

.points h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.points p {
  color: var(--muted);
  font-size: 0.98rem;
}

.tablet {
  margin: 0;
  padding: 12px;
  border-radius: 34px;
  background: var(--bezel);
  box-shadow: var(--shadow), 0 30px 60px rgb(15 23 42 / 16%);
}

.tablet img {
  border-radius: 24px;
}

/* Kimlar uchun */
.audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.aud {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}

.aud h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.aud p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* Savollar */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.3s;
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-size: 1.06rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* Aloqa */
.cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 56px;
  padding-inline: 48px;
  border-radius: 24px;
  background: #1e293b;
  color: #f8fafc;
}

.cta-box h2 {
  color: #f8fafc;
}

.cta-box p {
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.contacts {
  display: grid;
  gap: 12px;
}

.contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.contact:hover {
  background: rgb(52 211 153 / 14%);
  border-color: rgb(52 211 153 / 45%);
  transform: translateX(4px);
}

.contact .i {
  width: 22px;
  height: 22px;
  color: #34d399;
}

.contact span {
  display: grid;
  overflow-wrap: anywhere;
}

.contact b {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Pastki qism */
.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

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

.foot nav {
  display: flex;
  gap: 20px;
}

.foot nav a {
  text-decoration: none;
}

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

.foot .langs {
  background: transparent;
}

.foot-row > p {
  margin-left: auto;
}

/* Paydo bo'lish animatsiyasi — JS yo'q bo'lsa ham mazmun ko'rinadi */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js .hero-art .phone {
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.js .hero-art .phone-left {
  animation-delay: 0.15s;
}

.js .hero-art .phone-right {
  animation-delay: 0.3s;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 60px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 1020px) {
  .nav {
    display: none;
  }

  .top .btn-sm {
    margin-left: 8px;
  }

  .hero-grid,
  .trust,
  .cta-box,
  .what {
    grid-template-columns: 1fr;
  }

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

  .top .langs {
    margin-left: auto;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-art {
    height: 520px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

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

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

  .tablet {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .hero-art {
    height: 440px;
  }

  .phone {
    width: 210px;
    border-radius: 36px;
    padding: 7px;
  }

  .phone img {
    border-radius: 30px;
  }

  .phone-front {
    margin-left: -105px;
  }

  .phone-back {
    width: 170px;
    top: 56px;
  }

  .features,
  .audience,
  .strip-row {
    grid-template-columns: 1fr;
  }

  .langs a {
    min-width: 30px;
    padding: 4px 6px;
  }

  .brand > span:last-child {
    font-size: 1.05rem;
  }

  .show {
    display: block;
  }

  .show-stage {
    display: none;
  }

  .step {
    min-height: 0;
    opacity: 1;
    padding: 0 0 48px 20px;
  }

  .step-img {
    display: block;
    width: min(240px, 70%);
    margin-top: 24px;
    padding: 7px;
    border-radius: 34px;
    background: var(--bezel);
    box-shadow: var(--shadow);
  }

  .cta-box {
    padding: 36px 22px;
    border-radius: 18px;
  }

  .foot-row > p {
    margin-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
